@vendure/graphiql-plugin 3.5.0-minor-202510012036 → 3.5.0-minor-202510071456
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graphiql/assets/{SchemaReference-DxjLeZ59.js → SchemaReference-JaTnqxVY.js} +2 -2
- package/dist/graphiql/assets/{SchemaReference-DxjLeZ59.js.map → SchemaReference-JaTnqxVY.js.map} +1 -1
- package/dist/graphiql/assets/{brace-fold-C5NBigGY.js → brace-fold-DEG6LdUK.js} +2 -2
- package/dist/graphiql/assets/{brace-fold-C5NBigGY.js.map → brace-fold-DEG6LdUK.js.map} +1 -1
- package/dist/graphiql/assets/{closebrackets-CVCrAWV7.js → closebrackets-D98DK4tX.js} +2 -2
- package/dist/graphiql/assets/{closebrackets-CVCrAWV7.js.map → closebrackets-D98DK4tX.js.map} +1 -1
- package/dist/graphiql/assets/{codemirror-TTILi5Ok.js → codemirror-CdkO4kSF.js} +2 -2
- package/dist/graphiql/assets/codemirror-CdkO4kSF.js.map +1 -0
- package/dist/graphiql/assets/{comment-CvLlMsd_.js → comment-BVJMQhN6.js} +2 -2
- package/dist/graphiql/assets/{comment-CvLlMsd_.js.map → comment-BVJMQhN6.js.map} +1 -1
- package/dist/graphiql/assets/{dialog-DRbboQHi.js → dialog-CmdwRfZG.js} +2 -2
- package/dist/graphiql/assets/dialog-CmdwRfZG.js.map +1 -0
- package/dist/graphiql/assets/{foldgutter-xM98xUAG.js → foldgutter-imeg-kqI.js} +2 -2
- package/dist/graphiql/assets/{foldgutter-xM98xUAG.js.map → foldgutter-imeg-kqI.js.map} +1 -1
- package/dist/graphiql/assets/{hint-CE5L8QSM.js → hint-BSR8dSJU.js} +2 -2
- package/dist/graphiql/assets/{hint-CE5L8QSM.js.map → hint-BSR8dSJU.js.map} +1 -1
- package/dist/graphiql/assets/{hint-5FUhY45V.js → hint-C4PD-SNa.js} +2 -2
- package/dist/graphiql/assets/{hint-5FUhY45V.js.map → hint-C4PD-SNa.js.map} +1 -1
- package/dist/graphiql/assets/index-ClC-PD84.js +375 -0
- package/dist/graphiql/assets/index-ClC-PD84.js.map +1 -0
- package/dist/graphiql/assets/{info-Eys77UxT.js → info-CPMDNpdA.js} +2 -2
- package/dist/graphiql/assets/{info-Eys77UxT.js.map → info-CPMDNpdA.js.map} +1 -1
- package/dist/graphiql/assets/{info-addon-DqEXsUQA.js → info-addon-BVQ9dZja.js} +2 -2
- package/dist/graphiql/assets/{info-addon-DqEXsUQA.js.map → info-addon-BVQ9dZja.js.map} +1 -1
- package/dist/graphiql/assets/{javascript-CIef8F0n.js → javascript-D5beiKM7.js} +2 -2
- package/dist/graphiql/assets/{javascript-CIef8F0n.js.map → javascript-D5beiKM7.js.map} +1 -1
- package/dist/graphiql/assets/{jump-CTE51hYz.js → jump-CithgEl1.js} +2 -2
- package/dist/graphiql/assets/{jump-CTE51hYz.js.map → jump-CithgEl1.js.map} +1 -1
- package/dist/graphiql/assets/{jump-to-line-BvpEaCtd.js → jump-to-line-CuGLfPVz.js} +2 -2
- package/dist/graphiql/assets/{jump-to-line-BvpEaCtd.js.map → jump-to-line-CuGLfPVz.js.map} +1 -1
- package/dist/graphiql/assets/{lint-F_nW9Zrt.js → lint-CfB-C9pO.js} +2 -2
- package/dist/graphiql/assets/{lint-F_nW9Zrt.js.map → lint-CfB-C9pO.js.map} +1 -1
- package/dist/graphiql/assets/lint-D0Nn7W2f.js +7 -0
- package/dist/graphiql/assets/{lint-BIG9wcrT.js.map → lint-D0Nn7W2f.js.map} +1 -1
- package/dist/graphiql/assets/{lint-CEbnMjdF.js → lint-D6ikTZPp.js} +2 -2
- package/dist/graphiql/assets/{lint-CEbnMjdF.js.map → lint-D6ikTZPp.js.map} +1 -1
- package/dist/graphiql/assets/{matchbrackets-D0OH_t55.js → matchbrackets-Cb4CYpRv.js} +2 -2
- package/dist/graphiql/assets/matchbrackets-Cb4CYpRv.js.map +1 -0
- package/dist/graphiql/assets/{mode-CdWNzEF9.js → mode-CUnsIk96.js} +2 -2
- package/dist/graphiql/assets/{mode-CdWNzEF9.js.map → mode-CUnsIk96.js.map} +1 -1
- package/dist/graphiql/assets/mode-D2kfUDDL.js +2 -0
- package/dist/graphiql/assets/{mode-u5eBXn1b.js.map → mode-D2kfUDDL.js.map} +1 -1
- package/dist/graphiql/assets/{mode-Bgsek-oa.js → mode-DX1D_QC-.js} +2 -2
- package/dist/graphiql/assets/{mode-Bgsek-oa.js.map → mode-DX1D_QC-.js.map} +1 -1
- package/dist/graphiql/assets/{search-BwFO2EYo.js → search-VmHaoDxX.js} +2 -2
- package/dist/graphiql/assets/{search-BwFO2EYo.js.map → search-VmHaoDxX.js.map} +1 -1
- package/dist/graphiql/assets/{searchcursor-C8teH98l.js → searchcursor-Btj1Isyq.js} +2 -2
- package/dist/graphiql/assets/searchcursor-Btj1Isyq.js.map +1 -0
- package/dist/graphiql/assets/{show-hint-C-WEDAS_.js → show-hint-zZ7mEAfk.js} +2 -2
- package/dist/graphiql/assets/{show-hint-C-WEDAS_.js.map → show-hint-zZ7mEAfk.js.map} +1 -1
- package/dist/graphiql/assets/{sublime-Cj8gH-vM.js → sublime-Cu2r7iXj.js} +2 -2
- package/dist/graphiql/assets/{sublime-Cj8gH-vM.js.map → sublime-Cu2r7iXj.js.map} +1 -1
- package/dist/graphiql/index.html +1 -1
- package/package.json +7 -7
- package/dist/graphiql/assets/codemirror-TTILi5Ok.js.map +0 -1
- package/dist/graphiql/assets/dialog-DRbboQHi.js.map +0 -1
- package/dist/graphiql/assets/index-BHryLb7e.js +0 -375
- package/dist/graphiql/assets/index-BHryLb7e.js.map +0 -1
- package/dist/graphiql/assets/lint-BIG9wcrT.js +0 -7
- package/dist/graphiql/assets/matchbrackets-D0OH_t55.js.map +0 -1
- package/dist/graphiql/assets/mode-u5eBXn1b.js +0 -2
- package/dist/graphiql/assets/searchcursor-C8teH98l.js.map +0 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codemirror-CdkO4kSF.js","assets/codemirror-BJo8frku.js","assets/show-hint-zZ7mEAfk.js","assets/matchbrackets-Cb4CYpRv.js","assets/matchbrackets-zOPNoWNW.js","assets/closebrackets-D98DK4tX.js","assets/brace-fold-DEG6LdUK.js","assets/foldgutter-imeg-kqI.js","assets/lint-CfB-C9pO.js","assets/searchcursor-Btj1Isyq.js","assets/searchcursor-Do0yqmiZ.js","assets/jump-to-line-CuGLfPVz.js","assets/dialog-Bw_kCHcZ.js","assets/dialog-CmdwRfZG.js","assets/sublime-Cu2r7iXj.js","assets/javascript-D5beiKM7.js","assets/comment-BVJMQhN6.js","assets/search-VmHaoDxX.js","assets/hint-BSR8dSJU.js","assets/Range-CZNrBk8u.js","assets/lint-D0Nn7W2f.js","assets/info-CPMDNpdA.js","assets/SchemaReference-JaTnqxVY.js","assets/forEachState-C8esYVuF.js","assets/info-addon-BVQ9dZja.js","assets/jump-CithgEl1.js","assets/mode-D2kfUDDL.js","assets/mode-indent-Dvf_-b54.js","assets/hint-C4PD-SNa.js","assets/lint-D6ikTZPp.js","assets/mode-DX1D_QC-.js","assets/mode-CUnsIk96.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Qw(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in e)){const a=Object.getOwnPropertyDescriptor(i,u);a&&Object.defineProperty(e,u,a.get?a:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const a of u)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(u){const a={};return u.integrity&&(a.integrity=u.integrity),u.referrerPolicy&&(a.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?a.credentials="include":u.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(u){if(u.ep)return;u.ep=!0;const a=n(u);fetch(u.href,a)}})();function da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E1={exports:{}},$l={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var wE;function Xw(){if(wE)return $l;wE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,u,a){var s=null;if(a!==void 0&&(s=""+a),u.key!==void 0&&(s=""+u.key),"key"in u){a={};for(var c in u)c!=="key"&&(a[c]=u[c])}else a=u;return u=a.ref,{$$typeof:e,type:i,key:s,ref:u!==void 0?u:null,props:a}}return $l.Fragment=t,$l.jsx=n,$l.jsxs=n,$l}var DE;function Zw(){return DE||(DE=1,E1.exports=Xw()),E1.exports}var A=Zw(),x1={exports:{}},Le={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var NE;function Ww(){if(NE)return Le;NE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function T(k,B,te){this.props=k,this.context=B,this.refs=_,this.updater=te||x}T.prototype.isReactComponent={},T.prototype.setState=function(k,B){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,B,"setState")},T.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function D(){}D.prototype=T.prototype;function w(k,B,te){this.props=k,this.context=B,this.refs=_,this.updater=te||x}var N=w.prototype=new D;N.constructor=w,S(N,T.prototype),N.isPureReactComponent=!0;var R=Array.isArray;function M(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function L(k,B,te){var W=te.ref;return{$$typeof:e,type:k,key:B,ref:W!==void 0?W:null,props:te}}function z(k,B){return L(k.type,B,k.props)}function G(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function J(k){var B={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(te){return B[te]})}var se=/\/+/g;function ie(k,B){return typeof k=="object"&&k!==null&&k.key!=null?J(""+k.key):B.toString(36)}function ee(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function(B){k.status==="pending"&&(k.status="fulfilled",k.value=B)},function(B){k.status==="pending"&&(k.status="rejected",k.reason=B)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function F(k,B,te,W,he){var de=typeof k;(de==="undefined"||de==="boolean")&&(k=null);var ue=!1;if(k===null)ue=!0;else switch(de){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(k.$$typeof){case e:case t:ue=!0;break;case p:return ue=k._init,F(ue(k._payload),B,te,W,he)}}if(ue)return he=he(k),ue=W===""?"."+ie(k,0):W,R(he)?(te="",ue!=null&&(te=ue.replace(se,"$&/")+"/"),F(he,B,te,"",function(_e){return _e})):he!=null&&(G(he)&&(he=z(he,te+(he.key==null||k&&k.key===he.key?"":(""+he.key).replace(se,"$&/")+"/")+ue)),B.push(he)),1;ue=0;var fe=W===""?".":W+":";if(R(k))for(var me=0;me<k.length;me++)W=k[me],de=fe+ie(W,me),ue+=F(W,B,te,de,he);else if(me=b(k),typeof me=="function")for(k=me.call(k),me=0;!(W=k.next()).done;)W=W.value,de=fe+ie(W,me++),ue+=F(W,B,te,de,he);else if(de==="object"){if(typeof k.then=="function")return F(ee(k),B,te,W,he);throw B=String(k),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ue}function H(k,B,te){if(k==null)return k;var W=[],he=0;return F(k,W,"","",function(de){return B.call(te,de,he++)}),W}function P(k){if(k._status===-1){var B=k._result;B=B(),B.then(function(te){(k._status===0||k._status===-1)&&(k._status=1,k._result=te)},function(te){(k._status===0||k._status===-1)&&(k._status=2,k._result=te)}),k._status===-1&&(k._status=0,k._result=B)}if(k._status===1)return k._result.default;throw k._result}var V=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},re={map:H,forEach:function(k,B,te){H(k,function(){B.apply(this,arguments)},te)},count:function(k){var B=0;return H(k,function(){B++}),B},toArray:function(k){return H(k,function(B){return B})||[]},only:function(k){if(!G(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Le.Activity=m,Le.Children=re,Le.Component=T,Le.Fragment=n,Le.Profiler=u,Le.PureComponent=w,Le.StrictMode=i,Le.Suspense=f,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Le.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},Le.cache=function(k){return function(){return k.apply(null,arguments)}},Le.cacheSignal=function(){return null},Le.cloneElement=function(k,B,te){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var W=S({},k.props),he=k.key;if(B!=null)for(de in B.key!==void 0&&(he=""+B.key),B)!$.call(B,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&B.ref===void 0||(W[de]=B[de]);var de=arguments.length-2;if(de===1)W.children=te;else if(1<de){for(var ue=Array(de),fe=0;fe<de;fe++)ue[fe]=arguments[fe+2];W.children=ue}return L(k.type,he,W)},Le.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:a,_context:k},k},Le.createElement=function(k,B,te){var W,he={},de=null;if(B!=null)for(W in B.key!==void 0&&(de=""+B.key),B)$.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(he[W]=B[W]);var ue=arguments.length-2;if(ue===1)he.children=te;else if(1<ue){for(var fe=Array(ue),me=0;me<ue;me++)fe[me]=arguments[me+2];he.children=fe}if(k&&k.defaultProps)for(W in ue=k.defaultProps,ue)he[W]===void 0&&(he[W]=ue[W]);return L(k,de,he)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(k){return{$$typeof:c,render:k}},Le.isValidElement=G,Le.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:P}},Le.memo=function(k,B){return{$$typeof:h,type:k,compare:B===void 0?null:B}},Le.startTransition=function(k){var B=I.T,te={};I.T=te;try{var W=k(),he=I.S;he!==null&&he(te,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(M,V)}catch(de){V(de)}finally{B!==null&&te.types!==null&&(B.types=te.types),I.T=B}},Le.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Le.use=function(k){return I.H.use(k)},Le.useActionState=function(k,B,te){return I.H.useActionState(k,B,te)},Le.useCallback=function(k,B){return I.H.useCallback(k,B)},Le.useContext=function(k){return I.H.useContext(k)},Le.useDebugValue=function(){},Le.useDeferredValue=function(k,B){return I.H.useDeferredValue(k,B)},Le.useEffect=function(k,B){return I.H.useEffect(k,B)},Le.useEffectEvent=function(k){return I.H.useEffectEvent(k)},Le.useId=function(){return I.H.useId()},Le.useImperativeHandle=function(k,B,te){return I.H.useImperativeHandle(k,B,te)},Le.useInsertionEffect=function(k,B){return I.H.useInsertionEffect(k,B)},Le.useLayoutEffect=function(k,B){return I.H.useLayoutEffect(k,B)},Le.useMemo=function(k,B){return I.H.useMemo(k,B)},Le.useOptimistic=function(k,B){return I.H.useOptimistic(k,B)},Le.useReducer=function(k,B,te){return I.H.useReducer(k,B,te)},Le.useRef=function(k){return I.H.useRef(k)},Le.useState=function(k){return I.H.useState(k)},Le.useSyncExternalStore=function(k,B,te){return I.H.useSyncExternalStore(k,B,te)},Le.useTransition=function(){return I.H.useTransition()},Le.version="19.2.0",Le}var OE;function jc(){return OE||(OE=1,x1.exports=Ww()),x1.exports}var E=jc();const Oe=da(E),s2=Qw({__proto__:null,default:Oe},[E]);var S1={exports:{}},Bl={},T1={exports:{}},_1={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var RE;function Kw(){return RE||(RE=1,function(e){function t(F,H){var P=F.length;F.push(H);e:for(;0<P;){var V=P-1>>>1,re=F[V];if(0<u(re,H))F[V]=H,F[P]=re,P=V;else break e}}function n(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var H=F[0],P=F.pop();if(P!==H){F[0]=P;e:for(var V=0,re=F.length,k=re>>>1;V<k;){var B=2*(V+1)-1,te=F[B],W=B+1,he=F[W];if(0>u(te,P))W<re&&0>u(he,te)?(F[V]=he,F[W]=P,V=W):(F[V]=te,F[B]=P,V=B);else if(W<re&&0>u(he,P))F[V]=he,F[W]=P,V=W;else break e}}return H}function u(F,H){var P=F.sortIndex-H.sortIndex;return P!==0?P:F.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],h=[],p=1,m=null,v=3,b=!1,x=!1,S=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function N(F){for(var H=n(h);H!==null;){if(H.callback===null)i(h);else if(H.startTime<=F)i(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(h)}}function R(F){if(S=!1,N(F),!x)if(n(f)!==null)x=!0,M||(M=!0,J());else{var H=n(h);H!==null&&ee(R,H.startTime-F)}}var M=!1,I=-1,$=5,L=-1;function z(){return _?!0:!(e.unstable_now()-L<$)}function G(){if(_=!1,M){var F=e.unstable_now();L=F;var H=!0;try{e:{x=!1,S&&(S=!1,D(I),I=-1),b=!0;var P=v;try{t:{for(N(F),m=n(f);m!==null&&!(m.expirationTime>F&&z());){var V=m.callback;if(typeof V=="function"){m.callback=null,v=m.priorityLevel;var re=V(m.expirationTime<=F);if(F=e.unstable_now(),typeof re=="function"){m.callback=re,N(F),H=!0;break t}m===n(f)&&i(f),N(F)}else i(f);m=n(f)}if(m!==null)H=!0;else{var k=n(h);k!==null&&ee(R,k.startTime-F),H=!1}}break e}finally{m=null,v=P,b=!1}H=void 0}}finally{H?J():M=!1}}}var J;if(typeof w=="function")J=function(){w(G)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ie=se.port2;se.port1.onmessage=G,J=function(){ie.postMessage(null)}}else J=function(){T(G,0)};function ee(F,H){I=T(function(){F(e.unstable_now())},H)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var H=3;break;default:H=v}var P=v;v=H;try{return F()}finally{v=P}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(F,H){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var P=v;v=F;try{return H()}finally{v=P}},e.unstable_scheduleCallback=function(F,H,P){var V=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?V+P:V):P=V,F){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=P+re,F={id:p++,callback:H,priorityLevel:F,startTime:P,expirationTime:re,sortIndex:-1},P>V?(F.sortIndex=P,t(h,F),n(f)===null&&F===n(h)&&(S?(D(I),I=-1):S=!0,ee(R,P-V))):(F.sortIndex=re,t(f,F),x||b||(x=!0,M||(M=!0,J()))),F},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(F){var H=v;return function(){var P=v;v=H;try{return F.apply(this,arguments)}finally{v=P}}}}(_1)),_1}var ME;function Jw(){return ME||(ME=1,T1.exports=Kw()),T1.exports}var C1={exports:{}},_n={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var kE;function eD(){if(kE)return _n;kE=1;var e=jc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},u=Symbol.for("react.portal");function a(f,h,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:m==null?null:""+m,children:f,containerInfo:h,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return _n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,_n.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return a(f,h,null,p)},_n.flushSync=function(f){var h=s.T,p=i.p;try{if(s.T=null,i.p=2,f)return f()}finally{s.T=h,i.p=p,i.d.f()}},_n.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},_n.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},_n.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,m=c(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:b}):p==="script"&&i.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},_n.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=c(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},_n.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,m=c(p,h.crossOrigin);i.d.L(f,p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},_n.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=c(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},_n.requestFormReset=function(f){i.d.r(f)},_n.unstable_batchedUpdates=function(f,h){return f(h)},_n.useFormState=function(f,h,p){return s.H.useFormState(f,h,p)},_n.useFormStatus=function(){return s.H.useHostTransitionStatus()},_n.version="19.2.0",_n}var LE;function uS(){if(LE)return C1.exports;LE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C1.exports=eD(),C1.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var FE;function tD(){if(FE)return Bl;FE=1;var e=Jw(),t=jc(),n=uS();function i(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function a(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function s(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function c(r){if(r.tag===31){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function f(r){if(a(r)!==r)throw Error(i(188))}function h(r){var o=r.alternate;if(!o){if(o=a(r),o===null)throw Error(i(188));return o!==r?null:r}for(var l=r,d=o;;){var g=l.return;if(g===null)break;var y=g.alternate;if(y===null){if(d=g.return,d!==null){l=d;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===l)return f(g),r;if(y===d)return f(g),o;y=y.sibling}throw Error(i(188))}if(l.return!==d.return)l=g,d=y;else{for(var C=!1,O=g.child;O;){if(O===l){C=!0,l=g,d=y;break}if(O===d){C=!0,d=g,l=y;break}O=O.sibling}if(!C){for(O=y.child;O;){if(O===l){C=!0,l=y,d=g;break}if(O===d){C=!0,d=y,l=g;break}O=O.sibling}if(!C)throw Error(i(189))}}if(l.alternate!==d)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:o}function p(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=p(r),o!==null)return o;r=r.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=G&&r[G]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function ie(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===se?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case T:return"Profiler";case _:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case w:return r.displayName||"Context";case D:return(r._context.displayName||"Context")+".Consumer";case N:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case I:return o=r.displayName||null,o!==null?o:ie(r.type)||"Memo";case $:o=r._payload,r=r._init;try{return ie(r(o))}catch{}}return null}var ee=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},V=[],re=-1;function k(r){return{current:r}}function B(r){0>re||(r.current=V[re],V[re]=null,re--)}function te(r,o){re++,V[re]=r.current,r.current=o}var W=k(null),he=k(null),de=k(null),ue=k(null);function fe(r,o){switch(te(de,o),te(he,r),te(W,null),o.nodeType){case 9:case 11:r=(r=o.documentElement)&&(r=r.namespaceURI)?Z3(r):0;break;default:if(r=o.tagName,o=o.namespaceURI)o=Z3(o),r=W3(o,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}B(W),te(W,r)}function me(){B(W),B(he),B(de)}function _e(r){r.memoizedState!==null&&te(ue,r);var o=W.current,l=W3(o,r.type);o!==l&&(te(he,r),te(W,l))}function Se(r){he.current===r&&(B(W),B(he)),ue.current===r&&(B(ue),Il._currentValue=P)}var ct,Ce;function rt(r){if(ct===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);ct=o&&o[1]||"",Ce=-1<l.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+ct+r+Ce}var Xt=!1;function Zt(r,o){if(!r||Xt)return"";Xt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(ne){var K=ne}Reflect.construct(r,[],le)}else{try{le.call()}catch(ne){K=ne}r.call(le.prototype)}}else{try{throw Error()}catch(ne){K=ne}(le=r())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(ne){if(ne&&K&&typeof ne.stack=="string")return[ne.stack,K.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),C=y[0],O=y[1];if(C&&O){var j=C.split(`
|
|
45
|
+
`),Q=O.split(`
|
|
46
|
+
`);for(g=d=0;d<j.length&&!j[d].includes("DetermineComponentFrameRoot");)d++;for(;g<Q.length&&!Q[g].includes("DetermineComponentFrameRoot");)g++;if(d===j.length||g===Q.length)for(d=j.length-1,g=Q.length-1;1<=d&&0<=g&&j[d]!==Q[g];)g--;for(;1<=d&&0<=g;d--,g--)if(j[d]!==Q[g]){if(d!==1||g!==1)do if(d--,g--,0>g||j[d]!==Q[g]){var oe=`
|
|
47
|
+
`+j[d].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),oe}while(1<=d&&0<=g);break}}}finally{Xt=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?rt(l):""}function un(r,o){switch(r.tag){case 26:case 27:case 5:return rt(r.type);case 16:return rt("Lazy");case 13:return r.child!==o&&o!==null?rt("Suspense Fallback"):rt("Suspense");case 19:return rt("SuspenseList");case 0:case 15:return Zt(r.type,!1);case 11:return Zt(r.type.render,!1);case 1:return Zt(r.type,!0);case 31:return rt("Activity");default:return""}}function xe(r){try{var o="",l=null;do o+=un(r,l),l=r,r=r.return;while(r);return o}catch(d){return`
|
|
48
|
+
Error generating stack: `+d.message+`
|
|
49
|
+
`+d.stack}}var Me=Object.prototype.hasOwnProperty,De=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,Tt=e.unstable_shouldYield,Xe=e.unstable_requestPaint,ft=e.unstable_now,Li=e.unstable_getCurrentPriorityLevel,So=e.unstable_ImmediatePriority,xa=e.unstable_UserBlockingPriority,Vr=e.unstable_NormalPriority,gh=e.unstable_LowPriority,To=e.unstable_IdlePriority,vh=e.log,Sa=e.unstable_setDisableYieldValue,ur=null,Wt=null;function qn(r){if(typeof vh=="function"&&Sa(r),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(ur,r)}catch{}}var Kt=Math.clz32?Math.clz32:Ta,Cu=Math.log,Au=Math.LN2;function Ta(r){return r>>>=0,r===0?32:31-(Cu(r)/Au|0)|0}var wu=256,Fi=262144,Ii=4194304;function Ln(r){var o=r&42;if(o!==0)return o;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function $r(r,o,l){var d=r.pendingLanes;if(d===0)return 0;var g=0,y=r.suspendedLanes,C=r.pingedLanes;r=r.warmLanes;var O=d&134217727;return O!==0?(d=O&~y,d!==0?g=Ln(d):(C&=O,C!==0?g=Ln(C):l||(l=O&~r,l!==0&&(g=Ln(l))))):(O=d&~y,O!==0?g=Ln(O):C!==0?g=Ln(C):l||(l=d&~r,l!==0&&(g=Ln(l)))),g===0?0:o!==0&&o!==g&&(o&y)===0&&(y=g&-g,l=o&-o,y>=l||y===32&&(l&4194048)!==0)?o:g}function or(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function Du(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _o(){var r=Ii;return Ii<<=1,(Ii&62914560)===0&&(Ii=4194304),r}function ar(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function ci(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Nu(r,o,l,d,g,y){var C=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var O=r.entanglements,j=r.expirationTimes,Q=r.hiddenUpdates;for(l=C&~l;0<l;){var oe=31-Kt(l),le=1<<oe;O[oe]=0,j[oe]=-1;var K=Q[oe];if(K!==null)for(Q[oe]=null,oe=0;oe<K.length;oe++){var ne=K[oe];ne!==null&&(ne.lane&=-536870913)}l&=~le}d!==0&&sf(r,d,0),y!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=y&~(C&~o))}function sf(r,o,l){r.pendingLanes|=o,r.suspendedLanes&=~o;var d=31-Kt(o);r.entangledLanes|=o,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function Br(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var d=31-Kt(l),g=1<<d;g&o|r[d]&o&&(r[d]|=o),l&=~g}}function Ur(r,o){var l=o&-o;return l=(l&42)!==0?1:Ou(l),(l&(r.suspendedLanes|o))!==0?0:l}function Ou(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function sr(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function zr(){var r=H.p;return r!==0?r:(r=window.event,r===void 0?32:EE(r.type))}function _a(r,o){var l=H.p;try{return H.p=r,o()}finally{H.p=l}}var lr=Math.random().toString(36).slice(2),_t="__reactFiber$"+lr,Jt="__reactProps$"+lr,Gn="__reactContainer$"+lr,cr="__reactEvents$"+lr,yh="__reactListeners$"+lr,Ws="__reactHandles$"+lr,Hr="__reactResources$"+lr,fi="__reactMarker$"+lr;function fr(r){delete r[_t],delete r[Jt],delete r[cr],delete r[yh],delete r[Ws]}function dr(r){var o=r[_t];if(o)return o;for(var l=r.parentNode;l;){if(o=l[Gn]||l[_t]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=rE(r);r!==null;){if(l=r[_t])return l;r=rE(r)}return o}r=l,l=r.parentNode}return null}function hr(r){if(r=r[_t]||r[Gn]){var o=r.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return r}return null}function di(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(i(33))}function Yn(r){var o=r[Hr];return o||(o=r[Hr]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function vt(r){r[fi]=!0}var qr=new Set,Ca={};function ji(r,o){Qn(r,o),Qn(r+"Capture",o)}function Qn(r,o){for(Ca[r]=o,r=0;r<o.length;r++)qr.add(o[r])}var Ru=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]*$"),Gr={},Yr={};function Mu(r){return Me.call(Yr,r)?!0:Me.call(Gr,r)?!1:Ru.test(r)?Yr[r]=!0:(Gr[r]=!0,!1)}function Pi(r,o,l){if(Mu(o))if(l===null)r.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+l)}}function Vi(r,o,l){if(l===null)r.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+l)}}function Sn(r,o,l,d){if(d===null)r.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(o,l,""+d)}}function en(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Qr(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function ku(r,o,l){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);if(!r.hasOwnProperty(o)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,y=d.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){l=""+C,y.call(this,C)}}),Object.defineProperty(r,o,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Co(r){if(!r._valueTracker){var o=Qr(r)?"checked":"value";r._valueTracker=ku(r,o,""+r[o])}}function Ao(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return r&&(d=Qr(r)?r.checked?"true":"false":r.value),r=d,r!==l?(o.setValue(r),!0):!1}function $i(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Lu=/[\n"\\]/g;function Tn(r){return r.replace(Lu,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Fu(r,o,l,d,g,y,C,O){r.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?r.type=C:r.removeAttribute("type"),o!=null?C==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+en(o)):r.value!==""+en(o)&&(r.value=""+en(o)):C!=="submit"&&C!=="reset"||r.removeAttribute("value"),o!=null?pr(r,C,en(o)):l!=null?pr(r,C,en(l)):d!=null&&r.removeAttribute("value"),g==null&&y!=null&&(r.defaultChecked=!!y),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.name=""+en(O):r.removeAttribute("name")}function Xr(r,o,l,d,g,y,C,O){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),o!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||o!=null)){Co(r);return}l=l!=null?""+en(l):"",o=o!=null?""+en(o):l,O||o===r.value||(r.value=o),r.defaultValue=o}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=O?r.checked:!!d,r.defaultChecked=!!d,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(r.name=C),Co(r)}function pr(r,o,l){o==="number"&&$i(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Bi(r,o,l,d){if(r=r.options,o){o={};for(var g=0;g<l.length;g++)o["$"+l[g]]=!0;for(l=0;l<r.length;l++)g=o.hasOwnProperty("$"+r[l].value),r[l].selected!==g&&(r[l].selected=g),g&&d&&(r[l].defaultSelected=!0)}else{for(l=""+en(l),o=null,g=0;g<r.length;g++){if(r[g].value===l){r[g].selected=!0,d&&(r[g].defaultSelected=!0);return}o!==null||r[g].disabled||(o=r[g])}o!==null&&(o.selected=!0)}}function Aa(r,o,l){if(o!=null&&(o=""+en(o),o!==r.value&&(r.value=o),l==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=l!=null?""+en(l):""}function wa(r,o,l,d){if(o==null){if(d!=null){if(l!=null)throw Error(i(92));if(ee(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),o=l}l=en(o),r.defaultValue=l,d=r.textContent,d===l&&d!==""&&d!==null&&(r.value=d),Co(r)}function Xn(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Iu=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 Zr(r,o,l){var d=o.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":d?r.setProperty(o,l):typeof l!="number"||l===0||Iu.has(o)?o==="float"?r.cssFloat=l:r[o]=(""+l).trim():r[o]=l+"px"}function Wr(r,o,l){if(o!=null&&typeof o!="object")throw Error(i(62));if(r=r.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var g in o)d=o[g],o.hasOwnProperty(g)&&l[g]!==d&&Zr(r,g,d)}else for(var y in o)o.hasOwnProperty(y)&&Zr(r,y,o[y])}function ju(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Ue=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"]]),Ct=/^[\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 Lt(r){return Ct.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Nt(){}var Zn=null;function Ks(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Da=null,Na=null;function Xv(r){var o=hr(r);if(o&&(r=o.stateNode)){var l=r[Jt]||null;e:switch(r=o.stateNode,o.type){case"input":if(Fu(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tn(""+o)+'"][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==r&&d.form===r.form){var g=d[Jt]||null;if(!g)throw Error(i(90));Fu(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<l.length;o++)d=l[o],d.form===r.form&&Ao(d)}break e;case"textarea":Aa(r,l.value,l.defaultValue);break e;case"select":o=l.value,o!=null&&Bi(r,!!l.multiple,o,!1)}}}var bh=!1;function Zv(r,o,l){if(bh)return r(o,l);bh=!0;try{var d=r(o);return d}finally{if(bh=!1,(Da!==null||Na!==null)&&(Xf(),Da&&(o=Da,r=Na,Na=Da=null,Xv(o),r)))for(o=0;o<r.length;o++)Xv(r[o])}}function Js(r,o){var l=r.stateNode;if(l===null)return null;var d=l[Jt]||null;if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var Kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eh=!1;if(Kr)try{var el={};Object.defineProperty(el,"passive",{get:function(){Eh=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{Eh=!1}var Pu=null,xh=null,lf=null;function Wv(){if(lf)return lf;var r,o=xh,l=o.length,d,g="value"in Pu?Pu.value:Pu.textContent,y=g.length;for(r=0;r<l&&o[r]===g[r];r++);var C=l-r;for(d=1;d<=C&&o[l-d]===g[y-d];d++);return lf=g.slice(r,1<d?1-d:void 0)}function cf(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function ff(){return!0}function Kv(){return!1}function Fn(r){function o(l,d,g,y,C){this._reactName=l,this._targetInst=g,this.type=d,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(l=r[O],this[O]=l?l(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ff:Kv,this.isPropagationStopped=Kv,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ff)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ff)},persist:function(){},isPersistent:ff}),o}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=Fn(wo),tl=m({},wo,{view:0,detail:0}),G9=Fn(tl),Sh,Th,nl,hf=m({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ch,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==nl&&(nl&&r.type==="mousemove"?(Sh=r.screenX-nl.screenX,Th=r.screenY-nl.screenY):Th=Sh=0,nl=r),Sh)},movementY:function(r){return"movementY"in r?r.movementY:Th}}),Jv=Fn(hf),Y9=m({},hf,{dataTransfer:0}),Q9=Fn(Y9),X9=m({},tl,{relatedTarget:0}),_h=Fn(X9),Z9=m({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),W9=Fn(Z9),K9=m({},wo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),J9=Fn(K9),e7=m({},wo,{data:0}),ey=Fn(e7),t7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n7={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"},i7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r7(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=i7[r])?!!o[r]:!1}function Ch(){return r7}var u7=m({},tl,{key:function(r){if(r.key){var o=t7[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=cf(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?n7[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ch,charCode:function(r){return r.type==="keypress"?cf(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?cf(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),o7=Fn(u7),a7=m({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ty=Fn(a7),s7=m({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ch}),l7=Fn(s7),c7=m({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),f7=Fn(c7),d7=m({},hf,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),h7=Fn(d7),p7=m({},wo,{newState:0,oldState:0}),m7=Fn(p7),g7=[9,13,27,32],Ah=Kr&&"CompositionEvent"in window,il=null;Kr&&"documentMode"in document&&(il=document.documentMode);var v7=Kr&&"TextEvent"in window&&!il,ny=Kr&&(!Ah||il&&8<il&&11>=il),iy=" ",ry=!1;function uy(r,o){switch(r){case"keyup":return g7.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Oa=!1;function y7(r,o){switch(r){case"compositionend":return oy(o);case"keypress":return o.which!==32?null:(ry=!0,iy);case"textInput":return r=o.data,r===iy&&ry?null:r;default:return null}}function b7(r,o){if(Oa)return r==="compositionend"||!Ah&&uy(r,o)?(r=Wv(),lf=xh=Pu=null,Oa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return ny&&o.locale!=="ko"?null:o.data;default:return null}}var E7={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 ay(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!E7[r.type]:o==="textarea"}function sy(r,o,l,d){Da?Na?Na.push(d):Na=[d]:Da=d,o=nd(o,"onChange"),0<o.length&&(l=new df("onChange","change",null,l,d),r.push({event:l,listeners:o}))}var rl=null,ul=null;function x7(r){H3(r,0)}function pf(r){var o=di(r);if(Ao(o))return r}function ly(r,o){if(r==="change")return o}var cy=!1;if(Kr){var wh;if(Kr){var Dh="oninput"in document;if(!Dh){var fy=document.createElement("div");fy.setAttribute("oninput","return;"),Dh=typeof fy.oninput=="function"}wh=Dh}else wh=!1;cy=wh&&(!document.documentMode||9<document.documentMode)}function dy(){rl&&(rl.detachEvent("onpropertychange",hy),ul=rl=null)}function hy(r){if(r.propertyName==="value"&&pf(ul)){var o=[];sy(o,ul,r,Ks(r)),Zv(x7,o)}}function S7(r,o,l){r==="focusin"?(dy(),rl=o,ul=l,rl.attachEvent("onpropertychange",hy)):r==="focusout"&&dy()}function T7(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return pf(ul)}function _7(r,o){if(r==="click")return pf(o)}function C7(r,o){if(r==="input"||r==="change")return pf(o)}function A7(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Wn=typeof Object.is=="function"?Object.is:A7;function ol(r,o){if(Wn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var g=l[d];if(!Me.call(o,g)||!Wn(r[g],o[g]))return!1}return!0}function py(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function my(r,o){var l=py(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=o&&d>=o)return{node:l,offset:o-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=py(l)}}function gy(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?gy(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function vy(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=$i(r.document);o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=$i(r.document)}return o}function Nh(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}var w7=Kr&&"documentMode"in document&&11>=document.documentMode,Ra=null,Oh=null,al=null,Rh=!1;function yy(r,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Rh||Ra==null||Ra!==$i(d)||(d=Ra,"selectionStart"in d&&Nh(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),al&&ol(al,d)||(al=d,d=nd(Oh,"onSelect"),0<d.length&&(o=new df("onSelect","select",null,o,l),r.push({event:o,listeners:d}),o.target=Ra)))}function Do(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var Ma={animationend:Do("Animation","AnimationEnd"),animationiteration:Do("Animation","AnimationIteration"),animationstart:Do("Animation","AnimationStart"),transitionrun:Do("Transition","TransitionRun"),transitionstart:Do("Transition","TransitionStart"),transitioncancel:Do("Transition","TransitionCancel"),transitionend:Do("Transition","TransitionEnd")},Mh={},by={};Kr&&(by=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function No(r){if(Mh[r])return Mh[r];if(!Ma[r])return r;var o=Ma[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in by)return Mh[r]=o[l];return r}var Ey=No("animationend"),xy=No("animationiteration"),Sy=No("animationstart"),D7=No("transitionrun"),N7=No("transitionstart"),O7=No("transitioncancel"),Ty=No("transitionend"),_y=new Map,kh="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(" ");kh.push("scrollEnd");function Ui(r,o){_y.set(r,o),ji(o,[r])}var mf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},hi=[],ka=0,Lh=0;function gf(){for(var r=ka,o=Lh=ka=0;o<r;){var l=hi[o];hi[o++]=null;var d=hi[o];hi[o++]=null;var g=hi[o];hi[o++]=null;var y=hi[o];if(hi[o++]=null,d!==null&&g!==null){var C=d.pending;C===null?g.next=g:(g.next=C.next,C.next=g),d.pending=g}y!==0&&Cy(l,g,y)}}function vf(r,o,l,d){hi[ka++]=r,hi[ka++]=o,hi[ka++]=l,hi[ka++]=d,Lh|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function Fh(r,o,l,d){return vf(r,o,l,d),yf(r)}function Oo(r,o){return vf(r,null,null,o),yf(r)}function Cy(r,o,l){r.lanes|=l;var d=r.alternate;d!==null&&(d.lanes|=l);for(var g=!1,y=r.return;y!==null;)y.childLanes|=l,d=y.alternate,d!==null&&(d.childLanes|=l),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(g=!0)),r=y,y=y.return;return r.tag===3?(y=r.stateNode,g&&o!==null&&(g=31-Kt(l),r=y.hiddenUpdates,d=r[g],d===null?r[g]=[o]:d.push(o),o.lane=l|536870912),y):null}function yf(r){if(50<Nl)throw Nl=0,Hp=null,Error(i(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var La={};function R7(r,o,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kn(r,o,l,d){return new R7(r,o,l,d)}function Ih(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Jr(r,o){var l=r.alternate;return l===null?(l=Kn(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Ay(r,o){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,o=l.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function bf(r,o,l,d,g,y){var C=0;if(d=r,typeof r=="function")Ih(r)&&(C=1);else if(typeof r=="string")C=Iw(r,l,W.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case L:return r=Kn(31,l,o,g),r.elementType=L,r.lanes=y,r;case S:return Ro(l.children,g,y,o);case _:C=8,g|=24;break;case T:return r=Kn(12,l,o,g|2),r.elementType=T,r.lanes=y,r;case R:return r=Kn(13,l,o,g),r.elementType=R,r.lanes=y,r;case M:return r=Kn(19,l,o,g),r.elementType=M,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case w:C=10;break e;case D:C=9;break e;case N:C=11;break e;case I:C=14;break e;case $:C=16,d=null;break e}C=29,l=Error(i(130,r===null?"null":typeof r,"")),d=null}return o=Kn(C,l,o,g),o.elementType=r,o.type=d,o.lanes=y,o}function Ro(r,o,l,d){return r=Kn(7,r,d,o),r.lanes=l,r}function jh(r,o,l){return r=Kn(6,r,null,o),r.lanes=l,r}function wy(r){var o=Kn(18,null,null,0);return o.stateNode=r,o}function Ph(r,o,l){return o=Kn(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}var Dy=new WeakMap;function pi(r,o){if(typeof r=="object"&&r!==null){var l=Dy.get(r);return l!==void 0?l:(o={value:r,source:o,stack:xe(o)},Dy.set(r,o),o)}return{value:r,source:o,stack:xe(o)}}var Fa=[],Ia=0,Ef=null,sl=0,mi=[],gi=0,Vu=null,mr=1,gr="";function eu(r,o){Fa[Ia++]=sl,Fa[Ia++]=Ef,Ef=r,sl=o}function Ny(r,o,l){mi[gi++]=mr,mi[gi++]=gr,mi[gi++]=Vu,Vu=r;var d=mr;r=gr;var g=32-Kt(d)-1;d&=~(1<<g),l+=1;var y=32-Kt(o)+g;if(30<y){var C=g-g%5;y=(d&(1<<C)-1).toString(32),d>>=C,g-=C,mr=1<<32-Kt(o)+g|l<<g|d,gr=y+r}else mr=1<<y|l<<g|d,gr=r}function Vh(r){r.return!==null&&(eu(r,1),Ny(r,1,0))}function $h(r){for(;r===Ef;)Ef=Fa[--Ia],Fa[Ia]=null,sl=Fa[--Ia],Fa[Ia]=null;for(;r===Vu;)Vu=mi[--gi],mi[gi]=null,gr=mi[--gi],mi[gi]=null,mr=mi[--gi],mi[gi]=null}function Oy(r,o){mi[gi++]=mr,mi[gi++]=gr,mi[gi++]=Vu,mr=o.id,gr=o.overflow,Vu=r}var pn=null,yt=null,Ye=!1,$u=null,vi=!1,Bh=Error(i(519));function Bu(r){var o=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ll(pi(o,r)),Bh}function Ry(r){var o=r.stateNode,l=r.type,d=r.memoizedProps;switch(o[_t]=r,o[Jt]=d,l){case"dialog":Ve("cancel",o),Ve("close",o);break;case"iframe":case"object":case"embed":Ve("load",o);break;case"video":case"audio":for(l=0;l<Rl.length;l++)Ve(Rl[l],o);break;case"source":Ve("error",o);break;case"img":case"image":case"link":Ve("error",o),Ve("load",o);break;case"details":Ve("toggle",o);break;case"input":Ve("invalid",o),Xr(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Ve("invalid",o);break;case"textarea":Ve("invalid",o),wa(o,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||o.textContent===""+l||d.suppressHydrationWarning===!0||Q3(o.textContent,l)?(d.popover!=null&&(Ve("beforetoggle",o),Ve("toggle",o)),d.onScroll!=null&&Ve("scroll",o),d.onScrollEnd!=null&&Ve("scrollend",o),d.onClick!=null&&(o.onclick=Nt),o=!0):o=!1,o||Bu(r,!0)}function My(r){for(pn=r.return;pn;)switch(pn.tag){case 5:case 31:case 13:vi=!1;return;case 27:case 3:vi=!0;return;default:pn=pn.return}}function ja(r){if(r!==pn)return!1;if(!Ye)return My(r),Ye=!0,!1;var o=r.tag,l;if((l=o!==3&&o!==27)&&((l=o===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||u1(r.type,r.memoizedProps)),l=!l),l&&yt&&Bu(r),My(r),o===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));yt=iE(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));yt=iE(r)}else o===27?(o=yt,to(r.type)?(r=c1,c1=null,yt=r):yt=o):yt=pn?bi(r.stateNode.nextSibling):null;return!0}function Mo(){yt=pn=null,Ye=!1}function Uh(){var r=$u;return r!==null&&(Vn===null?Vn=r:Vn.push.apply(Vn,r),$u=null),r}function ll(r){$u===null?$u=[r]:$u.push(r)}var zh=k(null),ko=null,tu=null;function Uu(r,o,l){te(zh,o._currentValue),o._currentValue=l}function nu(r){r._currentValue=zh.current,B(zh)}function Hh(r,o,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===l)break;r=r.return}}function qh(r,o,l,d){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var y=g.dependencies;if(y!==null){var C=g.child;y=y.firstContext;e:for(;y!==null;){var O=y;y=g;for(var j=0;j<o.length;j++)if(O.context===o[j]){y.lanes|=l,O=y.alternate,O!==null&&(O.lanes|=l),Hh(y.return,l,r),d||(C=null);break e}y=O.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(i(341));C.lanes|=l,y=C.alternate,y!==null&&(y.lanes|=l),Hh(C,l,r),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===r){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function Pa(r,o,l,d){r=null;for(var g=o,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var O=g.type;Wn(g.pendingProps.value,C.value)||(r!==null?r.push(O):r=[O])}}else if(g===ue.current){if(C=g.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(Il):r=[Il])}g=g.return}r!==null&&qh(o,r,l,d),o.flags|=262144}function xf(r){for(r=r.firstContext;r!==null;){if(!Wn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Lo(r){ko=r,tu=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function mn(r){return ky(ko,r)}function Sf(r,o){return ko===null&&Lo(r),ky(r,o)}function ky(r,o){var l=o._currentValue;if(o={context:o,memoizedValue:l,next:null},tu===null){if(r===null)throw Error(i(308));tu=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else tu=tu.next=o;return l}var M7=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(l,d){r.push(d)}};this.abort=function(){o.aborted=!0,r.forEach(function(l){return l()})}},k7=e.unstable_scheduleCallback,L7=e.unstable_NormalPriority,Ut={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gh(){return{controller:new M7,data:new Map,refCount:0}}function cl(r){r.refCount--,r.refCount===0&&k7(L7,function(){r.controller.abort()})}var fl=null,Yh=0,Va=0,$a=null;function F7(r,o){if(fl===null){var l=fl=[];Yh=0,Va=Zp(),$a={status:"pending",value:void 0,then:function(d){l.push(d)}}}return Yh++,o.then(Ly,Ly),o}function Ly(){if(--Yh===0&&fl!==null){$a!==null&&($a.status="fulfilled");var r=fl;fl=null,Va=0,$a=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function I7(r,o){var l=[],d={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return r.then(function(){d.status="fulfilled",d.value=o;for(var g=0;g<l.length;g++)(0,l[g])(o)},function(g){for(d.status="rejected",d.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),d}var Fy=F.S;F.S=function(r,o){y3=ft(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&F7(r,o),Fy!==null&&Fy(r,o)};var Fo=k(null);function Qh(){var r=Fo.current;return r!==null?r:dt.pooledCache}function Tf(r,o){o===null?te(Fo,Fo.current):te(Fo,o.pool)}function Iy(){var r=Qh();return r===null?null:{parent:Ut._currentValue,pool:r}}var Ba=Error(i(460)),Xh=Error(i(474)),_f=Error(i(542)),Cf={then:function(){}};function jy(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Py(r,o,l){switch(l=r[l],l===void 0?r.push(o):l!==o&&(o.then(Nt,Nt),o=l),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,$y(r),r;default:if(typeof o.status=="string")o.then(Nt,Nt);else{if(r=dt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=o,r.status="pending",r.then(function(d){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=d}},function(d){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,$y(r),r}throw jo=o,Ba}}function Io(r){try{var o=r._init;return o(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(jo=l,Ba):l}}var jo=null;function Vy(){if(jo===null)throw Error(i(459));var r=jo;return jo=null,r}function $y(r){if(r===Ba||r===_f)throw Error(i(483))}var Ua=null,dl=0;function Af(r){var o=dl;return dl+=1,Ua===null&&(Ua=[]),Py(Ua,r,o)}function hl(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function wf(r,o){throw o.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function By(r){function o(q,U){if(r){var Y=q.deletions;Y===null?(q.deletions=[U],q.flags|=16):Y.push(U)}}function l(q,U){if(!r)return null;for(;U!==null;)o(q,U),U=U.sibling;return null}function d(q){for(var U=new Map;q!==null;)q.key!==null?U.set(q.key,q):U.set(q.index,q),q=q.sibling;return U}function g(q,U){return q=Jr(q,U),q.index=0,q.sibling=null,q}function y(q,U,Y){return q.index=Y,r?(Y=q.alternate,Y!==null?(Y=Y.index,Y<U?(q.flags|=67108866,U):Y):(q.flags|=67108866,U)):(q.flags|=1048576,U)}function C(q){return r&&q.alternate===null&&(q.flags|=67108866),q}function O(q,U,Y,ae){return U===null||U.tag!==6?(U=jh(Y,q.mode,ae),U.return=q,U):(U=g(U,Y),U.return=q,U)}function j(q,U,Y,ae){var Te=Y.type;return Te===S?oe(q,U,Y.props.children,ae,Y.key):U!==null&&(U.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===$&&Io(Te)===U.type)?(U=g(U,Y.props),hl(U,Y),U.return=q,U):(U=bf(Y.type,Y.key,Y.props,null,q.mode,ae),hl(U,Y),U.return=q,U)}function Q(q,U,Y,ae){return U===null||U.tag!==4||U.stateNode.containerInfo!==Y.containerInfo||U.stateNode.implementation!==Y.implementation?(U=Ph(Y,q.mode,ae),U.return=q,U):(U=g(U,Y.children||[]),U.return=q,U)}function oe(q,U,Y,ae,Te){return U===null||U.tag!==7?(U=Ro(Y,q.mode,ae,Te),U.return=q,U):(U=g(U,Y),U.return=q,U)}function le(q,U,Y){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=jh(""+U,q.mode,Y),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return Y=bf(U.type,U.key,U.props,null,q.mode,Y),hl(Y,U),Y.return=q,Y;case x:return U=Ph(U,q.mode,Y),U.return=q,U;case $:return U=Io(U),le(q,U,Y)}if(ee(U)||J(U))return U=Ro(U,q.mode,Y,null),U.return=q,U;if(typeof U.then=="function")return le(q,Af(U),Y);if(U.$$typeof===w)return le(q,Sf(q,U),Y);wf(q,U)}return null}function K(q,U,Y,ae){var Te=U!==null?U.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Te!==null?null:O(q,U,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return Y.key===Te?j(q,U,Y,ae):null;case x:return Y.key===Te?Q(q,U,Y,ae):null;case $:return Y=Io(Y),K(q,U,Y,ae)}if(ee(Y)||J(Y))return Te!==null?null:oe(q,U,Y,ae,null);if(typeof Y.then=="function")return K(q,U,Af(Y),ae);if(Y.$$typeof===w)return K(q,U,Sf(q,Y),ae);wf(q,Y)}return null}function ne(q,U,Y,ae,Te){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return q=q.get(Y)||null,O(U,q,""+ae,Te);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return q=q.get(ae.key===null?Y:ae.key)||null,j(U,q,ae,Te);case x:return q=q.get(ae.key===null?Y:ae.key)||null,Q(U,q,ae,Te);case $:return ae=Io(ae),ne(q,U,Y,ae,Te)}if(ee(ae)||J(ae))return q=q.get(Y)||null,oe(U,q,ae,Te,null);if(typeof ae.then=="function")return ne(q,U,Y,Af(ae),Te);if(ae.$$typeof===w)return ne(q,U,Y,Sf(U,ae),Te);wf(U,ae)}return null}function ve(q,U,Y,ae){for(var Te=null,We=null,Ee=U,je=U=0,He=null;Ee!==null&&je<Y.length;je++){Ee.index>je?(He=Ee,Ee=null):He=Ee.sibling;var Ke=K(q,Ee,Y[je],ae);if(Ke===null){Ee===null&&(Ee=He);break}r&&Ee&&Ke.alternate===null&&o(q,Ee),U=y(Ke,U,je),We===null?Te=Ke:We.sibling=Ke,We=Ke,Ee=He}if(je===Y.length)return l(q,Ee),Ye&&eu(q,je),Te;if(Ee===null){for(;je<Y.length;je++)Ee=le(q,Y[je],ae),Ee!==null&&(U=y(Ee,U,je),We===null?Te=Ee:We.sibling=Ee,We=Ee);return Ye&&eu(q,je),Te}for(Ee=d(Ee);je<Y.length;je++)He=ne(Ee,q,je,Y[je],ae),He!==null&&(r&&He.alternate!==null&&Ee.delete(He.key===null?je:He.key),U=y(He,U,je),We===null?Te=He:We.sibling=He,We=He);return r&&Ee.forEach(function(oo){return o(q,oo)}),Ye&&eu(q,je),Te}function we(q,U,Y,ae){if(Y==null)throw Error(i(151));for(var Te=null,We=null,Ee=U,je=U=0,He=null,Ke=Y.next();Ee!==null&&!Ke.done;je++,Ke=Y.next()){Ee.index>je?(He=Ee,Ee=null):He=Ee.sibling;var oo=K(q,Ee,Ke.value,ae);if(oo===null){Ee===null&&(Ee=He);break}r&&Ee&&oo.alternate===null&&o(q,Ee),U=y(oo,U,je),We===null?Te=oo:We.sibling=oo,We=oo,Ee=He}if(Ke.done)return l(q,Ee),Ye&&eu(q,je),Te;if(Ee===null){for(;!Ke.done;je++,Ke=Y.next())Ke=le(q,Ke.value,ae),Ke!==null&&(U=y(Ke,U,je),We===null?Te=Ke:We.sibling=Ke,We=Ke);return Ye&&eu(q,je),Te}for(Ee=d(Ee);!Ke.done;je++,Ke=Y.next())Ke=ne(Ee,q,je,Ke.value,ae),Ke!==null&&(r&&Ke.alternate!==null&&Ee.delete(Ke.key===null?je:Ke.key),U=y(Ke,U,je),We===null?Te=Ke:We.sibling=Ke,We=Ke);return r&&Ee.forEach(function(Yw){return o(q,Yw)}),Ye&&eu(q,je),Te}function lt(q,U,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===S&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:e:{for(var Te=Y.key;U!==null;){if(U.key===Te){if(Te=Y.type,Te===S){if(U.tag===7){l(q,U.sibling),ae=g(U,Y.props.children),ae.return=q,q=ae;break e}}else if(U.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===$&&Io(Te)===U.type){l(q,U.sibling),ae=g(U,Y.props),hl(ae,Y),ae.return=q,q=ae;break e}l(q,U);break}else o(q,U);U=U.sibling}Y.type===S?(ae=Ro(Y.props.children,q.mode,ae,Y.key),ae.return=q,q=ae):(ae=bf(Y.type,Y.key,Y.props,null,q.mode,ae),hl(ae,Y),ae.return=q,q=ae)}return C(q);case x:e:{for(Te=Y.key;U!==null;){if(U.key===Te)if(U.tag===4&&U.stateNode.containerInfo===Y.containerInfo&&U.stateNode.implementation===Y.implementation){l(q,U.sibling),ae=g(U,Y.children||[]),ae.return=q,q=ae;break e}else{l(q,U);break}else o(q,U);U=U.sibling}ae=Ph(Y,q.mode,ae),ae.return=q,q=ae}return C(q);case $:return Y=Io(Y),lt(q,U,Y,ae)}if(ee(Y))return ve(q,U,Y,ae);if(J(Y)){if(Te=J(Y),typeof Te!="function")throw Error(i(150));return Y=Te.call(Y),we(q,U,Y,ae)}if(typeof Y.then=="function")return lt(q,U,Af(Y),ae);if(Y.$$typeof===w)return lt(q,U,Sf(q,Y),ae);wf(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,U!==null&&U.tag===6?(l(q,U.sibling),ae=g(U,Y),ae.return=q,q=ae):(l(q,U),ae=jh(Y,q.mode,ae),ae.return=q,q=ae),C(q)):l(q,U)}return function(q,U,Y,ae){try{dl=0;var Te=lt(q,U,Y,ae);return Ua=null,Te}catch(Ee){if(Ee===Ba||Ee===_f)throw Ee;var We=Kn(29,Ee,null,q.mode);return We.lanes=ae,We.return=q,We}finally{}}}var Po=By(!0),Uy=By(!1),zu=!1;function Zh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wh(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Hu(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function qu(r,o,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(et&2)!==0){var g=d.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),d.pending=o,o=yf(r),Cy(r,null,l),o}return vf(r,d,o,l),yf(r)}function pl(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194048)!==0)){var d=o.lanes;d&=r.pendingLanes,l|=d,o.lanes=l,Br(r,l)}}function Kh(r,o){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var g=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};y===null?g=y=C:y=y.next=C,l=l.next}while(l!==null);y===null?g=y=o:y=y.next=o}else g=y=o;l={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}var Jh=!1;function ml(){if(Jh){var r=$a;if(r!==null)throw r}}function gl(r,o,l,d){Jh=!1;var g=r.updateQueue;zu=!1;var y=g.firstBaseUpdate,C=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var j=O,Q=j.next;j.next=null,C===null?y=Q:C.next=Q,C=j;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==C&&(O===null?oe.firstBaseUpdate=Q:O.next=Q,oe.lastBaseUpdate=j))}if(y!==null){var le=g.baseState;C=0,oe=Q=j=null,O=y;do{var K=O.lane&-536870913,ne=K!==O.lane;if(ne?(ze&K)===K:(d&K)===K){K!==0&&K===Va&&(Jh=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ve=r,we=O;K=o;var lt=l;switch(we.tag){case 1:if(ve=we.payload,typeof ve=="function"){le=ve.call(lt,le,K);break e}le=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=we.payload,K=typeof ve=="function"?ve.call(lt,le,K):ve,K==null)break e;le=m({},le,K);break e;case 2:zu=!0}}K=O.callback,K!==null&&(r.flags|=64,ne&&(r.flags|=8192),ne=g.callbacks,ne===null?g.callbacks=[K]:ne.push(K))}else ne={lane:K,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(Q=oe=ne,j=le):oe=oe.next=ne,C|=K;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ne=O,O=ne.next,ne.next=null,g.lastBaseUpdate=ne,g.shared.pending=null}}while(!0);oe===null&&(j=le),g.baseState=j,g.firstBaseUpdate=Q,g.lastBaseUpdate=oe,y===null&&(g.shared.lanes=0),Zu|=C,r.lanes=C,r.memoizedState=le}}function zy(r,o){if(typeof r!="function")throw Error(i(191,r));r.call(o)}function Hy(r,o){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)zy(l[r],o)}var za=k(null),Df=k(0);function qy(r,o){r=fu,te(Df,r),te(za,o),fu=r|o.baseLanes}function ep(){te(Df,fu),te(za,za.current)}function tp(){fu=Df.current,B(za),B(Df)}var Jn=k(null),yi=null;function Gu(r){var o=r.alternate;te(Ft,Ft.current&1),te(Jn,r),yi===null&&(o===null||za.current!==null||o.memoizedState!==null)&&(yi=r)}function np(r){te(Ft,Ft.current),te(Jn,r),yi===null&&(yi=r)}function Gy(r){r.tag===22?(te(Ft,Ft.current),te(Jn,r),yi===null&&(yi=r)):Yu()}function Yu(){te(Ft,Ft.current),te(Jn,Jn.current)}function ei(r){B(Jn),yi===r&&(yi=null),B(Ft)}var Ft=k(0);function Nf(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||s1(l)||l1(l)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var iu=0,Ie=null,at=null,zt=null,Of=!1,Ha=!1,Vo=!1,Rf=0,vl=0,qa=null,j7=0;function Ot(){throw Error(i(321))}function ip(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Wn(r[l],o[l]))return!1;return!0}function rp(r,o,l,d,g,y){return iu=y,Ie=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,F.H=r===null||r.memoizedState===null?Nb:bp,Vo=!1,y=l(d,g),Vo=!1,Ha&&(y=Qy(o,l,d,g)),Yy(r),y}function Yy(r){F.H=El;var o=at!==null&&at.next!==null;if(iu=0,zt=at=Ie=null,Of=!1,vl=0,qa=null,o)throw Error(i(300));r===null||Ht||(r=r.dependencies,r!==null&&xf(r)&&(Ht=!0))}function Qy(r,o,l,d){Ie=r;var g=0;do{if(Ha&&(qa=null),vl=0,Ha=!1,25<=g)throw Error(i(301));if(g+=1,zt=at=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}F.H=Ob,y=o(l,d)}while(Ha);return y}function P7(){var r=F.H,o=r.useState()[0];return o=typeof o.then=="function"?yl(o):o,r=r.useState()[0],(at!==null?at.memoizedState:null)!==r&&(Ie.flags|=1024),o}function up(){var r=Rf!==0;return Rf=0,r}function op(r,o,l){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~l}function ap(r){if(Of){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Of=!1}iu=0,zt=at=Ie=null,Ha=!1,vl=Rf=0,qa=null}function wn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Ie.memoizedState=zt=r:zt=zt.next=r,zt}function It(){if(at===null){var r=Ie.alternate;r=r!==null?r.memoizedState:null}else r=at.next;var o=zt===null?Ie.memoizedState:zt.next;if(o!==null)zt=o,at=r;else{if(r===null)throw Ie.alternate===null?Error(i(467)):Error(i(310));at=r,r={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},zt===null?Ie.memoizedState=zt=r:zt=zt.next=r}return zt}function Mf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yl(r){var o=vl;return vl+=1,qa===null&&(qa=[]),r=Py(qa,r,o),o=Ie,(zt===null?o.memoizedState:zt.next)===null&&(o=o.alternate,F.H=o===null||o.memoizedState===null?Nb:bp),r}function kf(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return yl(r);if(r.$$typeof===w)return mn(r)}throw Error(i(438,String(r)))}function sp(r){var o=null,l=Ie.updateQueue;if(l!==null&&(o=l.memoCache),o==null){var d=Ie.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),l===null&&(l=Mf(),Ie.updateQueue=l),l.memoCache=o,l=o.data[o.index],l===void 0)for(l=o.data[o.index]=Array(r),d=0;d<r;d++)l[d]=z;return o.index++,l}function ru(r,o){return typeof o=="function"?o(r):o}function Lf(r){var o=It();return lp(o,at,r)}function lp(r,o,l){var d=r.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=l;var g=r.baseQueue,y=d.pending;if(y!==null){if(g!==null){var C=g.next;g.next=y.next,y.next=C}o.baseQueue=g=y,d.pending=null}if(y=r.baseState,g===null)r.memoizedState=y;else{o=g.next;var O=C=null,j=null,Q=o,oe=!1;do{var le=Q.lane&-536870913;if(le!==Q.lane?(ze&le)===le:(iu&le)===le){var K=Q.revertLane;if(K===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),le===Va&&(oe=!0);else if((iu&K)===K){Q=Q.next,K===Va&&(oe=!0);continue}else le={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},j===null?(O=j=le,C=y):j=j.next=le,Ie.lanes|=K,Zu|=K;le=Q.action,Vo&&l(y,le),y=Q.hasEagerState?Q.eagerState:l(y,le)}else K={lane:le,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},j===null?(O=j=K,C=y):j=j.next=K,Ie.lanes|=le,Zu|=le;Q=Q.next}while(Q!==null&&Q!==o);if(j===null?C=y:j.next=O,!Wn(y,r.memoizedState)&&(Ht=!0,oe&&(l=$a,l!==null)))throw l;r.memoizedState=y,r.baseState=C,r.baseQueue=j,d.lastRenderedState=y}return g===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function cp(r){var o=It(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var d=l.dispatch,g=l.pending,y=o.memoizedState;if(g!==null){l.pending=null;var C=g=g.next;do y=r(y,C.action),C=C.next;while(C!==g);Wn(y,o.memoizedState)||(Ht=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,d]}function Xy(r,o,l){var d=Ie,g=It(),y=Ye;if(y){if(l===void 0)throw Error(i(407));l=l()}else l=o();var C=!Wn((at||g).memoizedState,l);if(C&&(g.memoizedState=l,Ht=!0),g=g.queue,hp(Ky.bind(null,d,g,r),[r]),g.getSnapshot!==o||C||zt!==null&&zt.memoizedState.tag&1){if(d.flags|=2048,Ga(9,{destroy:void 0},Wy.bind(null,d,g,l,o),null),dt===null)throw Error(i(349));y||(iu&127)!==0||Zy(d,o,l)}return l}function Zy(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=Ie.updateQueue,o===null?(o=Mf(),Ie.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function Wy(r,o,l,d){o.value=l,o.getSnapshot=d,Jy(o)&&eb(r)}function Ky(r,o,l){return l(function(){Jy(o)&&eb(r)})}function Jy(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Wn(r,l)}catch{return!0}}function eb(r){var o=Oo(r,2);o!==null&&$n(o,r,2)}function fp(r){var o=wn();if(typeof r=="function"){var l=r;if(r=l(),Vo){qn(!0);try{l()}finally{qn(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ru,lastRenderedState:r},o}function tb(r,o,l,d){return r.baseState=l,lp(r,at,typeof d=="function"?d:ru)}function V7(r,o,l,d,g){if(jf(r))throw Error(i(485));if(r=o.action,r!==null){var y={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};F.T!==null?l(!0):y.isTransition=!1,d(y),l=o.pending,l===null?(y.next=o.pending=y,nb(o,y)):(y.next=l.next,o.pending=l.next=y)}}function nb(r,o){var l=o.action,d=o.payload,g=r.state;if(o.isTransition){var y=F.T,C={};F.T=C;try{var O=l(g,d),j=F.S;j!==null&&j(C,O),ib(r,o,O)}catch(Q){dp(r,o,Q)}finally{y!==null&&C.types!==null&&(y.types=C.types),F.T=y}}else try{y=l(g,d),ib(r,o,y)}catch(Q){dp(r,o,Q)}}function ib(r,o,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){rb(r,o,d)},function(d){return dp(r,o,d)}):rb(r,o,l)}function rb(r,o,l){o.status="fulfilled",o.value=l,ub(o),r.state=l,o=r.pending,o!==null&&(l=o.next,l===o?r.pending=null:(l=l.next,o.next=l,nb(r,l)))}function dp(r,o,l){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=l,ub(o),o=o.next;while(o!==d)}r.action=null}function ub(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function ob(r,o){return o}function ab(r,o){if(Ye){var l=dt.formState;if(l!==null){e:{var d=Ie;if(Ye){if(yt){t:{for(var g=yt,y=vi;g.nodeType!==8;){if(!y){g=null;break t}if(g=bi(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){yt=bi(g.nextSibling),d=g.data==="F!";break e}}Bu(d)}d=!1}d&&(o=l[0])}}return l=wn(),l.memoizedState=l.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ob,lastRenderedState:o},l.queue=d,l=Ab.bind(null,Ie,d),d.dispatch=l,d=fp(!1),y=yp.bind(null,Ie,!1,d.queue),d=wn(),g={state:o,dispatch:null,action:r,pending:null},d.queue=g,l=V7.bind(null,Ie,g,y,l),g.dispatch=l,d.memoizedState=r,[o,l,!1]}function sb(r){var o=It();return lb(o,at,r)}function lb(r,o,l){if(o=lp(r,o,ob)[0],r=Lf(ru)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var d=yl(o)}catch(C){throw C===Ba?_f:C}else d=o;o=It();var g=o.queue,y=g.dispatch;return l!==o.memoizedState&&(Ie.flags|=2048,Ga(9,{destroy:void 0},$7.bind(null,g,l),null)),[d,y,r]}function $7(r,o){r.action=o}function cb(r){var o=It(),l=at;if(l!==null)return lb(o,l,r);It(),o=o.memoizedState,l=It();var d=l.queue.dispatch;return l.memoizedState=r,[o,d,!1]}function Ga(r,o,l,d){return r={tag:r,create:l,deps:d,inst:o,next:null},o=Ie.updateQueue,o===null&&(o=Mf(),Ie.updateQueue=o),l=o.lastEffect,l===null?o.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,o.lastEffect=r),r}function fb(){return It().memoizedState}function Ff(r,o,l,d){var g=wn();Ie.flags|=r,g.memoizedState=Ga(1|o,{destroy:void 0},l,d===void 0?null:d)}function If(r,o,l,d){var g=It();d=d===void 0?null:d;var y=g.memoizedState.inst;at!==null&&d!==null&&ip(d,at.memoizedState.deps)?g.memoizedState=Ga(o,y,l,d):(Ie.flags|=r,g.memoizedState=Ga(1|o,y,l,d))}function db(r,o){Ff(8390656,8,r,o)}function hp(r,o){If(2048,8,r,o)}function B7(r){Ie.flags|=4;var o=Ie.updateQueue;if(o===null)o=Mf(),Ie.updateQueue=o,o.events=[r];else{var l=o.events;l===null?o.events=[r]:l.push(r)}}function hb(r){var o=It().memoizedState;return B7({ref:o,nextImpl:r}),function(){if((et&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}function pb(r,o){return If(4,2,r,o)}function mb(r,o){return If(4,4,r,o)}function gb(r,o){if(typeof o=="function"){r=r();var l=o(r);return function(){typeof l=="function"?l():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function vb(r,o,l){l=l!=null?l.concat([r]):null,If(4,4,gb.bind(null,o,r),l)}function pp(){}function yb(r,o){var l=It();o=o===void 0?null:o;var d=l.memoizedState;return o!==null&&ip(o,d[1])?d[0]:(l.memoizedState=[r,o],r)}function bb(r,o){var l=It();o=o===void 0?null:o;var d=l.memoizedState;if(o!==null&&ip(o,d[1]))return d[0];if(d=r(),Vo){qn(!0);try{r()}finally{qn(!1)}}return l.memoizedState=[d,o],d}function mp(r,o,l){return l===void 0||(iu&1073741824)!==0&&(ze&261930)===0?r.memoizedState=o:(r.memoizedState=l,r=E3(),Ie.lanes|=r,Zu|=r,l)}function Eb(r,o,l,d){return Wn(l,o)?l:za.current!==null?(r=mp(r,l,d),Wn(r,o)||(Ht=!0),r):(iu&42)===0||(iu&1073741824)!==0&&(ze&261930)===0?(Ht=!0,r.memoizedState=l):(r=E3(),Ie.lanes|=r,Zu|=r,o)}function xb(r,o,l,d,g){var y=H.p;H.p=y!==0&&8>y?y:8;var C=F.T,O={};F.T=O,yp(r,!1,o,l);try{var j=g(),Q=F.S;if(Q!==null&&Q(O,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var oe=I7(j,d);bl(r,o,oe,ii(r))}else bl(r,o,d,ii(r))}catch(le){bl(r,o,{then:function(){},status:"rejected",reason:le},ii())}finally{H.p=y,C!==null&&O.types!==null&&(C.types=O.types),F.T=C}}function U7(){}function gp(r,o,l,d){if(r.tag!==5)throw Error(i(476));var g=Sb(r).queue;xb(r,g,o,P,l===null?U7:function(){return Tb(r),l(d)})}function Sb(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ru,lastRenderedState:P},next:null};var l={};return o.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ru,lastRenderedState:l},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function Tb(r){var o=Sb(r);o.next===null&&(o=r.alternate.memoizedState),bl(r,o.next.queue,{},ii())}function vp(){return mn(Il)}function _b(){return It().memoizedState}function Cb(){return It().memoizedState}function z7(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var l=ii();r=Hu(l);var d=qu(o,r,l);d!==null&&($n(d,o,l),pl(d,o,l)),o={cache:Gh()},r.payload=o;return}o=o.return}}function H7(r,o,l){var d=ii();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},jf(r)?wb(o,l):(l=Fh(r,o,l,d),l!==null&&($n(l,r,d),Db(l,o,d)))}function Ab(r,o,l){var d=ii();bl(r,o,l,d)}function bl(r,o,l,d){var g={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(jf(r))wb(o,g);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var C=o.lastRenderedState,O=y(C,l);if(g.hasEagerState=!0,g.eagerState=O,Wn(O,C))return vf(r,o,g,0),dt===null&&gf(),!1}catch{}finally{}if(l=Fh(r,o,g,d),l!==null)return $n(l,r,d),Db(l,o,d),!0}return!1}function yp(r,o,l,d){if(d={lane:2,revertLane:Zp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},jf(r)){if(o)throw Error(i(479))}else o=Fh(r,l,d,2),o!==null&&$n(o,r,2)}function jf(r){var o=r.alternate;return r===Ie||o!==null&&o===Ie}function wb(r,o){Ha=Of=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function Db(r,o,l){if((l&4194048)!==0){var d=o.lanes;d&=r.pendingLanes,l|=d,o.lanes=l,Br(r,l)}}var El={readContext:mn,use:kf,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};El.useEffectEvent=Ot;var Nb={readContext:mn,use:kf,useCallback:function(r,o){return wn().memoizedState=[r,o===void 0?null:o],r},useContext:mn,useEffect:db,useImperativeHandle:function(r,o,l){l=l!=null?l.concat([r]):null,Ff(4194308,4,gb.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Ff(4194308,4,r,o)},useInsertionEffect:function(r,o){Ff(4,2,r,o)},useMemo:function(r,o){var l=wn();o=o===void 0?null:o;var d=r();if(Vo){qn(!0);try{r()}finally{qn(!1)}}return l.memoizedState=[d,o],d},useReducer:function(r,o,l){var d=wn();if(l!==void 0){var g=l(o);if(Vo){qn(!0);try{l(o)}finally{qn(!1)}}}else g=o;return d.memoizedState=d.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},d.queue=r,r=r.dispatch=H7.bind(null,Ie,r),[d.memoizedState,r]},useRef:function(r){var o=wn();return r={current:r},o.memoizedState=r},useState:function(r){r=fp(r);var o=r.queue,l=Ab.bind(null,Ie,o);return o.dispatch=l,[r.memoizedState,l]},useDebugValue:pp,useDeferredValue:function(r,o){var l=wn();return mp(l,r,o)},useTransition:function(){var r=fp(!1);return r=xb.bind(null,Ie,r.queue,!0,!1),wn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,l){var d=Ie,g=wn();if(Ye){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),dt===null)throw Error(i(349));(ze&127)!==0||Zy(d,o,l)}g.memoizedState=l;var y={value:l,getSnapshot:o};return g.queue=y,db(Ky.bind(null,d,y,r),[r]),d.flags|=2048,Ga(9,{destroy:void 0},Wy.bind(null,d,y,l,o),null),l},useId:function(){var r=wn(),o=dt.identifierPrefix;if(Ye){var l=gr,d=mr;l=(d&~(1<<32-Kt(d)-1)).toString(32)+l,o="_"+o+"R_"+l,l=Rf++,0<l&&(o+="H"+l.toString(32)),o+="_"}else l=j7++,o="_"+o+"r_"+l.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:vp,useFormState:ab,useActionState:ab,useOptimistic:function(r){var o=wn();o.memoizedState=o.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=l,o=yp.bind(null,Ie,!0,l),l.dispatch=o,[r,o]},useMemoCache:sp,useCacheRefresh:function(){return wn().memoizedState=z7.bind(null,Ie)},useEffectEvent:function(r){var o=wn(),l={impl:r};return o.memoizedState=l,function(){if((et&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},bp={readContext:mn,use:kf,useCallback:yb,useContext:mn,useEffect:hp,useImperativeHandle:vb,useInsertionEffect:pb,useLayoutEffect:mb,useMemo:bb,useReducer:Lf,useRef:fb,useState:function(){return Lf(ru)},useDebugValue:pp,useDeferredValue:function(r,o){var l=It();return Eb(l,at.memoizedState,r,o)},useTransition:function(){var r=Lf(ru)[0],o=It().memoizedState;return[typeof r=="boolean"?r:yl(r),o]},useSyncExternalStore:Xy,useId:_b,useHostTransitionStatus:vp,useFormState:sb,useActionState:sb,useOptimistic:function(r,o){var l=It();return tb(l,at,r,o)},useMemoCache:sp,useCacheRefresh:Cb};bp.useEffectEvent=hb;var Ob={readContext:mn,use:kf,useCallback:yb,useContext:mn,useEffect:hp,useImperativeHandle:vb,useInsertionEffect:pb,useLayoutEffect:mb,useMemo:bb,useReducer:cp,useRef:fb,useState:function(){return cp(ru)},useDebugValue:pp,useDeferredValue:function(r,o){var l=It();return at===null?mp(l,r,o):Eb(l,at.memoizedState,r,o)},useTransition:function(){var r=cp(ru)[0],o=It().memoizedState;return[typeof r=="boolean"?r:yl(r),o]},useSyncExternalStore:Xy,useId:_b,useHostTransitionStatus:vp,useFormState:cb,useActionState:cb,useOptimistic:function(r,o){var l=It();return at!==null?tb(l,at,r,o):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:sp,useCacheRefresh:Cb};Ob.useEffectEvent=hb;function Ep(r,o,l,d){o=r.memoizedState,l=l(d,o),l=l==null?o:m({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var xp={enqueueSetState:function(r,o,l){r=r._reactInternals;var d=ii(),g=Hu(d);g.payload=o,l!=null&&(g.callback=l),o=qu(r,g,d),o!==null&&($n(o,r,d),pl(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var d=ii(),g=Hu(d);g.tag=1,g.payload=o,l!=null&&(g.callback=l),o=qu(r,g,d),o!==null&&($n(o,r,d),pl(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=ii(),d=Hu(l);d.tag=2,o!=null&&(d.callback=o),o=qu(r,d,l),o!==null&&($n(o,r,l),pl(o,r,l))}};function Rb(r,o,l,d,g,y,C){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,C):o.prototype&&o.prototype.isPureReactComponent?!ol(l,d)||!ol(g,y):!0}function Mb(r,o,l,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==r&&xp.enqueueReplaceState(o,o.state,null)}function $o(r,o){var l=o;if("ref"in o){l={};for(var d in o)d!=="ref"&&(l[d]=o[d])}if(r=r.defaultProps){l===o&&(l=m({},l));for(var g in r)l[g]===void 0&&(l[g]=r[g])}return l}function kb(r){mf(r)}function Lb(r){console.error(r)}function Fb(r){mf(r)}function Pf(r,o){try{var l=r.onUncaughtError;l(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function Ib(r,o,l){try{var d=r.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Sp(r,o,l){return l=Hu(l),l.tag=3,l.payload={element:null},l.callback=function(){Pf(r,o)},l}function jb(r){return r=Hu(r),r.tag=3,r}function Pb(r,o,l,d){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var y=d.value;r.payload=function(){return g(y)},r.callback=function(){Ib(o,l,d)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(r.callback=function(){Ib(o,l,d),typeof g!="function"&&(Wu===null?Wu=new Set([this]):Wu.add(this));var O=d.stack;this.componentDidCatch(d.value,{componentStack:O!==null?O:""})})}function q7(r,o,l,d,g){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=l.alternate,o!==null&&Pa(o,l,g,!0),l=Jn.current,l!==null){switch(l.tag){case 31:case 13:return yi===null?Zf():l.alternate===null&&Rt===0&&(Rt=3),l.flags&=-257,l.flags|=65536,l.lanes=g,d===Cf?l.flags|=16384:(o=l.updateQueue,o===null?l.updateQueue=new Set([d]):o.add(d),Yp(r,d,g)),!1;case 22:return l.flags|=65536,d===Cf?l.flags|=16384:(o=l.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=o):(l=o.retryQueue,l===null?o.retryQueue=new Set([d]):l.add(d)),Yp(r,d,g)),!1}throw Error(i(435,l.tag))}return Yp(r,d,g),Zf(),!1}if(Ye)return o=Jn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,d!==Bh&&(r=Error(i(422),{cause:d}),ll(pi(r,l)))):(d!==Bh&&(o=Error(i(423),{cause:d}),ll(pi(o,l))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,d=pi(d,l),g=Sp(r.stateNode,d,g),Kh(r,g),Rt!==4&&(Rt=2)),!1;var y=Error(i(520),{cause:d});if(y=pi(y,l),Dl===null?Dl=[y]:Dl.push(y),Rt!==4&&(Rt=2),o===null)return!0;d=pi(d,l),l=o;do{switch(l.tag){case 3:return l.flags|=65536,r=g&-g,l.lanes|=r,r=Sp(l.stateNode,d,r),Kh(l,r),!1;case 1:if(o=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Wu===null||!Wu.has(y))))return l.flags|=65536,g&=-g,l.lanes|=g,g=jb(g),Pb(g,r,l,d),Kh(l,g),!1}l=l.return}while(l!==null);return!1}var Tp=Error(i(461)),Ht=!1;function gn(r,o,l,d){o.child=r===null?Uy(o,null,l,d):Po(o,r.child,l,d)}function Vb(r,o,l,d,g){l=l.render;var y=o.ref;if("ref"in d){var C={};for(var O in d)O!=="ref"&&(C[O]=d[O])}else C=d;return Lo(o),d=rp(r,o,l,C,y,g),O=up(),r!==null&&!Ht?(op(r,o,g),uu(r,o,g)):(Ye&&O&&Vh(o),o.flags|=1,gn(r,o,d,g),o.child)}function $b(r,o,l,d,g){if(r===null){var y=l.type;return typeof y=="function"&&!Ih(y)&&y.defaultProps===void 0&&l.compare===null?(o.tag=15,o.type=y,Bb(r,o,y,d,g)):(r=bf(l.type,null,d,o,o.mode,g),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,!Rp(r,g)){var C=y.memoizedProps;if(l=l.compare,l=l!==null?l:ol,l(C,d)&&r.ref===o.ref)return uu(r,o,g)}return o.flags|=1,r=Jr(y,d),r.ref=o.ref,r.return=o,o.child=r}function Bb(r,o,l,d,g){if(r!==null){var y=r.memoizedProps;if(ol(y,d)&&r.ref===o.ref)if(Ht=!1,o.pendingProps=d=y,Rp(r,g))(r.flags&131072)!==0&&(Ht=!0);else return o.lanes=r.lanes,uu(r,o,g)}return _p(r,o,l,d,g)}function Ub(r,o,l,d){var g=d.children,y=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((o.flags&128)!==0){if(y=y!==null?y.baseLanes|l:l,r!==null){for(d=o.child=r.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~y}else d=0,o.child=null;return zb(r,o,y,l,d)}if((l&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&Tf(o,y!==null?y.cachePool:null),y!==null?qy(o,y):ep(),Gy(o);else return d=o.lanes=536870912,zb(r,o,y!==null?y.baseLanes|l:l,l,d)}else y!==null?(Tf(o,y.cachePool),qy(o,y),Yu(),o.memoizedState=null):(r!==null&&Tf(o,null),ep(),Yu());return gn(r,o,g,l),o.child}function xl(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function zb(r,o,l,d,g){var y=Qh();return y=y===null?null:{parent:Ut._currentValue,pool:y},o.memoizedState={baseLanes:l,cachePool:y},r!==null&&Tf(o,null),ep(),Gy(o),r!==null&&Pa(r,o,d,!0),o.childLanes=g,null}function Vf(r,o){return o=Bf({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function Hb(r,o,l){return Po(o,r.child,null,l),r=Vf(o,o.pendingProps),r.flags|=2,ei(o),o.memoizedState=null,r}function G7(r,o,l){var d=o.pendingProps,g=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(Ye){if(d.mode==="hidden")return r=Vf(o,d),o.lanes=536870912,xl(null,r);if(np(o),(r=yt)?(r=nE(r,vi),r=r!==null&&r.data==="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:Vu!==null?{id:mr,overflow:gr}:null,retryLane:536870912,hydrationErrors:null},l=wy(r),l.return=o,o.child=l,pn=o,yt=null)):r=null,r===null)throw Bu(o);return o.lanes=536870912,null}return Vf(o,d)}var y=r.memoizedState;if(y!==null){var C=y.dehydrated;if(np(o),g)if(o.flags&256)o.flags&=-257,o=Hb(r,o,l);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(i(558));else if(Ht||Pa(r,o,l,!1),g=(l&r.childLanes)!==0,Ht||g){if(d=dt,d!==null&&(C=Ur(d,l),C!==0&&C!==y.retryLane))throw y.retryLane=C,Oo(r,C),$n(d,r,C),Tp;Zf(),o=Hb(r,o,l)}else r=y.treeContext,yt=bi(C.nextSibling),pn=o,Ye=!0,$u=null,vi=!1,r!==null&&Oy(o,r),o=Vf(o,d),o.flags|=4096;return o}return r=Jr(r.child,{mode:d.mode,children:d.children}),r.ref=o.ref,o.child=r,r.return=o,r}function $f(r,o){var l=o.ref;if(l===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(o.flags|=4194816)}}function _p(r,o,l,d,g){return Lo(o),l=rp(r,o,l,d,void 0,g),d=up(),r!==null&&!Ht?(op(r,o,g),uu(r,o,g)):(Ye&&d&&Vh(o),o.flags|=1,gn(r,o,l,g),o.child)}function qb(r,o,l,d,g,y){return Lo(o),o.updateQueue=null,l=Qy(o,d,l,g),Yy(r),d=up(),r!==null&&!Ht?(op(r,o,y),uu(r,o,y)):(Ye&&d&&Vh(o),o.flags|=1,gn(r,o,l,y),o.child)}function Gb(r,o,l,d,g){if(Lo(o),o.stateNode===null){var y=La,C=l.contextType;typeof C=="object"&&C!==null&&(y=mn(C)),y=new l(d,y),o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=xp,o.stateNode=y,y._reactInternals=o,y=o.stateNode,y.props=d,y.state=o.memoizedState,y.refs={},Zh(o),C=l.contextType,y.context=typeof C=="object"&&C!==null?mn(C):La,y.state=o.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(Ep(o,l,C,d),y.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&xp.enqueueReplaceState(y,y.state,null),gl(o,d,y,g),ml(),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(r===null){y=o.stateNode;var O=o.memoizedProps,j=$o(l,O);y.props=j;var Q=y.context,oe=l.contextType;C=La,typeof oe=="object"&&oe!==null&&(C=mn(oe));var le=l.getDerivedStateFromProps;oe=typeof le=="function"||typeof y.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(O||Q!==C)&&Mb(o,y,d,C),zu=!1;var K=o.memoizedState;y.state=K,gl(o,d,y,g),ml(),Q=o.memoizedState,O||K!==Q||zu?(typeof le=="function"&&(Ep(o,l,le,d),Q=o.memoizedState),(j=zu||Rb(o,l,j,d,K,Q,C))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(o.flags|=4194308)):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=Q),y.props=d,y.state=Q,y.context=C,d=j):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{y=o.stateNode,Wh(r,o),C=o.memoizedProps,oe=$o(l,C),y.props=oe,le=o.pendingProps,K=y.context,Q=l.contextType,j=La,typeof Q=="object"&&Q!==null&&(j=mn(Q)),O=l.getDerivedStateFromProps,(Q=typeof O=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==le||K!==j)&&Mb(o,y,d,j),zu=!1,K=o.memoizedState,y.state=K,gl(o,d,y,g),ml();var ne=o.memoizedState;C!==le||K!==ne||zu||r!==null&&r.dependencies!==null&&xf(r.dependencies)?(typeof O=="function"&&(Ep(o,l,O,d),ne=o.memoizedState),(oe=zu||Rb(o,l,oe,d,K,ne,j)||r!==null&&r.dependencies!==null&&xf(r.dependencies))?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,ne,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,ne,j)),typeof y.componentDidUpdate=="function"&&(o.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=ne),y.props=d,y.state=ne,y.context=j,d=oe):(typeof y.componentDidUpdate!="function"||C===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),d=!1)}return y=d,$f(r,o),d=(o.flags&128)!==0,y||d?(y=o.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:y.render(),o.flags|=1,r!==null&&d?(o.child=Po(o,r.child,null,g),o.child=Po(o,null,l,g)):gn(r,o,l,g),o.memoizedState=y.state,r=o.child):r=uu(r,o,g),r}function Yb(r,o,l,d){return Mo(),o.flags|=256,gn(r,o,l,d),o.child}var Cp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ap(r){return{baseLanes:r,cachePool:Iy()}}function wp(r,o,l){return r=r!==null?r.childLanes&~l:0,o&&(r|=ni),r}function Qb(r,o,l){var d=o.pendingProps,g=!1,y=(o.flags&128)!==0,C;if((C=y)||(C=r!==null&&r.memoizedState===null?!1:(Ft.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,r===null){if(Ye){if(g?Gu(o):Yu(),(r=yt)?(r=nE(r,vi),r=r!==null&&r.data!=="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:Vu!==null?{id:mr,overflow:gr}:null,retryLane:536870912,hydrationErrors:null},l=wy(r),l.return=o,o.child=l,pn=o,yt=null)):r=null,r===null)throw Bu(o);return l1(r)?o.lanes=32:o.lanes=536870912,null}var O=d.children;return d=d.fallback,g?(Yu(),g=o.mode,O=Bf({mode:"hidden",children:O},g),d=Ro(d,g,l,null),O.return=o,d.return=o,O.sibling=d,o.child=O,d=o.child,d.memoizedState=Ap(l),d.childLanes=wp(r,C,l),o.memoizedState=Cp,xl(null,d)):(Gu(o),Dp(o,O))}var j=r.memoizedState;if(j!==null&&(O=j.dehydrated,O!==null)){if(y)o.flags&256?(Gu(o),o.flags&=-257,o=Np(r,o,l)):o.memoizedState!==null?(Yu(),o.child=r.child,o.flags|=128,o=null):(Yu(),O=d.fallback,g=o.mode,d=Bf({mode:"visible",children:d.children},g),O=Ro(O,g,l,null),O.flags|=2,d.return=o,O.return=o,d.sibling=O,o.child=d,Po(o,r.child,null,l),d=o.child,d.memoizedState=Ap(l),d.childLanes=wp(r,C,l),o.memoizedState=Cp,o=xl(null,d));else if(Gu(o),l1(O)){if(C=O.nextSibling&&O.nextSibling.dataset,C)var Q=C.dgst;C=Q,d=Error(i(419)),d.stack="",d.digest=C,ll({value:d,source:null,stack:null}),o=Np(r,o,l)}else if(Ht||Pa(r,o,l,!1),C=(l&r.childLanes)!==0,Ht||C){if(C=dt,C!==null&&(d=Ur(C,l),d!==0&&d!==j.retryLane))throw j.retryLane=d,Oo(r,d),$n(C,r,d),Tp;s1(O)||Zf(),o=Np(r,o,l)}else s1(O)?(o.flags|=192,o.child=r.child,o=null):(r=j.treeContext,yt=bi(O.nextSibling),pn=o,Ye=!0,$u=null,vi=!1,r!==null&&Oy(o,r),o=Dp(o,d.children),o.flags|=4096);return o}return g?(Yu(),O=d.fallback,g=o.mode,j=r.child,Q=j.sibling,d=Jr(j,{mode:"hidden",children:d.children}),d.subtreeFlags=j.subtreeFlags&65011712,Q!==null?O=Jr(Q,O):(O=Ro(O,g,l,null),O.flags|=2),O.return=o,d.return=o,d.sibling=O,o.child=d,xl(null,d),d=o.child,O=r.child.memoizedState,O===null?O=Ap(l):(g=O.cachePool,g!==null?(j=Ut._currentValue,g=g.parent!==j?{parent:j,pool:j}:g):g=Iy(),O={baseLanes:O.baseLanes|l,cachePool:g}),d.memoizedState=O,d.childLanes=wp(r,C,l),o.memoizedState=Cp,xl(r.child,d)):(Gu(o),l=r.child,r=l.sibling,l=Jr(l,{mode:"visible",children:d.children}),l.return=o,l.sibling=null,r!==null&&(C=o.deletions,C===null?(o.deletions=[r],o.flags|=16):C.push(r)),o.child=l,o.memoizedState=null,l)}function Dp(r,o){return o=Bf({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Bf(r,o){return r=Kn(22,r,null,o),r.lanes=0,r}function Np(r,o,l){return Po(o,r.child,null,l),r=Dp(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Xb(r,o,l){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),Hh(r.return,o,l)}function Op(r,o,l,d,g,y){var C=r.memoizedState;C===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g,treeForkCount:y}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=d,C.tail=l,C.tailMode=g,C.treeForkCount=y)}function Zb(r,o,l){var d=o.pendingProps,g=d.revealOrder,y=d.tail;d=d.children;var C=Ft.current,O=(C&2)!==0;if(O?(C=C&1|2,o.flags|=128):C&=1,te(Ft,C),gn(r,o,d,l),d=Ye?sl:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Xb(r,l,o);else if(r.tag===19)Xb(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(l=o.child,g=null;l!==null;)r=l.alternate,r!==null&&Nf(r)===null&&(g=l),l=l.sibling;l=g,l===null?(g=o.child,o.child=null):(g=l.sibling,l.sibling=null),Op(o,!1,g,l,y,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,g=o.child,o.child=null;g!==null;){if(r=g.alternate,r!==null&&Nf(r)===null){o.child=g;break}r=g.sibling,g.sibling=l,l=g,g=r}Op(o,!0,l,null,y,d);break;case"together":Op(o,!1,null,null,void 0,d);break;default:o.memoizedState=null}return o.child}function uu(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Zu|=o.lanes,(l&o.childLanes)===0)if(r!==null){if(Pa(r,o,l,!1),(l&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,l=Jr(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=Jr(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function Rp(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&xf(r)))}function Y7(r,o,l){switch(o.tag){case 3:fe(o,o.stateNode.containerInfo),Uu(o,Ut,r.memoizedState.cache),Mo();break;case 27:case 5:_e(o);break;case 4:fe(o,o.stateNode.containerInfo);break;case 10:Uu(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,np(o),null;break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(Gu(o),o.flags|=128,null):(l&o.child.childLanes)!==0?Qb(r,o,l):(Gu(o),r=uu(r,o,l),r!==null?r.sibling:null);Gu(o);break;case 19:var g=(r.flags&128)!==0;if(d=(l&o.childLanes)!==0,d||(Pa(r,o,l,!1),d=(l&o.childLanes)!==0),g){if(d)return Zb(r,o,l);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),te(Ft,Ft.current),d)break;return null;case 22:return o.lanes=0,Ub(r,o,l,o.pendingProps);case 24:Uu(o,Ut,r.memoizedState.cache)}return uu(r,o,l)}function Wb(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps)Ht=!0;else{if(!Rp(r,l)&&(o.flags&128)===0)return Ht=!1,Y7(r,o,l);Ht=(r.flags&131072)!==0}else Ht=!1,Ye&&(o.flags&1048576)!==0&&Ny(o,sl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var d=o.pendingProps;if(r=Io(o.elementType),o.type=r,typeof r=="function")Ih(r)?(d=$o(r,d),o.tag=1,o=Gb(null,o,r,d,l)):(o.tag=0,o=_p(null,o,r,d,l));else{if(r!=null){var g=r.$$typeof;if(g===N){o.tag=11,o=Vb(null,o,r,d,l);break e}else if(g===I){o.tag=14,o=$b(null,o,r,d,l);break e}}throw o=ie(r)||r,Error(i(306,o,""))}}return o;case 0:return _p(r,o,o.type,o.pendingProps,l);case 1:return d=o.type,g=$o(d,o.pendingProps),Gb(r,o,d,g,l);case 3:e:{if(fe(o,o.stateNode.containerInfo),r===null)throw Error(i(387));d=o.pendingProps;var y=o.memoizedState;g=y.element,Wh(r,o),gl(o,d,null,l);var C=o.memoizedState;if(d=C.cache,Uu(o,Ut,d),d!==y.cache&&qh(o,[Ut],l,!0),ml(),d=C.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){o=Yb(r,o,d,l);break e}else if(d!==g){g=pi(Error(i(424)),o),ll(g),o=Yb(r,o,d,l);break e}else{switch(r=o.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(yt=bi(r.firstChild),pn=o,Ye=!0,$u=null,vi=!0,l=Uy(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Mo(),d===g){o=uu(r,o,l);break e}gn(r,o,d,l)}o=o.child}return o;case 26:return $f(r,o),r===null?(l=sE(o.type,null,o.pendingProps,null))?o.memoizedState=l:Ye||(l=o.type,r=o.pendingProps,d=id(de.current).createElement(l),d[_t]=o,d[Jt]=r,vn(d,l,r),vt(d),o.stateNode=d):o.memoizedState=sE(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return _e(o),r===null&&Ye&&(d=o.stateNode=uE(o.type,o.pendingProps,de.current),pn=o,vi=!0,g=yt,to(o.type)?(c1=g,yt=bi(d.firstChild)):yt=g),gn(r,o,o.pendingProps.children,l),$f(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&Ye&&((g=d=yt)&&(d=Tw(d,o.type,o.pendingProps,vi),d!==null?(o.stateNode=d,pn=o,yt=bi(d.firstChild),vi=!1,g=!0):g=!1),g||Bu(o)),_e(o),g=o.type,y=o.pendingProps,C=r!==null?r.memoizedProps:null,d=y.children,u1(g,y)?d=null:C!==null&&u1(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=rp(r,o,P7,null,null,l),Il._currentValue=g),$f(r,o),gn(r,o,d,l),o.child;case 6:return r===null&&Ye&&((r=l=yt)&&(l=_w(l,o.pendingProps,vi),l!==null?(o.stateNode=l,pn=o,yt=null,r=!0):r=!1),r||Bu(o)),null;case 13:return Qb(r,o,l);case 4:return fe(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=Po(o,null,d,l):gn(r,o,d,l),o.child;case 11:return Vb(r,o,o.type,o.pendingProps,l);case 7:return gn(r,o,o.pendingProps,l),o.child;case 8:return gn(r,o,o.pendingProps.children,l),o.child;case 12:return gn(r,o,o.pendingProps.children,l),o.child;case 10:return d=o.pendingProps,Uu(o,o.type,d.value),gn(r,o,d.children,l),o.child;case 9:return g=o.type._context,d=o.pendingProps.children,Lo(o),g=mn(g),d=d(g),o.flags|=1,gn(r,o,d,l),o.child;case 14:return $b(r,o,o.type,o.pendingProps,l);case 15:return Bb(r,o,o.type,o.pendingProps,l);case 19:return Zb(r,o,l);case 31:return G7(r,o,l);case 22:return Ub(r,o,l,o.pendingProps);case 24:return Lo(o),d=mn(Ut),r===null?(g=Qh(),g===null&&(g=dt,y=Gh(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=l),g=y),o.memoizedState={parent:d,cache:g},Zh(o),Uu(o,Ut,g)):((r.lanes&l)!==0&&(Wh(r,o),gl(o,null,null,l),ml()),g=r.memoizedState,y=o.memoizedState,g.parent!==d?(g={parent:d,cache:d},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Uu(o,Ut,d)):(d=y.cache,Uu(o,Ut,d),d!==g.cache&&qh(o,[Ut],l,!0))),gn(r,o,o.pendingProps.children,l),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function ou(r){r.flags|=4}function Mp(r,o,l,d,g){if((o=(r.mode&32)!==0)&&(o=!1),o){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(_3())r.flags|=8192;else throw jo=Cf,Xh}else r.flags&=-16777217}function Kb(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!hE(o))if(_3())r.flags|=8192;else throw jo=Cf,Xh}function Uf(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?_o():536870912,r.lanes|=o,Za|=o)}function Sl(r,o){if(!Ye)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function bt(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(o)for(var g=r.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=d,r.childLanes=l,o}function Q7(r,o,l){var d=o.pendingProps;switch($h(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(o),null;case 1:return bt(o),null;case 3:return l=o.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),nu(Ut),me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(ja(o)?ou(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Uh())),bt(o),null;case 26:var g=o.type,y=o.memoizedState;return r===null?(ou(o),y!==null?(bt(o),Kb(o,y)):(bt(o),Mp(o,g,null,d,l))):y?y!==r.memoizedState?(ou(o),bt(o),Kb(o,y)):(bt(o),o.flags&=-16777217):(r=r.memoizedProps,r!==d&&ou(o),bt(o),Mp(o,g,r,d,l)),null;case 27:if(Se(o),l=de.current,g=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==d&&ou(o);else{if(!d){if(o.stateNode===null)throw Error(i(166));return bt(o),null}r=W.current,ja(o)?Ry(o):(r=uE(g,d,l),o.stateNode=r,ou(o))}return bt(o),null;case 5:if(Se(o),g=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==d&&ou(o);else{if(!d){if(o.stateNode===null)throw Error(i(166));return bt(o),null}if(y=W.current,ja(o))Ry(o);else{var C=id(de.current);switch(y){case 1:y=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:y=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":y=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":y=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":y=C.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof d.is=="string"?C.createElement("select",{is:d.is}):C.createElement("select"),d.multiple?y.multiple=!0:d.size&&(y.size=d.size);break;default:y=typeof d.is=="string"?C.createElement(g,{is:d.is}):C.createElement(g)}}y[_t]=o,y[Jt]=d;e:for(C=o.child;C!==null;){if(C.tag===5||C.tag===6)y.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===o)break e;for(;C.sibling===null;){if(C.return===null||C.return===o)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}o.stateNode=y;e:switch(vn(y,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ou(o)}}return bt(o),Mp(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,l),null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==d&&ou(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(i(166));if(r=de.current,ja(o)){if(r=o.stateNode,l=o.memoizedProps,d=null,g=pn,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}r[_t]=o,r=!!(r.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||Q3(r.nodeValue,l)),r||Bu(o,!0)}else r=id(r).createTextNode(d),r[_t]=o,o.stateNode=r}return bt(o),null;case 31:if(l=o.memoizedState,r===null||r.memoizedState!==null){if(d=ja(o),l!==null){if(r===null){if(!d)throw Error(i(318));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[_t]=o}else Mo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;bt(o),r=!1}else l=Uh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return o.flags&256?(ei(o),o):(ei(o),null);if((o.flags&128)!==0)throw Error(i(558))}return bt(o),null;case 13:if(d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=ja(o),d!==null&&d.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[_t]=o}else Mo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;bt(o),g=!1}else g=Uh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(ei(o),o):(ei(o),null)}return ei(o),(o.flags&128)!==0?(o.lanes=l,o):(l=d!==null,r=r!==null&&r.memoizedState!==null,l&&(d=o.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),y=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==g&&(d.flags|=2048)),l!==r&&l&&(o.child.flags|=8192),Uf(o,o.updateQueue),bt(o),null);case 4:return me(),r===null&&e1(o.stateNode.containerInfo),bt(o),null;case 10:return nu(o.type),bt(o),null;case 19:if(B(Ft),d=o.memoizedState,d===null)return bt(o),null;if(g=(o.flags&128)!==0,y=d.rendering,y===null)if(g)Sl(d,!1);else{if(Rt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(y=Nf(r),y!==null){for(o.flags|=128,Sl(d,!1),r=y.updateQueue,o.updateQueue=r,Uf(o,r),o.subtreeFlags=0,r=l,l=o.child;l!==null;)Ay(l,r),l=l.sibling;return te(Ft,Ft.current&1|2),Ye&&eu(o,d.treeForkCount),o.child}r=r.sibling}d.tail!==null&&ft()>Yf&&(o.flags|=128,g=!0,Sl(d,!1),o.lanes=4194304)}else{if(!g)if(r=Nf(y),r!==null){if(o.flags|=128,g=!0,r=r.updateQueue,o.updateQueue=r,Uf(o,r),Sl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Ye)return bt(o),null}else 2*ft()-d.renderingStartTime>Yf&&l!==536870912&&(o.flags|=128,g=!0,Sl(d,!1),o.lanes=4194304);d.isBackwards?(y.sibling=o.child,o.child=y):(r=d.last,r!==null?r.sibling=y:o.child=y,d.last=y)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=ft(),r.sibling=null,l=Ft.current,te(Ft,g?l&1|2:l&1),Ye&&eu(o,d.treeForkCount),r):(bt(o),null);case 22:case 23:return ei(o),tp(),d=o.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(l&536870912)!==0&&(o.flags&128)===0&&(bt(o),o.subtreeFlags&6&&(o.flags|=8192)):bt(o),l=o.updateQueue,l!==null&&Uf(o,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==l&&(o.flags|=2048),r!==null&&B(Fo),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),o.memoizedState.cache!==l&&(o.flags|=2048),nu(Ut),bt(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function X7(r,o){switch($h(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return nu(Ut),me(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return Se(o),null;case 31:if(o.memoizedState!==null){if(ei(o),o.alternate===null)throw Error(i(340));Mo()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(ei(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Mo()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return B(Ft),null;case 4:return me(),null;case 10:return nu(o.type),null;case 22:case 23:return ei(o),tp(),r!==null&&B(Fo),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return nu(Ut),null;case 25:return null;default:return null}}function Jb(r,o){switch($h(o),o.tag){case 3:nu(Ut),me();break;case 26:case 27:case 5:Se(o);break;case 4:me();break;case 31:o.memoizedState!==null&&ei(o);break;case 13:ei(o);break;case 19:B(Ft);break;case 10:nu(o.type);break;case 22:case 23:ei(o),tp(),r!==null&&B(Fo);break;case 24:nu(Ut)}}function Tl(r,o){try{var l=o.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var g=d.next;l=g;do{if((l.tag&r)===r){d=void 0;var y=l.create,C=l.inst;d=y(),C.destroy=d}l=l.next}while(l!==g)}}catch(O){ot(o,o.return,O)}}function Qu(r,o,l){try{var d=o.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var y=g.next;d=y;do{if((d.tag&r)===r){var C=d.inst,O=C.destroy;if(O!==void 0){C.destroy=void 0,g=o;var j=l,Q=O;try{Q()}catch(oe){ot(g,j,oe)}}}d=d.next}while(d!==y)}}catch(oe){ot(o,o.return,oe)}}function e3(r){var o=r.updateQueue;if(o!==null){var l=r.stateNode;try{Hy(o,l)}catch(d){ot(r,r.return,d)}}}function t3(r,o,l){l.props=$o(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(d){ot(r,o,d)}}function _l(r,o){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof l=="function"?r.refCleanup=l(d):l.current=d}}catch(g){ot(r,o,g)}}function vr(r,o){var l=r.ref,d=r.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(g){ot(r,o,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){ot(r,o,g)}else l.current=null}function n3(r){var o=r.type,l=r.memoizedProps,d=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(g){ot(r,r.return,g)}}function kp(r,o,l){try{var d=r.stateNode;vw(d,r.type,l,o),d[Jt]=o}catch(g){ot(r,r.return,g)}}function i3(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&to(r.type)||r.tag===4}function Lp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||i3(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&to(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Fp(r,o,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,o):(o=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,o.appendChild(r),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Nt));else if(d!==4&&(d===27&&to(r.type)&&(l=r.stateNode,o=null),r=r.child,r!==null))for(Fp(r,o,l),r=r.sibling;r!==null;)Fp(r,o,l),r=r.sibling}function zf(r,o,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(d!==4&&(d===27&&to(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(zf(r,o,l),r=r.sibling;r!==null;)zf(r,o,l),r=r.sibling}function r3(r){var o=r.stateNode,l=r.memoizedProps;try{for(var d=r.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);vn(o,d,l),o[_t]=r,o[Jt]=l}catch(y){ot(r,r.return,y)}}var au=!1,qt=!1,Ip=!1,u3=typeof WeakSet=="function"?WeakSet:Set,on=null;function Z7(r,o){if(r=r.containerInfo,i1=cd,r=vy(r),Nh(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var g=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var C=0,O=-1,j=-1,Q=0,oe=0,le=r,K=null;t:for(;;){for(var ne;le!==l||g!==0&&le.nodeType!==3||(O=C+g),le!==y||d!==0&&le.nodeType!==3||(j=C+d),le.nodeType===3&&(C+=le.nodeValue.length),(ne=le.firstChild)!==null;)K=le,le=ne;for(;;){if(le===r)break t;if(K===l&&++Q===g&&(O=C),K===y&&++oe===d&&(j=C),(ne=le.nextSibling)!==null)break;le=K,K=le.parentNode}le=ne}l=O===-1||j===-1?null:{start:O,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(r1={focusedElem:r,selectionRange:l},cd=!1,on=o;on!==null;)if(o=on,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,on=r;else for(;on!==null;){switch(o=on,y=o.alternate,r=o.flags,o.tag){case 0:if((r&4)!==0&&(r=o.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)g=r[l],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,l=o,g=y.memoizedProps,y=y.memoizedState,d=l.stateNode;try{var ve=$o(l.type,g);r=d.getSnapshotBeforeUpdate(ve,y),d.__reactInternalSnapshotBeforeUpdate=r}catch(we){ot(l,l.return,we)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,l=r.nodeType,l===9)a1(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":a1(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=o.sibling,r!==null){r.return=o.return,on=r;break}on=o.return}}function o3(r,o,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:lu(r,l),d&4&&Tl(5,l);break;case 1:if(lu(r,l),d&4)if(r=l.stateNode,o===null)try{r.componentDidMount()}catch(C){ot(l,l.return,C)}else{var g=$o(l.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(g,o,r.__reactInternalSnapshotBeforeUpdate)}catch(C){ot(l,l.return,C)}}d&64&&e3(l),d&512&&_l(l,l.return);break;case 3:if(lu(r,l),d&64&&(r=l.updateQueue,r!==null)){if(o=null,l.child!==null)switch(l.child.tag){case 27:case 5:o=l.child.stateNode;break;case 1:o=l.child.stateNode}try{Hy(r,o)}catch(C){ot(l,l.return,C)}}break;case 27:o===null&&d&4&&r3(l);case 26:case 5:lu(r,l),o===null&&d&4&&n3(l),d&512&&_l(l,l.return);break;case 12:lu(r,l);break;case 31:lu(r,l),d&4&&l3(r,l);break;case 13:lu(r,l),d&4&&c3(r,l),d&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=uw.bind(null,l),Cw(r,l))));break;case 22:if(d=l.memoizedState!==null||au,!d){o=o!==null&&o.memoizedState!==null||qt,g=au;var y=qt;au=d,(qt=o)&&!y?cu(r,l,(l.subtreeFlags&8772)!==0):lu(r,l),au=g,qt=y}break;case 30:break;default:lu(r,l)}}function a3(r){var o=r.alternate;o!==null&&(r.alternate=null,a3(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&fr(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var At=null,In=!1;function su(r,o,l){for(l=l.child;l!==null;)s3(r,o,l),l=l.sibling}function s3(r,o,l){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(ur,l)}catch{}switch(l.tag){case 26:qt||vr(l,o),su(r,o,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qt||vr(l,o);var d=At,g=In;to(l.type)&&(At=l.stateNode,In=!1),su(r,o,l),kl(l.stateNode),At=d,In=g;break;case 5:qt||vr(l,o);case 6:if(d=At,g=In,At=null,su(r,o,l),At=d,In=g,At!==null)if(In)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(y){ot(l,o,y)}else try{At.removeChild(l.stateNode)}catch(y){ot(l,o,y)}break;case 18:At!==null&&(In?(r=At,eE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),rs(r)):eE(At,l.stateNode));break;case 4:d=At,g=In,At=l.stateNode.containerInfo,In=!0,su(r,o,l),At=d,In=g;break;case 0:case 11:case 14:case 15:Qu(2,l,o),qt||Qu(4,l,o),su(r,o,l);break;case 1:qt||(vr(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"&&t3(l,o,d)),su(r,o,l);break;case 21:su(r,o,l);break;case 22:qt=(d=qt)||l.memoizedState!==null,su(r,o,l),qt=d;break;default:su(r,o,l)}}function l3(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{rs(r)}catch(l){ot(o,o.return,l)}}}function c3(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{rs(r)}catch(l){ot(o,o.return,l)}}function W7(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new u3),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new u3),o;default:throw Error(i(435,r.tag))}}function Hf(r,o){var l=W7(r);o.forEach(function(d){if(!l.has(d)){l.add(d);var g=ow.bind(null,r,d);d.then(g,g)}})}function jn(r,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var g=l[d],y=r,C=o,O=C;e:for(;O!==null;){switch(O.tag){case 27:if(to(O.type)){At=O.stateNode,In=!1;break e}break;case 5:At=O.stateNode,In=!1;break e;case 3:case 4:At=O.stateNode.containerInfo,In=!0;break e}O=O.return}if(At===null)throw Error(i(160));s3(y,C,g),At=null,In=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)f3(o,r),o=o.sibling}var zi=null;function f3(r,o){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:jn(o,r),Pn(r),d&4&&(Qu(3,r,r.return),Tl(3,r),Qu(5,r,r.return));break;case 1:jn(o,r),Pn(r),d&512&&(qt||l===null||vr(l,l.return)),d&64&&au&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var g=zi;if(jn(o,r),Pn(r),d&512&&(qt||l===null||vr(l,l.return)),d&4){var y=l!==null?l.memoizedState:null;if(d=r.memoizedState,l===null)if(d===null)if(r.stateNode===null){e:{d=r.type,l=r.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":y=g.getElementsByTagName("title")[0],(!y||y[fi]||y[_t]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(d),g.head.insertBefore(y,g.querySelector("head > title"))),vn(y,d,l),y[_t]=r,vt(y),d=y;break e;case"link":var C=fE("link","href",g).get(d+(l.href||""));if(C){for(var O=0;O<C.length;O++)if(y=C[O],y.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&y.getAttribute("rel")===(l.rel==null?null:l.rel)&&y.getAttribute("title")===(l.title==null?null:l.title)&&y.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(O,1);break t}}y=g.createElement(d),vn(y,d,l),g.head.appendChild(y);break;case"meta":if(C=fE("meta","content",g).get(d+(l.content||""))){for(O=0;O<C.length;O++)if(y=C[O],y.getAttribute("content")===(l.content==null?null:""+l.content)&&y.getAttribute("name")===(l.name==null?null:l.name)&&y.getAttribute("property")===(l.property==null?null:l.property)&&y.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&y.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(O,1);break t}}y=g.createElement(d),vn(y,d,l),g.head.appendChild(y);break;default:throw Error(i(468,d))}y[_t]=r,vt(y),d=y}r.stateNode=d}else dE(g,r.type,r.stateNode);else r.stateNode=cE(g,d,r.memoizedProps);else y!==d?(y===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):y.count--,d===null?dE(g,r.type,r.stateNode):cE(g,d,r.memoizedProps)):d===null&&r.stateNode!==null&&kp(r,r.memoizedProps,l.memoizedProps)}break;case 27:jn(o,r),Pn(r),d&512&&(qt||l===null||vr(l,l.return)),l!==null&&d&4&&kp(r,r.memoizedProps,l.memoizedProps);break;case 5:if(jn(o,r),Pn(r),d&512&&(qt||l===null||vr(l,l.return)),r.flags&32){g=r.stateNode;try{Xn(g,"")}catch(ve){ot(r,r.return,ve)}}d&4&&r.stateNode!=null&&(g=r.memoizedProps,kp(r,g,l!==null?l.memoizedProps:g)),d&1024&&(Ip=!0);break;case 6:if(jn(o,r),Pn(r),d&4){if(r.stateNode===null)throw Error(i(162));d=r.memoizedProps,l=r.stateNode;try{l.nodeValue=d}catch(ve){ot(r,r.return,ve)}}break;case 3:if(od=null,g=zi,zi=rd(o.containerInfo),jn(o,r),zi=g,Pn(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{rs(o.containerInfo)}catch(ve){ot(r,r.return,ve)}Ip&&(Ip=!1,d3(r));break;case 4:d=zi,zi=rd(r.stateNode.containerInfo),jn(o,r),Pn(r),zi=d;break;case 12:jn(o,r),Pn(r);break;case 31:jn(o,r),Pn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Hf(r,d)));break;case 13:jn(o,r),Pn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gf=ft()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Hf(r,d)));break;case 22:g=r.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,Q=au,oe=qt;if(au=Q||g,qt=oe||j,jn(o,r),qt=oe,au=Q,Pn(r),d&8192)e:for(o=r.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(l===null||j||au||qt||Bo(r)),l=null,o=r;;){if(o.tag===5||o.tag===26){if(l===null){j=l=o;try{if(y=j.stateNode,g)C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{O=j.stateNode;var le=j.memoizedProps.style,K=le!=null&&le.hasOwnProperty("display")?le.display:null;O.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(ve){ot(j,j.return,ve)}}}else if(o.tag===6){if(l===null){j=o;try{j.stateNode.nodeValue=g?"":j.memoizedProps}catch(ve){ot(j,j.return,ve)}}}else if(o.tag===18){if(l===null){j=o;try{var ne=j.stateNode;g?tE(ne,!0):tE(j.stateNode,!1)}catch(ve){ot(j,j.return,ve)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;l===o&&(l=null),o=o.return}l===o&&(l=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=r.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,Hf(r,l))));break;case 19:jn(o,r),Pn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Hf(r,d)));break;case 30:break;case 21:break;default:jn(o,r),Pn(r)}}function Pn(r){var o=r.flags;if(o&2){try{for(var l,d=r.return;d!==null;){if(i3(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var g=l.stateNode,y=Lp(r);zf(r,y,g);break;case 5:var C=l.stateNode;l.flags&32&&(Xn(C,""),l.flags&=-33);var O=Lp(r);zf(r,O,C);break;case 3:case 4:var j=l.stateNode.containerInfo,Q=Lp(r);Fp(r,Q,j);break;default:throw Error(i(161))}}catch(oe){ot(r,r.return,oe)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function d3(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;d3(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function lu(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)o3(r,o.alternate,o),o=o.sibling}function Bo(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:Qu(4,o,o.return),Bo(o);break;case 1:vr(o,o.return);var l=o.stateNode;typeof l.componentWillUnmount=="function"&&t3(o,o.return,l),Bo(o);break;case 27:kl(o.stateNode);case 26:case 5:vr(o,o.return),Bo(o);break;case 22:o.memoizedState===null&&Bo(o);break;case 30:Bo(o);break;default:Bo(o)}r=r.sibling}}function cu(r,o,l){for(l=l&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,g=r,y=o,C=y.flags;switch(y.tag){case 0:case 11:case 15:cu(g,y,l),Tl(4,y);break;case 1:if(cu(g,y,l),d=y,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(Q){ot(d,d.return,Q)}if(d=y,g=d.updateQueue,g!==null){var O=d.stateNode;try{var j=g.shared.hiddenCallbacks;if(j!==null)for(g.shared.hiddenCallbacks=null,g=0;g<j.length;g++)zy(j[g],O)}catch(Q){ot(d,d.return,Q)}}l&&C&64&&e3(y),_l(y,y.return);break;case 27:r3(y);case 26:case 5:cu(g,y,l),l&&d===null&&C&4&&n3(y),_l(y,y.return);break;case 12:cu(g,y,l);break;case 31:cu(g,y,l),l&&C&4&&l3(g,y);break;case 13:cu(g,y,l),l&&C&4&&c3(g,y);break;case 22:y.memoizedState===null&&cu(g,y,l),_l(y,y.return);break;case 30:break;default:cu(g,y,l)}o=o.sibling}}function jp(r,o){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&cl(l))}function Pp(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&cl(r))}function Hi(r,o,l,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)h3(r,o,l,d),o=o.sibling}function h3(r,o,l,d){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Hi(r,o,l,d),g&2048&&Tl(9,o);break;case 1:Hi(r,o,l,d);break;case 3:Hi(r,o,l,d),g&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&cl(r)));break;case 12:if(g&2048){Hi(r,o,l,d),r=o.stateNode;try{var y=o.memoizedProps,C=y.id,O=y.onPostCommit;typeof O=="function"&&O(C,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(j){ot(o,o.return,j)}}else Hi(r,o,l,d);break;case 31:Hi(r,o,l,d);break;case 13:Hi(r,o,l,d);break;case 23:break;case 22:y=o.stateNode,C=o.alternate,o.memoizedState!==null?y._visibility&2?Hi(r,o,l,d):Cl(r,o):y._visibility&2?Hi(r,o,l,d):(y._visibility|=2,Ya(r,o,l,d,(o.subtreeFlags&10256)!==0||!1)),g&2048&&jp(C,o);break;case 24:Hi(r,o,l,d),g&2048&&Pp(o.alternate,o);break;default:Hi(r,o,l,d)}}function Ya(r,o,l,d,g){for(g=g&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var y=r,C=o,O=l,j=d,Q=C.flags;switch(C.tag){case 0:case 11:case 15:Ya(y,C,O,j,g),Tl(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?Ya(y,C,O,j,g):Cl(y,C):(oe._visibility|=2,Ya(y,C,O,j,g)),g&&Q&2048&&jp(C.alternate,C);break;case 24:Ya(y,C,O,j,g),g&&Q&2048&&Pp(C.alternate,C);break;default:Ya(y,C,O,j,g)}o=o.sibling}}function Cl(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var l=r,d=o,g=d.flags;switch(d.tag){case 22:Cl(l,d),g&2048&&jp(d.alternate,d);break;case 24:Cl(l,d),g&2048&&Pp(d.alternate,d);break;default:Cl(l,d)}o=o.sibling}}var Al=8192;function Qa(r,o,l){if(r.subtreeFlags&Al)for(r=r.child;r!==null;)p3(r,o,l),r=r.sibling}function p3(r,o,l){switch(r.tag){case 26:Qa(r,o,l),r.flags&Al&&r.memoizedState!==null&&jw(l,zi,r.memoizedState,r.memoizedProps);break;case 5:Qa(r,o,l);break;case 3:case 4:var d=zi;zi=rd(r.stateNode.containerInfo),Qa(r,o,l),zi=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=Al,Al=16777216,Qa(r,o,l),Al=d):Qa(r,o,l));break;default:Qa(r,o,l)}}function m3(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function wl(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var d=o[l];on=d,v3(d,r)}m3(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)g3(r),r=r.sibling}function g3(r){switch(r.tag){case 0:case 11:case 15:wl(r),r.flags&2048&&Qu(9,r,r.return);break;case 3:wl(r);break;case 12:wl(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,qf(r)):wl(r);break;default:wl(r)}}function qf(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var d=o[l];on=d,v3(d,r)}m3(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:Qu(8,o,o.return),qf(o);break;case 22:l=o.stateNode,l._visibility&2&&(l._visibility&=-3,qf(o));break;default:qf(o)}r=r.sibling}}function v3(r,o){for(;on!==null;){var l=on;switch(l.tag){case 0:case 11:case 15:Qu(8,l,o);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:cl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,on=d;else e:for(l=r;on!==null;){d=on;var g=d.sibling,y=d.return;if(a3(d),d===l){on=null;break e}if(g!==null){g.return=y,on=g;break e}on=y}}}var K7={getCacheForType:function(r){var o=mn(Ut),l=o.data.get(r);return l===void 0&&(l=r(),o.data.set(r,l)),l},cacheSignal:function(){return mn(Ut).controller.signal}},J7=typeof WeakMap=="function"?WeakMap:Map,et=0,dt=null,Pe=null,ze=0,ut=0,ti=null,Xu=!1,Xa=!1,Vp=!1,fu=0,Rt=0,Zu=0,Uo=0,$p=0,ni=0,Za=0,Dl=null,Vn=null,Bp=!1,Gf=0,y3=0,Yf=1/0,Qf=null,Wu=null,tn=0,Ku=null,Wa=null,du=0,Up=0,zp=null,b3=null,Nl=0,Hp=null;function ii(){return(et&2)!==0&&ze!==0?ze&-ze:F.T!==null?Zp():zr()}function E3(){if(ni===0)if((ze&536870912)===0||Ye){var r=Fi;Fi<<=1,(Fi&3932160)===0&&(Fi=262144),ni=r}else ni=536870912;return r=Jn.current,r!==null&&(r.flags|=32),ni}function $n(r,o,l){(r===dt&&(ut===2||ut===9)||r.cancelPendingCommit!==null)&&(Ka(r,0),Ju(r,ze,ni,!1)),ci(r,l),((et&2)===0||r!==dt)&&(r===dt&&((et&2)===0&&(Uo|=l),Rt===4&&Ju(r,ze,ni,!1)),yr(r))}function x3(r,o,l){if((et&6)!==0)throw Error(i(327));var d=!l&&(o&127)===0&&(o&r.expiredLanes)===0||or(r,o),g=d?nw(r,o):Gp(r,o,!0),y=d;do{if(g===0){Xa&&!d&&Ju(r,o,0,!1);break}else{if(l=r.current.alternate,y&&!ew(l)){g=Gp(r,o,!1),y=!1;continue}if(g===2){if(y=o,r.errorRecoveryDisabledLanes&y)var C=0;else C=r.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var O=r;g=Dl;var j=O.current.memoizedState.isDehydrated;if(j&&(Ka(O,C).flags|=256),C=Gp(O,C,!1),C!==2){if(Vp&&!j){O.errorRecoveryDisabledLanes|=y,Uo|=y,g=4;break e}y=Vn,Vn=g,y!==null&&(Vn===null?Vn=y:Vn.push.apply(Vn,y))}g=C}if(y=!1,g!==2)continue}}if(g===1){Ka(r,0),Ju(r,o,0,!0);break}e:{switch(d=r,y=g,y){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:Ju(d,o,ni,!Xu);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(g=Gf+300-ft(),10<g)){if(Ju(d,o,ni,!Xu),$r(d,0,!0)!==0)break e;du=o,d.timeoutHandle=K3(S3.bind(null,d,l,Vn,Qf,Bp,o,ni,Uo,Za,Xu,y,"Throttled",-0,0),g);break e}S3(d,l,Vn,Qf,Bp,o,ni,Uo,Za,Xu,y,null,-0,0)}}break}while(!0);yr(r)}function S3(r,o,l,d,g,y,C,O,j,Q,oe,le,K,ne){if(r.timeoutHandle=-1,le=o.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nt},p3(o,y,le);var ve=(y&62914560)===y?Gf-ft():(y&4194048)===y?y3-ft():0;if(ve=Pw(le,ve),ve!==null){du=y,r.cancelPendingCommit=ve(O3.bind(null,r,o,y,l,d,g,C,O,j,oe,le,null,K,ne)),Ju(r,y,C,!Q);return}}O3(r,o,y,l,d,g,C,O,j)}function ew(r){for(var o=r;;){var l=o.tag;if((l===0||l===11||l===15)&&o.flags&16384&&(l=o.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var g=l[d],y=g.getSnapshot;g=g.value;try{if(!Wn(y(),g))return!1}catch{return!1}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ju(r,o,l,d){o&=~$p,o&=~Uo,r.suspendedLanes|=o,r.pingedLanes&=~o,d&&(r.warmLanes|=o),d=r.expirationTimes;for(var g=o;0<g;){var y=31-Kt(g),C=1<<y;d[y]=-1,g&=~C}l!==0&&sf(r,l,o)}function Xf(){return(et&6)===0?(Ol(0),!1):!0}function qp(){if(Pe!==null){if(ut===0)var r=Pe.return;else r=Pe,tu=ko=null,ap(r),Ua=null,dl=0,r=Pe;for(;r!==null;)Jb(r.alternate,r),r=r.return;Pe=null}}function Ka(r,o){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,Ew(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),du=0,qp(),dt=r,Pe=l=Jr(r.current,null),ze=o,ut=0,ti=null,Xu=!1,Xa=or(r,o),Vp=!1,Za=ni=$p=Uo=Zu=Rt=0,Vn=Dl=null,Bp=!1,(o&8)!==0&&(o|=o&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=o;0<d;){var g=31-Kt(d),y=1<<g;o|=r[g],d&=~y}return fu=o,gf(),l}function T3(r,o){Ie=null,F.H=El,o===Ba||o===_f?(o=Vy(),ut=3):o===Xh?(o=Vy(),ut=4):ut=o===Tp?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,ti=o,Pe===null&&(Rt=1,Pf(r,pi(o,r.current)))}function _3(){var r=Jn.current;return r===null?!0:(ze&4194048)===ze?yi===null:(ze&62914560)===ze||(ze&536870912)!==0?r===yi:!1}function C3(){var r=F.H;return F.H=El,r===null?El:r}function A3(){var r=F.A;return F.A=K7,r}function Zf(){Rt=4,Xu||(ze&4194048)!==ze&&Jn.current!==null||(Xa=!0),(Zu&134217727)===0&&(Uo&134217727)===0||dt===null||Ju(dt,ze,ni,!1)}function Gp(r,o,l){var d=et;et|=2;var g=C3(),y=A3();(dt!==r||ze!==o)&&(Qf=null,Ka(r,o)),o=!1;var C=Rt;e:do try{if(ut!==0&&Pe!==null){var O=Pe,j=ti;switch(ut){case 8:qp(),C=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(o=!0);var Q=ut;if(ut=0,ti=null,Ja(r,O,j,Q),l&&Xa){C=0;break e}break;default:Q=ut,ut=0,ti=null,Ja(r,O,j,Q)}}tw(),C=Rt;break}catch(oe){T3(r,oe)}while(!0);return o&&r.shellSuspendCounter++,tu=ko=null,et=d,F.H=g,F.A=y,Pe===null&&(dt=null,ze=0,gf()),C}function tw(){for(;Pe!==null;)w3(Pe)}function nw(r,o){var l=et;et|=2;var d=C3(),g=A3();dt!==r||ze!==o?(Qf=null,Yf=ft()+500,Ka(r,o)):Xa=or(r,o);e:do try{if(ut!==0&&Pe!==null){o=Pe;var y=ti;t:switch(ut){case 1:ut=0,ti=null,Ja(r,o,y,1);break;case 2:case 9:if(jy(y)){ut=0,ti=null,D3(o);break}o=function(){ut!==2&&ut!==9||dt!==r||(ut=7),yr(r)},y.then(o,o);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:jy(y)?(ut=0,ti=null,D3(o)):(ut=0,ti=null,Ja(r,o,y,7));break;case 5:var C=null;switch(Pe.tag){case 26:C=Pe.memoizedState;case 5:case 27:var O=Pe;if(C?hE(C):O.stateNode.complete){ut=0,ti=null;var j=O.sibling;if(j!==null)Pe=j;else{var Q=O.return;Q!==null?(Pe=Q,Wf(Q)):Pe=null}break t}}ut=0,ti=null,Ja(r,o,y,5);break;case 6:ut=0,ti=null,Ja(r,o,y,6);break;case 8:qp(),Rt=6;break e;default:throw Error(i(462))}}iw();break}catch(oe){T3(r,oe)}while(!0);return tu=ko=null,F.H=d,F.A=g,et=l,Pe!==null?0:(dt=null,ze=0,gf(),Rt)}function iw(){for(;Pe!==null&&!Tt();)w3(Pe)}function w3(r){var o=Wb(r.alternate,r,fu);r.memoizedProps=r.pendingProps,o===null?Wf(r):Pe=o}function D3(r){var o=r,l=o.alternate;switch(o.tag){case 15:case 0:o=qb(l,o,o.pendingProps,o.type,void 0,ze);break;case 11:o=qb(l,o,o.pendingProps,o.type.render,o.ref,ze);break;case 5:ap(o);default:Jb(l,o),o=Pe=Ay(o,fu),o=Wb(l,o,fu)}r.memoizedProps=r.pendingProps,o===null?Wf(r):Pe=o}function Ja(r,o,l,d){tu=ko=null,ap(o),Ua=null,dl=0;var g=o.return;try{if(q7(r,g,o,l,ze)){Rt=1,Pf(r,pi(l,r.current)),Pe=null;return}}catch(y){if(g!==null)throw Pe=g,y;Rt=1,Pf(r,pi(l,r.current)),Pe=null;return}o.flags&32768?(Ye||d===1?r=!0:Xa||(ze&536870912)!==0?r=!1:(Xu=r=!0,(d===2||d===9||d===3||d===6)&&(d=Jn.current,d!==null&&d.tag===13&&(d.flags|=16384))),N3(o,r)):Wf(o)}function Wf(r){var o=r;do{if((o.flags&32768)!==0){N3(o,Xu);return}r=o.return;var l=Q7(o.alternate,o,fu);if(l!==null){Pe=l;return}if(o=o.sibling,o!==null){Pe=o;return}Pe=o=r}while(o!==null);Rt===0&&(Rt=5)}function N3(r,o){do{var l=X7(r.alternate,r);if(l!==null){l.flags&=32767,Pe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!o&&(r=r.sibling,r!==null)){Pe=r;return}Pe=r=l}while(r!==null);Rt=6,Pe=null}function O3(r,o,l,d,g,y,C,O,j){r.cancelPendingCommit=null;do Kf();while(tn!==0);if((et&6)!==0)throw Error(i(327));if(o!==null){if(o===r.current)throw Error(i(177));if(y=o.lanes|o.childLanes,y|=Lh,Nu(r,l,y,C,O,j),r===dt&&(Pe=dt=null,ze=0),Wa=o,Ku=r,du=l,Up=y,zp=g,b3=d,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,aw(Vr,function(){return F3(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||d){d=F.T,F.T=null,g=H.p,H.p=2,C=et,et|=4;try{Z7(r,o,l)}finally{et=C,H.p=g,F.T=d}}tn=1,R3(),M3(),k3()}}function R3(){if(tn===1){tn=0;var r=Ku,o=Wa,l=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||l){l=F.T,F.T=null;var d=H.p;H.p=2;var g=et;et|=4;try{f3(o,r);var y=r1,C=vy(r.containerInfo),O=y.focusedElem,j=y.selectionRange;if(C!==O&&O&&O.ownerDocument&&gy(O.ownerDocument.documentElement,O)){if(j!==null&&Nh(O)){var Q=j.start,oe=j.end;if(oe===void 0&&(oe=Q),"selectionStart"in O)O.selectionStart=Q,O.selectionEnd=Math.min(oe,O.value.length);else{var le=O.ownerDocument||document,K=le&&le.defaultView||window;if(K.getSelection){var ne=K.getSelection(),ve=O.textContent.length,we=Math.min(j.start,ve),lt=j.end===void 0?we:Math.min(j.end,ve);!ne.extend&&we>lt&&(C=lt,lt=we,we=C);var q=my(O,we),U=my(O,lt);if(q&&U&&(ne.rangeCount!==1||ne.anchorNode!==q.node||ne.anchorOffset!==q.offset||ne.focusNode!==U.node||ne.focusOffset!==U.offset)){var Y=le.createRange();Y.setStart(q.node,q.offset),ne.removeAllRanges(),we>lt?(ne.addRange(Y),ne.extend(U.node,U.offset)):(Y.setEnd(U.node,U.offset),ne.addRange(Y))}}}}for(le=[],ne=O;ne=ne.parentNode;)ne.nodeType===1&&le.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<le.length;O++){var ae=le[O];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}cd=!!i1,r1=i1=null}finally{et=g,H.p=d,F.T=l}}r.current=o,tn=2}}function M3(){if(tn===2){tn=0;var r=Ku,o=Wa,l=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||l){l=F.T,F.T=null;var d=H.p;H.p=2;var g=et;et|=4;try{o3(r,o.alternate,o)}finally{et=g,H.p=d,F.T=l}}tn=3}}function k3(){if(tn===4||tn===3){tn=0,Xe();var r=Ku,o=Wa,l=du,d=b3;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?tn=5:(tn=0,Wa=Ku=null,L3(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Wu=null),sr(l),o=o.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(ur,o,void 0,(o.current.flags&128)===128)}catch{}if(d!==null){o=F.T,g=H.p,H.p=2,F.T=null;try{for(var y=r.onRecoverableError,C=0;C<d.length;C++){var O=d[C];y(O.value,{componentStack:O.stack})}}finally{F.T=o,H.p=g}}(du&3)!==0&&Kf(),yr(r),g=r.pendingLanes,(l&261930)!==0&&(g&42)!==0?r===Hp?Nl++:(Nl=0,Hp=r):Nl=0,Ol(0)}}function L3(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,cl(o)))}function Kf(){return R3(),M3(),k3(),F3()}function F3(){if(tn!==5)return!1;var r=Ku,o=Up;Up=0;var l=sr(du),d=F.T,g=H.p;try{H.p=32>l?32:l,F.T=null,l=zp,zp=null;var y=Ku,C=du;if(tn=0,Wa=Ku=null,du=0,(et&6)!==0)throw Error(i(331));var O=et;if(et|=4,g3(y.current),h3(y,y.current,C,l),et=O,Ol(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(ur,y)}catch{}return!0}finally{H.p=g,F.T=d,L3(r,o)}}function I3(r,o,l){o=pi(l,o),o=Sp(r.stateNode,o,2),r=qu(r,o,2),r!==null&&(ci(r,2),yr(r))}function ot(r,o,l){if(r.tag===3)I3(r,r,l);else for(;o!==null;){if(o.tag===3){I3(o,r,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Wu===null||!Wu.has(d))){r=pi(l,r),l=jb(2),d=qu(o,l,2),d!==null&&(Pb(l,d,o,r),ci(d,2),yr(d));break}}o=o.return}}function Yp(r,o,l){var d=r.pingCache;if(d===null){d=r.pingCache=new J7;var g=new Set;d.set(o,g)}else g=d.get(o),g===void 0&&(g=new Set,d.set(o,g));g.has(l)||(Vp=!0,g.add(l),r=rw.bind(null,r,o,l),o.then(r,r))}function rw(r,o,l){var d=r.pingCache;d!==null&&d.delete(o),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,dt===r&&(ze&l)===l&&(Rt===4||Rt===3&&(ze&62914560)===ze&&300>ft()-Gf?(et&2)===0&&Ka(r,0):$p|=l,Za===ze&&(Za=0)),yr(r)}function j3(r,o){o===0&&(o=_o()),r=Oo(r,o),r!==null&&(ci(r,o),yr(r))}function uw(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),j3(r,l)}function ow(r,o){var l=0;switch(r.tag){case 31:case 13:var d=r.stateNode,g=r.memoizedState;g!==null&&(l=g.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(o),j3(r,l)}function aw(r,o){return De(r,o)}var Jf=null,es=null,Qp=!1,ed=!1,Xp=!1,eo=0;function yr(r){r!==es&&r.next===null&&(es===null?Jf=es=r:es=es.next=r),ed=!0,Qp||(Qp=!0,lw())}function Ol(r,o){if(!Xp&&ed){Xp=!0;do for(var l=!1,d=Jf;d!==null;){if(r!==0){var g=d.pendingLanes;if(g===0)var y=0;else{var C=d.suspendedLanes,O=d.pingedLanes;y=(1<<31-Kt(42|r)+1)-1,y&=g&~(C&~O),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(l=!0,B3(d,y))}else y=ze,y=$r(d,d===dt?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||or(d,y)||(l=!0,B3(d,y));d=d.next}while(l);Xp=!1}}function sw(){P3()}function P3(){ed=Qp=!1;var r=0;eo!==0&&bw()&&(r=eo);for(var o=ft(),l=null,d=Jf;d!==null;){var g=d.next,y=V3(d,o);y===0?(d.next=null,l===null?Jf=g:l.next=g,g===null&&(es=l)):(l=d,(r!==0||(y&3)!==0)&&(ed=!0)),d=g}tn!==0&&tn!==5||Ol(r),eo!==0&&(eo=0)}function V3(r,o){for(var l=r.suspendedLanes,d=r.pingedLanes,g=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var C=31-Kt(y),O=1<<C,j=g[C];j===-1?((O&l)===0||(O&d)!==0)&&(g[C]=Du(O,o)):j<=o&&(r.expiredLanes|=O),y&=~O}if(o=dt,l=ze,l=$r(r,r===o?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,l===0||r===o&&(ut===2||ut===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&ke(d),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||or(r,l)){if(o=l&-l,o===r.callbackPriority)return o;switch(d!==null&&ke(d),sr(l)){case 2:case 8:l=xa;break;case 32:l=Vr;break;case 268435456:l=To;break;default:l=Vr}return d=$3.bind(null,r),l=De(l,d),r.callbackPriority=o,r.callbackNode=l,o}return d!==null&&d!==null&&ke(d),r.callbackPriority=2,r.callbackNode=null,2}function $3(r,o){if(tn!==0&&tn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Kf()&&r.callbackNode!==l)return null;var d=ze;return d=$r(r,r===dt?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(x3(r,d,o),V3(r,ft()),r.callbackNode!=null&&r.callbackNode===l?$3.bind(null,r):null)}function B3(r,o){if(Kf())return null;x3(r,o,!0)}function lw(){xw(function(){(et&6)!==0?De(So,sw):P3()})}function Zp(){if(eo===0){var r=Va;r===0&&(r=wu,wu<<=1,(wu&261888)===0&&(wu=256)),eo=r}return eo}function U3(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Lt(""+r)}function z3(r,o){var l=o.ownerDocument.createElement("input");return l.name=o.name,l.value=o.value,r.id&&l.setAttribute("form",r.id),o.parentNode.insertBefore(l,o),r=new FormData(r),l.parentNode.removeChild(l),r}function cw(r,o,l,d,g){if(o==="submit"&&l&&l.stateNode===g){var y=U3((g[Jt]||null).action),C=d.submitter;C&&(o=(o=C[Jt]||null)?U3(o.formAction):C.getAttribute("formAction"),o!==null&&(y=o,C=null));var O=new df("action","action",null,d,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(eo!==0){var j=C?z3(g,C):new FormData(g);gp(l,{pending:!0,data:j,method:g.method,action:y},null,j)}}else typeof y=="function"&&(O.preventDefault(),j=C?z3(g,C):new FormData(g),gp(l,{pending:!0,data:j,method:g.method,action:y},y,j))},currentTarget:g}]})}}for(var Wp=0;Wp<kh.length;Wp++){var Kp=kh[Wp],fw=Kp.toLowerCase(),dw=Kp[0].toUpperCase()+Kp.slice(1);Ui(fw,"on"+dw)}Ui(Ey,"onAnimationEnd"),Ui(xy,"onAnimationIteration"),Ui(Sy,"onAnimationStart"),Ui("dblclick","onDoubleClick"),Ui("focusin","onFocus"),Ui("focusout","onBlur"),Ui(D7,"onTransitionRun"),Ui(N7,"onTransitionStart"),Ui(O7,"onTransitionCancel"),Ui(Ty,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),ji("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ji("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ji("onBeforeInput",["compositionend","keypress","textInput","paste"]),ji("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rl="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(" "),hw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rl));function H3(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],g=d.event;d=d.listeners;e:{var y=void 0;if(o)for(var C=d.length-1;0<=C;C--){var O=d[C],j=O.instance,Q=O.currentTarget;if(O=O.listener,j!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=Q;try{y(g)}catch(oe){mf(oe)}g.currentTarget=null,y=j}else for(C=0;C<d.length;C++){if(O=d[C],j=O.instance,Q=O.currentTarget,O=O.listener,j!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=Q;try{y(g)}catch(oe){mf(oe)}g.currentTarget=null,y=j}}}}function Ve(r,o){var l=o[cr];l===void 0&&(l=o[cr]=new Set);var d=r+"__bubble";l.has(d)||(q3(o,r,2,!1),l.add(d))}function Jp(r,o,l){var d=0;o&&(d|=4),q3(l,r,d,o)}var td="_reactListening"+Math.random().toString(36).slice(2);function e1(r){if(!r[td]){r[td]=!0,qr.forEach(function(l){l!=="selectionchange"&&(hw.has(l)||Jp(l,!1,r),Jp(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[td]||(o[td]=!0,Jp("selectionchange",!1,o))}}function q3(r,o,l,d){switch(EE(o)){case 2:var g=Bw;break;case 8:g=Uw;break;default:g=m1}l=g.bind(null,o,l,r),g=void 0,!Eh||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),d?g!==void 0?r.addEventListener(o,l,{capture:!0,passive:g}):r.addEventListener(o,l,!0):g!==void 0?r.addEventListener(o,l,{passive:g}):r.addEventListener(o,l,!1)}function t1(r,o,l,d,g){var y=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var O=d.stateNode.containerInfo;if(O===g)break;if(C===4)for(C=d.return;C!==null;){var j=C.tag;if((j===3||j===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;O!==null;){if(C=dr(O),C===null)return;if(j=C.tag,j===5||j===6||j===26||j===27){d=y=C;continue e}O=O.parentNode}}d=d.return}Zv(function(){var Q=y,oe=Ks(l),le=[];e:{var K=_y.get(r);if(K!==void 0){var ne=df,ve=r;switch(r){case"keypress":if(cf(l)===0)break e;case"keydown":case"keyup":ne=o7;break;case"focusin":ve="focus",ne=_h;break;case"focusout":ve="blur",ne=_h;break;case"beforeblur":case"afterblur":ne=_h;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Q9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=l7;break;case Ey:case xy:case Sy:ne=W9;break;case Ty:ne=f7;break;case"scroll":case"scrollend":ne=G9;break;case"wheel":ne=h7;break;case"copy":case"cut":case"paste":ne=J9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=ty;break;case"toggle":case"beforetoggle":ne=m7}var we=(o&4)!==0,lt=!we&&(r==="scroll"||r==="scrollend"),q=we?K!==null?K+"Capture":null:K;we=[];for(var U=Q,Y;U!==null;){var ae=U;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||q===null||(ae=Js(U,q),ae!=null&&we.push(Ml(U,ae,Y))),lt)break;U=U.return}0<we.length&&(K=new ne(K,ve,null,l,oe),le.push({event:K,listeners:we}))}}if((o&7)===0){e:{if(K=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",K&&l!==Zn&&(ve=l.relatedTarget||l.fromElement)&&(dr(ve)||ve[Gn]))break e;if((ne||K)&&(K=oe.window===oe?oe:(K=oe.ownerDocument)?K.defaultView||K.parentWindow:window,ne?(ve=l.relatedTarget||l.toElement,ne=Q,ve=ve?dr(ve):null,ve!==null&&(lt=a(ve),we=ve.tag,ve!==lt||we!==5&&we!==27&&we!==6)&&(ve=null)):(ne=null,ve=Q),ne!==ve)){if(we=Jv,ae="onMouseLeave",q="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(we=ty,ae="onPointerLeave",q="onPointerEnter",U="pointer"),lt=ne==null?K:di(ne),Y=ve==null?K:di(ve),K=new we(ae,U+"leave",ne,l,oe),K.target=lt,K.relatedTarget=Y,ae=null,dr(oe)===Q&&(we=new we(q,U+"enter",ve,l,oe),we.target=Y,we.relatedTarget=lt,ae=we),lt=ae,ne&&ve)t:{for(we=pw,q=ne,U=ve,Y=0,ae=q;ae;ae=we(ae))Y++;ae=0;for(var Te=U;Te;Te=we(Te))ae++;for(;0<Y-ae;)q=we(q),Y--;for(;0<ae-Y;)U=we(U),ae--;for(;Y--;){if(q===U||U!==null&&q===U.alternate){we=q;break t}q=we(q),U=we(U)}we=null}else we=null;ne!==null&&G3(le,K,ne,we,!1),ve!==null&<!==null&&G3(le,lt,ve,we,!0)}}e:{if(K=Q?di(Q):window,ne=K.nodeName&&K.nodeName.toLowerCase(),ne==="select"||ne==="input"&&K.type==="file")var We=ly;else if(ay(K))if(cy)We=C7;else{We=T7;var Ee=S7}else ne=K.nodeName,!ne||ne.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?Q&&ju(Q.elementType)&&(We=ly):We=_7;if(We&&(We=We(r,Q))){sy(le,We,l,oe);break e}Ee&&Ee(r,K,Q),r==="focusout"&&Q&&K.type==="number"&&Q.memoizedProps.value!=null&&pr(K,"number",K.value)}switch(Ee=Q?di(Q):window,r){case"focusin":(ay(Ee)||Ee.contentEditable==="true")&&(Ra=Ee,Oh=Q,al=null);break;case"focusout":al=Oh=Ra=null;break;case"mousedown":Rh=!0;break;case"contextmenu":case"mouseup":case"dragend":Rh=!1,yy(le,l,oe);break;case"selectionchange":if(w7)break;case"keydown":case"keyup":yy(le,l,oe)}var je;if(Ah)e:{switch(r){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Oa?uy(r,l)&&(He="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(He="onCompositionStart");He&&(ny&&l.locale!=="ko"&&(Oa||He!=="onCompositionStart"?He==="onCompositionEnd"&&Oa&&(je=Wv()):(Pu=oe,xh="value"in Pu?Pu.value:Pu.textContent,Oa=!0)),Ee=nd(Q,He),0<Ee.length&&(He=new ey(He,r,null,l,oe),le.push({event:He,listeners:Ee}),je?He.data=je:(je=oy(l),je!==null&&(He.data=je)))),(je=v7?y7(r,l):b7(r,l))&&(He=nd(Q,"onBeforeInput"),0<He.length&&(Ee=new ey("onBeforeInput","beforeinput",null,l,oe),le.push({event:Ee,listeners:He}),Ee.data=je)),cw(le,r,Q,l,oe)}H3(le,o)})}function Ml(r,o,l){return{instance:r,listener:o,currentTarget:l}}function nd(r,o){for(var l=o+"Capture",d=[];r!==null;){var g=r,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Js(r,l),g!=null&&d.unshift(Ml(r,g,y)),g=Js(r,o),g!=null&&d.push(Ml(r,g,y))),r.tag===3)return d;r=r.return}return[]}function pw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function G3(r,o,l,d,g){for(var y=o._reactName,C=[];l!==null&&l!==d;){var O=l,j=O.alternate,Q=O.stateNode;if(O=O.tag,j!==null&&j===d)break;O!==5&&O!==26&&O!==27||Q===null||(j=Q,g?(Q=Js(l,y),Q!=null&&C.unshift(Ml(l,Q,j))):g||(Q=Js(l,y),Q!=null&&C.push(Ml(l,Q,j)))),l=l.return}C.length!==0&&r.push({event:o,listeners:C})}var mw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function Y3(r){return(typeof r=="string"?r:""+r).replace(mw,`
|
|
50
|
+
`).replace(gw,"")}function Q3(r,o){return o=Y3(o),Y3(r)===o}function st(r,o,l,d,g,y){switch(l){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||Xn(r,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&Xn(r,""+d);break;case"className":Vi(r,"class",d);break;case"tabIndex":Vi(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(r,l,d);break;case"style":Wr(r,d,y);break;case"data":if(o!=="object"){Vi(r,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=Lt(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(o!=="input"&&st(r,o,"name",g.name,g,null),st(r,o,"formEncType",g.formEncType,g,null),st(r,o,"formMethod",g.formMethod,g,null),st(r,o,"formTarget",g.formTarget,g,null)):(st(r,o,"encType",g.encType,g,null),st(r,o,"method",g.method,g,null),st(r,o,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=Lt(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=Nt);break;case"onScroll":d!=null&&Ve("scroll",r);break;case"onScrollEnd":d!=null&&Ve("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=Lt(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);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":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Ve("beforetoggle",r),Ve("toggle",r),Pi(r,"popover",d);break;case"xlinkActuate":Sn(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Sn(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Sn(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Sn(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Sn(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Sn(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Sn(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Sn(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Sn(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Pi(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ue.get(l)||l,Pi(r,l,d))}}function n1(r,o,l,d,g,y){switch(l){case"style":Wr(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof d=="string"?Xn(r,d):(typeof d=="number"||typeof d=="bigint")&&Xn(r,""+d);break;case"onScroll":d!=null&&Ve("scroll",r);break;case"onScrollEnd":d!=null&&Ve("scrollend",r);break;case"onClick":d!=null&&(r.onclick=Nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ca.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),o=l.slice(2,g?l.length-7:void 0),y=r[Jt]||null,y=y!=null?y[l]:null,typeof y=="function"&&r.removeEventListener(o,y,g),typeof d=="function")){typeof y!="function"&&y!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(o,d,g);break e}l in r?r[l]=d:d===!0?r.setAttribute(l,""):Pi(r,l,d)}}}function vn(r,o,l){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",r),Ve("load",r);var d=!1,g=!1,y;for(y in l)if(l.hasOwnProperty(y)){var C=l[y];if(C!=null)switch(y){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:st(r,o,y,C,l,null)}}g&&st(r,o,"srcSet",l.srcSet,l,null),d&&st(r,o,"src",l.src,l,null);return;case"input":Ve("invalid",r);var O=y=C=g=null,j=null,Q=null;for(d in l)if(l.hasOwnProperty(d)){var oe=l[d];if(oe!=null)switch(d){case"name":g=oe;break;case"type":C=oe;break;case"checked":j=oe;break;case"defaultChecked":Q=oe;break;case"value":y=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,o));break;default:st(r,o,d,oe,l,null)}}Xr(r,y,O,j,Q,C,g,!1);return;case"select":Ve("invalid",r),d=C=y=null;for(g in l)if(l.hasOwnProperty(g)&&(O=l[g],O!=null))switch(g){case"value":y=O;break;case"defaultValue":C=O;break;case"multiple":d=O;default:st(r,o,g,O,l,null)}o=y,l=C,r.multiple=!!d,o!=null?Bi(r,!!d,o,!1):l!=null&&Bi(r,!!d,l,!0);return;case"textarea":Ve("invalid",r),y=g=d=null;for(C in l)if(l.hasOwnProperty(C)&&(O=l[C],O!=null))switch(C){case"value":d=O;break;case"defaultValue":g=O;break;case"children":y=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:st(r,o,C,O,l,null)}wa(r,d,g,y);return;case"option":for(j in l)if(l.hasOwnProperty(j)&&(d=l[j],d!=null))switch(j){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:st(r,o,j,d,l,null)}return;case"dialog":Ve("beforetoggle",r),Ve("toggle",r),Ve("cancel",r),Ve("close",r);break;case"iframe":case"object":Ve("load",r);break;case"video":case"audio":for(d=0;d<Rl.length;d++)Ve(Rl[d],r);break;case"image":Ve("error",r),Ve("load",r);break;case"details":Ve("toggle",r);break;case"embed":case"source":case"link":Ve("error",r),Ve("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(d=l[Q],d!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:st(r,o,Q,d,l,null)}return;default:if(ju(o)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&n1(r,o,oe,d,l,void 0));return}}for(O in l)l.hasOwnProperty(O)&&(d=l[O],d!=null&&st(r,o,O,d,l,null))}function vw(r,o,l,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,C=null,O=null,j=null,Q=null,oe=null;for(ne in l){var le=l[ne];if(l.hasOwnProperty(ne)&&le!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":j=le;default:d.hasOwnProperty(ne)||st(r,o,ne,null,d,le)}}for(var K in d){var ne=d[K];if(le=l[K],d.hasOwnProperty(K)&&(ne!=null||le!=null))switch(K){case"type":y=ne;break;case"name":g=ne;break;case"checked":Q=ne;break;case"defaultChecked":oe=ne;break;case"value":C=ne;break;case"defaultValue":O=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,o));break;default:ne!==le&&st(r,o,K,ne,d,le)}}Fu(r,C,O,j,Q,oe,y,g);return;case"select":ne=C=O=K=null;for(y in l)if(j=l[y],l.hasOwnProperty(y)&&j!=null)switch(y){case"value":break;case"multiple":ne=j;default:d.hasOwnProperty(y)||st(r,o,y,null,d,j)}for(g in d)if(y=d[g],j=l[g],d.hasOwnProperty(g)&&(y!=null||j!=null))switch(g){case"value":K=y;break;case"defaultValue":O=y;break;case"multiple":C=y;default:y!==j&&st(r,o,g,y,d,j)}o=O,l=C,d=ne,K!=null?Bi(r,!!l,K,!1):!!d!=!!l&&(o!=null?Bi(r,!!l,o,!0):Bi(r,!!l,l?[]:"",!1));return;case"textarea":ne=K=null;for(O in l)if(g=l[O],l.hasOwnProperty(O)&&g!=null&&!d.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:st(r,o,O,null,d,g)}for(C in d)if(g=d[C],y=l[C],d.hasOwnProperty(C)&&(g!=null||y!=null))switch(C){case"value":K=g;break;case"defaultValue":ne=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==y&&st(r,o,C,g,d,y)}Aa(r,K,ne);return;case"option":for(var ve in l)if(K=l[ve],l.hasOwnProperty(ve)&&K!=null&&!d.hasOwnProperty(ve))switch(ve){case"selected":r.selected=!1;break;default:st(r,o,ve,null,d,K)}for(j in d)if(K=d[j],ne=l[j],d.hasOwnProperty(j)&&K!==ne&&(K!=null||ne!=null))switch(j){case"selected":r.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:st(r,o,j,K,d,ne)}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 we in l)K=l[we],l.hasOwnProperty(we)&&K!=null&&!d.hasOwnProperty(we)&&st(r,o,we,null,d,K);for(Q in d)if(K=d[Q],ne=l[Q],d.hasOwnProperty(Q)&&K!==ne&&(K!=null||ne!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,o));break;default:st(r,o,Q,K,d,ne)}return;default:if(ju(o)){for(var lt in l)K=l[lt],l.hasOwnProperty(lt)&&K!==void 0&&!d.hasOwnProperty(lt)&&n1(r,o,lt,void 0,d,K);for(oe in d)K=d[oe],ne=l[oe],!d.hasOwnProperty(oe)||K===ne||K===void 0&&ne===void 0||n1(r,o,oe,K,d,ne);return}}for(var q in l)K=l[q],l.hasOwnProperty(q)&&K!=null&&!d.hasOwnProperty(q)&&st(r,o,q,null,d,K);for(le in d)K=d[le],ne=l[le],!d.hasOwnProperty(le)||K===ne||K==null&&ne==null||st(r,o,le,K,d,ne)}function X3(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,o=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var g=l[d],y=g.transferSize,C=g.initiatorType,O=g.duration;if(y&&O&&X3(C)){for(C=0,O=g.responseEnd,d+=1;d<l.length;d++){var j=l[d],Q=j.startTime;if(Q>O)break;var oe=j.transferSize,le=j.initiatorType;oe&&X3(le)&&(j=j.responseEnd,C+=oe*(j<O?1:(O-Q)/(j-Q)))}if(--d,o+=8*(y+C)/(g.duration/1e3),r++,10<r)break}}if(0<r)return o/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var i1=null,r1=null;function id(r){return r.nodeType===9?r:r.ownerDocument}function Z3(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function W3(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function u1(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var o1=null;function bw(){var r=window.event;return r&&r.type==="popstate"?r===o1?!1:(o1=r,!0):(o1=null,!1)}var K3=typeof setTimeout=="function"?setTimeout:void 0,Ew=typeof clearTimeout=="function"?clearTimeout:void 0,J3=typeof Promise=="function"?Promise:void 0,xw=typeof queueMicrotask=="function"?queueMicrotask:typeof J3<"u"?function(r){return J3.resolve(null).then(r).catch(Sw)}:K3;function Sw(r){setTimeout(function(){throw r})}function to(r){return r==="head"}function eE(r,o){var l=o,d=0;do{var g=l.nextSibling;if(r.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"||l==="/&"){if(d===0){r.removeChild(g),rs(o);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")kl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,kl(l);for(var y=l.firstChild;y;){var C=y.nextSibling,O=y.nodeName;y[fi]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||l.removeChild(y),y=C}}else l==="body"&&kl(r.ownerDocument.body);l=g}while(l);rs(o)}function tE(r,o){var l=r;r=0;do{var d=l.nextSibling;if(l.nodeType===1?o?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(o?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=d}while(l)}function a1(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var l=o;switch(o=o.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":a1(l),fr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function Tw(r,o,l,d){for(;r.nodeType===1;){var g=l;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[fi])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=bi(r.nextSibling),r===null)break}return null}function _w(r,o,l){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=bi(r.nextSibling),r===null))return null;return r}function nE(r,o){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=bi(r.nextSibling),r===null))return null;return r}function s1(r){return r.data==="$?"||r.data==="$~"}function l1(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Cw(r,o){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=o;else if(r.data!=="$?"||l.readyState!=="loading")o();else{var d=function(){o(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function bi(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return r}var c1=null;function iE(r){r=r.nextSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(o===0)return bi(r.nextSibling);o--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||o++}r=r.nextSibling}return null}function rE(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(o===0)return r;o--}else l!=="/$"&&l!=="/&"||o++}r=r.previousSibling}return null}function uE(r,o,l){switch(o=id(l),r){case"html":if(r=o.documentElement,!r)throw Error(i(452));return r;case"head":if(r=o.head,!r)throw Error(i(453));return r;case"body":if(r=o.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function kl(r){for(var o=r.attributes;o.length;)r.removeAttributeNode(o[0]);fr(r)}var Ei=new Map,oE=new Set;function rd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var hu=H.d;H.d={f:Aw,r:ww,D:Dw,C:Nw,L:Ow,m:Rw,X:kw,S:Mw,M:Lw};function Aw(){var r=hu.f(),o=Xf();return r||o}function ww(r){var o=hr(r);o!==null&&o.tag===5&&o.type==="form"?Tb(o):hu.r(r)}var ts=typeof document>"u"?null:document;function aE(r,o,l){var d=ts;if(d&&typeof o=="string"&&o){var g=Tn(o);g='link[rel="'+r+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),oE.has(g)||(oE.add(g),r={rel:r,crossOrigin:l,href:o},d.querySelector(g)===null&&(o=d.createElement("link"),vn(o,"link",r),vt(o),d.head.appendChild(o)))}}function Dw(r){hu.D(r),aE("dns-prefetch",r,null)}function Nw(r,o){hu.C(r,o),aE("preconnect",r,o)}function Ow(r,o,l){hu.L(r,o,l);var d=ts;if(d&&r&&o){var g='link[rel="preload"][as="'+Tn(o)+'"]';o==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+Tn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+Tn(l.imageSizes)+'"]')):g+='[href="'+Tn(r)+'"]';var y=g;switch(o){case"style":y=ns(r);break;case"script":y=is(r)}Ei.has(y)||(r=m({rel:"preload",href:o==="image"&&l&&l.imageSrcSet?void 0:r,as:o},l),Ei.set(y,r),d.querySelector(g)!==null||o==="style"&&d.querySelector(Ll(y))||o==="script"&&d.querySelector(Fl(y))||(o=d.createElement("link"),vn(o,"link",r),vt(o),d.head.appendChild(o)))}}function Rw(r,o){hu.m(r,o);var l=ts;if(l&&r){var d=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Tn(d)+'"][href="'+Tn(r)+'"]',y=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=is(r)}if(!Ei.has(y)&&(r=m({rel:"modulepreload",href:r},o),Ei.set(y,r),l.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Fl(y)))return}d=l.createElement("link"),vn(d,"link",r),vt(d),l.head.appendChild(d)}}}function Mw(r,o,l){hu.S(r,o,l);var d=ts;if(d&&r){var g=Yn(d).hoistableStyles,y=ns(r);o=o||"default";var C=g.get(y);if(!C){var O={loading:0,preload:null};if(C=d.querySelector(Ll(y)))O.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":o},l),(l=Ei.get(y))&&f1(r,l);var j=C=d.createElement("link");vt(j),vn(j,"link",r),j._p=new Promise(function(Q,oe){j.onload=Q,j.onerror=oe}),j.addEventListener("load",function(){O.loading|=1}),j.addEventListener("error",function(){O.loading|=2}),O.loading|=4,ud(C,o,d)}C={type:"stylesheet",instance:C,count:1,state:O},g.set(y,C)}}}function kw(r,o){hu.X(r,o);var l=ts;if(l&&r){var d=Yn(l).hoistableScripts,g=is(r),y=d.get(g);y||(y=l.querySelector(Fl(g)),y||(r=m({src:r,async:!0},o),(o=Ei.get(g))&&d1(r,o),y=l.createElement("script"),vt(y),vn(y,"link",r),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function Lw(r,o){hu.M(r,o);var l=ts;if(l&&r){var d=Yn(l).hoistableScripts,g=is(r),y=d.get(g);y||(y=l.querySelector(Fl(g)),y||(r=m({src:r,async:!0,type:"module"},o),(o=Ei.get(g))&&d1(r,o),y=l.createElement("script"),vt(y),vn(y,"link",r),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(g,y))}}function sE(r,o,l,d){var g=(g=de.current)?rd(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(o=ns(l.href),l=Yn(g).hoistableStyles,d=l.get(o),d||(d={type:"style",instance:null,count:0,state:null},l.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ns(l.href);var y=Yn(g).hoistableStyles,C=y.get(r);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,C),(y=g.querySelector(Ll(r)))&&!y._p&&(C.instance=y,C.state.loading=5),Ei.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ei.set(r,l),y||Fw(g,r,l,C.state))),o&&d===null)throw Error(i(528,""));return C}if(o&&d!==null)throw Error(i(529,""));return null;case"script":return o=l.async,l=l.src,typeof l=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=is(l),l=Yn(g).hoistableScripts,d=l.get(o),d||(d={type:"script",instance:null,count:0,state:null},l.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ns(r){return'href="'+Tn(r)+'"'}function Ll(r){return'link[rel="stylesheet"]['+r+"]"}function lE(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function Fw(r,o,l,d){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=r.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),vn(o,"link",l),vt(o),r.head.appendChild(o))}function is(r){return'[src="'+Tn(r)+'"]'}function Fl(r){return"script[async]"+r}function cE(r,o,l){if(o.count++,o.instance===null)switch(o.type){case"style":var d=r.querySelector('style[data-href~="'+Tn(l.href)+'"]');if(d)return o.instance=d,vt(d),d;var g=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),vt(d),vn(d,"style",g),ud(d,l.precedence,r),o.instance=d;case"stylesheet":g=ns(l.href);var y=r.querySelector(Ll(g));if(y)return o.state.loading|=4,o.instance=y,vt(y),y;d=lE(l),(g=Ei.get(g))&&f1(d,g),y=(r.ownerDocument||r).createElement("link"),vt(y);var C=y;return C._p=new Promise(function(O,j){C.onload=O,C.onerror=j}),vn(y,"link",d),o.state.loading|=4,ud(y,l.precedence,r),o.instance=y;case"script":return y=is(l.src),(g=r.querySelector(Fl(y)))?(o.instance=g,vt(g),g):(d=l,(g=Ei.get(y))&&(d=m({},l),d1(d,g)),r=r.ownerDocument||r,g=r.createElement("script"),vt(g),vn(g,"link",d),r.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,ud(d,l.precedence,r));return o.instance}function ud(r,o,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,y=g,C=0;C<d.length;C++){var O=d[C];if(O.dataset.precedence===o)y=O;else if(y!==g)break}y?y.parentNode.insertBefore(r,y.nextSibling):(o=l.nodeType===9?l.head:l,o.insertBefore(r,o.firstChild))}function f1(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function d1(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var od=null;function fE(r,o,l){if(od===null){var d=new Map,g=od=new Map;g.set(l,d)}else g=od,d=g.get(l),d||(d=new Map,g.set(l,d));if(d.has(r))return d;for(d.set(r,null),l=l.getElementsByTagName(r),g=0;g<l.length;g++){var y=l[g];if(!(y[fi]||y[_t]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(o)||"";C=r+C;var O=d.get(C);O?O.push(y):d.set(C,[y])}}return d}function dE(r,o,l){r=r.ownerDocument||r,r.head.insertBefore(l,o==="title"?r.querySelector("head > title"):null)}function Iw(r,o,l){if(l===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return r=o.disabled,typeof o.precedence=="string"&&r==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function hE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function jw(r,o,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=ns(d.href),y=o.querySelector(Ll(g));if(y){o=y._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(r.count++,r=ad.bind(r),o.then(r,r)),l.state.loading|=4,l.instance=y,vt(y);return}y=o.ownerDocument||o,d=lE(d),(g=Ei.get(g))&&f1(d,g),y=y.createElement("link"),vt(y);var C=y;C._p=new Promise(function(O,j){C.onload=O,C.onerror=j}),vn(y,"link",d),l.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=ad.bind(r),o.addEventListener("load",l),o.addEventListener("error",l))}}var h1=0;function Pw(r,o){return r.stylesheets&&r.count===0&&ld(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var d=setTimeout(function(){if(r.stylesheets&&ld(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+o);0<r.imgBytes&&h1===0&&(h1=62500*yw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&ld(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>h1?50:800)+o);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function ad(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ld(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var sd=null;function ld(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,sd=new Map,o.forEach(Vw,r),sd=null,ad.call(r))}function Vw(r,o){if(!(o.state.loading&4)){var l=sd.get(r);if(l)var d=l.get(null);else{l=new Map,sd.set(r,l);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var C=g[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),d=C)}d&&l.set(null,d)}g=o.instance,C=g.getAttribute("data-precedence"),y=l.get(C)||d,y===d&&l.set(null,g),l.set(C,g),this.count++,d=ad.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),y?y.parentNode.insertBefore(g,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),o.state.loading|=4}}var Il={$$typeof:w,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function $w(r,o,l,d,g,y,C,O,j){this.tag=1,this.containerInfo=r,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=ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ar(0),this.hiddenUpdates=ar(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function pE(r,o,l,d,g,y,C,O,j,Q,oe,le){return r=new $w(r,o,l,C,j,Q,oe,le,O),o=1,y===!0&&(o|=24),y=Kn(3,null,null,o),r.current=y,y.stateNode=r,o=Gh(),o.refCount++,r.pooledCache=o,o.refCount++,y.memoizedState={element:d,isDehydrated:l,cache:o},Zh(y),r}function mE(r){return r?(r=La,r):La}function gE(r,o,l,d,g,y){g=mE(g),d.context===null?d.context=g:d.pendingContext=g,d=Hu(o),d.payload={element:l},y=y===void 0?null:y,y!==null&&(d.callback=y),l=qu(r,d,o),l!==null&&($n(l,r,o),pl(l,r,o))}function vE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function p1(r,o){vE(r,o),(r=r.alternate)&&vE(r,o)}function yE(r){if(r.tag===13||r.tag===31){var o=Oo(r,67108864);o!==null&&$n(o,r,67108864),p1(r,67108864)}}function bE(r){if(r.tag===13||r.tag===31){var o=ii();o=Ou(o);var l=Oo(r,o);l!==null&&$n(l,r,o),p1(r,o)}}var cd=!0;function Bw(r,o,l,d){var g=F.T;F.T=null;var y=H.p;try{H.p=2,m1(r,o,l,d)}finally{H.p=y,F.T=g}}function Uw(r,o,l,d){var g=F.T;F.T=null;var y=H.p;try{H.p=8,m1(r,o,l,d)}finally{H.p=y,F.T=g}}function m1(r,o,l,d){if(cd){var g=g1(d);if(g===null)t1(r,o,d,fd,l),xE(r,d);else if(Hw(g,r,o,l,d))d.stopPropagation();else if(xE(r,d),o&4&&-1<zw.indexOf(r)){for(;g!==null;){var y=hr(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=Ln(y.pendingLanes);if(C!==0){var O=y;for(O.pendingLanes|=2,O.entangledLanes|=2;C;){var j=1<<31-Kt(C);O.entanglements[1]|=j,C&=~j}yr(y),(et&6)===0&&(Yf=ft()+500,Ol(0))}}break;case 31:case 13:O=Oo(y,2),O!==null&&$n(O,y,2),Xf(),p1(y,2)}if(y=g1(d),y===null&&t1(r,o,d,fd,l),y===g)break;g=y}g!==null&&d.stopPropagation()}else t1(r,o,d,null,l)}}function g1(r){return r=Ks(r),v1(r)}var fd=null;function v1(r){if(fd=null,r=dr(r),r!==null){var o=a(r);if(o===null)r=null;else{var l=o.tag;if(l===13){if(r=s(o),r!==null)return r;r=null}else if(l===31){if(r=c(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return fd=r,null}function EE(r){switch(r){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(Li()){case So:return 2;case xa:return 8;case Vr:case gh:return 32;case To:return 268435456;default:return 32}default:return 32}}var y1=!1,no=null,io=null,ro=null,jl=new Map,Pl=new Map,uo=[],zw="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 xE(r,o){switch(r){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":ro=null;break;case"pointerover":case"pointerout":jl.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(o.pointerId)}}function Vl(r,o,l,d,g,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:y,targetContainers:[g]},o!==null&&(o=hr(o),o!==null&&yE(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),r)}function Hw(r,o,l,d,g){switch(o){case"focusin":return no=Vl(no,r,o,l,d,g),!0;case"dragenter":return io=Vl(io,r,o,l,d,g),!0;case"mouseover":return ro=Vl(ro,r,o,l,d,g),!0;case"pointerover":var y=g.pointerId;return jl.set(y,Vl(jl.get(y)||null,r,o,l,d,g)),!0;case"gotpointercapture":return y=g.pointerId,Pl.set(y,Vl(Pl.get(y)||null,r,o,l,d,g)),!0}return!1}function SE(r){var o=dr(r.target);if(o!==null){var l=a(o);if(l!==null){if(o=l.tag,o===13){if(o=s(l),o!==null){r.blockedOn=o,_a(r.priority,function(){bE(l)});return}}else if(o===31){if(o=c(l),o!==null){r.blockedOn=o,_a(r.priority,function(){bE(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function dd(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=g1(r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Zn=d,l.target.dispatchEvent(d),Zn=null}else return o=hr(l),o!==null&&yE(o),r.blockedOn=l,!1;o.shift()}return!0}function TE(r,o,l){dd(r)&&l.delete(o)}function qw(){y1=!1,no!==null&&dd(no)&&(no=null),io!==null&&dd(io)&&(io=null),ro!==null&&dd(ro)&&(ro=null),jl.forEach(TE),Pl.forEach(TE)}function hd(r,o){r.blockedOn===o&&(r.blockedOn=null,y1||(y1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qw)))}var pd=null;function _E(r){pd!==r&&(pd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pd===r&&(pd=null);for(var o=0;o<r.length;o+=3){var l=r[o],d=r[o+1],g=r[o+2];if(typeof d!="function"){if(v1(d||l)===null)continue;break}var y=hr(l);y!==null&&(r.splice(o,3),o-=3,gp(y,{pending:!0,data:g,method:l.method,action:d},d,g))}}))}function rs(r){function o(j){return hd(j,r)}no!==null&&hd(no,r),io!==null&&hd(io,r),ro!==null&&hd(ro,r),jl.forEach(o),Pl.forEach(o);for(var l=0;l<uo.length;l++){var d=uo[l];d.blockedOn===r&&(d.blockedOn=null)}for(;0<uo.length&&(l=uo[0],l.blockedOn===null);)SE(l),l.blockedOn===null&&uo.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var g=l[d],y=l[d+1],C=g[Jt]||null;if(typeof y=="function")C||_E(l);else if(C){var O=null;if(y&&y.hasAttribute("formAction")){if(g=y,C=y[Jt]||null)O=C.formAction;else if(v1(g)!==null)continue}else O=C.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),_E(l)}}}function CE(){function r(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function o(){g!==null&&(g(),g=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),g!==null&&(g(),g=null)}}}function b1(r){this._internalRoot=r}md.prototype.render=b1.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));var l=o.current,d=ii();gE(l,d,r,o,null,null)},md.prototype.unmount=b1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;gE(r.current,2,null,r,null,null),Xf(),o[Gn]=null}};function md(r){this._internalRoot=r}md.prototype.unstable_scheduleHydration=function(r){if(r){var o=zr();r={blockedOn:null,target:r,priority:o};for(var l=0;l<uo.length&&o!==0&&o<uo[l].priority;l++);uo.splice(l,0,r),l===0&&SE(r)}};var AE=t.version;if(AE!=="19.2.0")throw Error(i(527,AE,"19.2.0"));H.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(o),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var Gw={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gd.isDisabled&&gd.supportsFiber)try{ur=gd.inject(Gw),Wt=gd}catch{}}return Bl.createRoot=function(r,o){if(!u(r))throw Error(i(299));var l=!1,d="",g=kb,y=Lb,C=Fb;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=pE(r,1,!1,null,null,l,d,null,g,y,C,CE),r[Gn]=o.current,e1(r),new b1(o)},Bl.hydrateRoot=function(r,o,l){if(!u(r))throw Error(i(299));var d=!1,g="",y=kb,C=Lb,O=Fb,j=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(O=l.onRecoverableError),l.formState!==void 0&&(j=l.formState)),o=pE(r,1,!0,o,l??null,d,g,j,y,C,O,CE),o.context=mE(null),l=o.current,d=ii(),d=Ou(d),g=Hu(d),g.callback=null,qu(l,g,d),l=d,o.current.lanes=l,ci(o,l),yr(o),r[Gn]=o.current,e1(r),new md(o)},Bl.version="19.2.0",Bl}var IE;function nD(){if(IE)return S1.exports;IE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),S1.exports=tD(),S1.exports}var oS=nD();const iD=da(oS);var rD=Object.defineProperty,uD=Object.defineProperties,oD=Object.getOwnPropertyDescriptors,jE=Object.getOwnPropertySymbols,aD=Object.prototype.hasOwnProperty,sD=Object.prototype.propertyIsEnumerable,Pm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),PE=(e,t,n)=>t in e?rD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oi=(e,t)=>{for(var n in t||(t={}))aD.call(t,n)&&PE(e,n,t[n]);if(jE)for(var n of jE(t))sD.call(t,n)&&PE(e,n,t[n]);return e},fc=(e,t)=>uD(e,oD(t)),zd=function(e,t){this[0]=e,this[1]=t},lD=(e,t,n)=>{var i=(s,c,f,h)=>{try{var p=n[s](c),m=(c=p.value)instanceof zd,v=p.done;Promise.resolve(m?c[0]:c).then(b=>m?i(s==="return"?s:"next",c[1]?{done:b.done,value:b.value}:b,f,h):f({value:b,done:v})).catch(b=>i("throw",b,f,h))}catch(b){h(b)}},u=s=>a[s]=c=>new Promise((f,h)=>i(s,c,f,h)),a={};return n=n.apply(e,t),a[Pm("asyncIterator")]=()=>a,u("next"),u("throw"),u("return"),a},cD=(e,t,n)=>(t=e[Pm("asyncIterator")])?t.call(e):(e=e[Pm("iterator")](),t={},n=(i,u)=>(u=e[i])&&(t[i]=a=>new Promise((s,c,f)=>(a=u.call(e,a),f=a.done,Promise.resolve(a.value).then(h=>s({value:h,done:f}),c)))),n("next"),n("return"),t);function VE(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function fD(e){return new Promise((t,n)=>{const i=e.subscribe({next(u){t(u),i.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function aS(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function sS(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function dD(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),i=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),i.value}async function $E(e){const t=await e;return sS(t)?dD(t):aS(t)?fD(t):t}const hD="modulepreload",pD=function(e){return"/graphiql/"+e},BE={},Je=function(t,n,i){let u=Promise.resolve();if(n&&n.length>0){let s=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));u=s(n.map(h=>{if(h=pD(h),h in BE)return;BE[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":hD,p||(v.as="script"),v.crossOrigin="",v.href=h,f&&v.setAttribute("nonce",f),document.head.appendChild(v),p)return new Promise((b,x)=>{v.addEventListener("load",b),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return u.then(s=>{for(const c of s||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})};function nt(e,t){if(!!!e)throw new Error(t)}function vu(e){return typeof e=="object"&&e!==null}function O0(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const mD=/\r\n|[\n\r]/g;function Vm(e,t){let n=0,i=1;for(const u of e.body.matchAll(mD)){if(typeof u.index=="number"||O0(!1),u.index>=t)break;n=u.index+u[0].length,i+=1}return{line:i,column:t+1-n}}function gD(e){return lS(e.source,Vm(e.source,e.start))}function lS(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,u=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=t.line===1?n:0,f=t.column+c,h=`${e.name}:${s}:${f}
|
|
51
|
+
`,p=i.split(/\r\n|[\n\r]/g),m=p[u];if(m.length>120){const v=Math.floor(f/80),b=f%80,x=[];for(let S=0;S<m.length;S+=80)x.push(m.slice(S,S+80));return h+UE([[`${s} |`,x[0]],...x.slice(1,v+1).map(S=>["|",S]),["|","^".padStart(b)],["|",x[v+1]]])}return h+UE([[`${s-1} |`,p[u-1]],[`${s} |`,m],["|","^".padStart(f)],[`${s+1} |`,p[u+1]]])}function UE(e){const t=e.filter(([i,u])=>u!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,u])=>i.padStart(n)+(u?" "+u:"")).join(`
|
|
52
|
+
`)}function vD(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class tt extends Error{constructor(t,...n){var i,u,a;const{nodes:s,source:c,positions:f,path:h,originalError:p,extensions:m}=vD(n);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=p??void 0,this.nodes=zE(Array.isArray(s)?s:s?[s]:void 0);const v=zE((i=this.nodes)===null||i===void 0?void 0:i.map(x=>x.loc).filter(x=>x!=null));this.source=c??(v==null||(u=v[0])===null||u===void 0?void 0:u.source),this.positions=f??(v==null?void 0:v.map(x=>x.start)),this.locations=f&&c?f.map(x=>Vm(c,x)):v==null?void 0:v.map(x=>Vm(x.source,x.start));const b=vu(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=m??b)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,tt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
53
|
+
|
|
54
|
+
`+gD(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
55
|
+
|
|
56
|
+
`+lS(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function zE(e){return e===void 0||e.length===0?void 0:e}function ln(e,t,n){return new tt(`Syntax Error: ${n}`,{source:e,positions:[t]})}let yD=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},cS=class{constructor(t,n,i,u,a,s){this.kind=t,this.start=n,this.end=i,this.line=u,this.column=a,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const fS={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},bD=new Set(Object.keys(fS));function $m(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&bD.has(t)}var Ci;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Ci||(Ci={}));var Ae;(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"})(Ae||(Ae={}));var X;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(X||(X={}));function Bm(e){return e===9||e===32}function dc(e){return e>=48&&e<=57}function dS(e){return e>=97&&e<=122||e>=65&&e<=90}function l2(e){return dS(e)||e===95}function hS(e){return dS(e)||dc(e)||e===95}function ED(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,u=-1;for(let s=0;s<e.length;++s){var a;const c=e[s],f=xD(c);f!==c.length&&(i=(a=i)!==null&&a!==void 0?a:s,u=s,s!==0&&f<n&&(n=f))}return e.map((s,c)=>c===0?s:s.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,u+1)}function xD(e){let t=0;for(;t<e.length&&Bm(e.charCodeAt(t));)++t;return t}function SD(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),u=i.length===1,a=i.length>1&&i.slice(1).every(b=>b.length===0||Bm(b.charCodeAt(0))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,f=e.endsWith("\\"),h=c||f,p=!u||e.length>70||h||a||s;let m="";const v=u&&Bm(e.charCodeAt(0));return(p&&!v||a)&&(m+=`
|
|
57
|
+
`),m+=n,(p||h)&&(m+=`
|
|
58
|
+
`),'"""'+m+'"""'}var ce;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(ce||(ce={}));class TD{constructor(t){const n=new cS(ce.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==ce.EOF)do if(t.next)t=t.next;else{const n=CD(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===ce.COMMENT);return t}}function _D(e){return e===ce.BANG||e===ce.DOLLAR||e===ce.AMP||e===ce.PAREN_L||e===ce.PAREN_R||e===ce.SPREAD||e===ce.COLON||e===ce.EQUALS||e===ce.AT||e===ce.BRACKET_L||e===ce.BRACKET_R||e===ce.BRACE_L||e===ce.PIPE||e===ce.BRACE_R}function Ps(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function R0(e,t){return pS(e.charCodeAt(t))&&mS(e.charCodeAt(t+1))}function pS(e){return e>=55296&&e<=56319}function mS(e){return e>=56320&&e<=57343}function ua(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return ce.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Gt(e,t,n,i,u){const a=e.line,s=1+n-e.lineStart;return new cS(t,n,i,a,s,u)}function CD(e,t){const n=e.source.body,i=n.length;let u=t;for(;u<i;){const a=n.charCodeAt(u);switch(a){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:n.charCodeAt(u+1)===10?u+=2:++u,++e.line,e.lineStart=u;continue;case 35:return AD(e,u);case 33:return Gt(e,ce.BANG,u,u+1);case 36:return Gt(e,ce.DOLLAR,u,u+1);case 38:return Gt(e,ce.AMP,u,u+1);case 40:return Gt(e,ce.PAREN_L,u,u+1);case 41:return Gt(e,ce.PAREN_R,u,u+1);case 46:if(n.charCodeAt(u+1)===46&&n.charCodeAt(u+2)===46)return Gt(e,ce.SPREAD,u,u+3);break;case 58:return Gt(e,ce.COLON,u,u+1);case 61:return Gt(e,ce.EQUALS,u,u+1);case 64:return Gt(e,ce.AT,u,u+1);case 91:return Gt(e,ce.BRACKET_L,u,u+1);case 93:return Gt(e,ce.BRACKET_R,u,u+1);case 123:return Gt(e,ce.BRACE_L,u,u+1);case 124:return Gt(e,ce.PIPE,u,u+1);case 125:return Gt(e,ce.BRACE_R,u,u+1);case 34:return n.charCodeAt(u+1)===34&&n.charCodeAt(u+2)===34?MD(e,u):DD(e,u)}if(dc(a)||a===45)return wD(e,u,a);if(l2(a))return kD(e,u);throw ln(e.source,u,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Ps(a)||R0(n,u)?`Unexpected character: ${ua(e,u)}.`:`Invalid character: ${ua(e,u)}.`)}return Gt(e,ce.EOF,i,i)}function AD(e,t){const n=e.source.body,i=n.length;let u=t+1;for(;u<i;){const a=n.charCodeAt(u);if(a===10||a===13)break;if(Ps(a))++u;else if(R0(n,u))u+=2;else break}return Gt(e,ce.COMMENT,t,u,n.slice(t+1,u))}function wD(e,t,n){const i=e.source.body;let u=t,a=n,s=!1;if(a===45&&(a=i.charCodeAt(++u)),a===48){if(a=i.charCodeAt(++u),dc(a))throw ln(e.source,u,`Invalid number, unexpected digit after 0: ${ua(e,u)}.`)}else u=A1(e,u,a),a=i.charCodeAt(u);if(a===46&&(s=!0,a=i.charCodeAt(++u),u=A1(e,u,a),a=i.charCodeAt(u)),(a===69||a===101)&&(s=!0,a=i.charCodeAt(++u),(a===43||a===45)&&(a=i.charCodeAt(++u)),u=A1(e,u,a),a=i.charCodeAt(u)),a===46||l2(a))throw ln(e.source,u,`Invalid number, expected digit but got: ${ua(e,u)}.`);return Gt(e,s?ce.FLOAT:ce.INT,t,u,i.slice(t,u))}function A1(e,t,n){if(!dc(n))throw ln(e.source,t,`Invalid number, expected digit but got: ${ua(e,t)}.`);const i=e.source.body;let u=t+1;for(;dc(i.charCodeAt(u));)++u;return u}function DD(e,t){const n=e.source.body,i=n.length;let u=t+1,a=u,s="";for(;u<i;){const c=n.charCodeAt(u);if(c===34)return s+=n.slice(a,u),Gt(e,ce.STRING,t,u+1,s);if(c===92){s+=n.slice(a,u);const f=n.charCodeAt(u+1)===117?n.charCodeAt(u+2)===123?ND(e,u):OD(e,u):RD(e,u);s+=f.value,u+=f.size,a=u;continue}if(c===10||c===13)break;if(Ps(c))++u;else if(R0(n,u))u+=2;else throw ln(e.source,u,`Invalid character within String: ${ua(e,u)}.`)}throw ln(e.source,u,"Unterminated string.")}function ND(e,t){const n=e.source.body;let i=0,u=3;for(;u<12;){const a=n.charCodeAt(t+u++);if(a===125){if(u<5||!Ps(i))break;return{value:String.fromCodePoint(i),size:u}}if(i=i<<4|Yl(a),i<0)break}throw ln(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+u)}".`)}function OD(e,t){const n=e.source.body,i=HE(n,t+2);if(Ps(i))return{value:String.fromCodePoint(i),size:6};if(pS(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const u=HE(n,t+8);if(mS(u))return{value:String.fromCodePoint(i,u),size:12}}throw ln(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function HE(e,t){return Yl(e.charCodeAt(t))<<12|Yl(e.charCodeAt(t+1))<<8|Yl(e.charCodeAt(t+2))<<4|Yl(e.charCodeAt(t+3))}function Yl(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function RD(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:`
|
|
59
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw ln(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function MD(e,t){const n=e.source.body,i=n.length;let u=e.lineStart,a=t+3,s=a,c="";const f=[];for(;a<i;){const h=n.charCodeAt(a);if(h===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){c+=n.slice(s,a),f.push(c);const p=Gt(e,ce.BLOCK_STRING,t,a+3,ED(f).join(`
|
|
60
|
+
`));return e.line+=f.length-1,e.lineStart=u,p}if(h===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){c+=n.slice(s,a),s=a+1,a+=4;continue}if(h===10||h===13){c+=n.slice(s,a),f.push(c),h===13&&n.charCodeAt(a+1)===10?a+=2:++a,c="",s=a,u=a;continue}if(Ps(h))++a;else if(R0(n,a))a+=2;else throw ln(e.source,a,`Invalid character within String: ${ua(e,a)}.`)}throw ln(e.source,a,"Unterminated string.")}function kD(e,t){const n=e.source.body,i=n.length;let u=t+1;for(;u<i;){const a=n.charCodeAt(u);if(hS(a))++u;else break}return Gt(e,ce.NAME,t,u,n.slice(t,u))}const LD=10,gS=2;function ye(e){return M0(e,[])}function M0(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return FD(e,t);default:return String(e)}}function FD(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(ID(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:M0(i,n)}else if(Array.isArray(e))return PD(e,n);return jD(e,n)}function ID(e){return typeof e.toJSON=="function"}function jD(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>gS?"["+VD(e)+"]":"{ "+n.map(([u,a])=>u+": "+M0(a,t)).join(", ")+" }"}function PD(e,t){if(e.length===0)return"[]";if(t.length>gS)return"[Array]";const n=Math.min(LD,e.length),i=e.length-n,u=[];for(let a=0;a<n;++a)u.push(M0(e[a],t));return i===1?u.push("... 1 more item"):i>1&&u.push(`... ${i} more items`),"["+u.join(", ")+"]"}function VD(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const $D=globalThis.process&&!0,Ji=$D?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;const u=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(u===a){const s=ye(t);throw new Error(`Cannot use ${u} "${s}" from another module or realm.
|
|
61
|
+
|
|
62
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
63
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
64
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
65
|
+
|
|
66
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
67
|
+
|
|
68
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
69
|
+
versions may have different capabilities and behavior. The data from one
|
|
70
|
+
version used in the function from another could produce confusing and
|
|
71
|
+
spurious results.`)}}return!1};class vS{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||nt(!1,`Body must be a string. Received: ${ye(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||nt(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nt(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function BD(e){return Ji(e,vS)}function ha(e,t){const n=new yS(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function UD(e,t){const n=new yS(e,t);n.expectToken(ce.SOF);const i=n.parseValueLiteral(!1);return n.expectToken(ce.EOF),i}class yS{constructor(t,n={}){const i=BD(t)?t:new vS(t);this._lexer=new TD(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(ce.NAME);return this.node(t,{kind:X.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:X.DOCUMENT,definitions:this.many(ce.SOF,this.parseDefinition,ce.EOF)})}parseDefinition(){if(this.peek(ce.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===ce.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw ln(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(ce.BRACE_L))return this.node(t,{kind:X.OPERATION_DEFINITION,operation:Ci.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(ce.NAME)&&(i=this.parseName()),this.node(t,{kind:X.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(ce.NAME);switch(t.value){case"query":return Ci.QUERY;case"mutation":return Ci.MUTATION;case"subscription":return Ci.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(ce.PAREN_L,this.parseVariableDefinition,ce.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:X.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ce.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ce.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(ce.DOLLAR),this.node(t,{kind:X.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:X.SELECTION_SET,selections:this.many(ce.BRACE_L,this.parseSelection,ce.BRACE_R)})}parseSelection(){return this.peek(ce.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let i,u;return this.expectOptionalToken(ce.COLON)?(i=n,u=this.parseName()):u=n,this.node(t,{kind:X.FIELD,alias:i,name:u,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ce.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(ce.PAREN_L,n,ce.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(ce.COLON),this.node(n,{kind:X.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(ce.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(ce.NAME)?this.node(t,{kind:X.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:X.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:X.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:X.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case ce.BRACKET_L:return this.parseList(t);case ce.BRACE_L:return this.parseObject(t);case ce.INT:return this.advanceLexer(),this.node(n,{kind:X.INT,value:n.value});case ce.FLOAT:return this.advanceLexer(),this.node(n,{kind:X.FLOAT,value:n.value});case ce.STRING:case ce.BLOCK_STRING:return this.parseStringLiteral();case ce.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:X.BOOLEAN,value:!0});case"false":return this.node(n,{kind:X.BOOLEAN,value:!1});case"null":return this.node(n,{kind:X.NULL});default:return this.node(n,{kind:X.ENUM,value:n.value})}case ce.DOLLAR:if(t)if(this.expectToken(ce.DOLLAR),this._lexer.token.kind===ce.NAME){const i=this._lexer.token.value;throw ln(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:X.STRING,value:t.value,block:t.kind===ce.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:X.LIST,values:this.any(ce.BRACKET_L,n,ce.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:X.OBJECT,fields:this.any(ce.BRACE_L,n,ce.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,i=this.parseName();return this.expectToken(ce.COLON),this.node(n,{kind:X.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(ce.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(ce.AT),this.node(n,{kind:X.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(ce.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(ce.BRACKET_R),n=this.node(t,{kind:X.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(ce.BANG)?this.node(t,{kind:X.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:X.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ce.STRING)||this.peek(ce.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),u=this.many(ce.BRACE_L,this.parseOperationTypeDefinition,ce.BRACE_R);return this.node(t,{kind:X.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:u})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(ce.COLON);const i=this.parseNamedType();return this.node(t,{kind:X.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),u=this.parseConstDirectives();return this.node(t,{kind:X.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:u})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),u=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:X.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:u,directives:a,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ce.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ce.BRACE_L,this.parseFieldDefinition,ce.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),u=this.parseArgumentDefs();this.expectToken(ce.COLON);const a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:X.FIELD_DEFINITION,description:n,name:i,arguments:u,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(ce.PAREN_L,this.parseInputValueDef,ce.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(ce.COLON);const u=this.parseTypeReference();let a;this.expectOptionalToken(ce.EQUALS)&&(a=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:X.INPUT_VALUE_DEFINITION,description:n,name:i,type:u,defaultValue:a,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),u=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:X.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:u,directives:a,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),u=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:X.UNION_TYPE_DEFINITION,description:n,name:i,directives:u,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(ce.EQUALS)?this.delimitedMany(ce.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),u=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:X.ENUM_TYPE_DEFINITION,description:n,name:i,directives:u,values:a})}parseEnumValuesDefinition(){return this.optionalMany(ce.BRACE_L,this.parseEnumValueDefinition,ce.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),u=this.parseConstDirectives();return this.node(t,{kind:X.ENUM_VALUE_DEFINITION,description:n,name:i,directives:u})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ln(this._lexer.source,this._lexer.token.start,`${vd(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),u=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:X.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:u,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(ce.BRACE_L,this.parseInputValueDef,ce.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===ce.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(ce.BRACE_L,this.parseOperationTypeDefinition,ce.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:X.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:X.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&u.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:X.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:u,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&u.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:X.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:u,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),u=this.parseUnionMemberTypes();if(i.length===0&&u.length===0)throw this.unexpected();return this.node(t,{kind:X.UNION_TYPE_EXTENSION,name:n,directives:i,types:u})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),u=this.parseEnumValuesDefinition();if(i.length===0&&u.length===0)throw this.unexpected();return this.node(t,{kind:X.ENUM_TYPE_EXTENSION,name:n,directives:i,values:u})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),u=this.parseInputFieldsDefinition();if(i.length===0&&u.length===0)throw this.unexpected();return this.node(t,{kind:X.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:u})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ce.AT);const i=this.parseName(),u=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:X.DIRECTIVE_DEFINITION,description:n,name:i,arguments:u,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(ce.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ae,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new yD(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw ln(this._lexer.source,n.start,`Expected ${bS(t)}, found ${vd(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===ce.NAME&&n.value===t)this.advanceLexer();else throw ln(this._lexer.source,n.start,`Expected "${t}", found ${vd(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===ce.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return ln(this._lexer.source,n.start,`Unexpected ${vd(n)}.`)}any(t,n,i){this.expectToken(t);const u=[];for(;!this.expectOptionalToken(i);)u.push(n.call(this));return u}optionalMany(t,n,i){if(this.expectOptionalToken(t)){const u=[];do u.push(n.call(this));while(!this.expectOptionalToken(i));return u}return[]}many(t,n,i){this.expectToken(t);const u=[];do u.push(n.call(this));while(!this.expectOptionalToken(i));return u}delimitedMany(t,n){this.expectOptionalToken(t);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==ce.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw ln(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function vd(e){const t=e.value;return bS(e.kind)+(t!=null?` "${t}"`:"")}function bS(e){return _D(e)?`"${e}"`:e}const zD=5;function HD(e,t){const[n,i]=t?[e,t]:[void 0,e];let u=" Did you mean ";n&&(u+=n+" ");const a=i.map(f=>`"${f}"`);switch(a.length){case 0:return"";case 1:return u+a[0]+"?";case 2:return u+a[0]+" or "+a[1]+"?"}const s=a.slice(0,zD),c=s.pop();return u+s.join(", ")+", or "+c+"?"}function qE(e){return e}function ES(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function Yo(e,t,n){const i=Object.create(null);for(const u of e)i[t(u)]=n(u);return i}function k0(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function qD(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let u=e.charCodeAt(n),a=t.charCodeAt(i);if(yd(u)&&yd(a)){let s=0;do++n,s=s*10+u-Um,u=e.charCodeAt(n);while(yd(u)&&s>0);let c=0;do++i,c=c*10+a-Um,a=t.charCodeAt(i);while(yd(a)&&c>0);if(s<c)return-1;if(s>c)return 1}else{if(u<a)return-1;if(u>a)return 1;++n,++i}}return e.length-t.length}const Um=48,GD=57;function yd(e){return!isNaN(e)&&Um<=e&&e<=GD}function YD(e,t){const n=Object.create(null),i=new QD(e),u=Math.floor(e.length*.4)+1;for(const a of t){const s=i.measure(a,u);s!==void 0&&(n[a]=s)}return Object.keys(n).sort((a,s)=>{const c=n[a]-n[s];return c!==0?c:qD(a,s)})}class QD{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=GE(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const i=t.toLowerCase();if(this._inputLowerCase===i)return 1;let u=GE(i),a=this._inputArray;if(u.length<a.length){const p=u;u=a,a=p}const s=u.length,c=a.length;if(s-c>n)return;const f=this._rows;for(let p=0;p<=c;p++)f[0][p]=p;for(let p=1;p<=s;p++){const m=f[(p-1)%3],v=f[p%3];let b=v[0]=p;for(let x=1;x<=c;x++){const S=u[p-1]===a[x-1]?0:1;let _=Math.min(m[x]+1,v[x-1]+1,m[x-1]+S);if(p>1&&x>1&&u[p-1]===a[x-2]&&u[p-2]===a[x-1]){const T=f[(p-2)%3][x-2];_=Math.min(_,T+1)}_<b&&(b=_),v[x]=_}if(b>n)return}const h=f[s%3][c];return h<=n?h:void 0}}function GE(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function Mi(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}function XD(e){return`"${e.replace(ZD,WD)}"`}const ZD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function WD(e){return KD[e.charCodeAt(0)]}const KD=["\\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"],ds=Object.freeze({});function Wi(e,t,n=fS){const i=new Map;for(const T of Object.values(X))i.set(T,n0(t,T));let u,a=Array.isArray(e),s=[e],c=-1,f=[],h=e,p,m;const v=[],b=[];do{c++;const T=c===s.length,D=T&&f.length!==0;if(T){if(p=b.length===0?void 0:v[v.length-1],h=m,m=b.pop(),D)if(a){h=h.slice();let N=0;for(const[R,M]of f){const I=R-N;M===null?(h.splice(I,1),N++):h[I]=M}}else{h={...h};for(const[N,R]of f)h[N]=R}c=u.index,s=u.keys,f=u.edits,a=u.inArray,u=u.prev}else if(m){if(p=a?c:s[c],h=m[p],h==null)continue;v.push(p)}let w;if(!Array.isArray(h)){var x,S;$m(h)||nt(!1,`Invalid AST Node: ${ye(h)}.`);const N=T?(x=i.get(h.kind))===null||x===void 0?void 0:x.leave:(S=i.get(h.kind))===null||S===void 0?void 0:S.enter;if(w=N==null?void 0:N.call(t,h,p,m,v,b),w===ds)break;if(w===!1){if(!T){v.pop();continue}}else if(w!==void 0&&(f.push([p,w]),!T))if($m(w))h=w;else{v.pop();continue}}if(w===void 0&&D&&f.push([p,h]),T)v.pop();else{var _;u={inArray:a,index:c,keys:s,edits:f,prev:u},a=Array.isArray(h),s=a?h:(_=n[h.kind])!==null&&_!==void 0?_:[],c=-1,f=[],m&&b.push(m),m=h}}while(u!==void 0);return f.length!==0?f[f.length-1][1]:e}function bZ(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const i of Object.values(X)){let u=!1;const a=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let f=0;f<e.length;++f){const{enter:h,leave:p}=n0(e[f],i);u||(u=h!=null||p!=null),a[f]=h,s[f]=p}if(!u)continue;const c={enter(...f){const h=f[0];for(let m=0;m<e.length;m++)if(t[m]===null){var p;const v=(p=a[m])===null||p===void 0?void 0:p.apply(e[m],f);if(v===!1)t[m]=h;else if(v===ds)t[m]=ds;else if(v!==void 0)return v}},leave(...f){const h=f[0];for(let m=0;m<e.length;m++)if(t[m]===null){var p;const v=(p=s[m])===null||p===void 0?void 0:p.apply(e[m],f);if(v===ds)t[m]=ds;else if(v!==void 0&&v!==!1)return v}else t[m]===h&&(t[m]=null)}};n[i]=c}return n}function n0(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function ai(e){return Wi(e,eN)}const JD=80,eN={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>be(e.definitions,`
|
|
72
|
+
|
|
73
|
+
`)},OperationDefinition:{leave(e){const t=qe("(",be(e.variableDefinitions,", "),")"),n=be([e.operation,be([e.name,t]),be(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+qe(" = ",n)+qe(" ",be(i," "))},SelectionSet:{leave:({selections:e})=>qi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:u}){const a=qe("",e,": ")+t;let s=a+qe("(",be(n,", "),")");return s.length>JD&&(s=a+qe(`(
|
|
74
|
+
`,Hd(be(n,`
|
|
75
|
+
`)),`
|
|
76
|
+
)`)),be([s,be(i," "),u]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+qe(" ",be(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>be(["...",qe("on ",e),be(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:u})=>`fragment ${e}${qe("(",be(n,", "),")")} on ${t} ${qe("",be(i," ")," ")}`+u},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?SD(e):XD(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+be(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+be(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+qe("(",be(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>qe("",e,`
|
|
77
|
+
`)+be(["schema",be(t," "),qi(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>qe("",e,`
|
|
78
|
+
`)+be(["scalar",t,be(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:u})=>qe("",e,`
|
|
79
|
+
`)+be(["type",t,qe("implements ",be(n," & ")),be(i," "),qi(u)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:u})=>qe("",e,`
|
|
80
|
+
`)+t+(YE(n)?qe(`(
|
|
81
|
+
`,Hd(be(n,`
|
|
82
|
+
`)),`
|
|
83
|
+
)`):qe("(",be(n,", "),")"))+": "+i+qe(" ",be(u," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:u})=>qe("",e,`
|
|
84
|
+
`)+be([t+": "+n,qe("= ",i),be(u," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:u})=>qe("",e,`
|
|
85
|
+
`)+be(["interface",t,qe("implements ",be(n," & ")),be(i," "),qi(u)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>qe("",e,`
|
|
86
|
+
`)+be(["union",t,be(n," "),qe("= ",be(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>qe("",e,`
|
|
87
|
+
`)+be(["enum",t,be(n," "),qi(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>qe("",e,`
|
|
88
|
+
`)+be([t,be(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>qe("",e,`
|
|
89
|
+
`)+be(["input",t,be(n," "),qi(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:u})=>qe("",e,`
|
|
90
|
+
`)+"directive @"+t+(YE(n)?qe(`(
|
|
91
|
+
`,Hd(be(n,`
|
|
92
|
+
`)),`
|
|
93
|
+
)`):qe("(",be(n,", "),")"))+(i?" repeatable":"")+" on "+be(u," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>be(["extend schema",be(e," "),qi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>be(["extend scalar",e,be(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>be(["extend type",e,qe("implements ",be(t," & ")),be(n," "),qi(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>be(["extend interface",e,qe("implements ",be(t," & ")),be(n," "),qi(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>be(["extend union",e,be(t," "),qe("= ",be(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>be(["extend enum",e,be(t," "),qi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>be(["extend input",e,be(t," "),qi(n)]," ")}};function be(e,t=""){var n;return(n=e==null?void 0:e.filter(i=>i).join(t))!==null&&n!==void 0?n:""}function qi(e){return qe(`{
|
|
94
|
+
`,Hd(be(e,`
|
|
95
|
+
`)),`
|
|
96
|
+
}`)}function qe(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Hd(e){return qe(" ",e.replace(/\n/g,`
|
|
97
|
+
`))}function YE(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
|
|
98
|
+
`)))!==null&&t!==void 0?t:!1}function zm(e,t){switch(e.kind){case X.NULL:return null;case X.INT:return parseInt(e.value,10);case X.FLOAT:return parseFloat(e.value);case X.STRING:case X.ENUM:case X.BOOLEAN:return e.value;case X.LIST:return e.values.map(n=>zm(n,t));case X.OBJECT:return Yo(e.fields,n=>n.name.value,n=>zm(n.value,t));case X.VARIABLE:return t==null?void 0:t[e.name.value]}}function er(e){if(e!=null||nt(!1,"Must provide name."),typeof e=="string"||nt(!1,"Expected name to be a string."),e.length===0)throw new tt("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!hS(e.charCodeAt(t)))throw new tt(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!l2(e.charCodeAt(0)))throw new tt(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function tN(e){if(e==="true"||e==="false"||e==="null")throw new tt(`Enum values cannot be named: ${e}`);return er(e)}function c2(e){return yo(e)||St(e)||Dt(e)||Ni(e)||si(e)||hn(e)||Mn(e)||Vt(e)}function yo(e){return Ji(e,pa)}function St(e){return Ji(e,kr)}function nN(e){if(!St(e))throw new Error(`Expected ${ye(e)} to be a GraphQL Object type.`);return e}function Dt(e){return Ji(e,xs)}function iN(e){if(!Dt(e))throw new Error(`Expected ${ye(e)} to be a GraphQL Interface type.`);return e}function Ni(e){return Ji(e,OS)}function si(e){return Ji(e,Vs)}function hn(e){return Ji(e,p2)}function Mn(e){return Ji(e,Un)}function Vt(e){return Ji(e,Ge)}function _i(e){return yo(e)||si(e)||hn(e)||f2(e)&&_i(e.ofType)}function ea(e){return yo(e)||St(e)||Dt(e)||Ni(e)||si(e)||f2(e)&&ea(e.ofType)}function L0(e){return yo(e)||si(e)}function ho(e){return St(e)||Dt(e)||Ni(e)}function mu(e){return Dt(e)||Ni(e)}function rN(e){if(!mu(e))throw new Error(`Expected ${ye(e)} to be a GraphQL abstract type.`);return e}class Un{constructor(t){c2(t)||nt(!1,`Expected ${ye(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Ge{constructor(t){xS(t)||nt(!1,`Expected ${ye(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function f2(e){return Mn(e)||Vt(e)}function xS(e){return c2(e)&&!Vt(e)}function uN(e){if(!xS(e))throw new Error(`Expected ${ye(e)} to be a GraphQL nullable type.`);return e}function SS(e){if(e)return Vt(e)?e.ofType:e}function d2(e){return yo(e)||St(e)||Dt(e)||Ni(e)||si(e)||hn(e)}function Nn(e){if(e){let t=e;for(;f2(t);)t=t.ofType;return t}}function TS(e){return typeof e=="function"?e():e}function _S(e){return typeof e=="function"?e():e}class pa{constructor(t){var n,i,u,a;const s=(n=t.parseValue)!==null&&n!==void 0?n:qE;this.name=er(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:qE,this.parseValue=s,this.parseLiteral=(u=t.parseLiteral)!==null&&u!==void 0?u:(c,f)=>s(zm(c,f)),this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||nt(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ye(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||nt(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||nt(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class kr{constructor(t){var n;this.name=er(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>AS(t),this._interfaces=()=>CS(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||nt(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ye(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:DS(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function CS(e){var t;const n=TS((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||nt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function AS(e){const t=_S(e.fields);return Es(t)||nt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),k0(t,(n,i)=>{var u;Es(n)||nt(!1,`${e.name}.${i} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||nt(!1,`${e.name}.${i} field resolver must be a function if provided, but got: ${ye(n.resolve)}.`);const a=(u=n.args)!==null&&u!==void 0?u:{};return Es(a)||nt(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:er(i),description:n.description,type:n.type,args:wS(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Mi(n.extensions),astNode:n.astNode}})}function wS(e){return Object.entries(e).map(([t,n])=>({name:er(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Mi(n.extensions),astNode:n.astNode}))}function Es(e){return vu(e)&&!Array.isArray(e)}function DS(e){return k0(e,t=>({description:t.description,type:t.type,args:NS(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function NS(e){return Yo(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function h2(e){return Vt(e.type)&&e.defaultValue===void 0}class xs{constructor(t){var n;this.name=er(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=AS.bind(void 0,t),this._interfaces=CS.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||nt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:DS(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class OS{constructor(t){var n;this.name=er(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=oN.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||nt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function oN(e){const t=TS(e.types);return Array.isArray(t)||nt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Vs{constructor(t){var n;this.name=er(t.name),this.description=t.description,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:QE(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=QE(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=ES(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(i=>[i.value,i])));const n=this._valueLookup.get(t);if(n===void 0)throw new tt(`Enum "${this.name}" cannot represent value: ${ye(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const i=ye(t);throw new tt(`Enum "${this.name}" cannot represent non-string value: ${i}.`+bd(this,i))}const n=this.getValue(t);if(n==null)throw new tt(`Value "${t}" does not exist in "${this.name}" enum.`+bd(this,t));return n.value}parseLiteral(t,n){if(t.kind!==X.ENUM){const u=ai(t);throw new tt(`Enum "${this.name}" cannot represent non-enum value: ${u}.`+bd(this,u),{nodes:t})}const i=this.getValue(t.value);if(i==null){const u=ai(t);throw new tt(`Value "${u}" does not exist in "${this.name}" enum.`+bd(this,u),{nodes:t})}return i.value}toConfig(){const t=Yo(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function bd(e,t){const n=e.getValues().map(u=>u.name),i=YD(t,n);return HD("the enum value",i)}function QE(e,t){return Es(t)||nt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,i])=>(Es(i)||nt(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ye(i)}.`),{name:tN(n),description:i.description,value:i.value!==void 0?i.value:n,deprecationReason:i.deprecationReason,extensions:Mi(i.extensions),astNode:i.astNode}))}class p2{constructor(t){var n,i;this.name=er(t.name),this.description=t.description,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(i=t.isOneOf)!==null&&i!==void 0?i:!1,this._fields=aN.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=k0(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function aN(e){const t=_S(e.fields);return Es(t)||nt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),k0(t,(n,i)=>(!("resolve"in n)||nt(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:er(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Mi(n.extensions),astNode:n.astNode}))}function sN(e){return Vt(e.type)&&e.defaultValue===void 0}function Hm(e,t){return e===t?!0:Vt(e)&&Vt(t)||Mn(e)&&Mn(t)?Hm(e.ofType,t.ofType):!1}function qd(e,t,n){return t===n?!0:Vt(n)?Vt(t)?qd(e,t.ofType,n.ofType):!1:Vt(t)?qd(e,t.ofType,n):Mn(n)?Mn(t)?qd(e,t.ofType,n.ofType):!1:Mn(t)?!1:mu(n)&&(Dt(t)||St(t))&&e.isSubType(n,t)}function lN(e,t,n){return t===n?!0:mu(t)?mu(n)?e.getPossibleTypes(t).some(i=>e.isSubType(n,i)):e.isSubType(t,n):mu(n)?e.isSubType(n,t):!1}const w1=2147483647,D1=-2147483648,cN=new pa({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=Pc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new tt(`Int cannot represent non-integer value: ${ye(t)}`);if(n>w1||n<D1)throw new tt("Int cannot represent non 32-bit signed integer value: "+ye(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new tt(`Int cannot represent non-integer value: ${ye(e)}`);if(e>w1||e<D1)throw new tt(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==X.INT)throw new tt(`Int cannot represent non-integer value: ${ai(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>w1||t<D1)throw new tt(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),RS=new pa({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=Pc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new tt(`Float cannot represent non numeric value: ${ye(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new tt(`Float cannot represent non numeric value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==X.FLOAT&&e.kind!==X.INT)throw new tt(`Float cannot represent non numeric value: ${ai(e)}`,e);return parseFloat(e.value)}}),$t=new pa({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=Pc(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new tt(`String cannot represent value: ${ye(e)}`)},parseValue(e){if(typeof e!="string")throw new tt(`String cannot represent a non string value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==X.STRING)throw new tt(`String cannot represent a non string value: ${ai(e)}`,{nodes:e});return e.value}}),cn=new pa({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Pc(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new tt(`Boolean cannot represent a non boolean value: ${ye(t)}`)},parseValue(e){if(typeof e!="boolean")throw new tt(`Boolean cannot represent a non boolean value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==X.BOOLEAN)throw new tt(`Boolean cannot represent a non boolean value: ${ai(e)}`,{nodes:e});return e.value}}),MS=new pa({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=Pc(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new tt(`ID cannot represent value: ${ye(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new tt(`ID cannot represent value: ${ye(e)}`)},parseLiteral(e){if(e.kind!==X.STRING&&e.kind!==X.INT)throw new tt("ID cannot represent a non-string and non-integer value: "+ai(e),{nodes:e});return e.value}}),fN=Object.freeze([$t,cN,RS,cn,MS]);function Pc(e){if(vu(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!vu(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function kS(e){return Ji(e,ma)}class ma{constructor(t){var n,i;this.name=er(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Mi(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||nt(!1,`@${t.name} locations must be an Array.`);const u=(i=t.args)!==null&&i!==void 0?i:{};vu(u)&&!Array.isArray(u)||nt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=wS(u)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:NS(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const dN=new ma({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ae.FIELD,Ae.FRAGMENT_SPREAD,Ae.INLINE_FRAGMENT],args:{if:{type:new Ge(cn),description:"Included when true."}}}),hN=new ma({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ae.FIELD,Ae.FRAGMENT_SPREAD,Ae.INLINE_FRAGMENT],args:{if:{type:new Ge(cn),description:"Skipped when true."}}}),pN="No longer supported",LS=new ma({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ae.FIELD_DEFINITION,Ae.ARGUMENT_DEFINITION,Ae.INPUT_FIELD_DEFINITION,Ae.ENUM_VALUE],args:{reason:{type:$t,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:pN}}}),mN=new ma({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ae.SCALAR],args:{url:{type:new Ge($t),description:"The URL that specifies the behavior of this scalar."}}}),gN=new ma({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ae.INPUT_OBJECT],args:{}}),vN=Object.freeze([dN,hN,LS,mN,gN]);function yN(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function hs(e,t){if(Vt(t)){const n=hs(e,t.ofType);return(n==null?void 0:n.kind)===X.NULL?null:n}if(e===null)return{kind:X.NULL};if(e===void 0)return null;if(Mn(t)){const n=t.ofType;if(yN(e)){const i=[];for(const u of e){const a=hs(u,n);a!=null&&i.push(a)}return{kind:X.LIST,values:i}}return hs(e,n)}if(hn(t)){if(!vu(e))return null;const n=[];for(const i of Object.values(t.getFields())){const u=hs(e[i.name],i.type);u&&n.push({kind:X.OBJECT_FIELD,name:{kind:X.NAME,value:i.name},value:u})}return{kind:X.OBJECT,fields:n}}if(L0(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:X.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const i=String(n);return XE.test(i)?{kind:X.INT,value:i}:{kind:X.FLOAT,value:i}}if(typeof n=="string")return si(t)?{kind:X.ENUM,value:n}:t===MS&&XE.test(n)?{kind:X.INT,value:n}:{kind:X.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ye(n)}.`)}O0(!1,"Unexpected input type: "+ye(t))}const XE=/^-?(?:0|[1-9][0-9]*)$/,m2=new kr({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:$t,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ge(new Un(new Ge(Zi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ge(Zi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Zi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Zi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ge(new Un(new Ge(FS))),resolve:e=>e.getDirectives()}})}),FS=new kr({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
99
|
+
|
|
100
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ge($t),resolve:e=>e.name},description:{type:$t,resolve:e=>e.description},isRepeatable:{type:new Ge(cn),resolve:e=>e.isRepeatable},locations:{type:new Ge(new Un(new Ge(IS))),resolve:e=>e.locations},args:{type:new Ge(new Un(new Ge(F0))),args:{includeDeprecated:{type:cn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),IS=new Vs({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:Ae.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ae.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ae.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ae.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ae.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ae.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ae.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ae.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ae.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ae.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ae.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ae.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ae.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ae.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ae.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ae.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ae.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ae.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ae.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Zi=new kr({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 Ge(VS),resolve(e){if(yo(e))return pt.SCALAR;if(St(e))return pt.OBJECT;if(Dt(e))return pt.INTERFACE;if(Ni(e))return pt.UNION;if(si(e))return pt.ENUM;if(hn(e))return pt.INPUT_OBJECT;if(Mn(e))return pt.LIST;if(Vt(e))return pt.NON_NULL;O0(!1,`Unexpected type: "${ye(e)}".`)}},name:{type:$t,resolve:e=>"name"in e?e.name:void 0},description:{type:$t,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:$t,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Un(new Ge(jS)),args:{includeDeprecated:{type:cn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(St(e)||Dt(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new Un(new Ge(Zi)),resolve(e){if(St(e)||Dt(e))return e.getInterfaces()}},possibleTypes:{type:new Un(new Ge(Zi)),resolve(e,t,n,{schema:i}){if(mu(e))return i.getPossibleTypes(e)}},enumValues:{type:new Un(new Ge(PS)),args:{includeDeprecated:{type:cn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(si(e)){const n=e.getValues();return t?n:n.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new Un(new Ge(F0)),args:{includeDeprecated:{type:cn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(hn(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},ofType:{type:Zi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:cn,resolve:e=>{if(hn(e))return e.isOneOf}}})}),jS=new kr({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 Ge($t),resolve:e=>e.name},description:{type:$t,resolve:e=>e.description},args:{type:new Ge(new Un(new Ge(F0))),args:{includeDeprecated:{type:cn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Ge(Zi),resolve:e=>e.type},isDeprecated:{type:new Ge(cn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:$t,resolve:e=>e.deprecationReason}})}),F0=new kr({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 Ge($t),resolve:e=>e.name},description:{type:$t,resolve:e=>e.description},type:{type:new Ge(Zi),resolve:e=>e.type},defaultValue:{type:$t,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=hs(n,t);return i?ai(i):null}},isDeprecated:{type:new Ge(cn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:$t,resolve:e=>e.deprecationReason}})}),PS=new kr({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 Ge($t),resolve:e=>e.name},description:{type:$t,resolve:e=>e.description},isDeprecated:{type:new Ge(cn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:$t,resolve:e=>e.deprecationReason}})});var pt;(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"})(pt||(pt={}));const VS=new Vs({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:pt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:pt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:pt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:pt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:pt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:pt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:pt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:pt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),hc={name:"__schema",type:new Ge(m2),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},pc={name:"__type",type:Zi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ge($t),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},mc={name:"__typename",type:new Ge($t),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},$S=Object.freeze([m2,FS,IS,Zi,jS,F0,PS,VS]);function bN(e){return $S.some(({name:t})=>e.name===t)}function qm(e){return Ji(e,BS)}function EN(e){if(!qm(e))throw new Error(`Expected ${ye(e)} to be a GraphQL schema.`);return e}class BS{constructor(t){var n,i;this.__validationErrors=t.assumeValid===!0?[]:void 0,vu(t)||nt(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||nt(!1,`"types" must be Array if provided but got: ${ye(t.types)}.`),!t.directives||Array.isArray(t.directives)||nt(!1,`"directives" must be Array if provided but got: ${ye(t.directives)}.`),this.description=t.description,this.extensions=Mi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:vN;const u=new Set(t.types);if(t.types!=null)for(const a of t.types)u.delete(a),Yi(a,u);this._queryType!=null&&Yi(this._queryType,u),this._mutationType!=null&&Yi(this._mutationType,u),this._subscriptionType!=null&&Yi(this._subscriptionType,u);for(const a of this._directives)if(kS(a))for(const s of a.args)Yi(s.type,u);Yi(m2,u),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const a of u){if(a==null)continue;const s=a.name;if(s||nt(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=a,Dt(a)){for(const c of a.getInterfaces())if(Dt(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.interfaces.push(a)}}else if(St(a)){for(const c of a.getInterfaces())if(Dt(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Ci.QUERY:return this.getQueryType();case Ci.MUTATION:return this.getMutationType();case Ci.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Ni(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let i=this._subTypeMap[t.name];if(i===void 0){if(i=Object.create(null),Ni(t))for(const u of t.getTypes())i[u.name]=!0;else{const u=this.getImplementations(t);for(const a of u.objects)i[a.name]=!0;for(const a of u.interfaces)i[a.name]=!0}this._subTypeMap[t.name]=i}return i[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Yi(e,t){const n=Nn(e);if(!t.has(n)){if(t.add(n),Ni(n))for(const i of n.getTypes())Yi(i,t);else if(St(n)||Dt(n)){for(const i of n.getInterfaces())Yi(i,t);for(const i of Object.values(n.getFields())){Yi(i.type,t);for(const u of i.args)Yi(u.type,t)}}else if(hn(n))for(const i of Object.values(n.getFields()))Yi(i.type,t)}return t}function US(e){if(EN(e),e.__validationErrors)return e.__validationErrors;const t=new xN(e);SN(t),TN(t),_N(t);const n=t.getErrors();return e.__validationErrors=n,n}function EZ(e){const t=US(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
101
|
+
|
|
102
|
+
`))}class xN{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const i=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new tt(t,{nodes:i}))}getErrors(){return this._errors}}function SN(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!St(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${ye(n)}.`,(i=N1(t,Ci.QUERY))!==null&&i!==void 0?i:n.astNode)}const u=t.getMutationType();if(u&&!St(u)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ye(u)}.`,(a=N1(t,Ci.MUTATION))!==null&&a!==void 0?a:u.astNode)}const s=t.getSubscriptionType();if(s&&!St(s)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ye(s)}.`,(c=N1(t,Ci.SUBSCRIPTION))!==null&&c!==void 0?c:s.astNode)}}function N1(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var u;return(u=i==null?void 0:i.operationTypes)!==null&&u!==void 0?u:[]}).find(i=>i.operation===t))===null||n===void 0?void 0:n.type}function TN(e){for(const n of e.schema.getDirectives()){if(!kS(n)){e.reportError(`Expected directive but got: ${ye(n)}.`,n==null?void 0:n.astNode);continue}oa(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args)if(oa(e,i),_i(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${ye(i.type)}.`,i.astNode),h2(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[g2(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}function oa(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function _N(e){const t=RN(e),n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!d2(i)){e.reportError(`Expected GraphQL named type but got: ${ye(i)}.`,i.astNode);continue}bN(i)||oa(e,i),St(i)||Dt(i)?(ZE(e,i),WE(e,i)):Ni(i)?wN(e,i):si(i)?DN(e,i):hn(i)&&(NN(e,i),t(i))}}function ZE(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(oa(e,s),!ea(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${ye(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}for(const c of s.args){const f=c.name;if(oa(e,c),!_i(c.type)){var u;e.reportError(`The type of ${t.name}.${s.name}(${f}:) must be Input Type but got: ${ye(c.type)}.`,(u=c.astNode)===null||u===void 0?void 0:u.type)}if(h2(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${s.name}(${f}:) cannot be deprecated.`,[g2(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function WE(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!Dt(i)){e.reportError(`Type ${ye(t)} must only implement Interface types, it cannot implement ${ye(i)}.`,tc(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tc(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,tc(t,i));continue}n[i.name]=!0,AN(e,t,i),CN(e,t,i)}}function CN(e,t,n){const i=t.getFields();for(const f of Object.values(n.getFields())){const h=f.name,p=i[h];if(!p){e.reportError(`Interface field ${n.name}.${h} expected but ${t.name} does not provide it.`,[f.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!qd(e.schema,p.type,f.type)){var u,a;e.reportError(`Interface field ${n.name}.${h} expects type ${ye(f.type)} but ${t.name}.${h} is type ${ye(p.type)}.`,[(u=f.astNode)===null||u===void 0?void 0:u.type,(a=p.astNode)===null||a===void 0?void 0:a.type])}for(const m of f.args){const v=m.name,b=p.args.find(x=>x.name===v);if(!b){e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expected but ${t.name}.${h} does not provide it.`,[m.astNode,p.astNode]);continue}if(!Hm(m.type,b.type)){var s,c;e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expects type ${ye(m.type)} but ${t.name}.${h}(${v}:) is type ${ye(b.type)}.`,[(s=m.astNode)===null||s===void 0?void 0:s.type,(c=b.astNode)===null||c===void 0?void 0:c.type])}}for(const m of p.args){const v=m.name;!f.args.find(x=>x.name===v)&&h2(m)&&e.reportError(`Object field ${t.name}.${h} includes required argument ${v} that is missing from the Interface field ${n.name}.${h}.`,[m.astNode,f.astNode])}}}function AN(e,t,n){const i=t.getInterfaces();for(const u of n.getInterfaces())i.includes(u)||e.reportError(u===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${u.name} because it is implemented by ${n.name}.`,[...tc(n,u),...tc(t,n)])}function wN(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const u of n){if(i[u.name]){e.reportError(`Union type ${t.name} can only include type ${u.name} once.`,KE(t,u.name));continue}i[u.name]=!0,St(u)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ye(u)}.`,KE(t,String(u)))}}function DN(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const i of n)oa(e,i)}function NN(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){if(oa(e,a),!_i(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${ye(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(sN(a)&&a.deprecationReason!=null){var u;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[g2(a.astNode),(u=a.astNode)===null||u===void 0?void 0:u.type])}t.isOneOf&&ON(t,a,e)}}function ON(e,t,n){if(Vt(t.type)){var i;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(i=t.astNode)===null||i===void 0?void 0:i.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function RN(e){const t=Object.create(null),n=[],i=Object.create(null);return u;function u(a){if(t[a.name])return;t[a.name]=!0,i[a.name]=n.length;const s=Object.values(a.getFields());for(const c of s)if(Vt(c.type)&&hn(c.type.ofType)){const f=c.type.ofType,h=i[f.name];if(n.push(c),h===void 0)u(f);else{const p=n.slice(h),m=p.map(v=>v.name).join(".");e.reportError(`Cannot reference Input Object "${f.name}" within itself through a series of non-null fields: "${m}".`,p.map(v=>v.astNode))}n.pop()}i[a.name]=void 0}}function tc(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(a=>{var s;return(s=a.interfaces)!==null&&s!==void 0?s:[]}).filter(a=>a.name.value===t.name)}function KE(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(a=>{var s;return(s=a.types)!==null&&s!==void 0?s:[]}).filter(a=>a.name.value===t)}function g2(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===LS.name)}function gc(e,t){switch(t.kind){case X.LIST_TYPE:{const n=gc(e,t.type);return n&&new Un(n)}case X.NON_NULL_TYPE:{const n=gc(e,t.type);return n&&new Ge(n)}case X.NAMED_TYPE:return e.getType(t.name.value)}}class zS{constructor(t,n,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=i??MN,n&&(_i(n)&&this._inputTypeStack.push(n),ho(n)&&this._parentTypeStack.push(n),ea(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case X.SELECTION_SET:{const u=Nn(this.getType());this._parentTypeStack.push(ho(u)?u:void 0);break}case X.FIELD:{const u=this.getParentType();let a,s;u&&(a=this._getFieldDef(n,u,t),a&&(s=a.type)),this._fieldDefStack.push(a),this._typeStack.push(ea(s)?s:void 0);break}case X.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case X.OPERATION_DEFINITION:{const u=n.getRootType(t.operation);this._typeStack.push(St(u)?u:void 0);break}case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:{const u=t.typeCondition,a=u?gc(n,u):Nn(this.getType());this._typeStack.push(ea(a)?a:void 0);break}case X.VARIABLE_DEFINITION:{const u=gc(n,t.type);this._inputTypeStack.push(_i(u)?u:void 0);break}case X.ARGUMENT:{var i;let u,a;const s=(i=this.getDirective())!==null&&i!==void 0?i:this.getFieldDef();s&&(u=s.args.find(c=>c.name===t.name.value),u&&(a=u.type)),this._argument=u,this._defaultValueStack.push(u?u.defaultValue:void 0),this._inputTypeStack.push(_i(a)?a:void 0);break}case X.LIST:{const u=SS(this.getInputType()),a=Mn(u)?u.ofType:u;this._defaultValueStack.push(void 0),this._inputTypeStack.push(_i(a)?a:void 0);break}case X.OBJECT_FIELD:{const u=Nn(this.getInputType());let a,s;hn(u)&&(s=u.getFields()[t.name.value],s&&(a=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(_i(a)?a:void 0);break}case X.ENUM:{const u=Nn(this.getInputType());let a;si(u)&&(a=u.getValue(t.value)),this._enumValue=a;break}}}leave(t){switch(t.kind){case X.SELECTION_SET:this._parentTypeStack.pop();break;case X.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case X.DIRECTIVE:this._directive=null;break;case X.OPERATION_DEFINITION:case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:this._typeStack.pop();break;case X.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case X.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.LIST:case X.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.ENUM:this._enumValue=null;break}}}function MN(e,t,n){const i=n.name.value;if(i===hc.name&&e.getQueryType()===t)return hc;if(i===pc.name&&e.getQueryType()===t)return pc;if(i===mc.name&&ho(t))return mc;if(St(t)||Dt(t))return t.getFields()[i]}function kN(e,t){return{enter(...n){const i=n[0];e.enter(i);const u=n0(t,i.kind).enter;if(u){const a=u.apply(t,n);return a!==void 0&&(e.leave(i),$m(a)&&e.enter(a)),a}},leave(...n){const i=n[0],u=n0(t,i.kind).leave;let a;return u&&(a=u.apply(t,n)),e.leave(i),a}}}function Ql(e,t,n){if(e){if(e.kind===X.VARIABLE){const i=e.name.value;if(n==null||n[i]===void 0)return;const u=n[i];return u===null&&Vt(t)?void 0:u}if(Vt(t))return e.kind===X.NULL?void 0:Ql(e,t.ofType,n);if(e.kind===X.NULL)return null;if(Mn(t)){const i=t.ofType;if(e.kind===X.LIST){const a=[];for(const s of e.values)if(JE(s,n)){if(Vt(i))return;a.push(null)}else{const c=Ql(s,i,n);if(c===void 0)return;a.push(c)}return a}const u=Ql(e,i,n);return u===void 0?void 0:[u]}if(hn(t)){if(e.kind!==X.OBJECT)return;const i=Object.create(null),u=ES(e.fields,a=>a.name.value);for(const a of Object.values(t.getFields())){const s=u[a.name];if(!s||JE(s.value,n)){if(a.defaultValue!==void 0)i[a.name]=a.defaultValue;else if(Vt(a.type))return;continue}const c=Ql(s.value,a.type,n);if(c===void 0)return;i[a.name]=c}if(t.isOneOf){const a=Object.keys(i);if(a.length!==1||i[a[0]]===null)return}return i}if(L0(t)){let i;try{i=t.parseLiteral(e,n)}catch{return}return i===void 0?void 0:i}O0(!1,"Unexpected input type: "+ye(t))}}function JE(e,t){return e.kind===X.VARIABLE&&(t==null||t[e.name.value]===void 0)}function LN(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",u=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function s(f){return t.inputValueDeprecation?f:""}const c=t.oneOf?"isOneOf":"";return`
|
|
103
|
+
query IntrospectionQuery {
|
|
104
|
+
__schema {
|
|
105
|
+
${a}
|
|
106
|
+
queryType { name kind }
|
|
107
|
+
mutationType { name kind }
|
|
108
|
+
subscriptionType { name kind }
|
|
109
|
+
types {
|
|
110
|
+
...FullType
|
|
111
|
+
}
|
|
112
|
+
directives {
|
|
113
|
+
name
|
|
114
|
+
${n}
|
|
115
|
+
${u}
|
|
116
|
+
locations
|
|
117
|
+
args${s("(includeDeprecated: true)")} {
|
|
118
|
+
...InputValue
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
fragment FullType on __Type {
|
|
125
|
+
kind
|
|
126
|
+
name
|
|
127
|
+
${n}
|
|
128
|
+
${i}
|
|
129
|
+
${c}
|
|
130
|
+
fields(includeDeprecated: true) {
|
|
131
|
+
name
|
|
132
|
+
${n}
|
|
133
|
+
args${s("(includeDeprecated: true)")} {
|
|
134
|
+
...InputValue
|
|
135
|
+
}
|
|
136
|
+
type {
|
|
137
|
+
...TypeRef
|
|
138
|
+
}
|
|
139
|
+
isDeprecated
|
|
140
|
+
deprecationReason
|
|
141
|
+
}
|
|
142
|
+
inputFields${s("(includeDeprecated: true)")} {
|
|
143
|
+
...InputValue
|
|
144
|
+
}
|
|
145
|
+
interfaces {
|
|
146
|
+
...TypeRef
|
|
147
|
+
}
|
|
148
|
+
enumValues(includeDeprecated: true) {
|
|
149
|
+
name
|
|
150
|
+
${n}
|
|
151
|
+
isDeprecated
|
|
152
|
+
deprecationReason
|
|
153
|
+
}
|
|
154
|
+
possibleTypes {
|
|
155
|
+
...TypeRef
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
fragment InputValue on __InputValue {
|
|
160
|
+
name
|
|
161
|
+
${n}
|
|
162
|
+
type { ...TypeRef }
|
|
163
|
+
defaultValue
|
|
164
|
+
${s("isDeprecated")}
|
|
165
|
+
${s("deprecationReason")}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
fragment TypeRef on __Type {
|
|
169
|
+
kind
|
|
170
|
+
name
|
|
171
|
+
ofType {
|
|
172
|
+
kind
|
|
173
|
+
name
|
|
174
|
+
ofType {
|
|
175
|
+
kind
|
|
176
|
+
name
|
|
177
|
+
ofType {
|
|
178
|
+
kind
|
|
179
|
+
name
|
|
180
|
+
ofType {
|
|
181
|
+
kind
|
|
182
|
+
name
|
|
183
|
+
ofType {
|
|
184
|
+
kind
|
|
185
|
+
name
|
|
186
|
+
ofType {
|
|
187
|
+
kind
|
|
188
|
+
name
|
|
189
|
+
ofType {
|
|
190
|
+
kind
|
|
191
|
+
name
|
|
192
|
+
ofType {
|
|
193
|
+
kind
|
|
194
|
+
name
|
|
195
|
+
ofType {
|
|
196
|
+
kind
|
|
197
|
+
name
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
`}function FN(e,t){vu(e)&&vu(e.__schema)||nt(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ye(e)}.`);const n=e.__schema,i=Yo(n.types,L=>L.name,L=>v(L));for(const L of[...fN,...$S])i[L.name]&&(i[L.name]=L);const u=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,s=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map($):[];return new BS({description:n.description,query:u,mutation:a,subscription:s,types:Object.values(i),directives:c,assumeValid:void 0});function f(L){if(L.kind===pt.LIST){const z=L.ofType;if(!z)throw new Error("Decorated type deeper than introspection query.");return new Un(f(z))}if(L.kind===pt.NON_NULL){const z=L.ofType;if(!z)throw new Error("Decorated type deeper than introspection query.");const G=f(z);return new Ge(uN(G))}return h(L)}function h(L){const z=L.name;if(!z)throw new Error(`Unknown type reference: ${ye(L)}.`);const G=i[z];if(!G)throw new Error(`Invalid or incomplete schema, unknown type: ${z}. Ensure that a full introspection query is used in order to build a client schema.`);return G}function p(L){return nN(h(L))}function m(L){return iN(h(L))}function v(L){if(L!=null&&L.name!=null&&L.kind!=null)switch(L.kind){case pt.SCALAR:return b(L);case pt.OBJECT:return S(L);case pt.INTERFACE:return _(L);case pt.UNION:return T(L);case pt.ENUM:return D(L);case pt.INPUT_OBJECT:return w(L)}const z=ye(L);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${z}.`)}function b(L){return new pa({name:L.name,description:L.description,specifiedByURL:L.specifiedByURL})}function x(L){if(L.interfaces===null&&L.kind===pt.INTERFACE)return[];if(!L.interfaces){const z=ye(L);throw new Error(`Introspection result missing interfaces: ${z}.`)}return L.interfaces.map(m)}function S(L){return new kr({name:L.name,description:L.description,interfaces:()=>x(L),fields:()=>N(L)})}function _(L){return new xs({name:L.name,description:L.description,interfaces:()=>x(L),fields:()=>N(L)})}function T(L){if(!L.possibleTypes){const z=ye(L);throw new Error(`Introspection result missing possibleTypes: ${z}.`)}return new OS({name:L.name,description:L.description,types:()=>L.possibleTypes.map(p)})}function D(L){if(!L.enumValues){const z=ye(L);throw new Error(`Introspection result missing enumValues: ${z}.`)}return new Vs({name:L.name,description:L.description,values:Yo(L.enumValues,z=>z.name,z=>({description:z.description,deprecationReason:z.deprecationReason}))})}function w(L){if(!L.inputFields){const z=ye(L);throw new Error(`Introspection result missing inputFields: ${z}.`)}return new p2({name:L.name,description:L.description,fields:()=>M(L.inputFields),isOneOf:L.isOneOf})}function N(L){if(!L.fields)throw new Error(`Introspection result missing fields: ${ye(L)}.`);return Yo(L.fields,z=>z.name,R)}function R(L){const z=f(L.type);if(!ea(z)){const G=ye(z);throw new Error(`Introspection must provide output type for fields, but received: ${G}.`)}if(!L.args){const G=ye(L);throw new Error(`Introspection result missing field args: ${G}.`)}return{description:L.description,deprecationReason:L.deprecationReason,type:z,args:M(L.args)}}function M(L){return Yo(L,z=>z.name,I)}function I(L){const z=f(L.type);if(!_i(z)){const J=ye(z);throw new Error(`Introspection must provide input type for arguments, but received: ${J}.`)}const G=L.defaultValue!=null?Ql(UD(L.defaultValue),z):void 0;return{description:L.description,type:z,defaultValue:G,deprecationReason:L.deprecationReason}}function $(L){if(!L.args){const z=ye(L);throw new Error(`Introspection result missing directive args: ${z}.`)}if(!L.locations){const z=ye(L);throw new Error(`Introspection result missing directive locations: ${z}.`)}return new ma({name:L.name,description:L.description,isRepeatable:L.isRepeatable,locations:L.locations.slice(),args:M(L.args)})}}async function IN(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/"))return e;let i=n.indexOf("boundary="),u="-";if(~i){let a=i+9,s=n.indexOf(";",a);u=n.slice(a,s>-1?s:void 0).trim().replace(/"/g,"")}return async function*(a,s,c){let f,h,p,m=new TextDecoder("utf8"),v=a.getReader(),b=!c||!1,x=s.length,S="",_=[];try{let T;e:for(;!(T=await v.read()).done;){let D=m.decode(T.value,{stream:!0});f=S.length,S+=D;let w=D.indexOf(s);for(~w?f+=w:f=S.indexOf(s),_=[];~f;){let N=S.slice(0,f),R=S.slice(f+x);if(h){let M=N.indexOf(`\r
|
|
209
|
+
\r
|
|
210
|
+
`)+4,I=N.lastIndexOf(`\r
|
|
211
|
+
`,M),$=!1,L=N.slice(M,I>-1?void 0:I),z=String(N.slice(0,M)).trim().split(`\r
|
|
212
|
+
`),G={},J=z.length;for(;p=z[--J];p=p.split(": "),G[p.shift().toLowerCase()]=p.join(": "));if(p=G["content-type"],p&&~p.indexOf("application/json"))try{L=JSON.parse(L),$=!0}catch{}if(p={headers:G,body:L,json:$},b?yield p:_.push(p),R.slice(0,2)==="--")break e}else s=`\r
|
|
213
|
+
`+s,h=x+=2;S=R,f=S.indexOf(s)}_.length&&(yield _)}}finally{_.length&&(yield _),await v.cancel()}}(e.body,`--${u}`,t)}function jN(e,t,n){const i=async function*(){yield*e}(),u=i.return.bind(i);if(t&&(i.return=(...a)=>(t(),u(...a))),n){const a=i.throw.bind(i);i.throw=s=>(n(s),a(s))}return i}function ex(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function PN(){let e={type:"running"},t=ex();const n=[];function i(s){e.type==="running"&&(n.push(s),t.resolve(),t=ex())}const u=async function*(){for(;;)if(n.length>0)yield n.shift();else{if(e.type==="error")throw e.error;if(e.type==="finished")return;await t.promise}}(),a=jN(u,()=>{e.type==="running"&&(e={type:"finished"},t.resolve())},s=>{e.type==="running"&&(e={type:"error",error:s},t.resolve())});return{pushValue:i,asyncIterableIterator:a}}const HS=e=>{const{pushValue:t,asyncIterableIterator:n}=PN(),i=e({next:s=>{t(s)},complete:()=>{n.return()},error:s=>{n.throw(s)}}),u=n.return;let a;return n.return=()=>(a===void 0&&(i(),a=u()),a),n};function VN(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in e)}const $N=e=>typeof e=="object"&&e!==null&&"code"in e,BN=(e,t)=>{let n=!1;return Wi(e,{OperationDefinition(i){var u;t===((u=i.name)==null?void 0:u.value)&&i.operation==="subscription"&&(n=!0)}}),n},UN=(e,t)=>async(n,i)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:oi(oi({"content-type":"application/json"},e.headers),i==null?void 0:i.headers)})).json();async function zN(e,t){let n;try{const{createClient:i}=await Je(async()=>{const{createClient:u}=await import("./index-CVlvTGMf.js");return{createClient:u}},[]);return n=i({url:e,connectionParams:t}),qS(n)}catch(i){if($N(i)&&i.code==="MODULE_NOT_FOUND")throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,i)}}const qS=e=>t=>HS(n=>e.subscribe(t,fc(oi({},n),{error(i){i instanceof CloseEvent?n.error(new Error(`Socket closed with event ${i.code} ${i.reason||""}`.trim())):n.error(i)}}))),HN=e=>t=>{const n=e.request(t);return HS(i=>n.subscribe(i).unsubscribe)},qN=(e,t)=>function(n,i){return lD(this,null,function*(){const u=yield new zd(t(e.url,{method:"POST",body:JSON.stringify(n),headers:oi(oi({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),i==null?void 0:i.headers)}).then(h=>IN(h,{})));if(!VN(u))return yield u.json();try{for(var a=cD(u),s,c,f;s=!(c=yield new zd(a.next())).done;s=!1){const h=c.value;if(h.some(p=>!p.json)){const p=h.map(m=>`Headers::
|
|
214
|
+
${m.headers}
|
|
215
|
+
|
|
216
|
+
Body::
|
|
217
|
+
${m.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
|
|
218
|
+
${p}`)}yield h.map(p=>p.body)}}catch(h){f=[h]}finally{try{s&&(c=a.return)&&(yield new zd(c.call(a)))}finally{if(f)throw f[0]}}})};async function GN(e,t){if(e.wsClient)return qS(e.wsClient);if(e.subscriptionUrl)return zN(e.subscriptionUrl,oi(oi({},e.wsConnectionParams),t==null?void 0:t.headers));const n=e.legacyClient||e.legacyWsClient;if(n)return HN(n)}function YN(e){const t=e.fetch||typeof window<"u"&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=e.enableIncrementalDelivery!==!1;const n=UN(e,t),i=e.enableIncrementalDelivery?qN(e,t):n;return async(u,a)=>{if(u.operationName==="IntrospectionQuery")return(e.schemaFetcher||n)(u,a);if(a!=null&&a.documentAST&&BN(a.documentAST,u.operationName||void 0)){const s=await GN(e,a);if(!s)throw new Error(`Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ${e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."}`);return s(u)}return i(u,a)}}function Gm(e){return JSON.stringify(e,null,2)}function QN(e){return fc(oi({},e),{message:e.message,stack:e.stack})}function tx(e){return e instanceof Error?QN(e):e}function i0(e){return Array.isArray(e)?Gm({errors:e.map(t=>tx(t))}):Gm({errors:[tx(e)]})}function Ym(e){return Gm(e)}function XN(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let u;try{u=ha(t)}catch{return{insertions:i,result:t}}const a=n||ZN,s=new zS(e);return Wi(u,{leave(c){s.leave(c)},enter(c){if(s.enter(c),c.kind==="Field"&&!c.selectionSet){const f=s.getType(),h=GS(JN(f),a);if(h&&c.loc){const p=KN(t,c.loc.start);i.push({index:c.loc.end,string:" "+ai(h).replaceAll(`
|
|
219
|
+
`,`
|
|
220
|
+
`+p)})}}}}),{insertions:i,result:WN(t,i)}}function ZN(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 i of Object.keys(t))L0(t[i].type)&&n.push(i);return n}function GS(e,t){const n=Nn(e);if(!e||L0(e))return;const i=t(n);if(!(!Array.isArray(i)||i.length===0||!("getFields"in n)))return{kind:X.SELECTION_SET,selections:i.map(u=>{const a=n.getFields()[u],s=a?a.type:null;return{kind:X.FIELD,name:{kind:X.NAME,value:u},selectionSet:GS(s,t)}})}}function WN(e,t){if(t.length===0)return e;let n="",i=0;for(const{index:u,string:a}of t)n+=e.slice(i,u)+a,i=u;return n+=e.slice(i),n}function KN(e,t){let n=t,i=t;for(;n;){const u=e.charCodeAt(n-1);if(u===10||u===13||u===8232||u===8233)break;n--,u!==9&&u!==11&&u!==12&&u!==32&&u!==160&&(i=n)}return e.slice(n,i)}function JN(e){if(e)return e}function eO(e,t){var n;const i=new Map,u=[];for(const a of e)if(a.kind==="Field"){const s=t(a),c=i.get(s);if((n=a.directives)!=null&&n.length){const f=oi({},a);u.push(f)}else if(c!=null&&c.selectionSet&&a.selectionSet)c.selectionSet.selections=[...c.selectionSet.selections,...a.selectionSet.selections];else if(!c){const f=oi({},a);i.set(s,f),u.push(f)}}else u.push(a);return u}function YS(e,t,n){var i;const u=n?Nn(n).name:null,a=[],s=[];for(let c of t){if(c.kind==="FragmentSpread"){const f=c.name.value;if(!c.directives||c.directives.length===0){if(s.includes(f))continue;s.push(f)}const h=e[c.name.value];if(h){const{typeCondition:p,directives:m,selectionSet:v}=h;c={kind:X.INLINE_FRAGMENT,typeCondition:p,directives:m,selectionSet:v}}}if(c.kind===X.INLINE_FRAGMENT&&(!c.directives||((i=c.directives)==null?void 0:i.length)===0)){const f=c.typeCondition?c.typeCondition.name.value:null;if(!f||f===u){a.push(...YS(e,c.selectionSet.selections,n));continue}}a.push(c)}return a}function tO(e,t){const n=t?new zS(t):null,i=Object.create(null);for(const s of e.definitions)s.kind===X.FRAGMENT_DEFINITION&&(i[s.name.value]=s);const u={SelectionSet(s){const c=n?n.getParentType():null;let{selections:f}=s;return f=YS(i,f,c),fc(oi({},s),{selections:f})},FragmentDefinition(){return null}},a=Wi(e,n?kN(n,u):u);return Wi(a,{SelectionSet(s){let{selections:c}=s;return c=eO(c,f=>f.alias?f.alias.value:f.name.value),fc(oi({},s),{selections:c})},FragmentDefinition(){return null}})}function nO(e,t,n){if(!n||n.length<1)return;const i=n.map(u=>{var a;return(a=u.name)==null?void 0:a.value});if(t&&i.includes(t))return t;if(t&&e){const u=e.map(a=>{var s;return(s=a.name)==null?void 0:s.value}).indexOf(t);if(u!==-1&&u<i.length)return i[u]}return i[0]}function iO(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}class rO{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window>"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const i in localStorage)i.indexOf(`${Ed}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${Ed}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${Ed}:${t}`,i=this.storage.getItem(n);return i==="null"||i==="undefined"?(this.storage.removeItem(n),null):i||null}set(t,n){let i=!1,u=null;if(this.storage){const a=`${Ed}:${t}`;if(n)try{this.storage.setItem(a,n)}catch(s){u=s instanceof Error?s:new Error(`${s}`),i=iO(this.storage,s)}else this.storage.removeItem(a)}return{isQuotaError:i,error:u}}clear(){this.storage&&this.storage.clear()}}const Ed="graphiql";class nx{constructor(t,n,i=null){this.key=t,this.storage=n,this.maxSize=i,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t,n){if(typeof n=="number"&&this.items[n]){const u=this.items[n];if(u.query===t.query&&u.variables===t.variables&&u.headers===t.headers&&u.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const i=this.items.findIndex(u=>u.query===t.query&&u.variables===t.variables&&u.headers===t.headers&&u.operationName===t.operationName);i!==-1&&(this.items.splice(i,1,t),this.save())}delete(t){const n=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let i=0;i<5;i++){const u=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(u!=null&&u.error))this.items=n;else if(u.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const uO=1e5;class oO{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:i,variables:u,headers:a,operationName:s})=>{if(!this.shouldSaveQuery(i,u,a,this.history.fetchRecent()))return;this.history.push({query:i,variables:u,headers:a,operationName:s});const c=this.history.items,f=this.favorite.items;this.queries=c.concat(f)},this.deleteHistory=({query:i,variables:u,headers:a,operationName:s,favorite:c},f=!1)=>{function h(p){const m=p.items.find(v=>v.query===i&&v.variables===u&&v.headers===a&&v.operationName===s);m&&p.delete(m)}(c||f)&&h(this.favorite),(!c||f)&&h(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new nx("queries",this.storage,this.maxHistoryLength),this.favorite=new nx("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,i,u){if(!t)return!1;try{ha(t)}catch{return!1}return t.length>uO?!1:u?!(JSON.stringify(t)===JSON.stringify(u.query)&&(JSON.stringify(n)===JSON.stringify(u.variables)&&(JSON.stringify(i)===JSON.stringify(u.headers)||i&&!u.headers)||n&&!u.variables)):!0}toggleFavorite({query:t,variables:n,headers:i,operationName:u,label:a,favorite:s}){const c={query:t,variables:n,headers:i,operationName:u,label:a};s?(c.favorite=!1,this.favorite.delete(c),this.history.push(c)):(c.favorite=!0,this.favorite.push(c),this.history.delete(c)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:i,operationName:u,label:a,favorite:s},c){const f={query:t,variables:n,headers:i,operationName:u,label:a};s?this.favorite.edit(fc(oi({},f),{favorite:s}),c):this.history.edit(f,c),this.queries=[...this.history.items,...this.favorite.items]}}/**
|
|
221
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the MIT license found in the
|
|
224
|
+
* LICENSE file in the root directory of this source tree.
|
|
225
|
+
*
|
|
226
|
+
* @lightSyntaxTransform
|
|
227
|
+
* @noflow
|
|
228
|
+
* @nolint
|
|
229
|
+
* @preventMunge
|
|
230
|
+
* @preserve-invariant-messages
|
|
231
|
+
*/var O1,ix;function aO(){if(ix)return O1;ix=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(P,V)=>{for(var re in V)t(P,re,{get:V[re],enumerable:!0})},c=(P,V,re,k)=>{if(V&&typeof V=="object"||typeof V=="function")for(let B of i(V))!a.call(P,B)&&B!==re&&t(P,B,{get:()=>V[B],enumerable:!(k=n(V,B))||k.enumerable});return P},f=(P,V,re)=>(re=P!=null?e(u(P)):{},c(!P||!P.__esModule?t(re,"default",{value:P,enumerable:!0}):re,P)),h=P=>c(t({},"__esModule",{value:!0}),P),p={};s(p,{$dispatcherGuard:()=>$,$makeReadOnly:()=>z,$reset:()=>L,$structuralCheck:()=>H,c:()=>w,clearRenderCounterRegistry:()=>J,renderCounterRegistry:()=>G,useRenderCounter:()=>ee}),O1=h(p);var m=f(jc()),{useRef:v,useEffect:b,isValidElement:x}=m,S,_=(S=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?S:m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.memo_cache_sentinel"),D,w=typeof((D=m.__COMPILER_RUNTIME)==null?void 0:D.c)=="function"?m.__COMPILER_RUNTIME.c:function(V){return m.useMemo(()=>{const re=new Array(V);for(let k=0;k<V;k++)re[k]=T;return re[T]=!0,re},[])},N={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(P=>{N[P]=()=>{throw new Error(`[React] Unexpected React hook call (${P}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var R=null;N.useMemoCache=P=>{if(R==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return R.useMemoCache(P)};function M(P){return _.ReactCurrentDispatcher.current=P,_.ReactCurrentDispatcher.current}var I=[];function $(P){const V=_.ReactCurrentDispatcher.current;if(P===0){if(I.push(V),I.length===1&&(R=V),V===N)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.");M(N)}else if(P===1){const re=I.pop();if(re==null)throw new Error("React Compiler internal error: unexpected null in guard stack");I.length===0&&(R=null),M(re)}else if(P===2)I.push(V),M(R);else if(P===3){const re=I.pop();if(re==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M(re)}else throw new Error("React Compiler internal error: unreachable block"+P)}function L(P){for(let V=0;V<P.length;V++)P[V]=T}function z(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var G=new Map;function J(){for(const P of G.values())P.forEach(V=>{V.count=0})}function se(P,V){let re=G.get(P);re==null&&(re=new Set,G.set(P,re)),re.add(V)}function ie(P,V){const re=G.get(P);re!=null&&re.delete(V)}function ee(P){const V=v(null);V.current!=null&&(V.current.count+=1),b(()=>{if(V.current==null){const re={count:0};se(P,re),V.current=re}return()=>{V.current!==null&&ie(P,V.current)}})}var F=new Set;function H(P,V,re,k,B,te){function W(ue,fe,me,_e){const Se=`${k}:${te} [${B}] ${re}${me} changed from ${ue} to ${fe} at depth ${_e}`;F.has(Se)||(F.add(Se),console.error(Se))}const he=2;function de(ue,fe,me,_e){if(!(_e>he)){if(ue===fe)return;if(typeof ue!=typeof fe)W(`type ${typeof ue}`,`type ${typeof fe}`,me,_e);else if(typeof ue=="object"){const Se=Array.isArray(ue),ct=Array.isArray(fe);if(ue===null&&fe!==null)W("null",`type ${typeof fe}`,me,_e);else if(fe===null)W(`type ${typeof ue}`,"null",me,_e);else if(ue instanceof Map)if(!(fe instanceof Map))W("Map instance","other value",me,_e);else if(ue.size!==fe.size)W(`Map instance with size ${ue.size}`,`Map instance with size ${fe.size}`,me,_e);else for(const[Ce,rt]of ue)fe.has(Ce)?de(rt,fe.get(Ce),`${me}.get(${Ce})`,_e+1):W(`Map instance with key ${Ce}`,`Map instance without key ${Ce}`,me,_e);else if(fe instanceof Map)W("other value","Map instance",me,_e);else if(ue instanceof Set)if(!(fe instanceof Set))W("Set instance","other value",me,_e);else if(ue.size!==fe.size)W(`Set instance with size ${ue.size}`,`Set instance with size ${fe.size}`,me,_e);else for(const Ce of fe)ue.has(Ce)||W(`Set instance without element ${Ce}`,`Set instance with element ${Ce}`,me,_e);else if(fe instanceof Set)W("other value","Set instance",me,_e);else if(Se||ct)if(Se!==ct)W(`type ${Se?"array":"object"}`,`type ${ct?"array":"object"}`,me,_e);else if(ue.length!==fe.length)W(`array with length ${ue.length}`,`array with length ${fe.length}`,me,_e);else for(let Ce=0;Ce<ue.length;Ce++)de(ue[Ce],fe[Ce],`${me}[${Ce}]`,_e+1);else if(x(ue)||x(fe))x(ue)!==x(fe)?W(`type ${x(ue)?"React element":"object"}`,`type ${x(fe)?"React element":"object"}`,me,_e):ue.type!==fe.type?W(`React element of type ${ue.type}`,`React element of type ${fe.type}`,me,_e):de(ue.props,fe.props,`[props of ${me}]`,_e+1);else{for(const Ce in fe)Ce in ue||W(`object without key ${Ce}`,`object with key ${Ce}`,me,_e);for(const Ce in ue)Ce in fe?de(ue[Ce],fe[Ce],`${me}.${Ce}`,_e+1):W(`object with key ${Ce}`,`object without key ${Ce}`,me,_e)}}else{if(typeof ue=="function")return;isNaN(ue)||isNaN(fe)?isNaN(ue)!==isNaN(fe)&&W(`${isNaN(ue)?"NaN":"non-NaN value"}`,`${isNaN(fe)?"NaN":"non-NaN value"}`,me,_e):ue!==fe&&W(ue,fe,me,_e)}}}de(P,V,"",0)}return O1}var ge=aO();function aa(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let u=0;u<n;++u)i[u]=e[t[u]];return i}function Et(e,t){return sO(t,QS(e.string))}function sO(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return R1(e,i=>!i.isDeprecated);const n=e.map(i=>({proximity:lO(QS(i.label),t),entry:i}));return R1(R1(n,i=>i.proximity<=2),i=>!i.entry.isDeprecated).sort((i,u)=>(i.entry.isDeprecated?1:0)-(u.entry.isDeprecated?1:0)||i.proximity-u.proximity||i.entry.label.length-u.entry.label.length).map(i=>i.entry)}function R1(e,t){const n=e.filter(t);return n.length===0?e:n}function QS(e){return e.toLowerCase().replaceAll(/\W/g,"")}function lO(e,t){let n=cO(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function cO(e,t){let n,i;const u=[],a=e.length,s=t.length;for(n=0;n<=a;n++)u[n]=[n];for(i=1;i<=s;i++)u[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=s;i++){const c=e[n-1]===t[i-1]?0:1;u[n][i]=Math.min(u[n-1][i]+1,u[n][i-1]+1,u[n-1][i-1]+c),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(u[n][i]=Math.min(u[n][i],u[n-2][i-2]+c))}return u[a][s]}const fO=e=>` {
|
|
232
|
+
$1
|
|
233
|
+
}`,r0=(e,t,n)=>{if(!t)return n??e;const i=Nn(t);return St(i)||hn(i)||Mn(i)||mu(i)?e+fO():n??e},rx=(e,t,n)=>{if(Mn(t)){const i=Nn(t.ofType);return e+`[${r0("",i,"$1")}]`}return r0(e,t,n)},dO=e=>{const t=e.args.filter(n=>n.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((n,i)=>`${n.name}: $${i+1}`)}) ${r0("",e.type,`
|
|
234
|
+
`)}`};var ux;(function(e){function t(n){return typeof n=="string"}e.is=t})(ux||(ux={}));var Qm;(function(e){function t(n){return typeof n=="string"}e.is=t})(Qm||(Qm={}));var ox;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(ox||(ox={}));var u0;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(u0||(u0={}));var Qi;(function(e){function t(i,u){return i===Number.MAX_VALUE&&(i=u0.MAX_VALUE),u===Number.MAX_VALUE&&(u=u0.MAX_VALUE),{line:i,character:u}}e.create=t;function n(i){let u=i;return Z.objectLiteral(u)&&Z.uinteger(u.line)&&Z.uinteger(u.character)}e.is=n})(Qi||(Qi={}));var Bt;(function(e){function t(i,u,a,s){if(Z.uinteger(i)&&Z.uinteger(u)&&Z.uinteger(a)&&Z.uinteger(s))return{start:Qi.create(i,u),end:Qi.create(a,s)};if(Qi.is(i)&&Qi.is(u))return{start:i,end:u};throw new Error(`Range#create called with invalid arguments[${i}, ${u}, ${a}, ${s}]`)}e.create=t;function n(i){let u=i;return Z.objectLiteral(u)&&Qi.is(u.start)&&Qi.is(u.end)}e.is=n})(Bt||(Bt={}));var o0;(function(e){function t(i,u){return{uri:i,range:u}}e.create=t;function n(i){let u=i;return Z.objectLiteral(u)&&Bt.is(u.range)&&(Z.string(u.uri)||Z.undefined(u.uri))}e.is=n})(o0||(o0={}));var ax;(function(e){function t(i,u,a,s){return{targetUri:i,targetRange:u,targetSelectionRange:a,originSelectionRange:s}}e.create=t;function n(i){let u=i;return Z.objectLiteral(u)&&Bt.is(u.targetRange)&&Z.string(u.targetUri)&&Bt.is(u.targetSelectionRange)&&(Bt.is(u.originSelectionRange)||Z.undefined(u.originSelectionRange))}e.is=n})(ax||(ax={}));var Xm;(function(e){function t(i,u,a,s){return{red:i,green:u,blue:a,alpha:s}}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Z.numberRange(u.red,0,1)&&Z.numberRange(u.green,0,1)&&Z.numberRange(u.blue,0,1)&&Z.numberRange(u.alpha,0,1)}e.is=n})(Xm||(Xm={}));var sx;(function(e){function t(i,u){return{range:i,color:u}}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Bt.is(u.range)&&Xm.is(u.color)}e.is=n})(sx||(sx={}));var lx;(function(e){function t(i,u,a){return{label:i,textEdit:u,additionalTextEdits:a}}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Z.string(u.label)&&(Z.undefined(u.textEdit)||Ns.is(u))&&(Z.undefined(u.additionalTextEdits)||Z.typedArray(u.additionalTextEdits,Ns.is))}e.is=n})(lx||(lx={}));var cx;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(cx||(cx={}));var fx;(function(e){function t(i,u,a,s,c,f){const h={startLine:i,endLine:u};return Z.defined(a)&&(h.startCharacter=a),Z.defined(s)&&(h.endCharacter=s),Z.defined(c)&&(h.kind=c),Z.defined(f)&&(h.collapsedText=f),h}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Z.uinteger(u.startLine)&&Z.uinteger(u.startLine)&&(Z.undefined(u.startCharacter)||Z.uinteger(u.startCharacter))&&(Z.undefined(u.endCharacter)||Z.uinteger(u.endCharacter))&&(Z.undefined(u.kind)||Z.string(u.kind))}e.is=n})(fx||(fx={}));var Zm;(function(e){function t(i,u){return{location:i,message:u}}e.create=t;function n(i){let u=i;return Z.defined(u)&&o0.is(u.location)&&Z.string(u.message)}e.is=n})(Zm||(Zm={}));var dx;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(dx||(dx={}));var hx;(function(e){e.Unnecessary=1,e.Deprecated=2})(hx||(hx={}));var px;(function(e){function t(n){const i=n;return Z.objectLiteral(i)&&Z.string(i.href)}e.is=t})(px||(px={}));var a0;(function(e){function t(i,u,a,s,c,f){let h={range:i,message:u};return Z.defined(a)&&(h.severity=a),Z.defined(s)&&(h.code=s),Z.defined(c)&&(h.source=c),Z.defined(f)&&(h.relatedInformation=f),h}e.create=t;function n(i){var u;let a=i;return Z.defined(a)&&Bt.is(a.range)&&Z.string(a.message)&&(Z.number(a.severity)||Z.undefined(a.severity))&&(Z.integer(a.code)||Z.string(a.code)||Z.undefined(a.code))&&(Z.undefined(a.codeDescription)||Z.string((u=a.codeDescription)===null||u===void 0?void 0:u.href))&&(Z.string(a.source)||Z.undefined(a.source))&&(Z.undefined(a.relatedInformation)||Z.typedArray(a.relatedInformation,Zm.is))}e.is=n})(a0||(a0={}));var Ds;(function(e){function t(i,u,...a){let s={title:i,command:u};return Z.defined(a)&&a.length>0&&(s.arguments=a),s}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.string(u.title)&&Z.string(u.command)}e.is=n})(Ds||(Ds={}));var Ns;(function(e){function t(a,s){return{range:a,newText:s}}e.replace=t;function n(a,s){return{range:{start:a,end:a},newText:s}}e.insert=n;function i(a){return{range:a,newText:""}}e.del=i;function u(a){const s=a;return Z.objectLiteral(s)&&Z.string(s.newText)&&Bt.is(s.range)}e.is=u})(Ns||(Ns={}));var Wm;(function(e){function t(i,u,a){const s={label:i};return u!==void 0&&(s.needsConfirmation=u),a!==void 0&&(s.description=a),s}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Z.string(u.label)&&(Z.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(Z.string(u.description)||u.description===void 0)}e.is=n})(Wm||(Wm={}));var Os;(function(e){function t(n){const i=n;return Z.string(i)}e.is=t})(Os||(Os={}));var mx;(function(e){function t(a,s,c){return{range:a,newText:s,annotationId:c}}e.replace=t;function n(a,s,c){return{range:{start:a,end:a},newText:s,annotationId:c}}e.insert=n;function i(a,s){return{range:a,newText:"",annotationId:s}}e.del=i;function u(a){const s=a;return Ns.is(s)&&(Wm.is(s.annotationId)||Os.is(s.annotationId))}e.is=u})(mx||(mx={}));var Km;(function(e){function t(i,u){return{textDocument:i,edits:u}}e.create=t;function n(i){let u=i;return Z.defined(u)&&ig.is(u.textDocument)&&Array.isArray(u.edits)}e.is=n})(Km||(Km={}));var Jm;(function(e){function t(i,u,a){let s={kind:"create",uri:i};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(s.options=u),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){let u=i;return u&&u.kind==="create"&&Z.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||Z.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||Z.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||Os.is(u.annotationId))}e.is=n})(Jm||(Jm={}));var eg;(function(e){function t(i,u,a,s){let c={kind:"rename",oldUri:i,newUri:u};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(c.options=a),s!==void 0&&(c.annotationId=s),c}e.create=t;function n(i){let u=i;return u&&u.kind==="rename"&&Z.string(u.oldUri)&&Z.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||Z.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||Z.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||Os.is(u.annotationId))}e.is=n})(eg||(eg={}));var tg;(function(e){function t(i,u,a){let s={kind:"delete",uri:i};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(s.options=u),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){let u=i;return u&&u.kind==="delete"&&Z.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||Z.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||Z.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||Os.is(u.annotationId))}e.is=n})(tg||(tg={}));var ng;(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(u=>Z.string(u.kind)?Jm.is(u)||eg.is(u)||tg.is(u):Km.is(u)))}e.is=t})(ng||(ng={}));var gx;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.string(u.uri)}e.is=n})(gx||(gx={}));var vx;(function(e){function t(i,u){return{uri:i,version:u}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.string(u.uri)&&Z.integer(u.version)}e.is=n})(vx||(vx={}));var ig;(function(e){function t(i,u){return{uri:i,version:u}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.string(u.uri)&&(u.version===null||Z.integer(u.version))}e.is=n})(ig||(ig={}));var yx;(function(e){function t(i,u,a,s){return{uri:i,languageId:u,version:a,text:s}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.string(u.uri)&&Z.string(u.languageId)&&Z.integer(u.version)&&Z.string(u.text)}e.is=n})(yx||(yx={}));var rg;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(rg||(rg={}));var vc;(function(e){function t(n){const i=n;return Z.objectLiteral(n)&&rg.is(i.kind)&&Z.string(i.value)}e.is=t})(vc||(vc={}));var bx;(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})(bx||(bx={}));var Ss;(function(e){e.PlainText=1,e.Snippet=2})(Ss||(Ss={}));var Ex;(function(e){e.Deprecated=1})(Ex||(Ex={}));var xx;(function(e){function t(i,u,a){return{newText:i,insert:u,replace:a}}e.create=t;function n(i){const u=i;return u&&Z.string(u.newText)&&Bt.is(u.insert)&&Bt.is(u.replace)}e.is=n})(xx||(xx={}));var Qo;(function(e){e.asIs=1,e.adjustIndentation=2})(Qo||(Qo={}));var Sx;(function(e){function t(n){const i=n;return i&&(Z.string(i.detail)||i.detail===void 0)&&(Z.string(i.description)||i.description===void 0)}e.is=t})(Sx||(Sx={}));var Tx;(function(e){function t(n){return{label:n}}e.create=t})(Tx||(Tx={}));var _x;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(_x||(_x={}));var s0;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const u=i;return Z.string(u)||Z.objectLiteral(u)&&Z.string(u.language)&&Z.string(u.value)}e.is=n})(s0||(s0={}));var Cx;(function(e){function t(n){let i=n;return!!i&&Z.objectLiteral(i)&&(vc.is(i.contents)||s0.is(i.contents)||Z.typedArray(i.contents,s0.is))&&(n.range===void 0||Bt.is(n.range))}e.is=t})(Cx||(Cx={}));var Ax;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(Ax||(Ax={}));var wx;(function(e){function t(n,i,...u){let a={label:n};return Z.defined(i)&&(a.documentation=i),Z.defined(u)?a.parameters=u:a.parameters=[],a}e.create=t})(wx||(wx={}));var Dx;(function(e){e.Text=1,e.Read=2,e.Write=3})(Dx||(Dx={}));var Nx;(function(e){function t(n,i){let u={range:n};return Z.number(i)&&(u.kind=i),u}e.create=t})(Nx||(Nx={}));var Ox;(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})(Ox||(Ox={}));var Rx;(function(e){e.Deprecated=1})(Rx||(Rx={}));var Mx;(function(e){function t(n,i,u,a,s){let c={name:n,kind:i,location:{uri:a,range:u}};return s&&(c.containerName=s),c}e.create=t})(Mx||(Mx={}));var kx;(function(e){function t(n,i,u,a){return a!==void 0?{name:n,kind:i,location:{uri:u,range:a}}:{name:n,kind:i,location:{uri:u}}}e.create=t})(kx||(kx={}));var Lx;(function(e){function t(i,u,a,s,c,f){let h={name:i,detail:u,kind:a,range:s,selectionRange:c};return f!==void 0&&(h.children=f),h}e.create=t;function n(i){let u=i;return u&&Z.string(u.name)&&Z.number(u.kind)&&Bt.is(u.range)&&Bt.is(u.selectionRange)&&(u.detail===void 0||Z.string(u.detail))&&(u.deprecated===void 0||Z.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}e.is=n})(Lx||(Lx={}));var Fx;(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"})(Fx||(Fx={}));var l0;(function(e){e.Invoked=1,e.Automatic=2})(l0||(l0={}));var Ix;(function(e){function t(i,u,a){let s={diagnostics:i};return u!=null&&(s.only=u),a!=null&&(s.triggerKind=a),s}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.typedArray(u.diagnostics,a0.is)&&(u.only===void 0||Z.typedArray(u.only,Z.string))&&(u.triggerKind===void 0||u.triggerKind===l0.Invoked||u.triggerKind===l0.Automatic)}e.is=n})(Ix||(Ix={}));var jx;(function(e){function t(i,u,a){let s={title:i},c=!0;return typeof u=="string"?(c=!1,s.kind=u):Ds.is(u)?s.command=u:s.edit=u,c&&a!==void 0&&(s.kind=a),s}e.create=t;function n(i){let u=i;return u&&Z.string(u.title)&&(u.diagnostics===void 0||Z.typedArray(u.diagnostics,a0.is))&&(u.kind===void 0||Z.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Ds.is(u.command))&&(u.isPreferred===void 0||Z.boolean(u.isPreferred))&&(u.edit===void 0||ng.is(u.edit))}e.is=n})(jx||(jx={}));var Px;(function(e){function t(i,u){let a={range:i};return Z.defined(u)&&(a.data=u),a}e.create=t;function n(i){let u=i;return Z.defined(u)&&Bt.is(u.range)&&(Z.undefined(u.command)||Ds.is(u.command))}e.is=n})(Px||(Px={}));var Vx;(function(e){function t(i,u){return{tabSize:i,insertSpaces:u}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Z.uinteger(u.tabSize)&&Z.boolean(u.insertSpaces)}e.is=n})(Vx||(Vx={}));var $x;(function(e){function t(i,u,a){return{range:i,target:u,data:a}}e.create=t;function n(i){let u=i;return Z.defined(u)&&Bt.is(u.range)&&(Z.undefined(u.target)||Z.string(u.target))}e.is=n})($x||($x={}));var Bx;(function(e){function t(i,u){return{range:i,parent:u}}e.create=t;function n(i){let u=i;return Z.objectLiteral(u)&&Bt.is(u.range)&&(u.parent===void 0||e.is(u.parent))}e.is=n})(Bx||(Bx={}));var Ux;(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"})(Ux||(Ux={}));var zx;(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"})(zx||(zx={}));var Hx;(function(e){function t(n){const i=n;return Z.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(Hx||(Hx={}));var qx;(function(e){function t(i,u){return{range:i,text:u}}e.create=t;function n(i){const u=i;return u!=null&&Bt.is(u.range)&&Z.string(u.text)}e.is=n})(qx||(qx={}));var Gx;(function(e){function t(i,u,a){return{range:i,variableName:u,caseSensitiveLookup:a}}e.create=t;function n(i){const u=i;return u!=null&&Bt.is(u.range)&&Z.boolean(u.caseSensitiveLookup)&&(Z.string(u.variableName)||u.variableName===void 0)}e.is=n})(Gx||(Gx={}));var Yx;(function(e){function t(i,u){return{range:i,expression:u}}e.create=t;function n(i){const u=i;return u!=null&&Bt.is(u.range)&&(Z.string(u.expression)||u.expression===void 0)}e.is=n})(Yx||(Yx={}));var Qx;(function(e){function t(i,u){return{frameId:i,stoppedLocation:u}}e.create=t;function n(i){const u=i;return Z.defined(u)&&Bt.is(i.stoppedLocation)}e.is=n})(Qx||(Qx={}));var ug;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(ug||(ug={}));var og;(function(e){function t(i){return{value:i}}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&(u.tooltip===void 0||Z.string(u.tooltip)||vc.is(u.tooltip))&&(u.location===void 0||o0.is(u.location))&&(u.command===void 0||Ds.is(u.command))}e.is=n})(og||(og={}));var Xx;(function(e){function t(i,u,a){const s={position:i,label:u};return a!==void 0&&(s.kind=a),s}e.create=t;function n(i){const u=i;return Z.objectLiteral(u)&&Qi.is(u.position)&&(Z.string(u.label)||Z.typedArray(u.label,og.is))&&(u.kind===void 0||ug.is(u.kind))&&u.textEdits===void 0||Z.typedArray(u.textEdits,Ns.is)&&(u.tooltip===void 0||Z.string(u.tooltip)||vc.is(u.tooltip))&&(u.paddingLeft===void 0||Z.boolean(u.paddingLeft))&&(u.paddingRight===void 0||Z.boolean(u.paddingRight))}e.is=n})(Xx||(Xx={}));var Zx;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Zx||(Zx={}));var Wx;(function(e){function t(n,i,u,a){return{insertText:n,filterText:i,range:u,command:a}}e.create=t})(Wx||(Wx={}));var Kx;(function(e){function t(n){return{items:n}}e.create=t})(Kx||(Kx={}));var Jx;(function(e){e.Invoked=0,e.Automatic=1})(Jx||(Jx={}));var e6;(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(e6||(e6={}));var t6;(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(t6||(t6={}));var n6;(function(e){function t(n){const i=n;return Z.objectLiteral(i)&&Qm.is(i.uri)&&Z.string(i.name)}e.is=t})(n6||(n6={}));var i6;(function(e){function t(a,s,c,f){return new hO(a,s,c,f)}e.create=t;function n(a){let s=a;return!!(Z.defined(s)&&Z.string(s.uri)&&(Z.undefined(s.languageId)||Z.string(s.languageId))&&Z.uinteger(s.lineCount)&&Z.func(s.getText)&&Z.func(s.positionAt)&&Z.func(s.offsetAt))}e.is=n;function i(a,s){let c=a.getText(),f=u(s,(p,m)=>{let v=p.range.start.line-m.range.start.line;return v===0?p.range.start.character-m.range.start.character:v}),h=c.length;for(let p=f.length-1;p>=0;p--){let m=f[p],v=a.offsetAt(m.range.start),b=a.offsetAt(m.range.end);if(b<=h)c=c.substring(0,v)+m.newText+c.substring(b,c.length);else throw new Error("Overlapping edit");h=v}return c}e.applyEdits=i;function u(a,s){if(a.length<=1)return a;const c=a.length/2|0,f=a.slice(0,c),h=a.slice(c);u(f,s),u(h,s);let p=0,m=0,v=0;for(;p<f.length&&m<h.length;)s(f[p],h[m])<=0?a[v++]=f[p++]:a[v++]=h[m++];for(;p<f.length;)a[v++]=f[p++];for(;m<h.length;)a[v++]=h[m++];return a}})(i6||(i6={}));class hO{constructor(t,n,i,u){this._uri=t,this._languageId=n,this._version=i,this._content=u,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(n,i)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,i=!0;for(let u=0;u<n.length;u++){i&&(t.push(u),i=!1);let a=n.charAt(u);i=a==="\r"||a===`
|
|
235
|
+
`,a==="\r"&&u+1<n.length&&n.charAt(u+1)===`
|
|
236
|
+
`&&u++}i&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,u=n.length;if(u===0)return Qi.create(0,t);for(;i<u;){let s=Math.floor((i+u)/2);n[s]>t?u=s:i=s+1}let a=i-1;return Qi.create(a,t-n[a])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],u=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,u),i)}get lineCount(){return this.getLineOffsets().length}}var Z;(function(e){const t=Object.prototype.toString;function n(b){return typeof b<"u"}e.defined=n;function i(b){return typeof b>"u"}e.undefined=i;function u(b){return b===!0||b===!1}e.boolean=u;function a(b){return t.call(b)==="[object String]"}e.string=a;function s(b){return t.call(b)==="[object Number]"}e.number=s;function c(b,x,S){return t.call(b)==="[object Number]"&&x<=b&&b<=S}e.numberRange=c;function f(b){return t.call(b)==="[object Number]"&&-2147483648<=b&&b<=2147483647}e.integer=f;function h(b){return t.call(b)==="[object Number]"&&0<=b&&b<=2147483647}e.uinteger=h;function p(b){return t.call(b)==="[object Function]"}e.func=p;function m(b){return b!==null&&typeof b=="object"}e.objectLiteral=m;function v(b,x){return Array.isArray(b)&&b.every(x)}e.typedArray=v})(Z||(Z={}));class r6{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let i=this._testNextCharacter(n),u=!1;for(i&&(u=i,this._start=this._pos);i;)this._pos++,i=this._testNextCharacter(n),u=!0;return u},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,i=!0,u=!1)=>{let a=null,s=null;return typeof n=="string"?(s=new RegExp(n,u?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),a=n):n instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(n),a=s==null?void 0:s[0]),s!=null&&(typeof n=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(i&&(this._start=this._pos,a&&a.length&&(this._pos+=a.length)),s):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let i=0;if(n&&n.length!==0){const u=n[0];let a=0;for(;u.length>a;)u.charCodeAt(a)===9?i+=2:i++,a++}return i},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let i=!1;return typeof t=="string"?i=n===t:i=t instanceof RegExp?t.test(n):t(n),i}}function jt(e){return{ofRule:e}}function Ze(e,t){return{ofRule:e,isList:!0,separator:t}}function pO(e,t){const n=e.match;return e.match=i=>{let u=!1;return n&&(u=n(i)),u&&t.every(a=>a.match&&!a.match(i))},e}function M1(e,t){return{style:t,match:n=>n.kind===e}}function Fe(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const mO=e=>e===" "||e===" "||e===","||e===`
|
|
237
|
+
`||e==="\r"||e==="\uFEFF"||e===" ",gO={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:/^#.*/},vO={Document:[Ze("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return X.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[yn("query"),jt(mt("def")),jt("VariableDefinitions"),Ze("Directive"),"SelectionSet"],Mutation:[yn("mutation"),jt(mt("def")),jt("VariableDefinitions"),Ze("Directive"),"SelectionSet"],Subscription:[yn("subscription"),jt(mt("def")),jt("VariableDefinitions"),Ze("Directive"),"SelectionSet"],VariableDefinitions:[Fe("("),Ze("VariableDefinition"),Fe(")")],VariableDefinition:["Variable",Fe(":"),"Type",jt("DefaultValue")],Variable:[Fe("$","variable"),mt("variable")],DefaultValue:[Fe("="),"Value"],SelectionSet:[Fe("{"),Ze("Selection"),Fe("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[mt("property"),Fe(":"),mt("qualifier"),jt("Arguments"),Ze("Directive"),jt("SelectionSet")],Field:[mt("property"),jt("Arguments"),Ze("Directive"),jt("SelectionSet")],Arguments:[Fe("("),Ze("Argument"),Fe(")")],Argument:[mt("attribute"),Fe(":"),"Value"],FragmentSpread:[Fe("..."),mt("def"),Ze("Directive")],InlineFragment:[Fe("..."),jt("TypeCondition"),Ze("Directive"),"SelectionSet"],FragmentDefinition:[yn("fragment"),jt(pO(mt("def"),[yn("on")])),"TypeCondition",Ze("Directive"),"SelectionSet"],TypeCondition:[yn("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[M1("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[M1("Name","builtin")],NullValue:[M1("Name","keyword")],EnumValue:[mt("string-2")],ListValue:[Fe("["),Ze("Value"),Fe("]")],ObjectValue:[Fe("{"),Ze("ObjectField"),Fe("}")],ObjectField:[mt("attribute"),Fe(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[Fe("["),"Type",Fe("]"),jt(Fe("!"))],NonNullType:["NamedType",jt(Fe("!"))],NamedType:[yO("atom")],Directive:[Fe("@","meta"),mt("meta"),jt("Arguments")],DirectiveDef:[yn("directive"),Fe("@","meta"),mt("meta"),jt("ArgumentsDef"),yn("on"),Ze("DirectiveLocation",Fe("|"))],InterfaceDef:[yn("interface"),mt("atom"),jt("Implements"),Ze("Directive"),Fe("{"),Ze("FieldDef"),Fe("}")],Implements:[yn("implements"),Ze("NamedType",Fe("&"))],DirectiveLocation:[mt("string-2")],SchemaDef:[yn("schema"),Ze("Directive"),Fe("{"),Ze("OperationTypeDef"),Fe("}")],OperationTypeDef:[mt("keyword"),Fe(":"),mt("atom")],ScalarDef:[yn("scalar"),mt("atom"),Ze("Directive")],ObjectTypeDef:[yn("type"),mt("atom"),jt("Implements"),Ze("Directive"),Fe("{"),Ze("FieldDef"),Fe("}")],FieldDef:[mt("property"),jt("ArgumentsDef"),Fe(":"),"Type",Ze("Directive")],ArgumentsDef:[Fe("("),Ze("InputValueDef"),Fe(")")],InputValueDef:[mt("attribute"),Fe(":"),"Type",jt("DefaultValue"),Ze("Directive")],UnionDef:[yn("union"),mt("atom"),Ze("Directive"),Fe("="),Ze("UnionMember",Fe("|"))],UnionMember:["NamedType"],EnumDef:[yn("enum"),mt("atom"),Ze("Directive"),Fe("{"),Ze("EnumValueDef"),Fe("}")],EnumValueDef:[mt("string-2"),Ze("Directive")],InputDef:[yn("input"),mt("atom"),Ze("Directive"),Fe("{"),Ze("InputValueDef"),Fe("}")],ExtendDef:[yn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return X.SCHEMA_EXTENSION;case"scalar":return X.SCALAR_TYPE_EXTENSION;case"type":return X.OBJECT_TYPE_EXTENSION;case"interface":return X.INTERFACE_TYPE_EXTENSION;case"union":return X.UNION_TYPE_EXTENSION;case"enum":return X.ENUM_TYPE_EXTENSION;case"input":return X.INPUT_OBJECT_TYPE_EXTENSION}},[X.SCHEMA_EXTENSION]:["SchemaDef"],[X.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[X.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[X.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[X.UNION_TYPE_EXTENSION]:["UnionDef"],[X.ENUM_TYPE_EXTENSION]:["EnumDef"],[X.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function yn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function mt(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function yO(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var i;!((i=t.prevState)===null||i===void 0)&&i.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function bO(e={eatWhitespace:t=>t.eatWhile(mO),lexRules:gO,parseRules:vO,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Xl(e.parseRules,t,X.DOCUMENT),t},token(t,n){return EO(t,n,e)}}}function EO(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:u,parseRules:a,eatWhitespace:s,editorConfig:c}=n;if(t.rule&&t.rule.length===0?v2(t):t.needsAdvance&&(t.needsAdvance=!1,ag(t,!0)),e.sol()){const p=(c==null?void 0:c.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/p)}if(s(e))return"ws";const f=SO(u,e);if(!f)return e.match(/\S+/)||e.match(/\s/),Xl(k1,t,"Invalid"),"invalidchar";if(f.kind==="Comment")return Xl(k1,t,"Comment"),"comment";const h=u6({},t);if(f.kind==="Punctuation"){if(/^[{([]/.test(f.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(f.value)){const p=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&p.length>0&&p.at(-1)<t.indentLevel&&(t.indentLevel=p.at(-1))}}for(;t.rule;){let p=typeof t.rule=="function"?t.step===0?t.rule(f,e):null:t.rule[t.step];if(t.needsSeparator&&(p=p==null?void 0:p.separator),p){if(p.ofRule&&(p=p.ofRule),typeof p=="string"){Xl(a,t,p);continue}if(!((i=p.match)===null||i===void 0)&&i.call(p,f))return p.update&&p.update(t,f),f.kind==="Punctuation"?ag(t,!0):t.needsAdvance=!0,p.style}xO(t)}return u6(t,h),Xl(k1,t,"Invalid"),"invalidchar"}function u6(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e[n[i]]=t[n[i]];return e}const k1={Invalid:[],Comment:[]};function Xl(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 v2(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 ag(e,t){var n;if(o6(e)&&e.rule){const i=e.rule[e.step];if(i.separator){const{separator:u}=i;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&u.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)v2(e),e.rule&&(o6(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function o6(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function xO(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)v2(e);e.rule&&ag(e,!1)}function SO(e,t){const n=Object.keys(e);for(let i=0;i<n.length;i++){const u=t.match(e[n[i]]);if(u&&u instanceof Array)return{kind:n[i],value:u[0]}}}function I0(e,t){const n=e.split(`
|
|
238
|
+
`),i=bO();let u=i.startState(),a="",s=new r6("");for(let c=0;c<n.length;c++){for(s=new r6(n[c]);!s.eol()&&(a=i.token(s,u),t(s,u,a,c)!=="BREAK"););t(s,u,a,c),u.kind||(u=i.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:u,style:a}}var gu;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(gu||(gu={}));const TO=[X.SCHEMA_DEFINITION,X.OPERATION_TYPE_DEFINITION,X.SCALAR_TYPE_DEFINITION,X.OBJECT_TYPE_DEFINITION,X.INTERFACE_TYPE_DEFINITION,X.UNION_TYPE_DEFINITION,X.ENUM_TYPE_DEFINITION,X.INPUT_OBJECT_TYPE_DEFINITION,X.DIRECTIVE_DEFINITION,X.SCHEMA_EXTENSION,X.SCALAR_TYPE_EXTENSION,X.OBJECT_TYPE_EXTENSION,X.INTERFACE_TYPE_EXTENSION,X.UNION_TYPE_EXTENSION,X.ENUM_TYPE_EXTENSION,X.INPUT_OBJECT_TYPE_EXTENSION],_O=e=>{let t=gu.UNKNOWN;if(e)try{Wi(ha(e),{enter(n){if(n.kind==="Document"){t=gu.EXECUTABLE;return}return TO.includes(n.kind)?(t=gu.TYPE_SYSTEM,ds):!1}})}catch{return t}return t};function CO(e,t){return t!=null&&t.endsWith(".graphqls")?gu.TYPE_SYSTEM:_O(e)}function AO(e,t,n=0){let i=null,u=null,a=null;const s=I0(e,(c,f,h,p)=>{if(!(p!==t.line||c.getCurrentPosition()+n<t.character+1))return i=h,u=Object.assign({},f),a=c.current(),"BREAK"});return{start:s.start,end:s.end,string:a||s.string,state:u||s.state,style:i||s.style}}function wO(e,t,n,i,u){const a=i||AO(e,t,1);if(!a)return null;const s=a.state.kind==="Invalid"?a.state.prevState:a.state;if(!s)return null;const c=NO(n,a.state),f=(u==null?void 0:u.mode)||CO(e,u==null?void 0:u.uri);return{token:a,state:s,typeInfo:c,mode:f}}function a6(e,t,n){return n===hc.name&&e.getQueryType()===t?hc:n===pc.name&&e.getQueryType()===t?pc:n===mc.name&&ho(t)?mc:"getFields"in t?t.getFields()[n]:null}function XS(e,t){const n=[];let i=e;for(;i!=null&&i.kind;)n.push(i),i=i.prevState;for(let u=n.length-1;u>=0;u--)t(n[u])}function DO(e){let t;return XS(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function NO(e,t){let n,i,u,a,s,c,f,h,p,m,v;return XS(t,b=>{var x;switch(b.kind){case pe.QUERY:case"ShortQuery":m=e.getQueryType();break;case pe.MUTATION:m=e.getMutationType();break;case pe.SUBSCRIPTION:m=e.getSubscriptionType();break;case pe.INLINE_FRAGMENT:case pe.FRAGMENT_DEFINITION:b.type&&(m=e.getType(b.type));break;case pe.FIELD:case pe.ALIASED_FIELD:{!m||!b.name?s=null:(s=p?a6(e,p,b.name):null,m=s?s.type:null);break}case pe.SELECTION_SET:p=Nn(m);break;case pe.DIRECTIVE:u=b.name?e.getDirective(b.name):null;break;case pe.INTERFACE_DEF:b.name&&(f=null,v=new xs({name:b.name,interfaces:[],fields:{}}));break;case pe.OBJECT_TYPE_DEF:b.name&&(v=null,f=new kr({name:b.name,interfaces:[],fields:{}}));break;case pe.ARGUMENTS:{if(b.prevState)switch(b.prevState.kind){case pe.FIELD:i=s&&s.args;break;case pe.DIRECTIVE:i=u&&u.args;break;case pe.ALIASED_FIELD:{const w=(x=b.prevState)===null||x===void 0?void 0:x.name;if(!w){i=null;break}const N=p?a6(e,p,w):null;if(!N){i=null;break}i=N.args;break}default:i=null;break}else i=null;break}case pe.ARGUMENT:if(i){for(let w=0;w<i.length;w++)if(i[w].name===b.name){n=i[w];break}}c=n==null?void 0:n.type;break;case pe.VARIABLE_DEFINITION:case pe.VARIABLE:m=c;break;case pe.ENUM_VALUE:const S=Nn(c);a=S instanceof Vs?S.getValues().find(w=>w.value===b.name):null;break;case pe.LIST_VALUE:const _=SS(c);c=_ instanceof Un?_.ofType:null;break;case pe.OBJECT_VALUE:const T=Nn(c);h=T instanceof p2?T.getFields():null;break;case pe.OBJECT_FIELD:const D=b.name&&h?h[b.name]:null;c=D==null?void 0:D.type,s=D,m=s?s.type:null;break;case pe.NAMED_TYPE:b.name&&(m=e.getType(b.name));break}}),{argDef:n,argDefs:i,directiveDef:u,enumValue:a,fieldDef:s,inputType:c,objectFieldDefs:h,parentType:p,type:m,interfaceDef:v,objectTypeDef:f}}const OO={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"},pe=Object.assign(Object.assign({},X),OO);var Be;(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})(Be||(Be={}));const sg={command:"editor.action.triggerSuggest",title:"Suggestions"},RO=e=>{const t=[];if(e)try{Wi(ha(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function xZ(e,t,n,i,u,a){var s;const c=Object.assign(Object.assign({},a),{schema:e}),f=wO(t,n,e,i,a);if(!f)return[];const{state:h,typeInfo:p,mode:m,token:v}=f,{kind:b,step:x,prevState:S}=h;if(b===pe.DOCUMENT)return m===gu.TYPE_SYSTEM?MO(v):m===gu.EXECUTABLE?kO(v):LO(v);if(b===pe.EXTEND_DEF)return FO(v);if(((s=S==null?void 0:S.prevState)===null||s===void 0?void 0:s.kind)===pe.EXTENSION_DEFINITION&&h.name)return Et(v,[]);if((S==null?void 0:S.kind)===X.SCALAR_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(yo).map(T=>({label:T.name,kind:Be.Function})));if((S==null?void 0:S.kind)===X.OBJECT_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(T=>St(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:Be.Function})));if((S==null?void 0:S.kind)===X.INTERFACE_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(Dt).map(T=>({label:T.name,kind:Be.Function})));if((S==null?void 0:S.kind)===X.UNION_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(Ni).map(T=>({label:T.name,kind:Be.Function})));if((S==null?void 0:S.kind)===X.ENUM_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(T=>si(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:Be.Function})));if((S==null?void 0:S.kind)===X.INPUT_OBJECT_TYPE_EXTENSION)return Et(v,Object.values(e.getTypeMap()).filter(hn).map(T=>({label:T.name,kind:Be.Function})));if(b===pe.IMPLEMENTS||b===pe.NAMED_TYPE&&(S==null?void 0:S.kind)===pe.IMPLEMENTS)return PO(v,h,e,t,p);if(b===pe.SELECTION_SET||b===pe.FIELD||b===pe.ALIASED_FIELD)return IO(v,p,c);if(b===pe.ARGUMENTS||b===pe.ARGUMENT&&x===0){const{argDefs:T}=p;if(T)return Et(v,T.map(D=>{var w;return{label:D.name,insertText:rx(D.name+": ",D.type),insertTextMode:Qo.adjustIndentation,insertTextFormat:Ss.Snippet,command:sg,labelDetails:{detail:" "+String(D.type)},documentation:(w=D.description)!==null&&w!==void 0?w:void 0,kind:Be.Variable,type:D.type}}))}if((b===pe.OBJECT_VALUE||b===pe.OBJECT_FIELD&&x===0)&&p.objectFieldDefs){const T=aa(p.objectFieldDefs),D=b===pe.OBJECT_VALUE?Be.Value:Be.Field;return Et(v,T.map(w=>{var N;return{label:w.name,detail:String(w.type),documentation:(N=w==null?void 0:w.description)!==null&&N!==void 0?N:void 0,kind:D,type:w.type,insertText:rx(w.name+": ",w.type),insertTextMode:Qo.adjustIndentation,insertTextFormat:Ss.Snippet,command:sg}}))}if(b===pe.ENUM_VALUE||b===pe.LIST_VALUE&&x===1||b===pe.OBJECT_FIELD&&x===2||b===pe.ARGUMENT&&x===2)return jO(v,p,t,e);if(b===pe.VARIABLE&&x===1){const T=Nn(p.inputType),D=WS(t,e,v);return Et(v,D.filter(w=>w.detail===(T==null?void 0:T.name)))}if(b===pe.TYPE_CONDITION&&x===1||b===pe.NAMED_TYPE&&S!=null&&S.kind===pe.TYPE_CONDITION)return VO(v,p,e);if(b===pe.FRAGMENT_SPREAD&&x===1)return $O(v,p,e,t,Array.isArray(u)?u:RO(u));const _=KS(h);return _.kind===pe.FIELD_DEF?Et(v,Object.values(e.getTypeMap()).filter(T=>ea(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:Be.Function,insertText:a!=null&&a.fillLeafsOnComplete?T.name+`
|
|
239
|
+
`:T.name,insertTextMode:Qo.adjustIndentation}))):_.kind===pe.INPUT_VALUE_DEF&&x===2?Et(v,Object.values(e.getTypeMap()).filter(T=>_i(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:Be.Function,insertText:a!=null&&a.fillLeafsOnComplete?T.name+`
|
|
240
|
+
$1`:T.name,insertTextMode:Qo.adjustIndentation,insertTextFormat:Ss.Snippet}))):b===pe.VARIABLE_DEFINITION&&x===2||b===pe.LIST_TYPE&&x===1||b===pe.NAMED_TYPE&&S&&(S.kind===pe.VARIABLE_DEFINITION||S.kind===pe.LIST_TYPE||S.kind===pe.NON_NULL_TYPE)?zO(v,e):b===pe.DIRECTIVE?HO(v,h,e):b===pe.DIRECTIVE_DEF?qO(v,h,e):[]}const y2=[{label:"type",kind:Be.Function},{label:"interface",kind:Be.Function},{label:"union",kind:Be.Function},{label:"input",kind:Be.Function},{label:"scalar",kind:Be.Function},{label:"schema",kind:Be.Function}],ZS=[{label:"query",kind:Be.Function},{label:"mutation",kind:Be.Function},{label:"subscription",kind:Be.Function},{label:"fragment",kind:Be.Function},{label:"{",kind:Be.Constructor}];function MO(e){return Et(e,[{label:"extend",kind:Be.Function},...y2])}function kO(e){return Et(e,ZS)}function LO(e){return Et(e,[{label:"extend",kind:Be.Function},...ZS,...y2])}function FO(e){return Et(e,y2)}function IO(e,t,n){var i;if(t.parentType){const{parentType:u}=t;let a=[];return"getFields"in u&&(a=aa(u.getFields())),ho(u)&&a.push(mc),u===((i=n==null?void 0:n.schema)===null||i===void 0?void 0:i.getQueryType())&&a.push(hc,pc),Et(e,a.map((s,c)=>{var f;const h={sortText:String(c)+s.name,label:s.name,detail:String(s.type),documentation:(f=s.description)!==null&&f!==void 0?f:void 0,deprecated:!!s.deprecationReason,isDeprecated:!!s.deprecationReason,deprecationReason:s.deprecationReason,kind:Be.Field,labelDetails:{detail:" "+s.type.toString()},type:s.type};return n!=null&&n.fillLeafsOnComplete&&(h.insertText=dO(s),h.insertText||(h.insertText=r0(s.name,s.type,s.name+(e.state.needsAdvance?"":`
|
|
241
|
+
`))),h.insertText&&(h.insertTextFormat=Ss.Snippet,h.insertTextMode=Qo.adjustIndentation,h.command=sg)),h}))}return[]}function jO(e,t,n,i){const u=Nn(t.inputType),a=WS(n,i,e).filter(s=>s.detail===(u==null?void 0:u.name));if(u instanceof Vs){const s=u.getValues();return Et(e,s.map(c=>{var f;return{label:c.name,detail:String(u),documentation:(f=c.description)!==null&&f!==void 0?f:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:Be.EnumMember,type:u}}).concat(a))}return u===cn?Et(e,a.concat([{label:"true",detail:String(cn),documentation:"Not false.",kind:Be.Variable,type:cn},{label:"false",detail:String(cn),documentation:"Not true.",kind:Be.Variable,type:cn}])):a}function PO(e,t,n,i,u){if(t.needsSeparator)return[];const a=n.getTypeMap(),s=aa(a).filter(Dt),c=s.map(({name:b})=>b),f=new Set;I0(i,(b,x)=>{var S,_,T,D,w;if(x.name&&(x.kind===pe.INTERFACE_DEF&&!c.includes(x.name)&&f.add(x.name),x.kind===pe.NAMED_TYPE&&((S=x.prevState)===null||S===void 0?void 0:S.kind)===pe.IMPLEMENTS)){if(u.interfaceDef){if((_=u.interfaceDef)===null||_===void 0?void 0:_.getInterfaces().find(({name:I})=>I===x.name))return;const R=n.getType(x.name),M=(T=u.interfaceDef)===null||T===void 0?void 0:T.toConfig();u.interfaceDef=new xs(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new xs({name:x.name,fields:{}})]}))}else if(u.objectTypeDef){if((D=u.objectTypeDef)===null||D===void 0?void 0:D.getInterfaces().find(({name:I})=>I===x.name))return;const R=n.getType(x.name),M=(w=u.objectTypeDef)===null||w===void 0?void 0:w.toConfig();u.objectTypeDef=new kr(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new xs({name:x.name,fields:{}})]}))}}});const h=u.interfaceDef||u.objectTypeDef,m=((h==null?void 0:h.getInterfaces())||[]).map(({name:b})=>b),v=s.concat([...f].map(b=>({name:b}))).filter(({name:b})=>b!==(h==null?void 0:h.name)&&!m.includes(b));return Et(e,v.map(b=>{const x={label:b.name,kind:Be.Interface,type:b};return b!=null&&b.description&&(x.documentation=b.description),x}))}function VO(e,t,n,i){let u;if(t.parentType)if(mu(t.parentType)){const a=rN(t.parentType),s=n.getPossibleTypes(a),c=Object.create(null);for(const f of s)for(const h of f.getInterfaces())c[h.name]=h;u=s.concat(aa(c))}else u=[t.parentType];else{const a=n.getTypeMap();u=aa(a).filter(s=>ho(s)&&!s.name.startsWith("__"))}return Et(e,u.map(a=>{const s=Nn(a);return{label:String(a),documentation:(s==null?void 0:s.description)||"",kind:Be.Field}}))}function $O(e,t,n,i,u){if(!i)return[];const a=n.getTypeMap(),s=DO(e.state),c=UO(i);u&&u.length>0&&c.push(...u);const f=c.filter(h=>a[h.typeCondition.name.value]&&!(s&&s.kind===pe.FRAGMENT_DEFINITION&&s.name===h.name.value)&&ho(t.parentType)&&ho(a[h.typeCondition.name.value])&&lN(n,t.parentType,a[h.typeCondition.name.value]));return Et(e,f.map(h=>({label:h.name.value,detail:String(a[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,labelDetails:{detail:`fragment ${h.name.value} on ${h.typeCondition.name.value}`},kind:Be.Field,type:a[h.typeCondition.name.value]})))}const BO=(e,t)=>{var n,i,u,a,s,c,f,h,p,m;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((u=(i=e.prevState)===null||i===void 0?void 0:i.prevState)===null||u===void 0?void 0:u.kind)===t)return e.prevState.prevState;if(((c=(s=(a=e.prevState)===null||a===void 0?void 0:a.prevState)===null||s===void 0?void 0:s.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((m=(p=(h=(f=e.prevState)===null||f===void 0?void 0:f.prevState)===null||h===void 0?void 0:h.prevState)===null||p===void 0?void 0:p.prevState)===null||m===void 0?void 0:m.kind)===t)return e.prevState.prevState.prevState.prevState};function WS(e,t,n){let i=null,u;const a=Object.create({});return I0(e,(s,c)=>{var f;if((c==null?void 0:c.kind)===pe.VARIABLE&&c.name&&(i=c.name),(c==null?void 0:c.kind)===pe.NAMED_TYPE&&i){const h=BO(c,pe.TYPE);h!=null&&h.type&&(u=t.getType(h==null?void 0:h.type))}if(i&&u&&!a[i]){const h=n.string==="$"||((f=n==null?void 0:n.state)===null||f===void 0?void 0:f.kind)==="Variable"?i:"$"+i;a[i]={detail:u.toString(),insertText:h,label:"$"+i,rawInsert:h,type:u,kind:Be.Variable},i=null,u=null}}),aa(a)}function UO(e){const t=[];return I0(e,(n,i)=>{i.kind===pe.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:pe.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:i.name},selectionSet:{kind:pe.SELECTION_SET,selections:[]},typeCondition:{kind:pe.NAMED_TYPE,name:{kind:X.NAME,value:i.type}}})}),t}function zO(e,t,n){const i=t.getTypeMap(),u=aa(i).filter(_i);return Et(e,u.map(a=>({label:a.name,documentation:(a==null?void 0:a.description)||"",kind:Be.Variable})))}function HO(e,t,n,i){var u;if(!((u=t.prevState)===null||u===void 0)&&u.kind){const a=n.getDirectives().filter(s=>GO(t.prevState,s));return Et(e,a.map(s=>({label:s.name,documentation:(s==null?void 0:s.description)||"",kind:Be.Function})))}return[]}function qO(e,t,n,i){const u=n.getDirectives().find(a=>a.name===t.name);return Et(e,(u==null?void 0:u.args.map(a=>({label:a.name,documentation:a.description||"",kind:Be.Field})))||[])}function GO(e,t){if(!(e!=null&&e.kind))return!1;const{kind:n,prevState:i}=e,{locations:u}=t;switch(n){case pe.QUERY:return u.includes(Ae.QUERY);case pe.MUTATION:return u.includes(Ae.MUTATION);case pe.SUBSCRIPTION:return u.includes(Ae.SUBSCRIPTION);case pe.FIELD:case pe.ALIASED_FIELD:return u.includes(Ae.FIELD);case pe.FRAGMENT_DEFINITION:return u.includes(Ae.FRAGMENT_DEFINITION);case pe.FRAGMENT_SPREAD:return u.includes(Ae.FRAGMENT_SPREAD);case pe.INLINE_FRAGMENT:return u.includes(Ae.INLINE_FRAGMENT);case pe.SCHEMA_DEF:return u.includes(Ae.SCHEMA);case pe.SCALAR_DEF:return u.includes(Ae.SCALAR);case pe.OBJECT_TYPE_DEF:return u.includes(Ae.OBJECT);case pe.FIELD_DEF:return u.includes(Ae.FIELD_DEFINITION);case pe.INTERFACE_DEF:return u.includes(Ae.INTERFACE);case pe.UNION_DEF:return u.includes(Ae.UNION);case pe.ENUM_DEF:return u.includes(Ae.ENUM);case pe.ENUM_VALUE:return u.includes(Ae.ENUM_VALUE);case pe.INPUT_DEF:return u.includes(Ae.INPUT_OBJECT);case pe.INPUT_VALUE_DEF:switch(i==null?void 0:i.kind){case pe.ARGUMENTS_DEF:return u.includes(Ae.ARGUMENT_DEFINITION);case pe.INPUT_DEF:return u.includes(Ae.INPUT_FIELD_DEFINITION)}}return!1}function KS(e){return e.prevState&&e.kind&&[pe.NAMED_TYPE,pe.LIST_TYPE,pe.TYPE,pe.NON_NULL_TYPE].includes(e.kind)?KS(e.prevState):e}var Ul={exports:{}},s6;function YO(){if(s6)return Ul.exports;s6=1;function e(t,n){if(t!=null)return t;var i=new Error(n!==void 0?n:"Got unexpected "+t);throw i.framesToPop=1,i}return Ul.exports=e,Ul.exports.default=e,Object.defineProperty(Ul.exports,"__esModule",{value:!0}),Ul.exports}var QO=YO();const l6=da(QO),XO=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;Wi(e,{FragmentDefinition(s){n.set(s.name.value,!0)},FragmentSpread(s){i.has(s.name.value)||i.add(s.name.value)}});const u=new Set;for(const s of i)!n.has(s)&&t.has(s)&&u.add(l6(t.get(s)));const a=[];for(const s of u)Wi(s,{FragmentSpread(c){!i.has(c.name.value)&&t.get(c.name.value)&&(u.add(l6(t.get(c.name.value))),i.add(c.name.value))}}),n.has(s.name.value)||a.push(s);return a};function ZO(e,t){const n=Object.create(null);for(const i of t.definitions)if(i.kind==="OperationDefinition"){const{variableDefinitions:u}=i;if(u)for(const{variable:a,type:s}of u){const c=gc(e,s);c?n[a.name.value]=c:s.kind===X.NAMED_TYPE&&s.name.value==="Float"&&(n[a.name.value]=RS)}}return n}function WO(e,t){const n=t?ZO(t,e):void 0,i=[];return Wi(e,{OperationDefinition(u){i.push(u)}}),{variableToType:n,operations:i}}function KO(e,t){if(t)try{const n=ha(t);return Object.assign(Object.assign({},WO(n,e)),{documentAST:n})}catch{}}/*!
|
|
242
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
245
|
+
* Released under the MIT License.
|
|
246
|
+
*/var L1,c6;function JO(){return c6||(c6=1,L1=function(t){return typeof t=="object"?t===null:typeof t!="function"}),L1}/*!
|
|
247
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
250
|
+
* Released under the MIT License.
|
|
251
|
+
*/var F1,f6;function JS(){return f6||(f6=1,F1=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),F1}/*!
|
|
252
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
253
|
+
*
|
|
254
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
255
|
+
* Released under the MIT License.
|
|
256
|
+
*/var I1,d6;function eR(){if(d6)return I1;d6=1;var e=JS();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return I1=function(i){var u,a;return!(t(i)===!1||(u=i.constructor,typeof u!="function")||(a=u.prototype,t(a)===!1)||a.hasOwnProperty("isPrototypeOf")===!1)},I1}/*!
|
|
257
|
+
* set-value <https://github.com/jonschlinkert/set-value>
|
|
258
|
+
*
|
|
259
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
260
|
+
* Released under the MIT License.
|
|
261
|
+
*/var j1,h6;function tR(){if(h6)return j1;h6=1;const{deleteProperty:e}=Reflect,t=JO(),n=eR(),i=b=>typeof b=="object"&&b!==null||typeof b=="function",u=b=>b==="__proto__"||b==="constructor"||b==="prototype",a=b=>{if(!t(b))throw new TypeError("Object keys must be strings or symbols");if(u(b))throw new Error(`Cannot set unsafe key: "${b}"`)},s=b=>Array.isArray(b)?b.flat().map(String).join(","):b,c=(b,x)=>{if(typeof b!="string"||!x)return b;let S=b+";";return x.arrays!==void 0&&(S+=`arrays=${x.arrays};`),x.separator!==void 0&&(S+=`separator=${x.separator};`),x.split!==void 0&&(S+=`split=${x.split};`),x.merge!==void 0&&(S+=`merge=${x.merge};`),x.preservePaths!==void 0&&(S+=`preservePaths=${x.preservePaths};`),S},f=(b,x,S)=>{const _=s(x?c(b,x):b);a(_);const T=v.cache.get(_)||S();return v.cache.set(_,T),T},h=(b,x={})=>{const S=x.separator||".",_=S==="/"?!1:x.preservePaths;if(typeof b=="string"&&_!==!1&&/\//.test(b))return[b];const T=[];let D="";const w=N=>{let R;N.trim()!==""&&Number.isInteger(R=Number(N))?T.push(R):T.push(N)};for(let N=0;N<b.length;N++){const R=b[N];if(R==="\\"){D+=b[++N];continue}if(R===S){w(D),D="";continue}D+=R}return D&&w(D),T},p=(b,x)=>x&&typeof x.split=="function"?x.split(b):typeof b=="symbol"?[b]:Array.isArray(b)?b:f(b,x,()=>h(b,x)),m=(b,x,S,_)=>{if(a(x),S===void 0)e(b,x);else if(_&&_.merge){const T=_.merge==="function"?_.merge:Object.assign;T&&n(b[x])&&n(S)?b[x]=T(b[x],S):b[x]=S}else b[x]=S;return b},v=(b,x,S,_)=>{if(!x||!i(b))return b;const T=p(x,_);let D=b;for(let w=0;w<T.length;w++){const N=T[w],R=T[w+1];if(a(N),R===void 0){m(D,N,S,_);break}if(typeof R=="number"&&!Array.isArray(D[N])){D=D[N]=[];continue}i(D[N])||(D[N]={}),D=D[N]}return b};return v.split=p,v.cache=new Map,v.clear=()=>{v.cache=new Map},j1=v,j1}var nR=tR();const P1=da(nR);/*!
|
|
262
|
+
* get-value <https://github.com/jonschlinkert/get-value>
|
|
263
|
+
*
|
|
264
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
265
|
+
* Released under the MIT License.
|
|
266
|
+
*/var V1,p6;function iR(){if(p6)return V1;p6=1;const e=JS();V1=function(a,s,c){if(e(c)||(c={default:c}),!u(a))return typeof c.default<"u"?c.default:a;typeof s=="number"&&(s=String(s));const f=Array.isArray(s),h=typeof s=="string",p=c.separator||".",m=c.joinChar||(typeof p=="string"?p:".");if(!h&&!f)return a;if(h&&s in a)return i(s,a,c)?a[s]:c.default;let v=f?s:n(s,p,c),b=v.length,x=0;do{let S=v[x];for(typeof S=="number"&&(S=String(S));S&&S.slice(-1)==="\\";)S=t([S.slice(0,-1),v[++x]||""],m,c);if(S in a){if(!i(S,a,c))return c.default;a=a[S]}else{let _=!1,T=x+1;for(;T<b;)if(S=t([S,v[T++]],m,c),_=S in a){if(!i(S,a,c))return c.default;a=a[S],x=T-1;break}if(!_)return c.default}}while(++x<b&&u(a));return x===b?a:c.default};function t(a,s,c){return typeof c.join=="function"?c.join(a):a[0]+s+a[1]}function n(a,s,c){return typeof c.split=="function"?c.split(a):a.split(s)}function i(a,s,c){return typeof c.isValid=="function"?c.isValid(a,s):!0}function u(a){return e(a)||Array.isArray(a)||typeof a=="function"}return V1}var rR=iR();const uR=da(rR);function eT(e){const t=E.createContext(null);return t.displayName=e,t}function tT(e){function t(n){var i;const u=E.useContext(e);if(u===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((i=n.caller)==null?void 0:i.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return u}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}const m6=e=>{let t;const n=new Set,i=(h,p)=>{const m=typeof h=="function"?h(t):h;if(!Object.is(m,t)){const v=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(b=>b(t,v))}},u=()=>t,c={setState:i,getState:u,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(i,u,c);return c},Vc=e=>e?m6(e):m6,oR=e=>e;function aR(e,t=oR){const n=Oe.useSyncExternalStore(e.subscribe,Oe.useCallback(()=>t(e.getState()),[e,t]),Oe.useCallback(()=>t(e.getInitialState()),[e,t]));return Oe.useDebugValue(n),n}const $c=e=>t=>aR(e,t),$s=Vc(()=>({storage:null})),sR=e=>{const t=ge.c(3),{storage:n,children:i}=e,u=nT(lR);let a,s;return t[0]!==n?(a=()=>{$s.setState({storage:new rO(n)})},s=[n],t[0]=n,t[1]=a,t[2]=s):(a=t[1],s=t[2]),E.useEffect(a,s),u?i:null},nT=$c($s),Bs=()=>nT(cR);function lR(e){return!!e.storage}function cR(e){return e.storage}const b2=typeof navigator<"u"&&navigator.userAgent.includes("Mac"),j0="graphiql",P0="sublime",V0={[b2?"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 Bc(e,t){const n=await Je(()=>import("./codemirror-CdkO4kSF.js").then(i=>i.c),__vite__mapDeps([0,1])).then(i=>typeof i=="function"?i:i.default);return await Promise.all((t==null?void 0:t.useCommonAddons)===!1?e:[Je(()=>import("./show-hint-zZ7mEAfk.js").then(i=>i.s),__vite__mapDeps([2,1])),Je(()=>import("./matchbrackets-Cb4CYpRv.js").then(i=>i.m),__vite__mapDeps([3,4,1])),Je(()=>import("./closebrackets-D98DK4tX.js").then(i=>i.c),__vite__mapDeps([5,1])),Je(()=>import("./brace-fold-DEG6LdUK.js").then(i=>i.b),__vite__mapDeps([6,1])),Je(()=>import("./foldgutter-imeg-kqI.js").then(i=>i.f),__vite__mapDeps([7,1])),Je(()=>import("./lint-CfB-C9pO.js").then(i=>i.l),__vite__mapDeps([8,1])),Je(()=>import("./searchcursor-Btj1Isyq.js").then(i=>i.s),__vite__mapDeps([9,10,1])),Je(()=>import("./jump-to-line-CuGLfPVz.js").then(i=>i.j),__vite__mapDeps([11,1,12])),Je(()=>import("./dialog-CmdwRfZG.js").then(i=>i.d),__vite__mapDeps([13,12,1])),Je(()=>import("./sublime-Cu2r7iXj.js").then(i=>i.s),__vite__mapDeps([14,1,10,4])),...e]),n}var $1,g6;function fR(){return g6||(g6=1,$1=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(u){e.addRange(u)}),t&&t.focus()}}),$1}var B1,v6;function dR(){if(v6)return B1;v6=1;var e=fR(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function i(a){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,s)}function u(a,s){var c,f,h,p,m,v,b=!1;s||(s={}),c=s.debug||!1;try{h=e(),p=document.createRange(),m=document.getSelection(),v=document.createElement("span"),v.textContent=a,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[s.format]||t.default;window.clipboardData.setData(_,a)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,a);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(v),p.selectNodeContents(v),m.addRange(p);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");b=!0}catch(S){c&&console.error("unable to copy using execCommand: ",S),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",a),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=i("message"in s?s.message:n),window.prompt(f,a)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),v&&document.body.removeChild(v),h()}return b}return B1=u,B1}var hR=dR();const pR=da(hR),lg=Vc((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:i,onTogglePluginVisibility:u}=t(),a=typeof n=="string",s=n&&i.find(c=>(a?c.title:c)===n)||null;e(({visiblePlugin:c})=>s===c?{visiblePlugin:c}:(u==null||u(s),{visiblePlugin:s}))}})),mR=e=>{const t=ge.c(8),{onTogglePluginVisibility:n,children:i,visiblePlugin:u,plugins:a,referencePlugin:s}=e;let c;t[0]!==a?(c=a===void 0?[]:a,t[0]=a,t[1]=c):c=t[1];const f=c;let h,p;return t[2]!==n||t[3]!==f||t[4]!==s||t[5]!==u?(h=()=>{const m=new Set;for(const{title:v}of f){if(typeof v!="string"||!v)throw new Error("All GraphiQL plugins must have a unique title");if(m.has(v))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${v}'`);m.add(v)}lg.setState({plugins:f,onTogglePluginVisibility:n,referencePlugin:s}),lg.getState().setVisiblePlugin(u??null)},p=[f,n,s,u],t[2]=n,t[3]=f,t[4]=s,t[5]=u,t[6]=h,t[7]=p):(h=t[6],p=t[7]),E.useEffect(h,p),i},$0=$c(lg),nc=Vc((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(n){e({schemaReference:n})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:i,onSchemaChange:u,shouldIntrospect:a,headerEditor:s,...c}=t();if(!a)return;const f=n+1;e({requestCounter:f});try{const h=s==null?void 0:s.getValue(),p=vR(h);if(!p.isValidJSON){e({fetchError:"Introspection failed as headers are invalid."});return}const m=p.headers?{headers:p.headers}:{},{introspectionQuery:v,introspectionQueryName:b,introspectionQuerySansSubscriptions:x}=gR(c),S=$E(i({query:v,operationName:b},m));if(!VE(S)){e({fetchError:"Fetcher did not return a Promise for introspection."});return}e({isFetching:!0,fetchError:null});let _=await S;if(typeof _!="object"||_===null||!("data"in _)){const w=$E(i({query:x,operationName:b},m));if(!VE(w))throw new Error("Fetcher did not return a Promise for introspection.");_=await w}e({isFetching:!1});let T;if(_!=null&&_.data&&"__schema"in _.data)T=_.data;else{const w=typeof _=="string"?_:Ym(_);e({fetchError:w})}if(f!==t().requestCounter||!T)return;const D=FN(T);e({schema:D}),u==null||u(D)}catch(h){if(f!==t().requestCounter)return;e({fetchError:i0(h),isFetching:!1})}}})),iT=e=>{const t=ge.c(14),{fetcher:n,onSchemaChange:i,dangerouslyAssumeSchemaIsValid:u,children:a,schema:s,inputValueDeprecation:c,introspectionQueryName:f,schemaDescription:h}=e,p=u===void 0?!1:u,m=c===void 0?!1:c,v=f===void 0?"IntrospectionQuery":f,b=h===void 0?!1:h;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x={nonNull:!0,caller:iT},t[0]=x):x=t[0];const{headerEditor:S}=xn(x);let _,T;t[1]!==S?(_=()=>{S&&nc.setState({headerEditor:S})},T=[S],t[1]=S,t[2]=_,t[3]=T):(_=t[2],T=t[3]),E.useEffect(_,T);let D,w;t[4]!==p||t[5]!==n||t[6]!==m||t[7]!==v||t[8]!==i||t[9]!==s||t[10]!==b?(D=()=>{const R=qm(s)||s==null?s:void 0,M=!R||p?[]:US(R);nc.setState(I=>{const{requestCounter:$}=I;return{fetcher:n,onSchemaChange:i,schema:R,shouldIntrospect:!qm(s)&&s!==null,inputValueDeprecation:m,introspectionQueryName:v,schemaDescription:b,validationErrors:M,requestCounter:$+1}}),nc.getState().introspect()},w=[s,p,i,n,m,v,b],t[4]=p,t[5]=n,t[6]=m,t[7]=v,t[8]=i,t[9]=s,t[10]=b,t[11]=D,t[12]=w):(D=t[11],w=t[12]),E.useEffect(D,w);let N;return t[13]===Symbol.for("react.memo_cache_sentinel")?(N=[],t[13]=N):N=t[13],E.useEffect(yR,N),a},Lr=$c(nc);function gR({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const i=LN({inputValueDeprecation:e,schemaDescription:n}),u=t==="IntrospectionQuery"?i:i.replace("query IntrospectionQuery",`query ${t}`),a=i.replace("subscriptionType { name }","");return{introspectionQueryName:t,introspectionQuery:u,introspectionQuerySansSubscriptions:a}}function vR(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}function yR(){const e=function(n){n.ctrlKey&&n.key==="R"&&nc.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}const y6={};function bR(e){let t=y6[e];if(t)return t;t=y6[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}function Rs(e,t){typeof t!="string"&&(t=Rs.defaultChars);const n=bR(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let u="";for(let a=0,s=i.length;a<s;a+=3){const c=parseInt(i.slice(a+1,a+3),16);if(c<128){u+=n[c];continue}if((c&224)===192&&a+3<s){const f=parseInt(i.slice(a+4,a+6),16);if((f&192)===128){const h=c<<6&1984|f&63;h<128?u+="��":u+=String.fromCharCode(h),a+=3;continue}}if((c&240)===224&&a+6<s){const f=parseInt(i.slice(a+4,a+6),16),h=parseInt(i.slice(a+7,a+9),16);if((f&192)===128&&(h&192)===128){const p=c<<12&61440|f<<6&4032|h&63;p<2048||p>=55296&&p<=57343?u+="���":u+=String.fromCharCode(p),a+=6;continue}}if((c&248)===240&&a+9<s){const f=parseInt(i.slice(a+4,a+6),16),h=parseInt(i.slice(a+7,a+9),16),p=parseInt(i.slice(a+10,a+12),16);if((f&192)===128&&(h&192)===128&&(p&192)===128){let m=c<<18&1835008|f<<12&258048|h<<6&4032|p&63;m<65536||m>1114111?u+="����":(m-=65536,u+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),a+=9;continue}}u+="�"}return u})}Rs.defaultChars=";/?:@&=+$,#";Rs.componentChars="";const b6={};function ER(e){let t=b6[e];if(t)return t;t=b6[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Uc(e,t,n){typeof t!="string"&&(n=t,t=Uc.defaultChars),typeof n>"u"&&(n=!0);const i=ER(t);let u="";for(let a=0,s=e.length;a<s;a++){const c=e.charCodeAt(a);if(n&&c===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){u+=e.slice(a,a+3),a+=2;continue}if(c<128){u+=i[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&a+1<s){const f=e.charCodeAt(a+1);if(f>=56320&&f<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[a])}return u}Uc.defaultChars=";/?:@&=+$,-_.!~*'()#";Uc.componentChars="-_.!~*'()";function E2(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function c0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const xR=/^([a-z0-9.+-]+:)/i,SR=/:[0-9]*$/,TR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_R=["<",">",'"',"`"," ","\r",`
|
|
267
|
+
`," "],CR=["{","}","|","\\","^","`"].concat(_R),AR=["'"].concat(CR),E6=["%","/","?",";","#"].concat(AR),x6=["/","?","#"],wR=255,S6=/^[+a-z0-9A-Z_-]{0,63}$/,DR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,T6={javascript:!0,"javascript:":!0},_6={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function x2(e,t){if(e&&e instanceof c0)return e;const n=new c0;return n.parse(e,t),n}c0.prototype.parse=function(e,t){let n,i,u,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const h=TR.exec(a);if(h)return this.pathname=h[1],h[2]&&(this.search=h[2]),this}let s=xR.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=a.substr(0,2)==="//",u&&!(s&&T6[s])&&(a=a.substr(2),this.slashes=!0)),!T6[s]&&(u||s&&!_6[s])){let h=-1;for(let x=0;x<x6.length;x++)i=a.indexOf(x6[x]),i!==-1&&(h===-1||i<h)&&(h=i);let p,m;h===-1?m=a.lastIndexOf("@"):m=a.lastIndexOf("@",h),m!==-1&&(p=a.slice(0,m),a=a.slice(m+1),this.auth=p),h=-1;for(let x=0;x<E6.length;x++)i=a.indexOf(E6[x]),i!==-1&&(h===-1||i<h)&&(h=i);h===-1&&(h=a.length),a[h-1]===":"&&h--;const v=a.slice(0,h);a=a.slice(h),this.parseHost(v),this.hostname=this.hostname||"";const b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){const x=this.hostname.split(/\./);for(let S=0,_=x.length;S<_;S++){const T=x[S];if(T&&!T.match(S6)){let D="";for(let w=0,N=T.length;w<N;w++)T.charCodeAt(w)>127?D+="x":D+=T[w];if(!D.match(S6)){const w=x.slice(0,S),N=x.slice(S+1),R=T.match(DR);R&&(w.push(R[1]),N.unshift(R[2])),N.length&&(a=N.join(".")+a),this.hostname=w.join(".");break}}}}this.hostname.length>wR&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const c=a.indexOf("#");c!==-1&&(this.hash=a.substr(c),a=a.slice(0,c));const f=a.indexOf("?");return f!==-1&&(this.search=a.substr(f),a=a.slice(0,f)),a&&(this.pathname=a),_6[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};c0.prototype.parseHost=function(e){let t=SR.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const NR=Object.freeze(Object.defineProperty({__proto__:null,decode:Rs,encode:Uc,format:E2,parse:x2},Symbol.toStringTag,{value:"Module"})),rT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uT=/[\0-\x1F\x7F-\x9F]/,OR=/[\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]/,S2=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,oT=/[\$\+<->\^`\|~\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]/,aT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,RR=Object.freeze(Object.defineProperty({__proto__:null,Any:rT,Cc:uT,Cf:OR,P:S2,S:oT,Z:aT},Symbol.toStringTag,{value:"Module"})),MR=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),kR=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var U1;const LR=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]]),FR=(U1=String.fromCodePoint)!==null&&U1!==void 0?U1:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function IR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=LR.get(e))!==null&&t!==void 0?t:e}var fn;(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"})(fn||(fn={}));const jR=32;var fo;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(fo||(fo={}));function cg(e){return e>=fn.ZERO&&e<=fn.NINE}function PR(e){return e>=fn.UPPER_A&&e<=fn.UPPER_F||e>=fn.LOWER_A&&e<=fn.LOWER_F}function VR(e){return e>=fn.UPPER_A&&e<=fn.UPPER_Z||e>=fn.LOWER_A&&e<=fn.LOWER_Z||cg(e)}function $R(e){return e===fn.EQUALS||VR(e)}var an;(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"})(an||(an={}));var co;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(co||(co={}));class BR{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=an.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=co.Strict}startEntity(t){this.decodeMode=t,this.state=an.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case an.EntityStart:return t.charCodeAt(n)===fn.NUM?(this.state=an.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=an.NamedEntity,this.stateNamedEntity(t,n));case an.NumericStart:return this.stateNumericStart(t,n);case an.NumericDecimal:return this.stateNumericDecimal(t,n);case an.NumericHex:return this.stateNumericHex(t,n);case an.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|jR)===fn.LOWER_X?(this.state=an.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=an.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,u){if(n!==i){const a=i-n;this.result=this.result*Math.pow(u,a)+parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const u=t.charCodeAt(n);if(cg(u)||PR(u))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const u=t.charCodeAt(n);if(cg(u))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===fn.SEMI)this.consumed+=1;else if(this.decodeMode===co.Strict)return 0;return this.emitCodePoint(IR(this.result),this.consumed),this.errors&&(t!==fn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let u=i[this.treeIndex],a=(u&fo.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=UR(i,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===co.Attribute&&(a===0||$R(s))?0:this.emitNotTerminatedNamedEntity();if(u=i[this.treeIndex],a=(u&fo.VALUE_LENGTH)>>14,a!==0){if(s===fn.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==co.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,u=(i[n]&fo.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~fo.VALUE_LENGTH:u[t+1],i),n===3&&this.emitCodePoint(u[t+2],i),i}end(){var t;switch(this.state){case an.NamedEntity:return this.result!==0&&(this.decodeMode!==co.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case an.NumericDecimal:return this.emitNumericEntity(0,2);case an.NumericHex:return this.emitNumericEntity(0,3);case an.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case an.EntityStart:return 0}}}function sT(e){let t="";const n=new BR(e,i=>t+=FR(i));return function(u,a){let s=0,c=0;for(;(c=u.indexOf("&",c))>=0;){t+=u.slice(s,c),n.startEntity(a);const h=n.write(u,c+1);if(h<0){s=c+n.end();break}s=c+h,c=h===0?s+1:s}const f=t+u.slice(s);return t="",f}}function UR(e,t,n,i){const u=(t&fo.BRANCH_LENGTH)>>7,a=t&fo.JUMP_TABLE;if(u===0)return a!==0&&i===a?n:-1;if(a){const f=i-a;return f<0||f>=u?-1:e[n+f]-1}let s=n,c=s+u-1;for(;s<=c;){const f=s+c>>>1,h=e[f];if(h<i)s=f+1;else if(h>i)c=f-1;else return e[f+u]}return-1}const zR=sT(MR);sT(kR);function lT(e,t=co.Legacy){return zR(e,t)}function HR(e){return Object.prototype.toString.call(e)}function T2(e){return HR(e)==="[object String]"}const qR=Object.prototype.hasOwnProperty;function GR(e,t){return qR.call(e,t)}function B0(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){e[i]=n[i]})}}),e}function cT(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function _2(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function f0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const fT=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,YR=/&([a-z#][a-z0-9]{1,31});/gi,QR=new RegExp(fT.source+"|"+YR.source,"gi"),XR=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ZR(e,t){if(t.charCodeAt(0)===35&&XR.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return _2(i)?f0(i):e}const n=lT(e);return n!==e?n:e}function WR(e){return e.indexOf("\\")<0?e:e.replace(fT,"$1")}function Ms(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(QR,function(t,n,i){return n||ZR(t,i)})}const KR=/[&<>"]/,JR=/[&<>"]/g,eM={"&":"&","<":"<",">":">",'"':"""};function tM(e){return eM[e]}function po(e){return KR.test(e)?e.replace(JR,tM):e}const nM=/[.?*+^$[\]\\(){}|-]/g;function iM(e){return e.replace(nM,"\\$&")}function gt(e){switch(e){case 9:case 32:return!0}return!1}function yc(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 bc(e){return S2.test(e)||oT.test(e)}function Ec(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 U0(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const rM={mdurl:NR,ucmicro:RR},uM=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:cT,assign:B0,escapeHtml:po,escapeRE:iM,fromCodePoint:f0,has:GR,isMdAsciiPunct:Ec,isPunctChar:bc,isSpace:gt,isString:T2,isValidEntityCode:_2,isWhiteSpace:yc,lib:rM,normalizeReference:U0,unescapeAll:Ms,unescapeMd:WR},Symbol.toStringTag,{value:"Module"}));function oM(e,t,n){let i,u,a,s;const c=e.posMax,f=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){u=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)i++;else if(n)return e.pos=f,-1}}let h=-1;return u&&(h=e.pos),e.pos=f,h}function aM(e,t,n){let i,u=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(i=e.charCodeAt(u),i===10||i===60)return a;if(i===62)return a.pos=u+1,a.str=Ms(e.slice(t+1,u)),a.ok=!0,a;if(i===92&&u+1<n){u+=2;continue}u++}return a}let s=0;for(;u<n&&(i=e.charCodeAt(u),!(i===32||i<32||i===127));){if(i===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(i===40&&(s++,s>32))return a;if(i===41){if(s===0)break;s--}u++}return t===u||s!==0||(a.str=Ms(e.slice(t,u)),a.pos=u,a.ok=!0),a}function sM(e,t,n,i){let u,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)s.str=i.str,s.marker=i.marker;else{if(a>=n)return s;let c=e.charCodeAt(a);if(c!==34&&c!==39&&c!==40)return s;t++,a++,c===40&&(c=41),s.marker=c}for(;a<n;){if(u=e.charCodeAt(a),u===s.marker)return s.pos=a+1,s.str+=Ms(e.slice(t,a)),s.ok=!0,s;if(u===40&&s.marker===41)return s;u===92&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=Ms(e.slice(t,a)),s}const lM=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:aM,parseLinkLabel:oM,parseLinkTitle:sM},Symbol.toStringTag,{value:"Module"})),Fr={};Fr.code_inline=function(e,t,n,i,u){const a=e[t];return"<code"+u.renderAttrs(a)+">"+po(a.content)+"</code>"};Fr.code_block=function(e,t,n,i,u){const a=e[t];return"<pre"+u.renderAttrs(a)+"><code>"+po(e[t].content)+`</code></pre>
|
|
268
|
+
`};Fr.fence=function(e,t,n,i,u){const a=e[t],s=a.info?Ms(a.info).trim():"";let c="",f="";if(s){const p=s.split(/(\s+)/g);c=p[0],f=p.slice(2).join("")}let h;if(n.highlight?h=n.highlight(a.content,c,f)||po(a.content):h=po(a.content),h.indexOf("<pre")===0)return h+`
|
|
269
|
+
`;if(s){const p=a.attrIndex("class"),m=a.attrs?a.attrs.slice():[];p<0?m.push(["class",n.langPrefix+c]):(m[p]=m[p].slice(),m[p][1]+=" "+n.langPrefix+c);const v={attrs:m};return`<pre><code${u.renderAttrs(v)}>${h}</code></pre>
|
|
270
|
+
`}return`<pre><code${u.renderAttrs(a)}>${h}</code></pre>
|
|
271
|
+
`};Fr.image=function(e,t,n,i,u){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=u.renderInlineAsText(a.children,n,i),u.renderToken(e,t,n)};Fr.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
272
|
+
`:`<br>
|
|
273
|
+
`};Fr.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
274
|
+
`:`<br>
|
|
275
|
+
`:`
|
|
276
|
+
`};Fr.text=function(e,t){return po(e[t].content)};Fr.html_block=function(e,t){return e[t].content};Fr.html_inline=function(e,t){return e[t].content};function Us(){this.rules=B0({},Fr)}Us.prototype.renderAttrs=function(t){let n,i,u;if(!t.attrs)return"";for(u="",n=0,i=t.attrs.length;n<i;n++)u+=" "+po(t.attrs[n][0])+'="'+po(t.attrs[n][1])+'"';return u};Us.prototype.renderToken=function(t,n,i){const u=t[n];let a="";if(u.hidden)return"";u.block&&u.nesting!==-1&&n&&t[n-1].hidden&&(a+=`
|
|
277
|
+
`),a+=(u.nesting===-1?"</":"<")+u.tag,a+=this.renderAttrs(u),u.nesting===0&&i.xhtmlOut&&(a+=" /");let s=!1;if(u.block&&(s=!0,u.nesting===1&&n+1<t.length)){const c=t[n+1];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===u.tag)&&(s=!1)}return a+=s?`>
|
|
278
|
+
`:">",a};Us.prototype.renderInline=function(e,t,n){let i="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const c=e[a].type;typeof u[c]<"u"?i+=u[c](e,a,t,n,this):i+=this.renderToken(e,a,t)}return i};Us.prototype.renderInlineAsText=function(e,t,n){let i="";for(let u=0,a=e.length;u<a;u++)switch(e[u].type){case"text":i+=e[u].content;break;case"image":i+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":i+=e[u].content;break;case"softbreak":case"hardbreak":i+=`
|
|
279
|
+
`;break}return i};Us.prototype.render=function(e,t,n){let i="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const c=e[a].type;c==="inline"?i+=this.renderInline(e[a].children,t,n):typeof u[c]<"u"?i+=u[c](e,a,t,n,this):i+=this.renderToken(e,a,t,n)}return i};function Hn(){this.__rules__=[],this.__cache__=null}Hn.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Hn.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){t.indexOf(i)<0&&t.push(i)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||e.__cache__[n].push(i.fn))})})};Hn.prototype.at=function(e,t,n){const i=this.__find__(e),u=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=u.alt||[],this.__cache__=null};Hn.prototype.before=function(e,t,n,i){const u=this.__find__(e),a=i||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Hn.prototype.after=function(e,t,n,i){const u=this.__find__(e),a=i||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Hn.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null};Hn.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const u=this.__find__(i);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[u].enabled=!0,n.push(i)},this),this.__cache__=null,n};Hn.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Hn.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const u=this.__find__(i);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[u].enabled=!1,n.push(i)},this),this.__cache__=null,n};Hn.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function tr(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}tr.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,u=n.length;i<u;i++)if(n[i][0]===t)return i;return-1};tr.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};tr.prototype.attrSet=function(t,n){const i=this.attrIndex(t),u=[t,n];i<0?this.attrPush(u):this.attrs[i]=u};tr.prototype.attrGet=function(t){const n=this.attrIndex(t);let i=null;return n>=0&&(i=this.attrs[n][1]),i};tr.prototype.attrJoin=function(t,n){const i=this.attrIndex(t);i<0?this.attrPush([t,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};function dT(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}dT.prototype.Token=tr;const cM=/\r\n?|\n/g,fM=/\0/g;function dM(e){let t;t=e.src.replace(cM,`
|
|
280
|
+
`),t=t.replace(fM,"�"),e.src=t}function hM(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function pM(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function mM(e){return/^<a[>\s]/i.test(e)}function gM(e){return/^<\/a\s*>/i.test(e)}function vM(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,a=0;for(let s=u.length-1;s>=0;s--){const c=u[s];if(c.type==="link_close"){for(s--;u[s].level!==c.level&&u[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(mM(c.content)&&a>0&&a--,gM(c.content)&&a++),!(a>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const f=c.content;let h=e.md.linkify.match(f);const p=[];let m=c.level,v=0;h.length>0&&h[0].index===0&&s>0&&u[s-1].type==="text_special"&&(h=h.slice(1));for(let b=0;b<h.length;b++){const x=h[b].url,S=e.md.normalizeLink(x);if(!e.md.validateLink(S))continue;let _=h[b].text;h[b].schema?h[b].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,"");const T=h[b].index;if(T>v){const R=new e.Token("text","",0);R.content=f.slice(v,T),R.level=m,p.push(R)}const D=new e.Token("link_open","a",1);D.attrs=[["href",S]],D.level=m++,D.markup="linkify",D.info="auto",p.push(D);const w=new e.Token("text","",0);w.content=_,w.level=m,p.push(w);const N=new e.Token("link_close","a",-1);N.level=--m,N.markup="linkify",N.info="auto",p.push(N),v=h[b].lastIndex}if(v<f.length){const b=new e.Token("text","",0);b.content=f.slice(v),b.level=m,p.push(b)}t[n].children=u=cT(u,s,p)}}}}const hT=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,yM=/\((c|tm|r)\)/i,bM=/\((c|tm|r)\)/ig,EM={c:"©",r:"®",tm:"™"};function xM(e,t){return EM[t.toLowerCase()]}function SM(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(bM,xM)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function TM(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&hT.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function _M(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(yM.test(e.tokens[t].content)&&SM(e.tokens[t].children),hT.test(e.tokens[t].content)&&TM(e.tokens[t].children))}const CM=/['"]/,C6=/['"]/g,A6="’";function xd(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function AM(e,t){let n;const i=[];for(let u=0;u<e.length;u++){const a=e[u],s=e[u].level;for(n=i.length-1;n>=0&&!(i[n].level<=s);n--);if(i.length=n+1,a.type!=="text")continue;let c=a.content,f=0,h=c.length;e:for(;f<h;){C6.lastIndex=f;const p=C6.exec(c);if(!p)break;let m=!0,v=!0;f=p.index+1;const b=p[0]==="'";let x=32;if(p.index-1>=0)x=c.charCodeAt(p.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){x=e[n].content.charCodeAt(e[n].content.length-1);break}let S=32;if(f<h)S=c.charCodeAt(f);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){S=e[n].content.charCodeAt(0);break}const _=Ec(x)||bc(String.fromCharCode(x)),T=Ec(S)||bc(String.fromCharCode(S)),D=yc(x),w=yc(S);if(w?m=!1:T&&(D||_||(m=!1)),D?v=!1:_&&(w||T||(v=!1)),S===34&&p[0]==='"'&&x>=48&&x<=57&&(v=m=!1),m&&v&&(m=_,v=T),!m&&!v){b&&(a.content=xd(a.content,p.index,A6));continue}if(v)for(n=i.length-1;n>=0;n--){let N=i[n];if(i[n].level<s)break;if(N.single===b&&i[n].level===s){N=i[n];let R,M;b?(R=t.md.options.quotes[2],M=t.md.options.quotes[3]):(R=t.md.options.quotes[0],M=t.md.options.quotes[1]),a.content=xd(a.content,p.index,M),e[N.token].content=xd(e[N.token].content,N.pos,R),f+=M.length-1,N.token===u&&(f+=R.length-1),c=a.content,h=c.length,i.length=n;continue e}}m?i.push({token:u,pos:p.index,single:b,level:s}):v&&b&&(a.content=xd(a.content,p.index,A6))}}}function wM(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!CM.test(e.tokens[t].content)||AM(e.tokens[t].children,e)}function DM(e){let t,n;const i=e.tokens,u=i.length;for(let a=0;a<u;a++){if(i[a].type!=="inline")continue;const s=i[a].children,c=s.length;for(t=0;t<c;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<c;t++)s[t].type==="text"&&t+1<c&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const z1=[["normalize",dM],["block",hM],["inline",pM],["linkify",vM],["replacements",_M],["smartquotes",wM],["text_join",DM]];function C2(){this.ruler=new Hn;for(let e=0;e<z1.length;e++)this.ruler.push(z1[e][0],z1[e][1])}C2.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)};C2.prototype.State=dT;function Ir(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,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 u=this.src;for(let a=0,s=0,c=0,f=0,h=u.length,p=!1;s<h;s++){const m=u.charCodeAt(s);if(!p)if(gt(m)){c++,m===9?f+=4-f%4:f++;continue}else p=!0;(m===10||s===h-1)&&(m!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,a=s+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ir.prototype.push=function(e,t,n){const i=new tr(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};Ir.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ir.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Ir.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const i=this.src.charCodeAt(t);if(!gt(i))break}return t};Ir.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!gt(this.src.charCodeAt(--t)))return t+1;return t};Ir.prototype.skipChars=function(t,n){for(let i=this.src.length;t<i&&this.src.charCodeAt(t)===n;t++);return t};Ir.prototype.skipCharsBack=function(t,n,i){if(t<=i)return t;for(;t>i;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Ir.prototype.getLines=function(t,n,i,u){if(t>=n)return"";const a=new Array(n-t);for(let s=0,c=t;c<n;c++,s++){let f=0;const h=this.bMarks[c];let p=h,m;for(c+1<n||u?m=this.eMarks[c]+1:m=this.eMarks[c];p<m&&f<i;){const v=this.src.charCodeAt(p);if(gt(v))v===9?f+=4-(f+this.bsCount[c])%4:f++;else if(p-h<this.tShift[c])f++;else break;p++}f>i?a[s]=new Array(f-i+1).join(" ")+this.src.slice(p,m):a[s]=this.src.slice(p,m)}return a.join("")};Ir.prototype.Token=tr;const NM=65536;function H1(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function w6(e){const t=[],n=e.length;let i=0,u=e.charCodeAt(i),a=!1,s=0,c="";for(;i<n;)u===124&&(a?(c+=e.substring(s,i-1),s=i):(t.push(c+e.substring(s,i)),c="",s=i+1)),a=u===92,i++,u=e.charCodeAt(i);return t.push(c+e.substring(s)),t}function OM(e,t,n,i){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let a=e.bMarks[u]+e.tShift[u];if(a>=e.eMarks[u])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58||a>=e.eMarks[u])return!1;const c=e.src.charCodeAt(a++);if(c!==124&&c!==45&&c!==58&&!gt(c)||s===45&>(c))return!1;for(;a<e.eMarks[u];){const N=e.src.charCodeAt(a);if(N!==124&&N!==45&&N!==58&&!gt(N))return!1;a++}let f=H1(e,t+1),h=f.split("|");const p=[];for(let N=0;N<h.length;N++){const R=h[N].trim();if(!R){if(N===0||N===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?p.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?p.push("left"):p.push("")}if(f=H1(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;h=w6(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop();const m=h.length;if(m===0||m!==p.length)return!1;if(i)return!0;const v=e.parentType;e.parentType="table";const b=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),S=[t,0];x.map=S;const _=e.push("thead_open","thead",1);_.map=[t,t+1];const T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let N=0;N<h.length;N++){const R=e.push("th_open","th",1);p[N]&&(R.attrs=[["style","text-align:"+p[N]]]);const M=e.push("inline","",0);M.content=h[N].trim(),M.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let D,w=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let N=!1;for(let M=0,I=b.length;M<I;M++)if(b[M](e,u,n,!0)){N=!0;break}if(N||(f=H1(e,u).trim(),!f)||e.sCount[u]-e.blkIndent>=4||(h=w6(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),w+=m-h.length,w>NM))break;if(u===t+2){const M=e.push("tbody_open","tbody",1);M.map=D=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[u,u+1];for(let M=0;M<m;M++){const I=e.push("td_open","td",1);p[M]&&(I.attrs=[["style","text-align:"+p[M]]]);const $=e.push("inline","",0);$.content=h[M]?h[M].trim():"",$.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return D&&(e.push("tbody_close","tbody",-1),D[1]=u),e.push("table_close","table",-1),S[1]=u,e.parentType=v,e.line=u,!0}function RM(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,u=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,u=i;continue}break}e.line=u;const a=e.push("code_block","code",0);return a.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
281
|
+
`,a.map=[t,e.line],!0}function MM(e,t,n,i){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>a)return!1;const s=e.src.charCodeAt(u);if(s!==126&&s!==96)return!1;let c=u;u=e.skipChars(u,s);let f=u-c;if(f<3)return!1;const h=e.src.slice(c,u),p=e.src.slice(u,a);if(s===96&&p.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let m=t,v=!1;for(;m++,!(m>=n||(u=c=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],u<a&&e.sCount[m]<e.blkIndent));)if(e.src.charCodeAt(u)===s&&!(e.sCount[m]-e.blkIndent>=4)&&(u=e.skipChars(u,s),!(u-c<f)&&(u=e.skipSpaces(u),!(u<a)))){v=!0;break}f=e.sCount[t],e.line=m+(v?1:0);const b=e.push("fence","code",0);return b.info=p,b.content=e.getLines(t+1,m,f,!0),b.markup=h,b.map=[t,e.line],!0}function kM(e,t,n,i){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(i)return!0;const c=[],f=[],h=[],p=[],m=e.md.block.ruler.getRules("blockquote"),v=e.parentType;e.parentType="blockquote";let b=!1,x;for(x=t;x<n;x++){const w=e.sCount[x]<e.blkIndent;if(u=e.bMarks[x]+e.tShift[x],a=e.eMarks[x],u>=a)break;if(e.src.charCodeAt(u++)===62&&!w){let R=e.sCount[x]+1,M,I;e.src.charCodeAt(u)===32?(u++,R++,I=!1,M=!0):e.src.charCodeAt(u)===9?(M=!0,(e.bsCount[x]+R)%4===3?(u++,R++,I=!1):I=!0):M=!1;let $=R;for(c.push(e.bMarks[x]),e.bMarks[x]=u;u<a;){const L=e.src.charCodeAt(u);if(gt(L))L===9?$+=4-($+e.bsCount[x]+(I?1:0))%4:$++;else break;u++}b=u>=a,f.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(M?1:0),h.push(e.sCount[x]),e.sCount[x]=$-R,p.push(e.tShift[x]),e.tShift[x]=u-e.bMarks[x];continue}if(b)break;let N=!1;for(let R=0,M=m.length;R<M;R++)if(m[R](e,x,n,!0)){N=!0;break}if(N){e.lineMax=x,e.blkIndent!==0&&(c.push(e.bMarks[x]),f.push(e.bsCount[x]),p.push(e.tShift[x]),h.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}c.push(e.bMarks[x]),f.push(e.bsCount[x]),p.push(e.tShift[x]),h.push(e.sCount[x]),e.sCount[x]=-1}const S=e.blkIndent;e.blkIndent=0;const _=e.push("blockquote_open","blockquote",1);_.markup=">";const T=[t,0];_.map=T,e.md.block.tokenize(e,t,x);const D=e.push("blockquote_close","blockquote",-1);D.markup=">",e.lineMax=s,e.parentType=v,T[1]=e.line;for(let w=0;w<p.length;w++)e.bMarks[w+t]=c[w],e.tShift[w+t]=p[w],e.sCount[w+t]=h[w],e.bsCount[w+t]=f[w];return e.blkIndent=S,!0}function LM(e,t,n,i){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let c=1;for(;a<u;){const h=e.src.charCodeAt(a++);if(h!==s&&!gt(h))return!1;h===s&&c++}if(c<3)return!1;if(i)return!0;e.line=t+1;const f=e.push("hr","hr",0);return f.map=[t,e.line],f.markup=Array(c+1).join(String.fromCharCode(s)),!0}function D6(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(i++);if(u!==42&&u!==45&&u!==43)return-1;if(i<n){const a=e.src.charCodeAt(i);if(!gt(a))return-1}return i}function N6(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let u=n;if(u+1>=i)return-1;let a=e.src.charCodeAt(u++);if(a<48||a>57)return-1;for(;;){if(u>=i)return-1;if(a=e.src.charCodeAt(u++),a>=48&&a<=57){if(u-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return u<i&&(a=e.src.charCodeAt(u),!gt(a))?-1:u}function FM(e,t){const n=e.level+2;for(let i=t+2,u=e.tokens.length-2;i<u;i++)e.tokens[i].level===n&&e.tokens[i].type==="paragraph_open"&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}function IM(e,t,n,i){let u,a,s,c,f=t,h=!0;if(e.sCount[f]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]<e.blkIndent)return!1;let p=!1;i&&e.parentType==="paragraph"&&e.sCount[f]>=e.blkIndent&&(p=!0);let m,v,b;if((b=N6(e,f))>=0){if(m=!0,s=e.bMarks[f]+e.tShift[f],v=Number(e.src.slice(s,b-1)),p&&v!==1)return!1}else if((b=D6(e,f))>=0)m=!1;else return!1;if(p&&e.skipSpaces(b)>=e.eMarks[f])return!1;if(i)return!0;const x=e.src.charCodeAt(b-1),S=e.tokens.length;m?(c=e.push("ordered_list_open","ol",1),v!==1&&(c.attrs=[["start",v]])):c=e.push("bullet_list_open","ul",1);const _=[f,0];c.map=_,c.markup=String.fromCharCode(x);let T=!1;const D=e.md.block.ruler.getRules("list"),w=e.parentType;for(e.parentType="list";f<n;){a=b,u=e.eMarks[f];const N=e.sCount[f]+b-(e.bMarks[f]+e.tShift[f]);let R=N;for(;a<u;){const ee=e.src.charCodeAt(a);if(ee===9)R+=4-(R+e.bsCount[f])%4;else if(ee===32)R++;else break;a++}const M=a;let I;M>=u?I=1:I=R-N,I>4&&(I=1);const $=N+I;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(x);const L=[f,0];c.map=L,m&&(c.info=e.src.slice(s,b-1));const z=e.tight,G=e.tShift[f],J=e.sCount[f],se=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=$,e.tight=!0,e.tShift[f]=M-e.bMarks[f],e.sCount[f]=R,M>=u&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,f,n,!0),(!e.tight||T)&&(h=!1),T=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=se,e.tShift[f]=G,e.sCount[f]=J,e.tight=z,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(x),f=e.line,L[1]=f,f>=n||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let ie=!1;for(let ee=0,F=D.length;ee<F;ee++)if(D[ee](e,f,n,!0)){ie=!0;break}if(ie)break;if(m){if(b=N6(e,f),b<0)break;s=e.bMarks[f]+e.tShift[f]}else if(b=D6(e,f),b<0)break;if(x!==e.src.charCodeAt(b-1))break}return m?c=e.push("ordered_list_close","ol",-1):c=e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(x),_[1]=f,e.line=f,e.parentType=w,h&&FM(e,S),!0}function jM(e,t,n,i){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function c(D){const w=e.lineMax;if(D>=w||e.isEmpty(D))return null;let N=!1;if(e.sCount[D]-e.blkIndent>3&&(N=!0),e.sCount[D]<0&&(N=!0),!N){const I=e.md.block.ruler.getRules("reference"),$=e.parentType;e.parentType="reference";let L=!1;for(let z=0,G=I.length;z<G;z++)if(I[z](e,D,w,!0)){L=!0;break}if(e.parentType=$,L)return null}const R=e.bMarks[D]+e.tShift[D],M=e.eMarks[D];return e.src.slice(R,M+1)}let f=e.src.slice(u,a+1);a=f.length;let h=-1;for(u=1;u<a;u++){const D=f.charCodeAt(u);if(D===91)return!1;if(D===93){h=u;break}else if(D===10){const w=c(s);w!==null&&(f+=w,a=f.length,s++)}else if(D===92&&(u++,u<a&&f.charCodeAt(u)===10)){const w=c(s);w!==null&&(f+=w,a=f.length,s++)}}if(h<0||f.charCodeAt(h+1)!==58)return!1;for(u=h+2;u<a;u++){const D=f.charCodeAt(u);if(D===10){const w=c(s);w!==null&&(f+=w,a=f.length,s++)}else if(!gt(D))break}const p=e.md.helpers.parseLinkDestination(f,u,a);if(!p.ok)return!1;const m=e.md.normalizeLink(p.str);if(!e.md.validateLink(m))return!1;u=p.pos;const v=u,b=s,x=u;for(;u<a;u++){const D=f.charCodeAt(u);if(D===10){const w=c(s);w!==null&&(f+=w,a=f.length,s++)}else if(!gt(D))break}let S=e.md.helpers.parseLinkTitle(f,u,a);for(;S.can_continue;){const D=c(s);if(D===null)break;f+=D,u=a,a=f.length,s++,S=e.md.helpers.parseLinkTitle(f,u,a,S)}let _;for(u<a&&x!==u&&S.ok?(_=S.str,u=S.pos):(_="",u=v,s=b);u<a;){const D=f.charCodeAt(u);if(!gt(D))break;u++}if(u<a&&f.charCodeAt(u)!==10&&_)for(_="",u=v,s=b;u<a;){const D=f.charCodeAt(u);if(!gt(D))break;u++}if(u<a&&f.charCodeAt(u)!==10)return!1;const T=U0(f.slice(1,h));return T?(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:_,href:m}),e.line=s),!0):!1}const PM=["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"],VM="[a-zA-Z_:][a-zA-Z0-9:._-]*",$M="[^\"'=<>`\\x00-\\x20]+",BM="'[^']*'",UM='"[^"]*"',zM="(?:"+$M+"|"+BM+"|"+UM+")",HM="(?:\\s+"+VM+"(?:\\s*=\\s*"+zM+")?)",pT="<[A-Za-z][A-Za-z0-9\\-]*"+HM+"*\\s*\\/?>",mT="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qM="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",GM="<[?][\\s\\S]*?[?]>",YM="<![A-Za-z][^>]*>",QM="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",XM=new RegExp("^(?:"+pT+"|"+mT+"|"+qM+"|"+GM+"|"+YM+"|"+QM+")"),ZM=new RegExp("^(?:"+pT+"|"+mT+")"),us=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+PM.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ZM.source+"\\s*$"),/^$/,!1]];function WM(e,t,n,i){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let s=e.src.slice(u,a),c=0;for(;c<us.length&&!us[c][0].test(s);c++);if(c===us.length)return!1;if(i)return us[c][2];let f=t+1;if(!us[c][1].test(s)){for(;f<n&&!(e.sCount[f]<e.blkIndent);f++)if(u=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],s=e.src.slice(u,a),us[c][1].test(s)){s.length!==0&&f++;break}}e.line=f;const h=e.push("html_block","",0);return h.map=[t,f],h.content=e.getLines(t,f,e.blkIndent,!0),!0}function KM(e,t,n,i){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(u);if(s!==35||u>=a)return!1;let c=1;for(s=e.src.charCodeAt(++u);s===35&&u<a&&c<=6;)c++,s=e.src.charCodeAt(++u);if(c>6||u<a&&!gt(s))return!1;if(i)return!0;a=e.skipSpacesBack(a,u);const f=e.skipCharsBack(a,35,u);f>u&>(e.src.charCodeAt(f-1))&&(a=f),e.line=t+1;const h=e.push("heading_open","h"+String(c),1);h.markup="########".slice(0,c),h.map=[t,e.line];const p=e.push("inline","",0);p.content=e.src.slice(u,a).trim(),p.map=[t,e.line],p.children=[];const m=e.push("heading_close","h"+String(c),-1);return m.markup="########".slice(0,c),!0}function JM(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let a=0,s,c=t+1;for(;c<n&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3)continue;if(e.sCount[c]>=e.blkIndent){let b=e.bMarks[c]+e.tShift[c];const x=e.eMarks[c];if(b<x&&(s=e.src.charCodeAt(b),(s===45||s===61)&&(b=e.skipChars(b,s),b=e.skipSpaces(b),b>=x))){a=s===61?1:2;break}}if(e.sCount[c]<0)continue;let v=!1;for(let b=0,x=i.length;b<x;b++)if(i[b](e,c,n,!0)){v=!0;break}if(v)break}if(!a)return!1;const f=e.getLines(t,c,e.blkIndent,!1).trim();e.line=c+1;const h=e.push("heading_open","h"+String(a),1);h.markup=String.fromCharCode(s),h.map=[t,e.line];const p=e.push("inline","",0);p.content=f,p.map=[t,e.line-1],p.children=[];const m=e.push("heading_close","h"+String(a),-1);return m.markup=String.fromCharCode(s),e.parentType=u,!0}function ek(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let h=!1;for(let p=0,m=i.length;p<m;p++)if(i[p](e,a,n,!0)){h=!0;break}if(h)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const c=e.push("paragraph_open","p",1);c.map=[t,e.line];const f=e.push("inline","",0);return f.content=s,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const Sd=[["table",OM,["paragraph","reference"]],["code",RM],["fence",MM,["paragraph","reference","blockquote","list"]],["blockquote",kM,["paragraph","reference","blockquote","list"]],["hr",LM,["paragraph","reference","blockquote","list"]],["list",IM,["paragraph","reference","blockquote"]],["reference",jM],["html_block",WM,["paragraph","reference","blockquote"]],["heading",KM,["paragraph","reference","blockquote"]],["lheading",JM],["paragraph",ek]];function z0(){this.ruler=new Hn;for(let e=0;e<Sd.length;e++)this.ruler.push(Sd[e][0],Sd[e][1],{alt:(Sd[e][2]||[]).slice()})}z0.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),u=i.length,a=e.md.options.maxNesting;let s=t,c=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=n;break}const f=e.line;let h=!1;for(let p=0;p<u;p++)if(h=i[p](e,s,n,!1),h){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!h)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),s=e.line,s<n&&e.isEmpty(s)&&(c=!0,s++,e.line=s)}};z0.prototype.parse=function(e,t,n,i){if(!e)return;const u=new this.State(e,t,n,i);this.tokenize(u,u.line,u.lineMax)};z0.prototype.State=Ir;function zc(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.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}zc.prototype.pushPending=function(){const e=new tr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};zc.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new tr(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(u),i};zc.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;const s=a-e,c=a<n?this.src.charCodeAt(a):32,f=Ec(u)||bc(String.fromCharCode(u)),h=Ec(c)||bc(String.fromCharCode(c)),p=yc(u),m=yc(c),v=!m&&(!h||p||f),b=!p&&(!f||m||h);return{can_open:v&&(t||!b||f),can_close:b&&(t||!v||h),length:s}};zc.prototype.Token=tr;function tk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function nk(e,t){let n=e.pos;for(;n<e.posMax&&!tk(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const ik=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function rk(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(ik);if(!u)return!1;const a=u[1],s=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!s)return!1;let c=s.url;if(c.length<=a.length)return!1;c=c.replace(/\*+$/,"");const f=e.md.normalizeLink(c);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const h=e.push("link_open","a",1);h.attrs=[["href",f]],h.markup="linkify",h.info="auto";const p=e.push("text","",0);p.content=e.md.normalizeLinkText(c);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=c.length-a.length,!0}function uk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,u=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let a=i-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),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<u&>(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const A2=[];for(let e=0;e<256;e++)A2.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){A2[e.charCodeAt(0)]=1});function ok(e,t){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<i&&(u=e.src.charCodeAt(n),!!gt(u));)n++;return e.pos=n,!0}let a=e.src[n];if(u>=55296&&u<=56319&&n+1<i){const c=e.src.charCodeAt(n+1);c>=56320&&c<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const c=e.push("text_special","",0);u<256&&A2[u]!==0?c.content=a:c.content=s,c.markup=s,c.info="escape"}return e.pos=n+1,!0}function ak(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(u,n),c=s.length;if(e.backticksScanned&&(e.backticks[c]||0)<=u)return t||(e.pending+=s),e.pos+=c,!0;let f=n,h;for(;(h=e.src.indexOf("`",f))!==-1;){for(f=h+1;f<a&&e.src.charCodeAt(f)===96;)f++;const p=f-h;if(p===c){if(!t){const m=e.push("code_inline","code",0);m.markup=s,m.content=e.src.slice(n,h).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=f,!0}e.backticks[p]=h}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=c,!0}function sk(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==126)return!1;const u=e.scanDelims(e.pos,!0);let a=u.length;const s=String.fromCharCode(i);if(a<2)return!1;let c;a%2&&(c=e.push("text","",0),c.content=s,a--);for(let f=0;f<a;f+=2)c=e.push("text","",0),c.content=s+s,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function O6(e,t){let n;const i=[],u=t.length;for(let a=0;a<u;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const c=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[c.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[c.token-1].type==="text"&&e.tokens[c.token-1].content==="~"&&i.push(c.token-1)}for(;i.length;){const a=i.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=n)}}function lk(e){const t=e.tokens_meta,n=e.tokens_meta.length;O6(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&O6(e,t[i].delimiters)}const gT={tokenize:sk,postProcess:lk};function ck(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==95&&i!==42)return!1;const u=e.scanDelims(e.pos,i===42);for(let a=0;a<u.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function R6(e,t){const n=t.length;for(let i=n-1;i>=0;i--){const u=t[i];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const a=t[u.end],s=i>0&&t[i-1].end===u.end+1&&t[i-1].marker===u.marker&&t[i-1].token===u.token-1&&t[u.end+1].token===a.token+1,c=String.fromCharCode(u.marker),f=e.tokens[u.token];f.type=s?"strong_open":"em_open",f.tag=s?"strong":"em",f.nesting=1,f.markup=s?c+c:c,f.content="";const h=e.tokens[a.token];h.type=s?"strong_close":"em_close",h.tag=s?"strong":"em",h.nesting=-1,h.markup=s?c+c:c,h.content="",s&&(e.tokens[t[i-1].token].content="",e.tokens[t[u.end+1].token].content="",i--)}}function fk(e){const t=e.tokens_meta,n=e.tokens_meta.length;R6(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&R6(e,t[i].delimiters)}const vT={tokenize:ck,postProcess:fk};function dk(e,t){let n,i,u,a,s="",c="",f=e.pos,h=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,m=e.posMax,v=e.pos+1,b=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(b<0)return!1;let x=b+1;if(x<m&&e.src.charCodeAt(x)===40){for(h=!1,x++;x<m&&(n=e.src.charCodeAt(x),!(!gt(n)&&n!==10));x++);if(x>=m)return!1;if(f=x,u=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),u.ok){for(s=e.md.normalizeLink(u.str),e.md.validateLink(s)?x=u.pos:s="",f=x;x<m&&(n=e.src.charCodeAt(x),!(!gt(n)&&n!==10));x++);if(u=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<m&&f!==x&&u.ok)for(c=u.str,x=u.pos;x<m&&(n=e.src.charCodeAt(x),!(!gt(n)&&n!==10));x++);}(x>=m||e.src.charCodeAt(x)!==41)&&(h=!0),x++}if(h){if(typeof e.env.references>"u")return!1;if(x<m&&e.src.charCodeAt(x)===91?(f=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?i=e.src.slice(f,x++):x=b+1):x=b+1,i||(i=e.src.slice(v,b)),a=e.env.references[U0(i)],!a)return e.pos=p,!1;s=a.href,c=a.title}if(!t){e.pos=v,e.posMax=b;const S=e.push("link_open","a",1),_=[["href",s]];S.attrs=_,c&&_.push(["title",c]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=m,!0}function hk(e,t){let n,i,u,a,s,c,f,h,p="";const m=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const b=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(a=x+1,a<v&&e.src.charCodeAt(a)===40){for(a++;a<v&&(n=e.src.charCodeAt(a),!(!gt(n)&&n!==10));a++);if(a>=v)return!1;for(h=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok&&(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?a=c.pos:p=""),h=a;a<v&&(n=e.src.charCodeAt(a),!(!gt(n)&&n!==10));a++);if(c=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<v&&h!==a&&c.ok)for(f=c.str,a=c.pos;a<v&&(n=e.src.charCodeAt(a),!(!gt(n)&&n!==10));a++);else f="";if(a>=v||e.src.charCodeAt(a)!==41)return e.pos=m,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<v&&e.src.charCodeAt(a)===91?(h=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?u=e.src.slice(h,a++):a=x+1):a=x+1,u||(u=e.src.slice(b,x)),s=e.env.references[U0(u)],!s)return e.pos=m,!1;p=s.href,f=s.title}if(!t){i=e.src.slice(b,x);const S=[];e.md.inline.parse(i,e.md,e.env,S);const _=e.push("image","img",0),T=[["src",p],["alt",""]];_.attrs=T,_.children=S,_.content=i,f&&T.push(["title",f])}return e.pos=a,e.posMax=v,!0}const pk=/^([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])?)*)$/,mk=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function gk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const a=e.src.slice(i+1,n);if(mk.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",s]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=a.length+2,!0}if(pk.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",s]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=a.length+2,!0}return!1}function vk(e){return/^<a[>\s]/i.test(e)}function yk(e){return/^<\/a\s*>/i.test(e)}function bk(e){const t=e|32;return t>=97&&t<=122}function Ek(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const u=e.src.charCodeAt(i+1);if(u!==33&&u!==63&&u!==47&&!bk(u))return!1;const a=e.src.slice(i).match(XM);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],vk(s.content)&&e.linkLevel++,yk(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const xk=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Sk=/^&([a-z][a-z0-9]{1,31});/i;function Tk(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(xk);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),c=e.push("text_special","",0);c.content=_2(s)?f0(s):f0(65533),c.markup=a[0],c.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(Sk);if(a){const s=lT(a[0]);if(s!==a[0]){if(!t){const c=e.push("text_special","",0);c.content=s,c.markup=a[0],c.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function M6(e){const t={},n=e.length;if(!n)return;let i=0,u=-2;const a=[];for(let s=0;s<n;s++){const c=e[s];if(a.push(0),(e[i].marker!==c.marker||u!==c.token-1)&&(i=s),u=c.token,c.length=c.length||0,!c.close)continue;t.hasOwnProperty(c.marker)||(t[c.marker]=[-1,-1,-1,-1,-1,-1]);const f=t[c.marker][(c.open?3:0)+c.length%3];let h=i-a[i]-1,p=h;for(;h>f;h-=a[h]+1){const m=e[h];if(m.marker===c.marker&&m.open&&m.end<0){let v=!1;if((m.close||c.open)&&(m.length+c.length)%3===0&&(m.length%3!==0||c.length%3!==0)&&(v=!0),!v){const b=h>0&&!e[h-1].open?a[h-1]+1:0;a[s]=s-h+b,a[h]=b,c.open=!1,m.end=s,m.close=!1,p=-1,u=-2;break}}}p!==-1&&(t[c.marker][(c.open?3:0)+(c.length||0)%3]=p)}}function _k(e){const t=e.tokens_meta,n=e.tokens_meta.length;M6(e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&M6(t[i].delimiters)}function Ck(e){let t,n,i=0;const u=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)u[t].nesting<0&&i--,u[t].level=i,u[t].nesting>0&&i++,u[t].type==="text"&&t+1<a&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const q1=[["text",nk],["linkify",rk],["newline",uk],["escape",ok],["backticks",ak],["strikethrough",gT.tokenize],["emphasis",vT.tokenize],["link",dk],["image",hk],["autolink",gk],["html_inline",Ek],["entity",Tk]],G1=[["balance_pairs",_k],["strikethrough",gT.postProcess],["emphasis",vT.postProcess],["fragments_join",Ck]];function Hc(){this.ruler=new Hn;for(let e=0;e<q1.length;e++)this.ruler.push(q1[e][0],q1[e][1]);this.ruler2=new Hn;for(let e=0;e<G1.length;e++)this.ruler2.push(G1[e][0],G1[e][1])}Hc.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,u=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<u){for(let c=0;c<i;c++)if(e.level++,s=n[c](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos};Hc.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,u=e.md.options.maxNesting;for(;e.pos<i;){const a=e.pos;let s=!1;if(e.level<u){for(let c=0;c<n;c++)if(s=t[c](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Hc.prototype.parse=function(e,t,n,i){const u=new this.State(e,t,n,i);this.tokenize(u);const a=this.ruler2.getRules(""),s=a.length;for(let c=0;c<s;c++)a[c](u)};Hc.prototype.State=zc;function Ak(e){const t={};e=e||{},t.src_Any=rT.source,t.src_Cc=uT.source,t.src_Z=aT.source,t.src_P=S2.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function fg(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){e[i]=n[i]})}),e}function H0(e){return Object.prototype.toString.call(e)}function wk(e){return H0(e)==="[object String]"}function Dk(e){return H0(e)==="[object Object]"}function Nk(e){return H0(e)==="[object RegExp]"}function k6(e){return H0(e)==="[object Function]"}function Ok(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const yT={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Rk(e){return Object.keys(e||{}).reduce(function(t,n){return t||yT.hasOwnProperty(n)},!1)}const Mk={"http:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=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(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.mailto)[0].length:0}}},kk="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]",Lk="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Fk(e){e.__index__=-1,e.__text_cache__=""}function Ik(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}function L6(){return function(e,t){t.normalize(e)}}function d0(e){const t=e.re=Ak(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kk),n.push(t.src_xn),t.src_tlds=n.join("|");function i(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function a(c,f){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+f)}Object.keys(e.__schemas__).forEach(function(c){const f=e.__schemas__[c];if(f===null)return;const h={validate:null,link:null};if(e.__compiled__[c]=h,Dk(f)){Nk(f.validate)?h.validate=Ik(f.validate):k6(f.validate)?h.validate=f.validate:a(c,f),k6(f.normalize)?h.normalize=f.normalize:f.normalize?a(c,f):h.normalize=L6();return}if(wk(f)){u.push(c);return}a(c,f)}),u.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:L6()};const s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(Ok).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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"),Fk(e)}function jk(e,t){const n=e.__index__,i=e.__last_index__,u=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=u,this.text=u,this.url=u}function dg(e,t){const n=new jk(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function li(e,t){if(!(this instanceof li))return new li(e,t);t||Rk(e)&&(t=e,e={}),this.__opts__=fg({},yT,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fg({},Mk,e),this.__compiled__={},this.__tlds__=Lk,this.__tlds_replaced__=!1,this.re={},d0(this)}li.prototype.add=function(t,n){return this.__schemas__[t]=n,d0(this),this};li.prototype.set=function(t){return this.__opts__=fg(this.__opts__,t),this};li.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,i,u,a,s,c,f,h,p;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],f.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(i=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=i.index+i[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=t.indexOf("@"),p>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(s=u.index+u[1].length,c=u.index+u[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0};li.prototype.pretest=function(t){return this.re.pretest.test(t)};li.prototype.testSchemaAt=function(t,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,i,this):0};li.prototype.match=function(t){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(dg(this,i)),i=this.__last_index__);let u=i?t.slice(i):t;for(;this.test(u);)n.push(dg(this,i)),u=u.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null};li.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const i=this.testSchemaAt(t,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,dg(this,0)):null};li.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(i,u,a){return i!==a[u-1]}).reverse(),d0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,d0(this),this)};li.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};li.prototype.onCompile=function(){};const Ts=2147483647,xr=36,w2=1,xc=26,Pk=38,Vk=700,bT=72,ET=128,xT="-",$k=/^xn--/,Bk=/[^\0-\x7F]/,Uk=/[\x2E\u3002\uFF0E\uFF61]/g,zk={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y1=xr-w2,Sr=Math.floor,Q1=String.fromCharCode;function lo(e){throw new RangeError(zk[e])}function Hk(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function ST(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(Uk,".");const u=e.split("."),a=Hk(u,t).join(".");return i+a}function TT(e){const t=[];let n=0;const i=e.length;for(;n<i;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<i){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((u&1023)<<10)+(a&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const qk=e=>String.fromCodePoint(...e),Gk=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:xr},F6=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},_T=function(e,t,n){let i=0;for(e=n?Sr(e/Vk):e>>1,e+=Sr(e/t);e>Y1*xc>>1;i+=xr)e=Sr(e/Y1);return Sr(i+(Y1+1)*e/(e+Pk))},CT=function(e){const t=[],n=e.length;let i=0,u=ET,a=bT,s=e.lastIndexOf(xT);s<0&&(s=0);for(let c=0;c<s;++c)e.charCodeAt(c)>=128&&lo("not-basic"),t.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c<n;){const f=i;for(let p=1,m=xr;;m+=xr){c>=n&&lo("invalid-input");const v=Gk(e.charCodeAt(c++));v>=xr&&lo("invalid-input"),v>Sr((Ts-i)/p)&&lo("overflow"),i+=v*p;const b=m<=a?w2:m>=a+xc?xc:m-a;if(v<b)break;const x=xr-b;p>Sr(Ts/x)&&lo("overflow"),p*=x}const h=t.length+1;a=_T(i-f,h,f==0),Sr(i/h)>Ts-u&&lo("overflow"),u+=Sr(i/h),i%=h,t.splice(i++,0,u)}return String.fromCodePoint(...t)},AT=function(e){const t=[];e=TT(e);const n=e.length;let i=ET,u=0,a=bT;for(const f of e)f<128&&t.push(Q1(f));const s=t.length;let c=s;for(s&&t.push(xT);c<n;){let f=Ts;for(const p of e)p>=i&&p<f&&(f=p);const h=c+1;f-i>Sr((Ts-u)/h)&&lo("overflow"),u+=(f-i)*h,i=f;for(const p of e)if(p<i&&++u>Ts&&lo("overflow"),p===i){let m=u;for(let v=xr;;v+=xr){const b=v<=a?w2:v>=a+xc?xc:v-a;if(m<b)break;const x=m-b,S=xr-b;t.push(Q1(F6(b+x%S,0))),m=Sr(x/S)}t.push(Q1(F6(m,0))),a=_T(u,h,c===s),u=0,++c}++u,++i}return t.join("")},Yk=function(e){return ST(e,function(t){return $k.test(t)?CT(t.slice(4).toLowerCase()):t})},Qk=function(e){return ST(e,function(t){return Bk.test(t)?"xn--"+AT(t):t})},wT={version:"2.3.1",ucs2:{decode:TT,encode:qk},decode:CT,encode:AT,toASCII:Qk,toUnicode:Yk},Xk={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Zk={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"]}}},Wk={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"]}}},Kk={default:Xk,zero:Zk,commonmark:Wk},Jk=/^(vbscript|javascript|file|data):/,eL=/^data:image\/(gif|png|jpeg|webp);/;function tL(e){const t=e.trim().toLowerCase();return Jk.test(t)?eL.test(t):!0}const DT=["http:","https:","mailto:"];function nL(e){const t=x2(e,!0);if(t.hostname&&(!t.protocol||DT.indexOf(t.protocol)>=0))try{t.hostname=wT.toASCII(t.hostname)}catch{}return Uc(E2(t))}function iL(e){const t=x2(e,!0);if(t.hostname&&(!t.protocol||DT.indexOf(t.protocol)>=0))try{t.hostname=wT.toUnicode(t.hostname)}catch{}return Rs(E2(t),Rs.defaultChars+"%")}function Oi(e,t){if(!(this instanceof Oi))return new Oi(e,t);t||T2(e)||(t=e||{},e="default"),this.inline=new Hc,this.block=new z0,this.core=new C2,this.renderer=new Us,this.linkify=new li,this.validateLink=tL,this.normalizeLink=nL,this.normalizeLinkText=iL,this.utils=uM,this.helpers=B0({},lM),this.options={},this.configure(e),t&&this.set(t)}Oi.prototype.set=function(e){return B0(this.options,e),this};Oi.prototype.configure=function(e){const t=this;if(T2(e)){const n=e;if(e=Kk[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Oi.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(u){return n.indexOf(u)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Oi.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(u){return n.indexOf(u)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Oi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Oi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Oi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Oi.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Oi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const h0=new Oi({breaks:!1,linkify:!0});function rL(e,t,{schema:n,setSchemaReference:i},u,a){Bc([],{useCommonAddons:!1}).then(c=>{let f,h,p,m,v,b,x,S,_;c.on(t,"select",(T,D)=>{if(!f){const w=D.parentNode;f=document.createElement("div"),f.className="CodeMirror-hint-information",w.append(f);const N=document.createElement("header");N.className="CodeMirror-hint-information-header",f.append(N),h=document.createElement("span"),h.className="CodeMirror-hint-information-field-name",N.append(h),p=document.createElement("span"),p.className="CodeMirror-hint-information-type-name-pill",N.append(p),m=document.createElement("span"),p.append(m),v=document.createElement("a"),v.className="CodeMirror-hint-information-type-name",v.href="javascript:void 0",v.addEventListener("click",s),p.append(v),b=document.createElement("span"),p.append(b),x=document.createElement("div"),x.className="CodeMirror-hint-information-description",f.append(x),S=document.createElement("div"),S.className="CodeMirror-hint-information-deprecation",f.append(S);const R=document.createElement("span");R.className="CodeMirror-hint-information-deprecation-label",R.textContent="Deprecated",S.append(R),_=document.createElement("div"),_.className="CodeMirror-hint-information-deprecation-reason",S.append(_);const M=parseInt(window.getComputedStyle(f).paddingBottom.replace(/px$/,""),10)||0,I=parseInt(window.getComputedStyle(f).maxHeight.replace(/px$/,""),10)||0,$=()=>{f&&(f.style.paddingTop=w.scrollTop+M+"px",f.style.maxHeight=w.scrollTop+I+"px")};w.addEventListener("scroll",$);let L;w.addEventListener("DOMNodeRemoved",L=z=>{z.target===w&&(w.removeEventListener("scroll",$),w.removeEventListener("DOMNodeRemoved",L),f==null||f.removeEventListener("click",s),f=null,h=null,p=null,m=null,v=null,b=null,x=null,S=null,_=null,L=null)})}if(h&&(h.textContent=T.text),p&&m&&v&&b)if(T.type){p.style.display="inline";const w=N=>{Vt(N)?(b.textContent="!"+b.textContent,w(N.ofType)):Mn(N)?(m.textContent+="[",b.textContent="]"+b.textContent,w(N.ofType)):v.textContent=N.name};m.textContent="",b.textContent="",w(T.type)}else m.textContent="",v.textContent="",b.textContent="",p.style.display="none";x&&(T.description?(x.style.display="block",x.innerHTML=h0.render(T.description)):(x.style.display="none",x.innerHTML="")),S&&_&&(T.deprecationReason?(S.style.display="block",_.innerHTML=h0.render(T.deprecationReason)):(S.style.display="none",_.innerHTML=""))})});function s(c){const f=u==null?void 0:u.referencePlugin;if(!n||!f||!(c.currentTarget instanceof HTMLElement))return;const h=c.currentTarget.textContent||"",p=n.getType(h);p&&(u.setVisiblePlugin(f),i({kind:"Type",type:p}),a==null||a(p))}}function ks(e,t){let n;return function(...i){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...i)},e)}}function Td(e,t){const n=ge.c(4);let i,u;n[0]!==e||n[1]!==t?(i=()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},u=[e,t],n[0]=e,n[1]=t,n[2]=i,n[3]=u):(i=n[2],u=n[3]),E.useEffect(i,u)}function q0(e,t,n){const i=ge.c(5);let u,a;i[0]!==e||i[1]!==t||i[2]!==n?(u=()=>{e==null||e.setOption(t,n)},a=[e,t,n],i[0]=e,i[1]=t,i[2]=n,i[3]=u,i[4]=a):(u=i[3],a=i[4]),E.useEffect(u,a)}function NT(e,t,n,i,u){const a=ge.c(9);let s;a[0]!==u?(s={nonNull:!0,caller:u},a[0]=u,a[1]=s):s=a[1];const{updateActiveTabValues:c}=xn(s);let f,h;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==i||a[6]!==c?(f=()=>{if(!e)return;const{storage:p}=$s.getState(),m=ks(500,x=>{n!==null&&p.set(n,x)}),v=ks(100,x=>{c({[i]:x})}),b=(x,S)=>{if(!S)return;const _=x.getValue();m(_),v(_),t==null||t(_)};return e.on("change",b),()=>e.off("change",b)},h=[t,e,n,i,c],a[2]=t,a[3]=e,a[4]=n,a[5]=i,a[6]=c,a[7]=f,a[8]=h):(f=a[7],h=a[8]),E.useEffect(f,h)}function OT(e,t){const n=ge.c(7),{schema:i,setSchemaReference:u}=Lr(),a=$0();let s,c;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==i||n[4]!==u?(s=()=>{if(!e)return;const f=(h,p)=>{rL(h,p,{schema:i,setSchemaReference:u},a,v=>{t==null||t({kind:"Type",type:v,schema:i||void 0})})};return e.on("hasCompletion",f),()=>e.off("hasCompletion",f)},c=[t,e,a,i,u],n[0]=t,n[1]=e,n[2]=a,n[3]=i,n[4]=u,n[5]=s,n[6]=c):(s=n[5],c=n[6]),E.useEffect(s,c)}function Tr(e,t,n){const i=ge.c(5);let u,a;i[0]!==n||i[1]!==e||i[2]!==t?(u=()=>{if(e){for(const s of t)e.removeKeyMap(s);if(n){const s={};for(const c of t)s[c]=()=>n();e.addKeyMap(s)}}},a=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=u,i[4]=a):(u=i[3],a=i[4]),E.useEffect(u,a)}const uL=D2,oL=qc,aL=Gc,sL=RT;function D2(e){const t=ge.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i,onCopyQuery:u}=n,a=i||uL;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:c}=xn(s);let f;return t[4]!==u||t[5]!==c?(f=()=>{if(!c)return;const h=c.getValue();pR(h),u==null||u(h)},t[4]=u,t[5]=c,t[6]=f):f=t[6],f}function qc(e){const t=ge.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i}=n,u=i||oL;let a;t[2]!==u?(a={nonNull:!0,caller:u},t[2]=u,t[3]=a):a=t[3];const{queryEditor:s}=xn(a),{schema:c}=Lr();let f;return t[4]!==s||t[5]!==c?(f=()=>{const h=s==null?void 0:s.documentAST,p=s==null?void 0:s.getValue();!h||!p||s.setValue(ai(tO(h,c)))},t[4]=s,t[5]=c,t[6]=f):f=t[6],f}function lL(e){return ai(ha(e))}function Gc(e){const t=ge.c(9);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i,onPrettifyQuery:u}=n,a=u===void 0?lL:u,s=i||aL;let c;t[2]!==s?(c={nonNull:!0,caller:s},t[2]=s,t[3]=c):c=t[3];const{queryEditor:f,headerEditor:h,variableEditor:p}=xn(c);let m;return t[4]!==h||t[5]!==a||t[6]!==f||t[7]!==p?(m=async()=>{if(p){const v=p.getValue();try{const b=JSON.stringify(JSON.parse(v),null,2);b!==v&&p.setValue(b)}catch{}}if(h){const v=h.getValue();try{const b=JSON.stringify(JSON.parse(v),null,2);b!==v&&h.setValue(b)}catch{}}if(f){const v=f.getValue();try{const b=await a(v);b!==v&&f.setValue(b)}catch{}}},t[4]=h,t[5]=a,t[6]=f,t[7]=p,t[8]=m):m=t[8],m}function RT(e){const t=ge.c(8);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:i,caller:u}=n,{schema:a}=Lr(),s=u||sL;let c;t[2]!==s?(c={nonNull:!0,caller:s},t[2]=s,t[3]=c):c=t[3];const{queryEditor:f}=xn(c);let h;return t[4]!==i||t[5]!==f||t[6]!==a?(h=()=>{if(!f)return;const p=f.getValue(),{insertions:m,result:v}=XN(a,p,i);return m&&m.length>0&&f.operation(()=>{const b=f.getCursor(),x=f.indexFromPos(b);f.setValue(v||"");let S;S=0;const _=m.map(D=>{const{index:w,string:N}=D;return S=S+N.length,f.markText(f.posFromIndex(w+S),f.posFromIndex(w+S),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const D of _)D.clear()},7e3);let T=x;for(const{index:D,string:w}of m)D<x&&(T=T+w.length);f.setCursor(f.posFromIndex(T))}),v},t[4]=i,t[5]=f,t[6]=a,t[7]=h):h=t[7],h}function cL(){return Bc([Je(()=>import("./javascript-D5beiKM7.js").then(e=>e.j),__vite__mapDeps([15,1]))])}const _d=MT;function MT(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:u,keyMap:a,onEdit:s,readOnly:c}=i,f=u===void 0?j0:u,h=a===void 0?P0:a,p=c===void 0?!1:c,m=t||_d;let v;n[2]!==m?(v={nonNull:!0,caller:m},n[2]=m,n[3]=v):v=n[3];const{initialHeaders:b,headerEditor:x,setHeaderEditor:S,shouldPersistHeaders:_}=xn(v),T=zs(),D=t||_d;let w;n[4]!==D?(w={caller:D},n[4]=D,n[5]=w):w=n[5];const N=qc(w),R=t||_d;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const I=Gc(M),$=E.useRef(null);let L,z;n[8]!==f||n[9]!==b||n[10]!==p||n[11]!==S?(L=()=>{let ie;return ie=!0,cL().then(ee=>{if(!ie)return;const F=$.current;if(!F)return;const H=ee(F,{value:b,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:V0});H.addKeyMap({"Cmd-Space"(){H.showHint({completeSingle:!1,container:F})},"Ctrl-Space"(){H.showHint({completeSingle:!1,container:F})},"Alt-Space"(){H.showHint({completeSingle:!1,container:F})},"Shift-Space"(){H.showHint({completeSingle:!1,container:F})}}),H.on("keyup",fL),S(H)}),()=>{ie=!1}},z=[f,b,p,S],n[8]=f,n[9]=b,n[10]=p,n[11]=S,n[12]=L,n[13]=z):(L=n[12],z=n[13]),E.useEffect(L,z),q0(x,"keyMap",h),NT(x,s,_?Gd:null,"headers",_d);let G;n[14]===Symbol.for("react.memo_cache_sentinel")?(G=["Cmd-Enter","Ctrl-Enter"],n[14]=G):G=n[14],Tr(x,G,T==null?void 0:T.run);let J;n[15]===Symbol.for("react.memo_cache_sentinel")?(J=["Shift-Ctrl-P"],n[15]=J):J=n[15],Tr(x,J,I);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],Tr(x,se,N),$}function fL(e,t){const{code:n,key:i,shiftKey:u}=t,a=n.startsWith("Key"),s=!u&&n.startsWith("Digit");(a||s||i==="_"||i==='"')&&e.execCommand("autocomplete")}const Gd="headers",dL=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),hL=new RegExp("["+dL.join("")+"]","g");function pL(e){return e.replace(hL," ")}function mL(){return Bc([Je(()=>import("./comment-BVJMQhN6.js").then(e=>e.c),__vite__mapDeps([16,1])),Je(()=>import("./search-VmHaoDxX.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),Je(()=>import("./hint-BSR8dSJU.js"),__vite__mapDeps([18,0,1,2,19])),Je(()=>import("./lint-D0Nn7W2f.js"),__vite__mapDeps([20,0,1,19])),Je(()=>import("./info-CPMDNpdA.js"),__vite__mapDeps([21,0,1,22,23,24])),Je(()=>import("./jump-CithgEl1.js"),__vite__mapDeps([25,0,1,22,23])),Je(()=>import("./mode-D2kfUDDL.js"),__vite__mapDeps([26,0,1,27]))])}const Cd=kT;function gL(e,t){e.state.lint.linterOptions.variableToType=t==null?void 0:t.variableToType,e.options.lint.variableToType=t==null?void 0:t.variableToType,e.options.hintOptions.variableToType=t==null?void 0:t.variableToType}function vL(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function yL(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function bL(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function kT(e,t){const n=ge.c(40);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:u,keyMap:a,onClickReference:s,onCopyQuery:c,onEdit:f,onPrettifyQuery:h,readOnly:p}=i,m=u===void 0?j0:u,v=a===void 0?P0:a,b=p===void 0?!1:p,{schema:x,setSchemaReference:S}=Lr(),_=t||Cd;let T;n[2]!==_?(T={nonNull:!0,caller:_},n[2]=_,n[3]=T):T=n[3];const{externalFragments:D,initialQuery:w,queryEditor:N,setOperationName:R,setQueryEditor:M,validationRules:I,variableEditor:$,updateActiveTabValues:L}=xn(T),z=zs(),G=Bs(),J=$0(),se=t||Cd;let ie;n[4]!==c||n[5]!==se?(ie={caller:se,onCopyQuery:c},n[4]=c,n[5]=se,n[6]=ie):ie=n[6];const ee=D2(ie),F=t||Cd;let H;n[7]!==F?(H={caller:F},n[7]=F,n[8]=H):H=n[8];const P=qc(H),V=t||Cd;let re;n[9]!==h||n[10]!==V?(re={caller:V,onPrettifyQuery:h},n[9]=h,n[10]=V,n[11]=re):re=n[11];const k=Gc(re),B=E.useRef(null),te=E.useRef(void 0),W=E.useRef(TL);let he,de;n[12]!==s||n[13]!==J||n[14]!==S?(he=()=>{W.current=xe=>{const Me=J==null?void 0:J.referencePlugin;Me&&(J.setVisiblePlugin(Me),S(xe),s==null||s(xe))}},de=[s,J,S],n[12]=s,n[13]=J,n[14]=S,n[15]=he,n[16]=de):(he=n[15],de=n[16]),E.useEffect(he,de);let ue,fe;n[17]!==m||n[18]!==w||n[19]!==b||n[20]!==M?(ue=()=>{let xe;return xe=!0,mL().then(Me=>{if(!xe)return;te.current=Me;const De=B.current;if(!De)return;const ke=Me(De,{value:w,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:m,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:b?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:De,externalFragments:void 0,autocompleteOptions:{mode:gu.EXECUTABLE}},info:{schema:void 0,renderDescription:SL,onClick(ft){W.current(ft)}},jump:{schema:void 0,onClick(ft){W.current(ft)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...V0,"Cmd-S"(){},"Ctrl-S"(){}}}),Tt=function(){ke.showHint({completeSingle:!0,container:De})};ke.addKeyMap({"Cmd-Space":Tt,"Ctrl-Space":Tt,"Alt-Space":Tt,"Shift-Space":Tt,"Shift-Alt-Space":Tt}),ke.on("keyup",xL);let Xe;Xe=!1,ke.on("startCompletion",()=>{Xe=!0}),ke.on("endCompletion",()=>{Xe=!1}),ke.on("keydown",(ft,Li)=>{Li.key==="Escape"&&Xe&&Li.stopPropagation()}),ke.on("beforeChange",EL),ke.documentAST=null,ke.operationName=null,ke.operations=null,ke.variableToType=null,M(ke)}),()=>{xe=!1}},fe=[m,w,b,M],n[17]=m,n[18]=w,n[19]=b,n[20]=M,n[21]=ue,n[22]=fe):(ue=n[21],fe=n[22]),E.useEffect(ue,fe),q0(N,"keyMap",v);let me,_e;n[23]!==f||n[24]!==N||n[25]!==x||n[26]!==R||n[27]!==G||n[28]!==L||n[29]!==$?(me=()=>{if(!N)return;const xe=function(ke){var Tt;const Xe=KO(x,ke.getValue()),ft=nO(ke.operations??void 0,ke.operationName??void 0,Xe==null?void 0:Xe.operations);return ke.documentAST=(Xe==null?void 0:Xe.documentAST)??null,ke.operationName=ft??null,ke.operations=(Xe==null?void 0:Xe.operations)??null,$&&(gL($,Xe),(Tt=te.current)==null||Tt.signal($,"change",$)),Xe?{...Xe,operationName:ft}:null},Me=ks(100,De=>{const ke=De.getValue();G.set(LT,ke);const Tt=De.operationName,Xe=xe(De);(Xe==null?void 0:Xe.operationName)!==void 0&&G.set(DL,Xe.operationName),f==null||f(ke,Xe==null?void 0:Xe.documentAST),Xe!=null&&Xe.operationName&&Tt!==Xe.operationName&&R(Xe.operationName),L({query:ke,operationName:(Xe==null?void 0:Xe.operationName)??null})});return xe(N),N.on("change",Me),()=>N.off("change",Me)},_e=[f,N,x,R,G,$,L],n[23]=f,n[24]=N,n[25]=x,n[26]=R,n[27]=G,n[28]=L,n[29]=$,n[30]=me,n[31]=_e):(me=n[30],_e=n[31]),E.useEffect(me,_e),_L(N,x??null,te),CL(N,I??null,te),AL(N,D,te),OT(N,s);const Se=z==null?void 0:z.run;let ct;n[32]!==N||n[33]!==Se||n[34]!==R?(ct=()=>{var xe;if(!Se||!N||!N.operations||!N.hasFocus()){Se==null||Se();return}const Me=N.indexFromPos(N.getCursor());let De;for(const ke of N.operations)ke.loc&&ke.loc.start<=Me&&ke.loc.end>=Me&&(De=(xe=ke.name)==null?void 0:xe.value);De&&De!==N.operationName&&R(De),Se()},n[32]=N,n[33]=Se,n[34]=R,n[35]=ct):ct=n[35];const Ce=ct;let rt;n[36]===Symbol.for("react.memo_cache_sentinel")?(rt=["Cmd-Enter","Ctrl-Enter"],n[36]=rt):rt=n[36],Tr(N,rt,Ce);let Xt;n[37]===Symbol.for("react.memo_cache_sentinel")?(Xt=["Shift-Ctrl-C"],n[37]=Xt):Xt=n[37],Tr(N,Xt,ee);let Zt;n[38]===Symbol.for("react.memo_cache_sentinel")?(Zt=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=Zt):Zt=n[38],Tr(N,Zt,k);let un;return n[39]===Symbol.for("react.memo_cache_sentinel")?(un=["Shift-Ctrl-M"],n[39]=un):un=n[39],Tr(N,un,P),B}function EL(e,t){var n;if(t.origin==="paste"){const i=t.text.map(pL);(n=t.update)==null||n.call(t,t.from,t.to,i)}}function xL(e,t){wL.test(t.key)&&e.execCommand("autocomplete")}function SL(e){return h0.render(e)}function TL(){}function _L(e,t,n){const i=ge.c(5);let u,a;i[0]!==n||i[1]!==e||i[2]!==t?(u=()=>{if(!e)return;const s=e.options.lint.schema!==t;vL(e,t),s&&n.current&&n.current.signal(e,"change",e)},a=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=u,i[4]=a):(u=i[3],a=i[4]),E.useEffect(u,a)}function CL(e,t,n){const i=ge.c(5);let u,a;i[0]!==n||i[1]!==e||i[2]!==t?(u=()=>{if(!e)return;const s=e.options.lint.validationRules!==t;yL(e,t),s&&n.current&&n.current.signal(e,"change",e)},a=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=u,i[4]=a):(u=i[3],a=i[4]),E.useEffect(u,a)}function AL(e,t,n){const i=ge.c(7);let u;i[0]!==t?(u=[...t.values()],i[0]=t,i[1]=u):u=i[1];const a=u;let s,c;i[2]!==n||i[3]!==e||i[4]!==a?(s=()=>{if(!e)return;const f=e.options.lint.externalFragments!==a;bL(e,a),f&&n.current&&n.current.signal(e,"change",e)},c=[e,a,n],i[2]=n,i[3]=e,i[4]=a,i[5]=s,i[6]=c):(s=i[5],c=i[6]),E.useEffect(s,c)}const wL=/^[a-zA-Z0-9_@(]$/,LT="query",DL="operationName";function NL({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:i,query:u,variables:a,shouldPersistHeaders:s}){const{storage:c}=$s.getState(),f=c.get(Sc);try{if(!f)throw new Error("Storage for tabs is empty");const h=JSON.parse(f),p=s?n:void 0;if(OL(h)){const m=p0({query:u,variables:a,headers:p});let v=-1;for(let b=0;b<h.tabs.length;b++){const x=h.tabs[b];x.hash=p0({query:x.query,variables:x.variables,headers:x.headers}),x.hash===m&&(v=b)}if(v>=0)h.activeTabIndex=v;else{const b=u?N2(u):null;h.tabs.push({id:PT(),hash:m,title:b||O2,query:u,variables:a,headers:n,operationName:b,response:null}),h.activeTabIndex=h.tabs.length-1}return h}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(i||[{query:u??e,variables:a,headers:n??t}]).map(IT)}}}function OL(e){return e&&typeof e=="object"&&!Array.isArray(e)&&ML(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(RL)}function RL(e){return e&&typeof e=="object"&&!Array.isArray(e)&&I6(e,"id")&&I6(e,"title")&&zl(e,"query")&&zl(e,"variables")&&zl(e,"headers")&&zl(e,"operationName")&&zl(e,"response")}function ML(e,t){return t in e&&typeof e[t]=="number"}function I6(e,t){return t in e&&typeof e[t]=="string"}function zl(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function kL({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i}){return E.useCallback(u=>{const a=(e==null?void 0:e.getValue())??null,s=(t==null?void 0:t.getValue())??null,c=(n==null?void 0:n.getValue())??null,f=(e==null?void 0:e.operationName)??null,h=(i==null?void 0:i.getValue())??null;return jT(u,{query:a,variables:s,headers:c,response:h,operationName:f})},[e,t,n,i])}function FT(e,t=!1){return JSON.stringify(e,(n,i)=>n==="hash"||n==="response"||!t&&n==="headers"?null:i)}function LL({shouldPersistHeaders:e}){return E.useCallback(t=>{const{storage:n}=$s.getState();ks(500,u=>{n.set(Sc,u)})(FT(t,e))},[e])}function FL({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i,defaultHeaders:u}){return E.useCallback(({query:a,variables:s,headers:c,response:f})=>{e==null||e.setValue(a??""),t==null||t.setValue(s??""),n==null||n.setValue(c??u??""),i==null||i.setValue(f??"")},[n,e,i,t,u])}function IT({query:e=null,variables:t=null,headers:n=null}={}){const i=e?N2(e):null;return{id:PT(),hash:p0({query:e,variables:t,headers:n}),title:i||O2,query:e,variables:t,headers:n,operationName:i,response:null}}function jT(e,t){return{...e,tabs:e.tabs.map((n,i)=>{if(i!==e.activeTabIndex)return n;const u={...n,...t};return{...u,hash:p0(u),title:u.operationName||(u.query?N2(u.query):void 0)||O2}})}}function PT(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function p0(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function N2(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(n==null?void 0:n[2])??null}function IL(){const{storage:e}=$s.getState(),t=e.get(Sc);if(t){const n=JSON.parse(t);e.set(Sc,JSON.stringify(n,(i,u)=>i==="headers"?null:u))}}const O2="<untitled>",Sc="tabState";function jL(){return Bc([Je(()=>import("./hint-C4PD-SNa.js"),__vite__mapDeps([28,0,1,23])),Je(()=>import("./lint-D6ikTZPp.js"),__vite__mapDeps([29,0,1])),Je(()=>import("./mode-DX1D_QC-.js"),__vite__mapDeps([30,0,1,27]))])}const Ad=VT;function VT(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:u,keyMap:a,onClickReference:s,onEdit:c,readOnly:f}=i,h=u===void 0?j0:u,p=a===void 0?P0:a,m=f===void 0?!1:f,v=t||Ad;let b;n[2]!==v?(b={nonNull:!0,caller:v},n[2]=v,n[3]=b):b=n[3];const{initialVariables:x,variableEditor:S,setVariableEditor:_}=xn(b),T=zs(),D=t||Ad;let w;n[4]!==D?(w={caller:D},n[4]=D,n[5]=w):w=n[5];const N=qc(w),R=t||Ad;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const I=Gc(M),$=E.useRef(null);let L,z;n[8]!==h||n[9]!==x||n[10]!==m||n[11]!==_?(L=()=>{let ie;return ie=!0,jL().then(ee=>{if(!ie)return;const F=$.current;if(!F)return;const H=ee(F,{value:x,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:h,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:m?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:F,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:V0});H.addKeyMap({"Cmd-Space"(){H.showHint({completeSingle:!1,container:F})},"Ctrl-Space"(){H.showHint({completeSingle:!1,container:F})},"Alt-Space"(){H.showHint({completeSingle:!1,container:F})},"Shift-Space"(){H.showHint({completeSingle:!1,container:F})}}),H.on("keyup",PL),_(H)}),()=>{ie=!1}},z=[h,x,m,_],n[8]=h,n[9]=x,n[10]=m,n[11]=_,n[12]=L,n[13]=z):(L=n[12],z=n[13]),E.useEffect(L,z),q0(S,"keyMap",p),NT(S,c,$T,"variables",Ad),OT(S,s);let G;n[14]===Symbol.for("react.memo_cache_sentinel")?(G=["Cmd-Enter","Ctrl-Enter"],n[14]=G):G=n[14],Tr(S,G,T==null?void 0:T.run);let J;n[15]===Symbol.for("react.memo_cache_sentinel")?(J=["Shift-Ctrl-P"],n[15]=J):J=n[15],Tr(S,J,I);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],Tr(S,se,N),$}function PL(e,t){const{code:n,key:i,shiftKey:u}=t,a=n.startsWith("Key"),s=!u&&n.startsWith("Digit");(a||s||i==="_"||i==='"')&&e.execCommand("autocomplete")}const $T="variables",j6=`# Welcome to GraphiQL
|
|
282
|
+
#
|
|
283
|
+
# GraphiQL is an in-browser tool for writing, validating, and
|
|
284
|
+
# testing GraphQL queries.
|
|
285
|
+
#
|
|
286
|
+
# Type queries into this side of the screen, and you will see intelligent
|
|
287
|
+
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
288
|
+
# validation errors highlighted within the text.
|
|
289
|
+
#
|
|
290
|
+
# GraphQL queries typically start with a "{" character. Lines that start
|
|
291
|
+
# with a # are ignored.
|
|
292
|
+
#
|
|
293
|
+
# An example GraphQL query might look like:
|
|
294
|
+
#
|
|
295
|
+
# {
|
|
296
|
+
# field(arg: "value") {
|
|
297
|
+
# subField
|
|
298
|
+
# }
|
|
299
|
+
# }
|
|
300
|
+
#
|
|
301
|
+
# Keyboard shortcuts:
|
|
302
|
+
#
|
|
303
|
+
# Prettify query: Shift-Ctrl-P (or press the prettify button)
|
|
304
|
+
#
|
|
305
|
+
# Merge fragments: Shift-Ctrl-M (or press the merge button)
|
|
306
|
+
#
|
|
307
|
+
# Run Query: Ctrl-Enter (or press the play button)
|
|
308
|
+
#
|
|
309
|
+
# Auto Complete: Ctrl-Space (or just start typing)
|
|
310
|
+
#
|
|
311
|
+
|
|
312
|
+
`,BT=eT("EditorContext"),VL=e=>{const t=ge.c(88),n=Bs(),[i,u]=E.useState(null),[a,s]=E.useState(null),[c,f]=E.useState(null),[h,p]=E.useState(null);let m;t[0]!==e.shouldPersistHeaders||t[1]!==n?(m=()=>{const xe=n.get(X1)!==null;return e.shouldPersistHeaders!==!1&&xe?n.get(X1)==="true":!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=m):m=t[2];const[v,b]=E.useState(m);Td(i,e.headers),Td(a,e.query),Td(c,e.response),Td(h,e.variables);let x;t[3]!==v?(x={shouldPersistHeaders:v},t[3]=v,t[4]=x):x=t[4];const S=LL(x);let _;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==v||t[13]!==n||t[14]!==S?(_=()=>{const xe=e.query??n.get(LT)??null,Me=e.variables??n.get($T)??null,De=e.headers??n.get(Gd)??null,ke=e.response??"",Tt=NL({query:xe,variables:Me,headers:De,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||j6,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:v});return S(Tt),{query:xe??(Tt.activeTabIndex===0?Tt.tabs[0].query:null)??"",variables:Me??"",headers:De??e.defaultHeaders??"",response:ke,tabState:Tt}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=v,t[13]=n,t[14]=S,t[15]=_):_=t[15];const[T]=E.useState(_),[D,w]=E.useState(T.tabState);let N;t[16]!==i||t[17]!==n||t[18]!==D?(N=xe=>{if(xe){n.set(Gd,(i==null?void 0:i.getValue())??"");const Me=FT(D,!0);n.set(Sc,Me)}else n.set(Gd,""),IL();b(xe),n.set(X1,xe.toString())},t[16]=i,t[17]=n,t[18]=D,t[19]=N):N=t[19];const R=N,M=E.useRef(void 0);let I,$;t[20]!==e.shouldPersistHeaders||t[21]!==R?(I=()=>{const xe=!!e.shouldPersistHeaders;(M==null?void 0:M.current)!==xe&&(R(xe),M.current=xe)},$=[e.shouldPersistHeaders,R],t[20]=e.shouldPersistHeaders,t[21]=R,t[22]=I,t[23]=$):(I=t[22],$=t[23]),E.useEffect(I,$);let L;t[24]!==i||t[25]!==a||t[26]!==c||t[27]!==h?(L={queryEditor:a,variableEditor:h,headerEditor:i,responseEditor:c},t[24]=i,t[25]=a,t[26]=c,t[27]=h,t[28]=L):L=t[28];const z=kL(L),{onTabChange:G,defaultHeaders:J,defaultQuery:se,children:ie}=e;let ee;t[29]!==J||t[30]!==i||t[31]!==a||t[32]!==c||t[33]!==h?(ee={queryEditor:a,variableEditor:h,headerEditor:i,responseEditor:c,defaultHeaders:J},t[29]=J,t[30]=i,t[31]=a,t[32]=c,t[33]=h,t[34]=ee):ee=t[34];const F=FL(ee);let H;t[35]!==J||t[36]!==se||t[37]!==G||t[38]!==F||t[39]!==S||t[40]!==z?(H=()=>{w(xe=>{const Me=z(xe),De={tabs:[...Me.tabs,IT({headers:J,query:se??j6})],activeTabIndex:Me.tabs.length};return S(De),F(De.tabs[De.activeTabIndex]),G==null||G(De),De})},t[35]=J,t[36]=se,t[37]=G,t[38]=F,t[39]=S,t[40]=z,t[41]=H):H=t[41];const P=H;let V;t[42]!==G||t[43]!==F||t[44]!==S?(V=xe=>{w(Me=>{const De={...Me,activeTabIndex:xe};return S(De),F(De.tabs[De.activeTabIndex]),G==null||G(De),De})},t[42]=G,t[43]=F,t[44]=S,t[45]=V):V=t[45];const re=V;let k;t[46]!==G||t[47]!==F||t[48]!==S?(k=xe=>{w(Me=>{const De=Me.tabs[Me.activeTabIndex],ke={tabs:xe,activeTabIndex:xe.indexOf(De)};return S(ke),F(ke.tabs[ke.activeTabIndex]),G==null||G(ke),ke})},t[46]=G,t[47]=F,t[48]=S,t[49]=k):k=t[49];const B=k;let te;t[50]!==G||t[51]!==F||t[52]!==S?(te=xe=>{w(Me=>{const De={tabs:Me.tabs.filter((ke,Tt)=>xe!==Tt),activeTabIndex:Math.max(Me.activeTabIndex-1,0)};return S(De),F(De.tabs[De.activeTabIndex]),G==null||G(De),De})},t[50]=G,t[51]=F,t[52]=S,t[53]=te):te=t[53];const W=te;let he;t[54]!==G||t[55]!==S?(he=xe=>{w(Me=>{const De=jT(Me,xe);return S(De),G==null||G(De),De})},t[54]=G,t[55]=S,t[56]=he):he=t[56];const de=he,{onEditOperationName:ue}=e;let fe;t[57]!==ue||t[58]!==a||t[59]!==de?(fe=xe=>{a&&($L(a,xe),de({operationName:xe}),ue==null||ue(xe))},t[57]=ue,t[58]=a,t[59]=de,t[60]=fe):fe=t[60];const me=fe;let _e,Se;if(t[61]!==e.externalFragments){if(Se=new Map,Array.isArray(e.externalFragments))for(const xe of e.externalFragments)Se.set(xe.name.value,xe);else if(typeof e.externalFragments=="string")Wi(ha(e.externalFragments,{}),{FragmentDefinition(xe){Se.set(xe.name.value,xe)}});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]=Se}else Se=t[62];_e=Se;const ct=_e;let Ce;t[63]!==e.validationRules?(Ce=e.validationRules||[],t[63]=e.validationRules,t[64]=Ce):Ce=t[64];const rt=Ce;let Xt;t[65]!==P||t[66]!==re||t[67]!==W||t[68]!==ct||t[69]!==i||t[70]!==T.headers||t[71]!==T.query||t[72]!==T.response||t[73]!==T.variables||t[74]!==B||t[75]!==a||t[76]!==c||t[77]!==me||t[78]!==R||t[79]!==v||t[80]!==D||t[81]!==de||t[82]!==rt||t[83]!==h?(Xt={...D,addTab:P,changeTab:re,moveTab:B,closeTab:W,updateActiveTabValues:de,headerEditor:i,queryEditor:a,responseEditor:c,variableEditor:h,setHeaderEditor:u,setQueryEditor:s,setResponseEditor:f,setVariableEditor:p,setOperationName:me,initialQuery:T.query,initialVariables:T.variables,initialHeaders:T.headers,initialResponse:T.response,externalFragments:ct,validationRules:rt,shouldPersistHeaders:v,setShouldPersistHeaders:R},t[65]=P,t[66]=re,t[67]=W,t[68]=ct,t[69]=i,t[70]=T.headers,t[71]=T.query,t[72]=T.response,t[73]=T.variables,t[74]=B,t[75]=a,t[76]=c,t[77]=me,t[78]=R,t[79]=v,t[80]=D,t[81]=de,t[82]=rt,t[83]=h,t[84]=Xt):Xt=t[84];const Zt=Xt;let un;return t[85]!==ie||t[86]!==Zt?(un=A.jsx(BT.Provider,{value:Zt,children:ie}),t[85]=ie,t[86]=Zt,t[87]=un):un=t[87],un};function $L(e,t){e.operationName=t}const xn=tT(BT),X1="shouldPersistHeaders",UT=eT("ExecutionContext"),hg=e=>{const t=ge.c(26),{fetcher:n,getDefaultFieldNames:i,children:u,operationName:a}=e;if(typeof n!="function")throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:hg},t[0]=s):s=t[0];const{externalFragments:c,headerEditor:f,queryEditor:h,responseEditor:p,variableEditor:m,updateActiveTabValues:v}=xn(s);let b;t[1]!==i?(b={getDefaultFieldNames:i,caller:hg},t[1]=i,t[2]=b):b=t[2];const x=RT(b),[S,_]=E.useState(!1),[T,D]=E.useState(null),w=E.useRef(0);let N;t[3]!==T?(N=()=>{T==null||T.unsubscribe(),_(!1),D(null)},t[3]=T,t[4]=N):N=t[4];const R=N;let M;t[5]!==x||t[6]!==c||t[7]!==n||t[8]!==f||t[9]!==a||t[10]!==h||t[11]!==p||t[12]!==R||t[13]!==T||t[14]!==v||t[15]!==m?(M=async()=>{if(!h||!p)return;if(T){R();return}const se=te=>{p.setValue(te),v({response:te})};w.current=w.current+1;const ie=w.current;let ee=x()||h.getValue();const F=m==null?void 0:m.getValue();let H;try{H=P6({json:F,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(te){const W=te;se(W instanceof Error?W.message:`${W}`);return}const P=f==null?void 0:f.getValue();let V;try{V=P6({json:P,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(te){const W=te;se(W instanceof Error?W.message:`${W}`);return}if(c){const te=h.documentAST?XO(h.documentAST,c):[];te.length>0&&(ee=ee+(`
|
|
313
|
+
`+te.map(UL).join(`
|
|
314
|
+
`)))}se(""),_(!0);const re=a??h.operationName??void 0,k=V??void 0,B=h.documentAST??void 0;try{const te={},W=ue=>{if(ie!==w.current)return;let fe=Array.isArray(ue)?ue:!1;if(!fe&&typeof ue=="object"&&ue!==null&&"hasNext"in ue&&(fe=[ue]),fe){for(const me of fe)zT(te,me);_(!1),se(Ym(te))}else{const me=Ym(ue);_(!1),se(me)}},de=await n({query:ee,variables:H,operationName:re},{headers:k,documentAST:B});aS(de)?D(de.subscribe({next(ue){W(ue)},error(ue){_(!1),ue&&se(i0(ue)),D(null)},complete(){_(!1),D(null)}})):sS(de)?(D({unsubscribe:()=>{var ue,fe;return(fe=(ue=de[Symbol.asyncIterator]()).return)==null?void 0:fe.call(ue)}}),await BL(W,de),_(!1),D(null)):W(de)}catch(te){const W=te;_(!1),se(i0(W)),D(null)}},t[5]=x,t[6]=c,t[7]=n,t[8]=f,t[9]=a,t[10]=h,t[11]=p,t[12]=R,t[13]=T,t[14]=v,t[15]=m,t[16]=M):M=t[16];const I=M,$=!!T,L=a??null;let z;t[17]!==S||t[18]!==I||t[19]!==R||t[20]!==$||t[21]!==L?(z={isFetching:S,isSubscribed:$,operationName:L,run:I,stop:R},t[17]=S,t[18]=I,t[19]=R,t[20]=$,t[21]=L,t[22]=z):z=t[22];const G=z;let J;return t[23]!==u||t[24]!==G?(J=A.jsx(UT.Provider,{value:G,children:u}),t[23]=u,t[24]=G,t[25]=J):J=t[25],J};async function BL(e,t){for await(const n of t)e(n)}const zs=tT(UT);function P6({json:e,errorMessageParse:t,errorMessageType:n}){let i;try{i=e&&e.trim()!==""?JSON.parse(e):void 0}catch(a){throw new Error(`${t}: ${a instanceof Error?a.message:a}.`)}const u=typeof i=="object"&&i!==null&&!Array.isArray(i);if(i!==void 0&&!u)throw new Error(n);return i}const Hl=new WeakMap;function zT(e,t){var n,i,u;let a=["data",...t.path??[]];for(const f of[e,t])if(f.pending){let h=Hl.get(e);h===void 0&&(h=new Map,Hl.set(e,h));for(const{id:p,path:m}of f.pending)h.set(p,["data",...m])}const{items:s}=t;if(s){const{id:f}=t;if(f){if(a=(n=Hl.get(e))==null?void 0:n.get(f),a===void 0)throw new Error("Invalid incremental delivery format.");uR(e,a.join(".")).push(...s)}else{a=["data",...t.path??[]];for(const h of s)P1(e,a.join("."),h),a[a.length-1]++}}const{data:c}=t;if(c){const{id:f}=t;if(f){if(a=(i=Hl.get(e))==null?void 0:i.get(f),a===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:h}=t;h!==void 0&&(a=[...a,...h])}P1(e,a.join("."),c,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&P1(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const f of t.incremental)zT(e,f);if(t.completed)for(const{id:f,errors:h}of t.completed)(u=Hl.get(e))==null||u.delete(f),h&&(e.errors||(e.errors=[]),e.errors.push(...h))}function UL(e){return ai(e)}const zL=e=>{const t=ge.c(45),{children:n,dangerouslyAssumeSchemaIsValid:i,defaultQuery:u,defaultHeaders:a,defaultTabs:s,externalFragments:c,fetcher:f,getDefaultFieldNames:h,headers:p,inputValueDeprecation:m,introspectionQueryName:v,onEditOperationName:b,onSchemaChange:x,onTabChange:S,onTogglePluginVisibility:_,operationName:T,plugins:D,referencePlugin:w,query:N,response:R,schema:M,schemaDescription:I,shouldPersistHeaders:$,storage:L,validationRules:z,variables:G,visiblePlugin:J}=e;let se;t[0]!==a||t[1]!==u||t[2]!==s||t[3]!==c||t[4]!==p||t[5]!==b||t[6]!==S||t[7]!==N||t[8]!==R||t[9]!==$||t[10]!==z||t[11]!==G?(se={defaultQuery:u,defaultHeaders:a,defaultTabs:s,externalFragments:c,headers:p,onEditOperationName:b,onTabChange:S,query:N,response:R,shouldPersistHeaders:$,validationRules:z,variables:G},t[0]=a,t[1]=u,t[2]=s,t[3]=c,t[4]=p,t[5]=b,t[6]=S,t[7]=N,t[8]=R,t[9]=$,t[10]=z,t[11]=G,t[12]=se):se=t[12];const ie=se;let ee;t[13]!==i||t[14]!==f||t[15]!==m||t[16]!==v||t[17]!==x||t[18]!==M||t[19]!==I?(ee={dangerouslyAssumeSchemaIsValid:i,fetcher:f,inputValueDeprecation:m,introspectionQueryName:v,onSchemaChange:x,schema:M,schemaDescription:I},t[13]=i,t[14]=f,t[15]=m,t[16]=v,t[17]=x,t[18]=M,t[19]=I,t[20]=ee):ee=t[20];const F=ee;let H;t[21]!==f||t[22]!==h||t[23]!==T?(H={getDefaultFieldNames:h,fetcher:f,operationName:T},t[21]=f,t[22]=h,t[23]=T,t[24]=H):H=t[24];const P=H;let V;t[25]!==_||t[26]!==D||t[27]!==w||t[28]!==J?(V={onTogglePluginVisibility:_,plugins:D,visiblePlugin:J,referencePlugin:w},t[25]=_,t[26]=D,t[27]=w,t[28]=J,t[29]=V):V=t[29];const re=V;let k;t[30]!==n||t[31]!==re?(k=A.jsx(mR,{...re,children:n}),t[30]=n,t[31]=re,t[32]=k):k=t[32];let B;t[33]!==P||t[34]!==k?(B=A.jsx(hg,{...P,children:k}),t[33]=P,t[34]=k,t[35]=B):B=t[35];let te;t[36]!==F||t[37]!==B?(te=A.jsx(iT,{...F,children:B}),t[36]=F,t[37]=B,t[38]=te):te=t[38];let W;t[39]!==ie||t[40]!==te?(W=A.jsx(VL,{...ie,children:te}),t[39]=ie,t[40]=te,t[41]=W):W=t[41];let he;return t[42]!==L||t[43]!==W?(he=A.jsx(sR,{storage:L,children:W}),t[42]=L,t[43]=W,t[44]=he):he=t[44],he};function HL(e){const t=ge.c(11),n=e===void 0?null:e,i=Bs();let u;t[0]!==n||t[1]!==i?(u=()=>{const v=i.get(Z1);switch(v){case"light":return"light";case"dark":return"dark";default:return typeof v=="string"&&i.set(Z1,""),n}},t[0]=n,t[1]=i,t[2]=u):u=t[2];const[a,s]=E.useState(u);let c,f;t[3]!==a?(c=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),a&&document.body.classList.add(`graphiql-${a}`)},f=[a],t[3]=a,t[4]=c,t[5]=f):(c=t[4],f=t[5]),E.useEffect(c,f);let h;t[6]!==i?(h=v=>{i.set(Z1,v||""),s(v)},t[6]=i,t[7]=h):h=t[7];const p=h;let m;return t[8]!==p||t[9]!==a?(m={theme:a,setTheme:p},t[8]=p,t[9]=a,t[10]=m):m=t[10],m}const Z1="theme",qL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),GL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),YL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),QL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),XL=({title:e,titleId:t,...n})=>E.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?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M1 1L12.9998 12.9997"}),E.createElement("path",{d:"M13 1L1.00079 13.0003"})),ZL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),WL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),E.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),KL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),E.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),E.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"})),JL=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),E.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),E.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),eF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),E.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"})),tF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.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}),E.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"})),nF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),iF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),E.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"})),rF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),E.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),uF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),E.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),E.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})),oF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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)"}),E.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),aF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"}),E.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"}),E.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"}),E.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),E.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"})),sF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),E.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),lF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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}),E.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}),E.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),E.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),cF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"}),E.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),fF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"})),dF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"})),hF=({title:e,titleId:t,...n})=>E.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?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),E.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),E.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}),E.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),E.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"})),pF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),E.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),E.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}),E.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})),mF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),E.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})),gF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"})),vF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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"})),yF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.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})),bF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),EF=({title:e,titleId:t,...n})=>E.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?E.createElement("title",{id:t},e):null,E.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"})),xF=({title:e,titleId:t,...n})=>E.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?E.createElement("title",{id:t},e):null,E.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),E.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),SF=it(qL),TF=it(GL),_F=it(YL),CF=it(QL),R2=it(XL),AF=it(ZL),wF=it(WL),DF=it(KL),NF=it(JL),OF=it(eF),RF=it(tF),MF=it(nF),kF=it(iF),LF=it(rF),FF=it(uF),IF=it(oF),jF=it(aF),PF=it(sF),VF=it(lF),$F=it(cF),BF=it(fF),UF=it(dF),zF=it(hF),HF=it(pF),qF=it(mF),GF=it(gF),YF=it(vF),QF=it(yF),XF=it(bF),ZF=it(EF),wd=it(xF);function it(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=i=>{const u=ge.c(2);let a;return u[0]!==i?(a=A.jsx(e,{title:t,...i}),u[0]=i,u[1]=a):a=u[1],a};return n.displayName=e.name,n}function HT(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=HT(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function ht(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=HT(e))&&(i&&(i+=" "),i+=t);return i}const pg=e=>{const t=ge.c(13);let n,i;t[0]!==e?({isHidden:i,...n}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0,caller:pg},t[3]=u):u=t[3];const{headerEditor:a}=xn(u),s=MT(n,pg);let c,f;t[4]!==a||t[5]!==i?(c=()=>{i||a==null||a.refresh()},f=[a,i],t[4]=a,t[5]=i,t[6]=c,t[7]=f):(c=t[6],f=t[7]),E.useEffect(c,f);const h=i&&"hidden";let p;t[8]!==h?(p=ht("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==s||t[11]!==p?(m=A.jsx("div",{className:p,ref:s}),t[10]=s,t[11]=p,t[12]=m):m=t[12],m},WF=e=>{var t;const n=ge.c(14);let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:null,height:null},n[0]=i):i=n[0];const[u,a]=E.useState(i),[s,c]=E.useState(null),f=E.useRef(null),h=(t=qT(e.token))==null?void 0:t.href;let p,m;n[1]!==h?(p=()=>{if(f.current){if(!h){a({width:null,height:null}),c(null);return}fetch(h,{method:"HEAD"}).then(T=>{c(T.headers.get("Content-Type"))}).catch(()=>{c(null)})}},m=[h],n[1]=h,n[2]=p,n[3]=m):(p=n[2],m=n[3]),E.useEffect(p,m);let v;n[4]!==u.height||n[5]!==u.width||n[6]!==s?(v=u.width!==null&&u.height!==null?A.jsxs("div",{children:[u.width,"x",u.height,s===null?null:" "+s]}):null,n[4]=u.height,n[5]=u.width,n[6]=s,n[7]=v):v=n[7];const b=v;let x;n[8]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{var T,D;a({width:((T=f.current)==null?void 0:T.naturalWidth)??null,height:((D=f.current)==null?void 0:D.naturalHeight)??null})},n[8]=x):x=n[8];let S;n[9]!==h?(S=A.jsx("img",{onLoad:x,ref:f,src:h}),n[9]=h,n[10]=S):S=n[10];let _;return n[11]!==b||n[12]!==S?(_=A.jsxs("div",{children:[S,b]}),n[11]=b,n[12]=S,n[13]=_):_=n[13],_},V6=Object.assign(WF,{shouldRender(e){const t=qT(e);return t?KF(t):!1}});function qT(e){if(e.type!=="string")return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}function KF(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}const GT=e=>{const t=ge.c(2),n=kT(e,GT);let i;return t[0]!==n?(i=A.jsx("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=i):i=t[1],i};function JF(){return Bc([Je(()=>import("./foldgutter-imeg-kqI.js").then(e=>e.f),__vite__mapDeps([7,1])),Je(()=>import("./brace-fold-DEG6LdUK.js").then(e=>e.b),__vite__mapDeps([6,1])),Je(()=>import("./dialog-CmdwRfZG.js").then(e=>e.d),__vite__mapDeps([13,12,1])),Je(()=>import("./search-VmHaoDxX.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),Je(()=>import("./searchcursor-Btj1Isyq.js").then(e=>e.s),__vite__mapDeps([9,10,1])),Je(()=>import("./jump-to-line-CuGLfPVz.js").then(e=>e.j),__vite__mapDeps([11,1,12])),Je(()=>import("./sublime-Cu2r7iXj.js").then(e=>e.s),__vite__mapDeps([14,1,10,4])),Je(()=>import("./mode-CUnsIk96.js"),__vite__mapDeps([31,0,1,27])),Je(()=>import("./info-addon-BVQ9dZja.js"),__vite__mapDeps([24,0,1]))],{useCommonAddons:!1})}const eI=YT;function YT(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{responseTooltip:u,editorTheme:a,keyMap:s}=i,c=a===void 0?j0:a,f=s===void 0?P0:s,{fetchError:h,validationErrors:p}=Lr(),m=t||eI;let v;n[2]!==m?(v={nonNull:!0,caller:m},n[2]=m,n[3]=v):v=n[3];const{initialResponse:b,responseEditor:x,setResponseEditor:S}=xn(v),_=E.useRef(null),T=E.useRef(u);let D,w;n[4]!==u?(D=()=>{T.current=u},w=[u],n[4]=u,n[5]=D,n[6]=w):(D=n[5],w=n[6]),E.useEffect(D,w);let N,R;n[7]!==c||n[8]!==b||n[9]!==S?(N=()=>{let $;return $=!0,JF().then(L=>{if(!$)return;const z=document.createElement("div"),G=oS.createRoot(z);L.registerHelper("info","graphql-results",(ie,ee,F,H)=>{const P=T.current,V=[P&&A.jsx(P,{pos:H,token:ie}),V6.shouldRender(ie)&&A.jsx(V6,{token:ie},"image-preview")].filter(tI);if(V.length)return G.render(V),z;G.unmount()});const J=_.current;if(!J)return;const se=L(J,{value:b,lineWrapping:!0,readOnly:!0,theme:c,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:V0});S(se)}),()=>{$=!1}},R=[c,b,S],n[7]=c,n[8]=b,n[9]=S,n[10]=N,n[11]=R):(N=n[10],R=n[11]),E.useEffect(N,R),q0(x,"keyMap",f);let M,I;return n[12]!==h||n[13]!==x||n[14]!==p?(M=()=>{h&&(x==null||x.setValue(h)),p.length&&(x==null||x.setValue(i0(p)))},I=[x,h,p],n[12]=h,n[13]=x,n[14]=p,n[15]=M,n[16]=I):(M=n[15],I=n[16]),E.useEffect(M,I),_}function tI(e){return!!e}const QT=e=>{const t=ge.c(2),n=YT(e,QT);let i;return t[0]!==n?(i=A.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=i):i=t[1],i},mg=e=>{const t=ge.c(13);let n,i;t[0]!==e?({isHidden:i,...n}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0,caller:mg},t[3]=u):u=t[3];const{variableEditor:a}=xn(u),s=VT(n,mg);let c,f;t[4]!==i||t[5]!==a?(c=()=>{i||a==null||a.refresh()},f=[a,i],t[4]=i,t[5]=a,t[6]=c,t[7]=f):(c=t[6],f=t[7]),E.useEffect(c,f);const h=i&&"hidden";let p;t[8]!==h?(p=ht("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==s||t[11]!==p?(m=A.jsx("div",{className:p,ref:s}),t[10]=s,t[11]=p,t[12]=m):m=t[12],m};function W1(e){const t=ge.c(31),{defaultSizeRelation:n,direction:i,initiallyHidden:u,onHiddenElementChange:a,sizeThresholdFirst:s,sizeThresholdSecond:c,storageKey:f}=e,h=n===void 0?1:n,p=s===void 0?100:s,m=c===void 0?100:c,v=Bs();let b;t[0]!==v||t[1]!==f?(b=ks(500,ee=>{f&&v.set(f,ee)}),t[0]=v,t[1]=f,t[2]=b):b=t[2];const x=b;let S;t[3]!==u||t[4]!==v||t[5]!==f?(S=()=>{const ee=f&&v.get(f);return ee===Dd||u==="first"?"first":ee===Nd||u==="second"?"second":null},t[3]=u,t[4]=v,t[5]=f,t[6]=S):S=t[6];const[_,T]=E.useState(S);let D;t[7]!==_||t[8]!==a?(D=ee=>{ee!==_&&(T(ee),a==null||a(ee))},t[7]=_,t[8]=a,t[9]=D):D=t[9];const w=D,N=E.useRef(null),R=E.useRef(null),M=E.useRef(null),I=E.useRef(`${h}`);let $;t[10]!==v||t[11]!==f?($=()=>{const ee=f&&v.get(f)||I.current;N.current&&(N.current.style.flex=ee===Dd||ee===Nd?I.current:ee),M.current&&(M.current.style.flex="1")},t[10]=v,t[11]=f,t[12]=$):$=t[12];let L;t[13]!==i||t[14]!==v||t[15]!==f?(L=[i,v,f],t[13]=i,t[14]=v,t[15]=f,t[16]=L):L=t[16],E.useEffect($,L);let z,G;t[17]!==_||t[18]!==v||t[19]!==f?(G=()=>{const ee=H=>{const P=H==="first"?N.current:M.current;if(P&&(P.style.left="-1000px",P.style.position="absolute",P.style.opacity="0",P.style.height="500px",P.style.width="500px",N.current)){const V=parseFloat(N.current.style.flex);(!Number.isFinite(V)||V<1)&&(N.current.style.flex="1")}},F=H=>{const P=H==="first"?N.current:M.current;if(P&&(P.style.width="",P.style.height="",P.style.opacity="",P.style.position="",P.style.left="",f)){const V=v.get(f);N.current&&V!==Dd&&V!==Nd&&(N.current.style.flex=V||I.current)}};_==="first"?ee("first"):F("first"),_==="second"?ee("second"):F("second")},z=[_,v,f],t[17]=_,t[18]=v,t[19]=f,t[20]=z,t[21]=G):(z=t[20],G=t[21]),E.useEffect(G,z);let J,se;t[22]!==i||t[23]!==w||t[24]!==p||t[25]!==m||t[26]!==x?(J=()=>{if(!R.current||!N.current||!M.current)return;const ee=R.current,F=N.current,H=F.parentElement,P=i==="horizontal"?"clientX":"clientY",V=i==="horizontal"?"left":"top",re=i==="horizontal"?"right":"bottom",k=i==="horizontal"?"clientWidth":"clientHeight",B=function(he){if(!(he.target===he.currentTarget))return;he.preventDefault();const ue=he[P]-ee.getBoundingClientRect()[V],fe=function(Se){if(Se.buttons===0)return me();const ct=Se[P]-H.getBoundingClientRect()[V]-ue,Ce=H.getBoundingClientRect()[re]-Se[P]+ue-ee[k];if(ct<p)w("first"),x(Dd);else if(Ce<m)w("second"),x(Nd);else{w(null);const rt=`${ct/Ce}`;F.style.flex=rt,x(rt)}};function me(){document.removeEventListener("mousemove",fe),document.removeEventListener("mouseup",me)}document.addEventListener("mousemove",fe),document.addEventListener("mouseup",me)};ee.addEventListener("mousedown",B);const te=function(){N.current&&(N.current.style.flex=I.current),x(I.current),w(null)};return ee.addEventListener("dblclick",te),()=>{ee.removeEventListener("mousedown",B),ee.removeEventListener("dblclick",te)}},se=[i,w,p,m,x],t[22]=i,t[23]=w,t[24]=p,t[25]=m,t[26]=x,t[27]=J,t[28]=se):(J=t[27],se=t[28]),E.useEffect(J,se);let ie;return t[29]!==_?(ie={dragBarRef:R,hiddenElement:_,firstRef:N,setHiddenElement:T,secondRef:M},t[29]=_,t[30]=ie):ie=t[30],ie}const Dd="hide-first",Nd="hide-second",nn=E.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ht("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let u;return n[2]!==e||n[3]!==t||n[4]!==i?(u=A.jsx("button",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=u):u=n[5],u});nn.displayName="UnStyledButton";const Xi=E.forwardRef((e,t)=>{const n=ge.c(7);let i;n[0]!==e.className||n[1]!==e.state?(i=ht("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=i):i=n[2];let u;return n[3]!==e||n[4]!==t||n[5]!==i?(u=A.jsx("button",{...e,ref:t,className:i}),n[3]=e,n[4]=t,n[5]=i,n[6]=u):u=n[6],u});Xi.displayName="Button";const gg=E.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ht("graphiql-button-group",e.className),n[0]=e.className,n[1]=i):i=n[1];let u;return n[2]!==e||n[3]!==t||n[4]!==i?(u=A.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=u):u=n[5],u});gg.displayName="ButtonGroup";function Re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(u){if(e==null||e(u),n===!1||!u.defaultPrevented)return t==null?void 0:t(u)}}function $6(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function G0(...e){return t=>{let n=!1;const i=e.map(u=>{const a=$6(u,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let u=0;u<i.length;u++){const a=i[u];typeof a=="function"?a():$6(e[u],null)}}}}function rn(...e){return E.useCallback(G0(...e),e)}function nI(e,t){const n=E.createContext(t),i=a=>{const{children:s,...c}=a,f=E.useMemo(()=>c,Object.values(c));return A.jsx(n.Provider,{value:f,children:s})};i.displayName=e+"Provider";function u(a){const s=E.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,u]}function ga(e,t=[]){let n=[];function i(a,s){const c=E.createContext(s),f=n.length;n=[...n,s];const h=m=>{var T;const{scope:v,children:b,...x}=m,S=((T=v==null?void 0:v[e])==null?void 0:T[f])||c,_=E.useMemo(()=>x,Object.values(x));return A.jsx(S.Provider,{value:_,children:b})};h.displayName=a+"Provider";function p(m,v){var S;const b=((S=v==null?void 0:v[e])==null?void 0:S[f])||c,x=E.useContext(b);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,p]}const u=()=>{const a=n.map(s=>E.createContext(s));return function(c){const f=(c==null?void 0:c[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return u.scopeName=e,[i,iI(u,...t)]}function iI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(a){const s=i.reduce((c,{useScope:f,scopeName:h})=>{const m=f(a)[`__scope${h}`];return{...c,...m}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var mo=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},rI=s2[" useId ".trim().toString()]||(()=>{}),uI=0;function ta(e){const[t,n]=E.useState(rI());return mo(()=>{n(i=>i??String(uI++))},[e]),e||(t?`radix-${t}`:"")}var oI=s2[" useInsertionEffect ".trim().toString()]||mo;function Y0({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[u,a,s]=aI({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:u;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const m=p.current;m!==c&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,i])}const h=E.useCallback(p=>{var m;if(c){const v=sI(p)?p(e):p;v!==e&&((m=s.current)==null||m.call(s,v))}else a(p)},[c,e,a,s]);return[f,h]}function aI({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),u=E.useRef(n),a=E.useRef(t);return oI(()=>{a.current=t},[t]),E.useEffect(()=>{var s;u.current!==n&&((s=a.current)==null||s.call(a,n),u.current=n)},[n,u]),[n,i,a]}function sI(e){return typeof e=="function"}var An=uS();const lI=da(An);function Tc(e){const t=cI(e),n=E.forwardRef((i,u)=>{const{children:a,...s}=i,c=E.Children.toArray(a),f=c.find(dI);if(f){const h=f.props.children,p=c.map(m=>m===f?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:m);return A.jsx(t,{...s,ref:u,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return A.jsx(t,{...s,ref:u,children:a})});return n.displayName=`${e}.Slot`,n}function cI(e){const t=E.forwardRef((n,i)=>{const{children:u,...a}=n;if(E.isValidElement(u)){const s=pI(u),c=hI(a,u.props);return u.type!==E.Fragment&&(c.ref=i?G0(i,s):s),E.cloneElement(u,c)}return E.Children.count(u)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XT=Symbol("radix.slottable");function fI(e){const t=({children:n})=>A.jsx(A.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=XT,t}function dI(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XT}function hI(e,t){const n={...t};for(const i in t){const u=e[i],a=t[i];/^on[A-Z]/.test(i)?u&&a?n[i]=(...c)=>{const f=a(...c);return u(...c),f}:u&&(n[i]=u):i==="style"?n[i]={...u,...a}:i==="className"&&(n[i]=[u,a].filter(Boolean).join(" "))}return{...e,...n}}function pI(e){var i,u;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kt=mI.reduce((e,t)=>{const n=Tc(`Primitive.${t}`),i=E.forwardRef((u,a)=>{const{asChild:s,...c}=u,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function ZT(e,t){e&&An.flushSync(()=>e.dispatchEvent(t))}function yu(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function gI(e,t=globalThis==null?void 0:globalThis.document){const n=yu(e);E.useEffect(()=>{const i=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var vI="DismissableLayer",vg="dismissableLayer.update",yI="dismissableLayer.pointerDownOutside",bI="dismissableLayer.focusOutside",B6,WT=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Q0=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...f}=e,h=E.useContext(WT),[p,m]=E.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=E.useState({}),x=rn(t,I=>m(I)),S=Array.from(h.layers),[_]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(_),D=p?S.indexOf(p):-1,w=h.layersWithOutsidePointerEventsDisabled.size>0,N=D>=T,R=SI(I=>{const $=I.target,L=[...h.branches].some(z=>z.contains($));!N||L||(u==null||u(I),s==null||s(I),I.defaultPrevented||c==null||c())},v),M=TI(I=>{const $=I.target;[...h.branches].some(z=>z.contains($))||(a==null||a(I),s==null||s(I),I.defaultPrevented||c==null||c())},v);return gI(I=>{D===h.layers.size-1&&(i==null||i(I),!I.defaultPrevented&&c&&(I.preventDefault(),c()))},v),E.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(B6=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),U6(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=B6)}},[p,v,n,h]),E.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),U6())},[p,h]),E.useEffect(()=>{const I=()=>b({});return document.addEventListener(vg,I),()=>document.removeEventListener(vg,I)},[]),A.jsx(kt.div,{...f,ref:x,style:{pointerEvents:w?N?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,R.onPointerDownCapture)})});Q0.displayName=vI;var EI="DismissableLayerBranch",xI=E.forwardRef((e,t)=>{const n=E.useContext(WT),i=E.useRef(null),u=rn(t,i);return E.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),A.jsx(kt.div,{...e,ref:u})});xI.displayName=EI;function SI(e,t=globalThis==null?void 0:globalThis.document){const n=yu(e),i=E.useRef(!1),u=E.useRef(()=>{});return E.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let f=function(){KT(yI,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",u.current),u.current=f,t.addEventListener("click",u.current,{once:!0})):f()}else t.removeEventListener("click",u.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function TI(e,t=globalThis==null?void 0:globalThis.document){const n=yu(e),i=E.useRef(!1);return E.useEffect(()=>{const u=a=>{a.target&&!i.current&&KT(bI,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function U6(){const e=new CustomEvent(vg);document.dispatchEvent(e)}function KT(e,t,n,{discrete:i}){const u=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),i?ZT(u,a):u.dispatchEvent(a)}var K1="focusScope.autoFocusOnMount",J1="focusScope.autoFocusOnUnmount",z6={bubbles:!1,cancelable:!0},_I="FocusScope",M2=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:a,...s}=e,[c,f]=E.useState(null),h=yu(u),p=yu(a),m=E.useRef(null),v=rn(t,S=>f(S)),b=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let S=function(w){if(b.paused||!c)return;const N=w.target;c.contains(N)?m.current=N:ao(m.current,{select:!0})},_=function(w){if(b.paused||!c)return;const N=w.relatedTarget;N!==null&&(c.contains(N)||ao(m.current,{select:!0}))},T=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&ao(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",_);const D=new MutationObserver(T);return c&&D.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",_),D.disconnect()}}},[i,c,b.paused]),E.useEffect(()=>{if(c){q6.add(b);const S=document.activeElement;if(!c.contains(S)){const T=new CustomEvent(K1,z6);c.addEventListener(K1,h),c.dispatchEvent(T),T.defaultPrevented||(CI(OI(JT(c)),{select:!0}),document.activeElement===S&&ao(c))}return()=>{c.removeEventListener(K1,h),setTimeout(()=>{const T=new CustomEvent(J1,z6);c.addEventListener(J1,p),c.dispatchEvent(T),T.defaultPrevented||ao(S??document.body,{select:!0}),c.removeEventListener(J1,p),q6.remove(b)},0)}}},[c,h,p,b]);const x=E.useCallback(S=>{if(!n&&!i||b.paused)return;const _=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(_&&T){const D=S.currentTarget,[w,N]=AI(D);w&&N?!S.shiftKey&&T===N?(S.preventDefault(),n&&ao(w,{select:!0})):S.shiftKey&&T===w&&(S.preventDefault(),n&&ao(N,{select:!0})):T===D&&S.preventDefault()}},[n,i,b.paused]);return A.jsx(kt.div,{tabIndex:-1,...s,ref:v,onKeyDown:x})});M2.displayName=_I;function CI(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ao(i,{select:t}),document.activeElement!==n)return}function AI(e){const t=JT(e),n=H6(t,e),i=H6(t.reverse(),e);return[n,i]}function JT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function H6(e,t){for(const n of e)if(!wI(n,{upTo:t}))return n}function wI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DI(e){return e instanceof HTMLInputElement&&"select"in e}function ao(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DI(e)&&t&&e.select()}}var q6=NI();function NI(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=G6(e,t),e.unshift(t)},remove(t){var n;e=G6(e,t),(n=e[0])==null||n.resume()}}}function G6(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function OI(e){return e.filter(t=>t.tagName!=="A")}var RI="Portal",X0=E.forwardRef((e,t)=>{var c;const{container:n,...i}=e,[u,a]=E.useState(!1);mo(()=>a(!0),[]);const s=n||u&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?lI.createPortal(A.jsx(kt.div,{...i,ref:t}),s):null});X0.displayName=RI;function MI(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var jr=e=>{const{present:t,children:n}=e,i=kI(t),u=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),a=rn(i.ref,LI(u));return typeof n=="function"||i.isPresent?E.cloneElement(u,{ref:a}):null};jr.displayName="Presence";function kI(e){const[t,n]=E.useState(),i=E.useRef(null),u=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[c,f]=MI(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=Od(i.current);a.current=c==="mounted"?h:"none"},[c]),mo(()=>{const h=i.current,p=u.current;if(p!==e){const v=a.current,b=Od(h);e?f("MOUNT"):b==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&v!==b?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,f]),mo(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,m=b=>{const S=Od(i.current).includes(CSS.escape(b.animationName));if(b.target===t&&S&&(f("ANIMATION_END"),!u.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},v=b=>{b.target===t&&(a.current=Od(i.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:E.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function Od(e){return(e==null?void 0:e.animationName)||"none"}function LI(e){var i,u;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var em=0;function e_(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Y6()),document.body.insertAdjacentElement("beforeend",e[1]??Y6()),em++,()=>{em===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),em--}},[])}function Y6(){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 Er=function(){return Er=Object.assign||function(t){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Er.apply(this,arguments)};function t_(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(e);u<i.length;u++)t.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(e,i[u])&&(n[i[u]]=e[i[u]]);return n}function FI(e,t,n){if(n||arguments.length===2)for(var i=0,u=t.length,a;i<u;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var Yd="right-scroll-bar-position",Qd="width-before-scroll-bar",II="with-scroll-bars-hidden",jI="--removed-body-scroll-bar-size";function tm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PI(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var u=n.value;u!==i&&(n.value=i,n.callback(i,u))}}}})[0];return n.callback=t,n.facade}var VI=typeof window<"u"?E.useLayoutEffect:E.useEffect,Q6=new WeakMap;function $I(e,t){var n=PI(null,function(i){return e.forEach(function(u){return tm(u,i)})});return VI(function(){var i=Q6.get(n);if(i){var u=new Set(i),a=new Set(e),s=n.current;u.forEach(function(c){a.has(c)||tm(c,null)}),a.forEach(function(c){u.has(c)||tm(c,s)})}Q6.set(n,e)},[e]),n}function BI(e){return e}function UI(e,t){t===void 0&&(t=BI);var n=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,i);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(i=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){i=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var f=function(){var p=s;s=[],p.forEach(a)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){s.push(p),h()},filter:function(p){return s=s.filter(p),n}}}};return u}function zI(e){e===void 0&&(e={});var t=UI(null);return t.options=Er({async:!0,ssr:!1},e),t}var n_=function(e){var t=e.sideCar,n=t_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return E.createElement(i,Er({},n))};n_.isSideCarExport=!0;function HI(e,t){return e.useMedium(t),n_}var i_=zI(),nm=function(){},Z0=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:nm,onWheelCapture:nm,onTouchMoveCapture:nm}),u=i[0],a=i[1],s=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,b=e.noRelative,x=e.noIsolation,S=e.inert,_=e.allowPinchZoom,T=e.as,D=T===void 0?"div":T,w=e.gapMode,N=t_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,M=$I([n,t]),I=Er(Er({},N),u);return E.createElement(E.Fragment,null,p&&E.createElement(R,{sideCar:i_,removeScrollBar:h,shards:m,noRelative:b,noIsolation:x,inert:S,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:w}),s?E.cloneElement(E.Children.only(c),Er(Er({},I),{ref:M})):E.createElement(D,Er({},I,{className:f,ref:M}),c))});Z0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Z0.classNames={fullWidth:Qd,zeroRight:Yd};var qI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qI();return t&&e.setAttribute("nonce",t),e}function YI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XI=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GI())&&(YI(t,n),QI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZI=function(){var e=XI();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},r_=function(){var e=ZI(),t=function(n){var i=n.styles,u=n.dynamic;return e(i,u),null};return t},WI={left:0,top:0,right:0,gap:0},im=function(e){return parseInt(e||"",10)||0},KI=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[im(n),im(i),im(u)]},JI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WI;var t=KI(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},ej=r_(),_s="data-scroll-locked",tj=function(e,t,n,i){var u=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
315
|
+
.`.concat(II,` {
|
|
316
|
+
overflow: hidden `).concat(i,`;
|
|
317
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
318
|
+
}
|
|
319
|
+
body[`).concat(_s,`] {
|
|
320
|
+
overflow: hidden `).concat(i,`;
|
|
321
|
+
overscroll-behavior: contain;
|
|
322
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
323
|
+
padding-left: `.concat(u,`px;
|
|
324
|
+
padding-top: `).concat(a,`px;
|
|
325
|
+
padding-right: `).concat(s,`px;
|
|
326
|
+
margin-left:0;
|
|
327
|
+
margin-top:0;
|
|
328
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
329
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.`).concat(Yd,` {
|
|
333
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.`).concat(Qd,` {
|
|
337
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.`).concat(Yd," .").concat(Yd,` {
|
|
341
|
+
right: 0 `).concat(i,`;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.`).concat(Qd," .").concat(Qd,` {
|
|
345
|
+
margin-right: 0 `).concat(i,`;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
body[`).concat(_s,`] {
|
|
349
|
+
`).concat(jI,": ").concat(c,`px;
|
|
350
|
+
}
|
|
351
|
+
`)},X6=function(){var e=parseInt(document.body.getAttribute(_s)||"0",10);return isFinite(e)?e:0},nj=function(){E.useEffect(function(){return document.body.setAttribute(_s,(X6()+1).toString()),function(){var e=X6()-1;e<=0?document.body.removeAttribute(_s):document.body.setAttribute(_s,e.toString())}},[])},ij=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,u=i===void 0?"margin":i;nj();var a=E.useMemo(function(){return JI(u)},[u]);return E.createElement(ej,{styles:tj(a,!t,u,n?"":"!important")})},yg=!1;if(typeof window<"u")try{var Rd=Object.defineProperty({},"passive",{get:function(){return yg=!0,!0}});window.addEventListener("test",Rd,Rd),window.removeEventListener("test",Rd,Rd)}catch{yg=!1}var os=yg?{passive:!1}:!1,rj=function(e){return e.tagName==="TEXTAREA"},u_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rj(e)&&n[t]==="visible")},uj=function(e){return u_(e,"overflowY")},oj=function(e){return u_(e,"overflowX")},Z6=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=o_(e,i);if(u){var a=a_(e,i),s=a[1],c=a[2];if(s>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},aj=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},sj=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},o_=function(e,t){return e==="v"?uj(t):oj(t)},a_=function(e,t){return e==="v"?aj(t):sj(t)},lj=function(e,t){return e==="h"&&t==="rtl"?-1:1},cj=function(e,t,n,i,u){var a=lj(e,window.getComputedStyle(t).direction),s=a*i,c=n.target,f=t.contains(c),h=!1,p=s>0,m=0,v=0;do{if(!c)break;var b=a_(e,c),x=b[0],S=b[1],_=b[2],T=S-_-a*x;(x||T)&&o_(e,c)&&(m+=T,v+=x);var D=c.parentNode;c=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(p&&Math.abs(m)<1||!p&&Math.abs(v)<1)&&(h=!0),h},Md=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W6=function(e){return[e.deltaX,e.deltaY]},K6=function(e){return e&&"current"in e?e.current:e},fj=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dj=function(e){return`
|
|
352
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
353
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
354
|
+
`)},hj=0,as=[];function pj(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),u=E.useState(hj++)[0],a=E.useState(r_)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var S=FI([e.lockRef.current],(e.shards||[]).map(K6),!0).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!s.current.allowPinchZoom;var T=Md(S),D=n.current,w="deltaX"in S?S.deltaX:D[0]-T[0],N="deltaY"in S?S.deltaY:D[1]-T[1],R,M=S.target,I=Math.abs(w)>Math.abs(N)?"h":"v";if("touches"in S&&I==="h"&&M.type==="range")return!1;var $=Z6(I,M);if(!$)return!0;if($?R=I:(R=I==="v"?"h":"v",$=Z6(I,M)),!$)return!1;if(!i.current&&"changedTouches"in S&&(w||N)&&(i.current=R),!R)return!0;var L=i.current||R;return cj(L,_,S,L==="h"?w:N)},[]),f=E.useCallback(function(S){var _=S;if(!(!as.length||as[as.length-1]!==a)){var T="deltaY"in _?W6(_):Md(_),D=t.current.filter(function(R){return R.name===_.type&&(R.target===_.target||_.target===R.shadowParent)&&fj(R.delta,T)})[0];if(D&&D.should){_.cancelable&&_.preventDefault();return}if(!D){var w=(s.current.shards||[]).map(K6).filter(Boolean).filter(function(R){return R.contains(_.target)}),N=w.length>0?c(_,w[0]):!s.current.noIsolation;N&&_.cancelable&&_.preventDefault()}}},[]),h=E.useCallback(function(S,_,T,D){var w={name:S,delta:_,target:T,should:D,shadowParent:mj(T)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(N){return N!==w})},1)},[]),p=E.useCallback(function(S){n.current=Md(S),i.current=void 0},[]),m=E.useCallback(function(S){h(S.type,W6(S),S.target,c(S,e.lockRef.current))},[]),v=E.useCallback(function(S){h(S.type,Md(S),S.target,c(S,e.lockRef.current))},[]);E.useEffect(function(){return as.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",f,os),document.addEventListener("touchmove",f,os),document.addEventListener("touchstart",p,os),function(){as=as.filter(function(S){return S!==a}),document.removeEventListener("wheel",f,os),document.removeEventListener("touchmove",f,os),document.removeEventListener("touchstart",p,os)}},[]);var b=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(a,{styles:dj(u)}):null,b?E.createElement(ij,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mj(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gj=HI(i_,pj);var k2=E.forwardRef(function(e,t){return E.createElement(Z0,Er({},e,{ref:t,sideCar:gj}))});k2.classNames=Z0.classNames;var vj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ss=new WeakMap,kd=new WeakMap,Ld={},rm=0,s_=function(e){return e&&(e.host||s_(e.parentNode))},yj=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=s_(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bj=function(e,t,n,i){var u=yj(t,Array.isArray(e)?e:[e]);Ld[n]||(Ld[n]=new WeakMap);var a=Ld[n],s=[],c=new Set,f=new Set(u),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};u.forEach(h);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(v){if(c.has(v))p(v);else try{var b=v.getAttribute(i),x=b!==null&&b!=="false",S=(ss.get(v)||0)+1,_=(a.get(v)||0)+1;ss.set(v,S),a.set(v,_),s.push(v),S===1&&x&&kd.set(v,!0),_===1&&v.setAttribute(n,"true"),x||v.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",v,T)}})};return p(t),c.clear(),rm++,function(){s.forEach(function(m){var v=ss.get(m)-1,b=a.get(m)-1;ss.set(m,v),a.set(m,b),v||(kd.has(m)||m.removeAttribute(i),kd.delete(m)),b||m.removeAttribute(n)}),rm--,rm||(ss=new WeakMap,ss=new WeakMap,kd=new WeakMap,Ld={})}},l_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),u=vj(e);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),bj(i,u,n,"aria-hidden")):function(){return null}},W0="Dialog",[c_]=ga(W0),[Ej,nr]=c_(W0),f_=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:u,onOpenChange:a,modal:s=!0}=e,c=E.useRef(null),f=E.useRef(null),[h,p]=Y0({prop:i,defaultProp:u??!1,onChange:a,caller:W0});return A.jsx(Ej,{scope:t,triggerRef:c,contentRef:f,contentId:ta(),titleId:ta(),descriptionId:ta(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(m=>!m),[p]),modal:s,children:n})};f_.displayName=W0;var d_="DialogTrigger",h_=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,u=nr(d_,n),a=rn(t,u.triggerRef);return A.jsx(kt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":I2(u.open),...i,ref:a,onClick:Re(e.onClick,u.onOpenToggle)})});h_.displayName=d_;var L2="DialogPortal",[xj,p_]=c_(L2,{forceMount:void 0}),m_=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:u}=e,a=nr(L2,t);return A.jsx(xj,{scope:t,forceMount:n,children:E.Children.map(i,s=>A.jsx(jr,{present:n||a.open,children:A.jsx(X0,{asChild:!0,container:u,children:s})}))})};m_.displayName=L2;var m0="DialogOverlay",g_=E.forwardRef((e,t)=>{const n=p_(m0,e.__scopeDialog),{forceMount:i=n.forceMount,...u}=e,a=nr(m0,e.__scopeDialog);return a.modal?A.jsx(jr,{present:i||a.open,children:A.jsx(Tj,{...u,ref:t})}):null});g_.displayName=m0;var Sj=Tc("DialogOverlay.RemoveScroll"),Tj=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,u=nr(m0,n);return A.jsx(k2,{as:Sj,allowPinchZoom:!0,shards:[u.contentRef],children:A.jsx(kt.div,{"data-state":I2(u.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),sa="DialogContent",v_=E.forwardRef((e,t)=>{const n=p_(sa,e.__scopeDialog),{forceMount:i=n.forceMount,...u}=e,a=nr(sa,e.__scopeDialog);return A.jsx(jr,{present:i||a.open,children:a.modal?A.jsx(_j,{...u,ref:t}):A.jsx(Cj,{...u,ref:t})})});v_.displayName=sa;var _j=E.forwardRef((e,t)=>{const n=nr(sa,e.__scopeDialog),i=E.useRef(null),u=rn(t,n.contentRef,i);return E.useEffect(()=>{const a=i.current;if(a)return l_(a)},[]),A.jsx(y_,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,a=>a.preventDefault())})}),Cj=E.forwardRef((e,t)=>{const n=nr(sa,e.__scopeDialog),i=E.useRef(!1),u=E.useRef(!1);return A.jsx(y_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(i.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:a=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const s=a.target;((h=n.triggerRef.current)==null?void 0:h.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&u.current&&a.preventDefault()}})}),y_=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:a,...s}=e,c=nr(sa,n),f=E.useRef(null),h=rn(t,f);return e_(),A.jsxs(A.Fragment,{children:[A.jsx(M2,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:a,children:A.jsx(Q0,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":I2(c.open),...s,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),A.jsxs(A.Fragment,{children:[A.jsx(Aj,{titleId:c.titleId}),A.jsx(Dj,{contentRef:f,descriptionId:c.descriptionId})]})]})}),F2="DialogTitle",b_=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,u=nr(F2,n);return A.jsx(kt.h2,{id:u.titleId,...i,ref:t})});b_.displayName=F2;var E_="DialogDescription",x_=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,u=nr(E_,n);return A.jsx(kt.p,{id:u.descriptionId,...i,ref:t})});x_.displayName=E_;var S_="DialogClose",T_=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,u=nr(S_,n);return A.jsx(kt.button,{type:"button",...i,ref:t,onClick:Re(e.onClick,()=>u.onOpenChange(!1))})});T_.displayName=S_;function I2(e){return e?"open":"closed"}var __="DialogTitleWarning",[SZ,C_]=nI(__,{contentName:sa,titleName:F2,docsSlug:"dialog"}),Aj=({titleId:e})=>{const t=C_(__),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
355
|
+
|
|
356
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
357
|
+
|
|
358
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wj="DialogDescriptionWarning",Dj=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C_(wj).contentName}}.`;return E.useEffect(()=>{var a;const u=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&u&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Nj=f_,Oj=h_,Rj=m_,Mj=g_,kj=v_,Lj=b_,Fj=x_,Ij=T_,jj=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"}),Pj="VisuallyHidden",A_=E.forwardRef((e,t)=>A.jsx(kt.span,{...e,ref:t,style:{...jj,...e.style}}));A_.displayName=Pj;var w_=A_;const D_=E.forwardRef((e,t)=>{const n=ge.c(8);let i;n[0]!==e.className?(i=ht("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let u,a;n[2]===Symbol.for("react.memo_cache_sentinel")?(u=A.jsx(w_,{children:"Close dialog"}),a=A.jsx(R2,{}),n[2]=u,n[3]=a):(u=n[2],a=n[3]);let s;return n[4]!==e||n[5]!==t||n[6]!==i?(s=A.jsx(Ij,{asChild:!0,children:A.jsxs(nn,{...e,ref:t,type:"button",className:i,children:[u,a]})}),n[4]=e,n[5]=t,n[6]=i,n[7]=s):s=n[7],s});D_.displayName="Dialog.Close";const Vj=e=>{const t=ge.c(9);let n,i;t[0]!==e?({children:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=A.jsx(Mj,{className:"graphiql-dialog-overlay"}),t[3]=u):u=t[3];let a;t[4]!==n?(a=A.jsxs(Rj,{children:[u,A.jsx(kj,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=a):a=t[5];let s;return t[6]!==i||t[7]!==a?(s=A.jsx(Nj,{...i,children:a}),t[6]=i,t[7]=a,t[8]=s):s=t[8],s},ls=Object.assign(Vj,{Close:D_,Title:Lj,Trigger:Oj,Description:Fj});function N_(e){const t=e+"CollectionProvider",[n,i]=ga(t),[u,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=S=>{const{scope:_,children:T}=S,D=Oe.useRef(null),w=Oe.useRef(new Map).current;return A.jsx(u,{scope:_,itemMap:w,collectionRef:D,children:T})};s.displayName=t;const c=e+"CollectionSlot",f=Tc(c),h=Oe.forwardRef((S,_)=>{const{scope:T,children:D}=S,w=a(c,T),N=rn(_,w.collectionRef);return A.jsx(f,{ref:N,children:D})});h.displayName=c;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=Tc(p),b=Oe.forwardRef((S,_)=>{const{scope:T,children:D,...w}=S,N=Oe.useRef(null),R=rn(_,N),M=a(p,T);return Oe.useEffect(()=>(M.itemMap.set(N,{ref:N,...w}),()=>void M.itemMap.delete(N))),A.jsx(v,{[m]:"",ref:R,children:D})});b.displayName=p;function x(S){const _=a(e+"CollectionConsumer",S);return Oe.useCallback(()=>{const D=_.collectionRef.current;if(!D)return[];const w=Array.from(D.querySelectorAll(`[${m}]`));return Array.from(_.itemMap.values()).sort((M,I)=>w.indexOf(M.ref.current)-w.indexOf(I.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:s,Slot:h,ItemSlot:b},x,i]}var $j=E.createContext(void 0);function O_(e){const t=E.useContext($j);return e||t||"ltr"}const Bj=["top","right","bottom","left"],bu=Math.min,Cn=Math.max,_c=Math.round,Fd=Math.floor,Cr=e=>({x:e,y:e}),Uj={left:"right",right:"left",bottom:"top",top:"bottom"},zj={start:"end",end:"start"};function bg(e,t,n){return Cn(e,bu(t,n))}function Nr(e,t){return typeof e=="function"?e(t):e}function Eu(e){return e.split("-")[0]}function Hs(e){return e.split("-")[1]}function j2(e){return e==="x"?"y":"x"}function P2(e){return e==="y"?"height":"width"}const Hj=new Set(["top","bottom"]);function _r(e){return Hj.has(Eu(e))?"y":"x"}function V2(e){return j2(_r(e))}function qj(e,t,n){n===void 0&&(n=!1);const i=Hs(e),u=V2(e),a=P2(u);let s=u==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=g0(s)),[s,g0(s)]}function Gj(e){const t=g0(e);return[Eg(e),t,Eg(t)]}function Eg(e){return e.replace(/start|end/g,t=>zj[t])}const J6=["left","right"],e4=["right","left"],Yj=["top","bottom"],Qj=["bottom","top"];function Xj(e,t,n){switch(e){case"top":case"bottom":return n?t?e4:J6:t?J6:e4;case"left":case"right":return t?Yj:Qj;default:return[]}}function Zj(e,t,n,i){const u=Hs(e);let a=Xj(Eu(e),n==="start",i);return u&&(a=a.map(s=>s+"-"+u),t&&(a=a.concat(a.map(Eg)))),a}function g0(e){return e.replace(/left|right|bottom|top/g,t=>Uj[t])}function Wj(e){return{top:0,right:0,bottom:0,left:0,...e}}function R_(e){return typeof e!="number"?Wj(e):{top:e,right:e,bottom:e,left:e}}function v0(e){const{x:t,y:n,width:i,height:u}=e;return{width:i,height:u,top:n,left:t,right:t+i,bottom:n+u,x:t,y:n}}function t4(e,t,n){let{reference:i,floating:u}=e;const a=_r(t),s=V2(t),c=P2(s),f=Eu(t),h=a==="y",p=i.x+i.width/2-u.width/2,m=i.y+i.height/2-u.height/2,v=i[c]/2-u[c]/2;let b;switch(f){case"top":b={x:p,y:i.y-u.height};break;case"bottom":b={x:p,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:m};break;case"left":b={x:i.x-u.width,y:m};break;default:b={x:i.x,y:i.y}}switch(Hs(t)){case"start":b[s]-=v*(n&&h?-1:1);break;case"end":b[s]+=v*(n&&h?-1:1);break}return b}const Kj=async(e,t,n)=>{const{placement:i="bottom",strategy:u="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:u}),{x:p,y:m}=t4(h,i,f),v=i,b={},x=0;for(let S=0;S<c.length;S++){const{name:_,fn:T}=c[S],{x:D,y:w,data:N,reset:R}=await T({x:p,y:m,initialPlacement:i,placement:v,strategy:u,middlewareData:b,rects:h,platform:s,elements:{reference:e,floating:t}});p=D??p,m=w??m,b={...b,[_]:{...b[_],...N}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(h=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:u}):R.rects),{x:p,y:m}=t4(h,v,f)),S=-1)}return{x:p,y:m,placement:v,strategy:u,middlewareData:b}};async function Ls(e,t){var n;t===void 0&&(t={});const{x:i,y:u,platform:a,rects:s,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:b=0}=Nr(t,e),x=R_(b),_=c[v?m==="floating"?"reference":"floating":m],T=v0(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(_)))==null||n?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:f})),D=m==="floating"?{x:i,y:u,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),N=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},R=v0(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:D,offsetParent:w,strategy:f}):D);return{top:(T.top-R.top+x.top)/N.y,bottom:(R.bottom-T.bottom+x.bottom)/N.y,left:(T.left-R.left+x.left)/N.x,right:(R.right-T.right+x.right)/N.x}}const Jj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:u,rects:a,platform:s,elements:c,middlewareData:f}=t,{element:h,padding:p=0}=Nr(e,t)||{};if(h==null)return{};const m=R_(p),v={x:n,y:i},b=V2(u),x=P2(b),S=await s.getDimensions(h),_=b==="y",T=_?"top":"left",D=_?"bottom":"right",w=_?"clientHeight":"clientWidth",N=a.reference[x]+a.reference[b]-v[b]-a.floating[x],R=v[b]-a.reference[b],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let I=M?M[w]:0;(!I||!await(s.isElement==null?void 0:s.isElement(M)))&&(I=c.floating[w]||a.floating[x]);const $=N/2-R/2,L=I/2-S[x]/2-1,z=bu(m[T],L),G=bu(m[D],L),J=z,se=I-S[x]-G,ie=I/2-S[x]/2+$,ee=bg(J,ie,se),F=!f.arrow&&Hs(u)!=null&&ie!==ee&&a.reference[x]/2-(ie<J?z:G)-S[x]/2<0,H=F?ie<J?ie-J:ie-se:0;return{[b]:v[b]+H,data:{[b]:ee,centerOffset:ie-ee-H,...F&&{alignmentOffset:H}},reset:F}}}),eP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:u,middlewareData:a,rects:s,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,..._}=Nr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const T=Eu(u),D=_r(c),w=Eu(c)===c,N=await(f.isRTL==null?void 0:f.isRTL(h.floating)),R=v||(w||!S?[g0(c)]:Gj(c)),M=x!=="none";!v&&M&&R.push(...Zj(c,S,x,N));const I=[c,...R],$=await Ls(t,_),L=[];let z=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&L.push($[T]),m){const ie=qj(u,s,N);L.push($[ie[0]],$[ie[1]])}if(z=[...z,{placement:u,overflows:L}],!L.every(ie=>ie<=0)){var G,J;const ie=(((G=a.flip)==null?void 0:G.index)||0)+1,ee=I[ie];if(ee&&(!(m==="alignment"?D!==_r(ee):!1)||z.every(P=>_r(P.placement)===D?P.overflows[0]>0:!0)))return{data:{index:ie,overflows:z},reset:{placement:ee}};let F=(J=z.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:J.placement;if(!F)switch(b){case"bestFit":{var se;const H=(se=z.filter(P=>{if(M){const V=_r(P.placement);return V===D||V==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(V=>V>0).reduce((V,re)=>V+re,0)]).sort((P,V)=>P[1]-V[1])[0])==null?void 0:se[0];H&&(F=H);break}case"initialPlacement":F=c;break}if(u!==F)return{reset:{placement:F}}}return{}}}};function n4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function i4(e){return Bj.some(t=>e[t]>=0)}const tP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...u}=Nr(e,t);switch(i){case"referenceHidden":{const a=await Ls(t,{...u,elementContext:"reference"}),s=n4(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:i4(s)}}}case"escaped":{const a=await Ls(t,{...u,altBoundary:!0}),s=n4(a,n.floating);return{data:{escapedOffsets:s,escaped:i4(s)}}}default:return{}}}}},M_=new Set(["left","top"]);async function nP(e,t){const{placement:n,platform:i,elements:u}=e,a=await(i.isRTL==null?void 0:i.isRTL(u.floating)),s=Eu(n),c=Hs(n),f=_r(n)==="y",h=M_.has(s)?-1:1,p=a&&f?-1:1,m=Nr(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof x=="number"&&(b=c==="end"?x*-1:x),f?{x:b*p,y:v*h}:{x:v*h,y:b*p}}const iP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:u,y:a,placement:s,middlewareData:c}=t,f=await nP(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:u+f.x,y:a+f.y,data:{...f,placement:s}}}}},rP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:u}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:T,y:D}=_;return{x:T,y:D}}},...f}=Nr(e,t),h={x:n,y:i},p=await Ls(t,f),m=_r(Eu(u)),v=j2(m);let b=h[v],x=h[m];if(a){const _=v==="y"?"top":"left",T=v==="y"?"bottom":"right",D=b+p[_],w=b-p[T];b=bg(D,b,w)}if(s){const _=m==="y"?"top":"left",T=m==="y"?"bottom":"right",D=x+p[_],w=x-p[T];x=bg(D,x,w)}const S=c.fn({...t,[v]:b,[m]:x});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[v]:a,[m]:s}}}}}},uP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:u,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=Nr(e,t),p={x:n,y:i},m=_r(u),v=j2(m);let b=p[v],x=p[m];const S=Nr(c,t),_=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const w=v==="y"?"height":"width",N=a.reference[v]-a.floating[w]+_.mainAxis,R=a.reference[v]+a.reference[w]-_.mainAxis;b<N?b=N:b>R&&(b=R)}if(h){var T,D;const w=v==="y"?"width":"height",N=M_.has(Eu(u)),R=a.reference[m]-a.floating[w]+(N&&((T=s.offset)==null?void 0:T[m])||0)+(N?0:_.crossAxis),M=a.reference[m]+a.reference[w]+(N?0:((D=s.offset)==null?void 0:D[m])||0)-(N?_.crossAxis:0);x<R?x=R:x>M&&(x=M)}return{[v]:b,[m]:x}}}},oP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:u,rects:a,platform:s,elements:c}=t,{apply:f=()=>{},...h}=Nr(e,t),p=await Ls(t,h),m=Eu(u),v=Hs(u),b=_r(u)==="y",{width:x,height:S}=a.floating;let _,T;m==="top"||m==="bottom"?(_=m,T=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=m,_=v==="end"?"top":"bottom");const D=S-p.top-p.bottom,w=x-p.left-p.right,N=bu(S-p[_],D),R=bu(x-p[T],w),M=!t.middlewareData.shift;let I=N,$=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=w),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=D),M&&!v){const z=Cn(p.left,0),G=Cn(p.right,0),J=Cn(p.top,0),se=Cn(p.bottom,0);b?$=x-2*(z!==0||G!==0?z+G:Cn(p.left,p.right)):I=S-2*(J!==0||se!==0?J+se:Cn(p.top,p.bottom))}await f({...t,availableWidth:$,availableHeight:I});const L=await s.getDimensions(c.floating);return x!==L.width||S!==L.height?{reset:{rects:!0}}:{}}}};function K0(){return typeof window<"u"}function qs(e){return k_(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pr(e){var t;return(t=(k_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function k_(e){return K0()?e instanceof Node||e instanceof ui(e).Node:!1}function On(e){return K0()?e instanceof Element||e instanceof ui(e).Element:!1}function Or(e){return K0()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function r4(e){return!K0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}const aP=new Set(["inline","contents"]);function Yc(e){const{overflow:t,overflowX:n,overflowY:i,display:u}=Ki(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!aP.has(u)}const sP=new Set(["table","td","th"]);function lP(e){return sP.has(qs(e))}const cP=[":popover-open",":modal"];function J0(e){return cP.some(t=>{try{return e.matches(t)}catch{return!1}})}const fP=["transform","translate","scale","rotate","perspective"],dP=["transform","translate","scale","rotate","perspective","filter"],hP=["paint","layout","strict","content"];function $2(e){const t=B2(),n=On(e)?Ki(e):e;return fP.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||dP.some(i=>(n.willChange||"").includes(i))||hP.some(i=>(n.contain||"").includes(i))}function pP(e){let t=go(e);for(;Or(t)&&!Fs(t);){if($2(t))return t;if(J0(t))return null;t=go(t)}return null}function B2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mP=new Set(["html","body","#document"]);function Fs(e){return mP.has(qs(e))}function Ki(e){return ui(e).getComputedStyle(e)}function eh(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function go(e){if(qs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||r4(e)&&e.host||Pr(e);return r4(t)?t.host:t}function L_(e){const t=go(e);return Fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&Yc(t)?t:L_(t)}function Cc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=L_(e),a=u===((i=e.ownerDocument)==null?void 0:i.body),s=ui(u);if(a){const c=xg(s);return t.concat(s,s.visualViewport||[],Yc(u)?u:[],c&&n?Cc(c):[])}return t.concat(u,Cc(u,[],n))}function xg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function F_(e){const t=Ki(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const u=Or(e),a=u?e.offsetWidth:n,s=u?e.offsetHeight:i,c=_c(n)!==a||_c(i)!==s;return c&&(n=a,i=s),{width:n,height:i,$:c}}function U2(e){return On(e)?e:e.contextElement}function Cs(e){const t=U2(e);if(!Or(t))return Cr(1);const n=t.getBoundingClientRect(),{width:i,height:u,$:a}=F_(t);let s=(a?_c(n.width):n.width)/i,c=(a?_c(n.height):n.height)/u;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const gP=Cr(0);function I_(e){const t=ui(e);return!B2()||!t.visualViewport?gP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function la(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),a=U2(e);let s=Cr(1);t&&(i?On(i)&&(s=Cs(i)):s=Cs(e));const c=vP(a,n,i)?I_(a):Cr(0);let f=(u.left+c.x)/s.x,h=(u.top+c.y)/s.y,p=u.width/s.x,m=u.height/s.y;if(a){const v=ui(a),b=i&&On(i)?ui(i):i;let x=v,S=xg(x);for(;S&&i&&b!==x;){const _=Cs(S),T=S.getBoundingClientRect(),D=Ki(S),w=T.left+(S.clientLeft+parseFloat(D.paddingLeft))*_.x,N=T.top+(S.clientTop+parseFloat(D.paddingTop))*_.y;f*=_.x,h*=_.y,p*=_.x,m*=_.y,f+=w,h+=N,x=ui(S),S=xg(x)}}return v0({width:p,height:m,x:f,y:h})}function th(e,t){const n=eh(e).scrollLeft;return t?t.left+n:la(Pr(e)).left+n}function j_(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-th(e,n),u=n.top+t.scrollTop;return{x:i,y:u}}function yP(e){let{elements:t,rect:n,offsetParent:i,strategy:u}=e;const a=u==="fixed",s=Pr(i),c=t?J0(t.floating):!1;if(i===s||c&&a)return n;let f={scrollLeft:0,scrollTop:0},h=Cr(1);const p=Cr(0),m=Or(i);if((m||!m&&!a)&&((qs(i)!=="body"||Yc(s))&&(f=eh(i)),Or(i))){const b=la(i);h=Cs(i),p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}const v=s&&!m&&!a?j_(s,f):Cr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+v.x,y:n.y*h.y-f.scrollTop*h.y+p.y+v.y}}function bP(e){return Array.from(e.getClientRects())}function EP(e){const t=Pr(e),n=eh(e),i=e.ownerDocument.body,u=Cn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Cn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+th(e);const c=-n.scrollTop;return Ki(i).direction==="rtl"&&(s+=Cn(t.clientWidth,i.clientWidth)-u),{width:u,height:a,x:s,y:c}}const u4=25;function xP(e,t){const n=ui(e),i=Pr(e),u=n.visualViewport;let a=i.clientWidth,s=i.clientHeight,c=0,f=0;if(u){a=u.width,s=u.height;const p=B2();(!p||p&&t==="fixed")&&(c=u.offsetLeft,f=u.offsetTop)}const h=th(i);if(h<=0){const p=i.ownerDocument,m=p.body,v=getComputedStyle(m),b=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(i.clientWidth-m.clientWidth-b);x<=u4&&(a-=x)}else h<=u4&&(a+=h);return{width:a,height:s,x:c,y:f}}const SP=new Set(["absolute","fixed"]);function TP(e,t){const n=la(e,!0,t==="fixed"),i=n.top+e.clientTop,u=n.left+e.clientLeft,a=Or(e)?Cs(e):Cr(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,f=u*a.x,h=i*a.y;return{width:s,height:c,x:f,y:h}}function o4(e,t,n){let i;if(t==="viewport")i=xP(e,n);else if(t==="document")i=EP(Pr(e));else if(On(t))i=TP(t,n);else{const u=I_(e);i={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return v0(i)}function P_(e,t){const n=go(e);return n===t||!On(n)||Fs(n)?!1:Ki(n).position==="fixed"||P_(n,t)}function _P(e,t){const n=t.get(e);if(n)return n;let i=Cc(e,[],!1).filter(c=>On(c)&&qs(c)!=="body"),u=null;const a=Ki(e).position==="fixed";let s=a?go(e):e;for(;On(s)&&!Fs(s);){const c=Ki(s),f=$2(s);!f&&c.position==="fixed"&&(u=null),(a?!f&&!u:!f&&c.position==="static"&&!!u&&SP.has(u.position)||Yc(s)&&!f&&P_(e,s))?i=i.filter(p=>p!==s):u=c,s=go(s)}return t.set(e,i),i}function CP(e){let{element:t,boundary:n,rootBoundary:i,strategy:u}=e;const s=[...n==="clippingAncestors"?J0(t)?[]:_P(t,this._c):[].concat(n),i],c=s[0],f=s.reduce((h,p)=>{const m=o4(t,p,u);return h.top=Cn(m.top,h.top),h.right=bu(m.right,h.right),h.bottom=bu(m.bottom,h.bottom),h.left=Cn(m.left,h.left),h},o4(t,c,u));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function AP(e){const{width:t,height:n}=F_(e);return{width:t,height:n}}function wP(e,t,n){const i=Or(t),u=Pr(t),a=n==="fixed",s=la(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const f=Cr(0);function h(){f.x=th(u)}if(i||!i&&!a)if((qs(t)!=="body"||Yc(u))&&(c=eh(t)),i){const b=la(t,!0,a,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else u&&h();a&&!i&&u&&h();const p=u&&!i&&!a?j_(u,c):Cr(0),m=s.left+c.scrollLeft-f.x-p.x,v=s.top+c.scrollTop-f.y-p.y;return{x:m,y:v,width:s.width,height:s.height}}function um(e){return Ki(e).position==="static"}function a4(e,t){if(!Or(e)||Ki(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pr(e)===n&&(n=n.ownerDocument.body),n}function V_(e,t){const n=ui(e);if(J0(e))return n;if(!Or(e)){let u=go(e);for(;u&&!Fs(u);){if(On(u)&&!um(u))return u;u=go(u)}return n}let i=a4(e,t);for(;i&&lP(i)&&um(i);)i=a4(i,t);return i&&Fs(i)&&um(i)&&!$2(i)?n:i||pP(e)||n}const DP=async function(e){const t=this.getOffsetParent||V_,n=this.getDimensions,i=await n(e.floating);return{reference:wP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function NP(e){return Ki(e).direction==="rtl"}const OP={convertOffsetParentRelativeRectToViewportRelativeRect:yP,getDocumentElement:Pr,getClippingRect:CP,getOffsetParent:V_,getElementRects:DP,getClientRects:bP,getDimensions:AP,getScale:Cs,isElement:On,isRTL:NP};function $_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function RP(e,t){let n=null,i;const u=Pr(e);function a(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),a();const h=e.getBoundingClientRect(),{left:p,top:m,width:v,height:b}=h;if(c||t(),!v||!b)return;const x=Fd(m),S=Fd(u.clientWidth-(p+v)),_=Fd(u.clientHeight-(m+b)),T=Fd(p),w={rootMargin:-x+"px "+-S+"px "+-_+"px "+-T+"px",threshold:Cn(0,bu(1,f))||1};let N=!0;function R(M){const I=M[0].intersectionRatio;if(I!==f){if(!N)return s();I?s(!1,I):i=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!$_(h,e.getBoundingClientRect())&&s(),N=!1}try{n=new IntersectionObserver(R,{...w,root:u.ownerDocument})}catch{n=new IntersectionObserver(R,w)}n.observe(e)}return s(!0),a}function B_(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=U2(e),p=u||a?[...h?Cc(h):[],...Cc(t)]:[];p.forEach(T=>{u&&T.addEventListener("scroll",n,{passive:!0}),a&&T.addEventListener("resize",n)});const m=h&&c?RP(h,n):null;let v=-1,b=null;s&&(b=new ResizeObserver(T=>{let[D]=T;D&&D.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=b)==null||w.observe(t)})),n()}),h&&!f&&b.observe(h),b.observe(t));let x,S=f?la(e):null;f&&_();function _(){const T=la(e);S&&!$_(S,T)&&n(),S=T,x=requestAnimationFrame(_)}return n(),()=>{var T;p.forEach(D=>{u&&D.removeEventListener("scroll",n),a&&D.removeEventListener("resize",n)}),m==null||m(),(T=b)==null||T.disconnect(),b=null,f&&cancelAnimationFrame(x)}}const om=Ls,MP=iP,kP=rP,LP=eP,FP=oP,IP=tP,s4=Jj,jP=uP,PP=(e,t,n)=>{const i=new Map,u={platform:OP,...n},a={...u.platform,_c:i};return Kj(e,t,{...u,platform:a})};var VP=typeof document<"u",$P=function(){},Xd=VP?E.useLayoutEffect:$P;function y0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,u;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!y0(e[i],t[i]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,u[i]))return!1;for(i=n;i--!==0;){const a=u[i];if(!(a==="_owner"&&e.$$typeof)&&!y0(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function U_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l4(e,t){const n=U_(e);return Math.round(t*n)/n}function am(e){const t=E.useRef(e);return Xd(()=>{t.current=e}),t}function z_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:u,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[p,m]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=E.useState(i);y0(v,i)||b(i);const[x,S]=E.useState(null),[_,T]=E.useState(null),D=E.useCallback(P=>{P!==M.current&&(M.current=P,S(P))},[]),w=E.useCallback(P=>{P!==I.current&&(I.current=P,T(P))},[]),N=a||x,R=s||_,M=E.useRef(null),I=E.useRef(null),$=E.useRef(p),L=f!=null,z=am(f),G=am(u),J=am(h),se=E.useCallback(()=>{if(!M.current||!I.current)return;const P={placement:t,strategy:n,middleware:v};G.current&&(P.platform=G.current),PP(M.current,I.current,P).then(V=>{const re={...V,isPositioned:J.current!==!1};ie.current&&!y0($.current,re)&&($.current=re,An.flushSync(()=>{m(re)}))})},[v,t,n,G,J]);Xd(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,m(P=>({...P,isPositioned:!1})))},[h]);const ie=E.useRef(!1);Xd(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Xd(()=>{if(N&&(M.current=N),R&&(I.current=R),N&&R){if(z.current)return z.current(N,R,se);se()}},[N,R,se,z,L]);const ee=E.useMemo(()=>({reference:M,floating:I,setReference:D,setFloating:w}),[D,w]),F=E.useMemo(()=>({reference:N,floating:R}),[N,R]),H=E.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const V=l4(F.floating,p.x),re=l4(F.floating,p.y);return c?{...P,transform:"translate("+V+"px, "+re+"px)",...U_(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:re}},[n,c,F.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:se,refs:ee,elements:F,floatingStyles:H}),[p,se,ee,F,H])}const BP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:u}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?s4({element:i.current,padding:u}).fn(n):{}:i?s4({element:i,padding:u}).fn(n):{}}}},z2=(e,t)=>({...MP(e),options:[e,t]}),H_=(e,t)=>({...kP(e),options:[e,t]}),UP=(e,t)=>({...jP(e),options:[e,t]}),q_=(e,t)=>({...LP(e),options:[e,t]}),G_=(e,t)=>({...FP(e),options:[e,t]}),zP=(e,t)=>({...IP(e),options:[e,t]}),HP=(e,t)=>({...BP(e),options:[e,t]});var qP="Arrow",Y_=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:u=5,...a}=e;return A.jsx(kt.svg,{...a,ref:t,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:A.jsx("polygon",{points:"0,0 30,0 15,10"})})});Y_.displayName=qP;var GP=Y_;function YP(e){const[t,n]=E.useState(void 0);return mo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const a=u[0];let s,c;if("borderBoxSize"in a){const f=a.borderBoxSize,h=Array.isArray(f)?f[0]:f;s=h.inlineSize,c=h.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var H2="Popper",[Q_,nh]=ga(H2),[QP,X_]=Q_(H2),Z_=e=>{const{__scopePopper:t,children:n}=e,[i,u]=E.useState(null);return A.jsx(QP,{scope:t,anchor:i,onAnchorChange:u,children:n})};Z_.displayName=H2;var W_="PopperAnchor",K_=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...u}=e,a=X_(W_,n),s=E.useRef(null),c=rn(t,s),f=E.useRef(null);return E.useEffect(()=>{const h=f.current;f.current=(i==null?void 0:i.current)||s.current,h!==f.current&&a.onAnchorChange(f.current)}),i?null:A.jsx(kt.div,{...u,ref:c})});K_.displayName=W_;var q2="PopperContent",[XP,ZP]=Q_(q2),J_=E.forwardRef((e,t)=>{var ue,fe,me,_e,Se,ct;const{__scopePopper:n,side:i="bottom",sideOffset:u=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:x,...S}=e,_=X_(q2,n),[T,D]=E.useState(null),w=rn(t,Ce=>D(Ce)),[N,R]=E.useState(null),M=YP(N),I=(M==null?void 0:M.width)??0,$=(M==null?void 0:M.height)??0,L=i+(a!=="center"?"-"+a:""),z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},G=Array.isArray(h)?h:[h],J=G.length>0,se={padding:z,boundary:G.filter(KP),altBoundary:J},{refs:ie,floatingStyles:ee,placement:F,isPositioned:H,middlewareData:P}=z_({strategy:"fixed",placement:L,whileElementsMounted:(...Ce)=>B_(...Ce,{animationFrame:b==="always"}),elements:{reference:_.anchor},middleware:[z2({mainAxis:u+$,alignmentAxis:s}),f&&H_({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?UP():void 0,...se}),f&&q_({...se}),G_({...se,apply:({elements:Ce,rects:rt,availableWidth:Xt,availableHeight:Zt})=>{const{width:un,height:xe}=rt.reference,Me=Ce.floating.style;Me.setProperty("--radix-popper-available-width",`${Xt}px`),Me.setProperty("--radix-popper-available-height",`${Zt}px`),Me.setProperty("--radix-popper-anchor-width",`${un}px`),Me.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),N&&HP({element:N,padding:c}),JP({arrowWidth:I,arrowHeight:$}),v&&zP({strategy:"referenceHidden",...se})]}),[V,re]=n8(F),k=yu(x);mo(()=>{H&&(k==null||k())},[H,k]);const B=(ue=P.arrow)==null?void 0:ue.x,te=(fe=P.arrow)==null?void 0:fe.y,W=((me=P.arrow)==null?void 0:me.centerOffset)!==0,[he,de]=E.useState();return mo(()=>{T&&de(window.getComputedStyle(T).zIndex)},[T]),A.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:H?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(_e=P.transformOrigin)==null?void 0:_e.x,(Se=P.transformOrigin)==null?void 0:Se.y].join(" "),...((ct=P.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:A.jsx(XP,{scope:n,placedSide:V,onArrowChange:R,arrowX:B,arrowY:te,shouldHideArrow:W,children:A.jsx(kt.div,{"data-side":V,"data-align":re,...S,ref:w,style:{...S.style,animation:H?void 0:"none"}})})})});J_.displayName=q2;var e8="PopperArrow",WP={top:"bottom",right:"left",bottom:"top",left:"right"},t8=E.forwardRef(function(t,n){const{__scopePopper:i,...u}=t,a=ZP(e8,i),s=WP[a.placedSide];return A.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:A.jsx(GP,{...u,ref:n,style:{...u.style,display:"block"}})})});t8.displayName=e8;function KP(e){return e!==null}var JP=e=>({name:"transformOrigin",options:e,fn(t){var _,T,D;const{placement:n,rects:i,middlewareData:u}=t,s=((_=u.arrow)==null?void 0:_.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[h,p]=n8(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(((T=u.arrow)==null?void 0:T.x)??0)+c/2,b=(((D=u.arrow)==null?void 0:D.y)??0)+f/2;let x="",S="";return h==="bottom"?(x=s?m:`${v}px`,S=`${-f}px`):h==="top"?(x=s?m:`${v}px`,S=`${i.floating.height+f}px`):h==="right"?(x=`${-f}px`,S=s?m:`${b}px`):h==="left"&&(x=`${i.floating.width+f}px`,S=s?m:`${b}px`),{data:{x,y:S}}}});function n8(e){const[t,n="center"]=e.split("-");return[t,n]}var i8=Z_,r8=K_,u8=J_,o8=t8,sm="rovingFocusGroup.onEntryFocus",eV={bubbles:!1,cancelable:!0},Qc="RovingFocusGroup",[Sg,a8,tV]=N_(Qc),[nV,s8]=ga(Qc,[tV]),[iV,rV]=nV(Qc),l8=E.forwardRef((e,t)=>A.jsx(Sg.Provider,{scope:e.__scopeRovingFocusGroup,children:A.jsx(Sg.Slot,{scope:e.__scopeRovingFocusGroup,children:A.jsx(uV,{...e,ref:t})})}));l8.displayName=Qc;var uV=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:u=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...m}=e,v=E.useRef(null),b=rn(t,v),x=O_(a),[S,_]=Y0({prop:s,defaultProp:c??null,onChange:f,caller:Qc}),[T,D]=E.useState(!1),w=yu(h),N=a8(n),R=E.useRef(!1),[M,I]=E.useState(0);return E.useEffect(()=>{const $=v.current;if($)return $.addEventListener(sm,w),()=>$.removeEventListener(sm,w)},[w]),A.jsx(iV,{scope:n,orientation:i,dir:x,loop:u,currentTabStopId:S,onItemFocus:E.useCallback($=>_($),[_]),onItemShiftTab:E.useCallback(()=>D(!0),[]),onFocusableItemAdd:E.useCallback(()=>I($=>$+1),[]),onFocusableItemRemove:E.useCallback(()=>I($=>$-1),[]),children:A.jsx(kt.div,{tabIndex:T||M===0?-1:0,"data-orientation":i,...m,ref:b,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{R.current=!0}),onFocus:Re(e.onFocus,$=>{const L=!R.current;if($.target===$.currentTarget&&L&&!T){const z=new CustomEvent(sm,eV);if($.currentTarget.dispatchEvent(z),!z.defaultPrevented){const G=N().filter(F=>F.focusable),J=G.find(F=>F.active),se=G.find(F=>F.id===S),ee=[J,se,...G].filter(Boolean).map(F=>F.ref.current);d8(ee,p)}}R.current=!1}),onBlur:Re(e.onBlur,()=>D(!1))})})}),c8="RovingFocusGroupItem",f8=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:u=!1,tabStopId:a,children:s,...c}=e,f=ta(),h=a||f,p=rV(c8,n),m=p.currentTabStopId===h,v=a8(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:S}=p;return E.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),A.jsx(Sg.ItemSlot,{scope:n,id:h,focusable:i,active:u,children:A.jsx(kt.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:Re(e.onMouseDown,_=>{i?p.onItemFocus(h):_.preventDefault()}),onFocus:Re(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Re(e.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){p.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const T=sV(_,p.orientation,p.dir);if(T!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let w=v().filter(N=>N.focusable).map(N=>N.ref.current);if(T==="last")w.reverse();else if(T==="prev"||T==="next"){T==="prev"&&w.reverse();const N=w.indexOf(_.currentTarget);w=p.loop?lV(w,N+1):w.slice(N+1)}setTimeout(()=>d8(w))}}),children:typeof s=="function"?s({isCurrentTabStop:m,hasTabStop:S!=null}):s})})});f8.displayName=c8;var oV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sV(e,t,n){const i=aV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return oV[i]}function d8(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function lV(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var cV=l8,fV=f8,Tg=["Enter"," "],dV=["ArrowDown","PageUp","Home"],h8=["ArrowUp","PageDown","End"],hV=[...dV,...h8],pV={ltr:[...Tg,"ArrowRight"],rtl:[...Tg,"ArrowLeft"]},mV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Xc="Menu",[Ac,gV,vV]=N_(Xc),[va,p8]=ga(Xc,[vV,nh,s8]),ih=nh(),m8=s8(),[yV,ya]=va(Xc),[bV,Zc]=va(Xc),g8=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:u,onOpenChange:a,modal:s=!0}=e,c=ih(t),[f,h]=E.useState(null),p=E.useRef(!1),m=yu(a),v=O_(u);return E.useEffect(()=>{const b=()=>{p.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>p.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),A.jsx(i8,{...c,children:A.jsx(yV,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:h,children:A.jsx(bV,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:v,modal:s,children:i})})})};g8.displayName=Xc;var EV="MenuAnchor",G2=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,u=ih(n);return A.jsx(r8,{...u,...i,ref:t})});G2.displayName=EV;var Y2="MenuPortal",[xV,v8]=va(Y2,{forceMount:void 0}),y8=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:u}=e,a=ya(Y2,t);return A.jsx(xV,{scope:t,forceMount:n,children:A.jsx(jr,{present:n||a.open,children:A.jsx(X0,{asChild:!0,container:u,children:i})})})};y8.displayName=Y2;var wi="MenuContent",[SV,Q2]=va(wi),b8=E.forwardRef((e,t)=>{const n=v8(wi,e.__scopeMenu),{forceMount:i=n.forceMount,...u}=e,a=ya(wi,e.__scopeMenu),s=Zc(wi,e.__scopeMenu);return A.jsx(Ac.Provider,{scope:e.__scopeMenu,children:A.jsx(jr,{present:i||a.open,children:A.jsx(Ac.Slot,{scope:e.__scopeMenu,children:s.modal?A.jsx(TV,{...u,ref:t}):A.jsx(_V,{...u,ref:t})})})})}),TV=E.forwardRef((e,t)=>{const n=ya(wi,e.__scopeMenu),i=E.useRef(null),u=rn(t,i);return E.useEffect(()=>{const a=i.current;if(a)return l_(a)},[]),A.jsx(X2,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Re(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),_V=E.forwardRef((e,t)=>{const n=ya(wi,e.__scopeMenu);return A.jsx(X2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),CV=Tc("MenuContent.ScrollLock"),X2=E.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:u,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:b,disableOutsideScroll:x,...S}=e,_=ya(wi,n),T=Zc(wi,n),D=ih(n),w=m8(n),N=gV(n),[R,M]=E.useState(null),I=E.useRef(null),$=rn(t,I,_.onContentChange),L=E.useRef(0),z=E.useRef(""),G=E.useRef(0),J=E.useRef(null),se=E.useRef("right"),ie=E.useRef(0),ee=x?k2:E.Fragment,F=x?{as:CV,allowPinchZoom:!0}:void 0,H=V=>{var ue,fe;const re=z.current+V,k=N().filter(me=>!me.disabled),B=document.activeElement,te=(ue=k.find(me=>me.ref.current===B))==null?void 0:ue.textValue,W=k.map(me=>me.textValue),he=jV(W,re,te),de=(fe=k.find(me=>me.textValue===he))==null?void 0:fe.ref.current;(function me(_e){z.current=_e,window.clearTimeout(L.current),_e!==""&&(L.current=window.setTimeout(()=>me(""),1e3))})(re),de&&setTimeout(()=>de.focus())};E.useEffect(()=>()=>window.clearTimeout(L.current),[]),e_();const P=E.useCallback(V=>{var k,B;return se.current===((k=J.current)==null?void 0:k.side)&&VV(V,(B=J.current)==null?void 0:B.area)},[]);return A.jsx(SV,{scope:n,searchRef:z,onItemEnter:E.useCallback(V=>{P(V)&&V.preventDefault()},[P]),onItemLeave:E.useCallback(V=>{var re;P(V)||((re=I.current)==null||re.focus(),M(null))},[P]),onTriggerLeave:E.useCallback(V=>{P(V)&&V.preventDefault()},[P]),pointerGraceTimerRef:G,onPointerGraceIntentChange:E.useCallback(V=>{J.current=V},[]),children:A.jsx(ee,{...F,children:A.jsx(M2,{asChild:!0,trapped:u,onMountAutoFocus:Re(a,V=>{var re;V.preventDefault(),(re=I.current)==null||re.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:A.jsx(Q0,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:b,children:A.jsx(cV,{asChild:!0,...w,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:R,onCurrentTabStopIdChange:M,onEntryFocus:Re(f,V=>{T.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:A.jsx(u8,{role:"menu","aria-orientation":"vertical","data-state":F8(_.open),"data-radix-menu-content":"",dir:T.dir,...D,...S,ref:$,style:{outline:"none",...S.style},onKeyDown:Re(S.onKeyDown,V=>{const k=V.target.closest("[data-radix-menu-content]")===V.currentTarget,B=V.ctrlKey||V.altKey||V.metaKey,te=V.key.length===1;k&&(V.key==="Tab"&&V.preventDefault(),!B&&te&&H(V.key));const W=I.current;if(V.target!==W||!hV.includes(V.key))return;V.preventDefault();const de=N().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);h8.includes(V.key)&&de.reverse(),FV(de)}),onBlur:Re(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(L.current),z.current="")}),onPointerMove:Re(e.onPointerMove,wc(V=>{const re=V.target,k=ie.current!==V.clientX;if(V.currentTarget.contains(re)&&k){const B=V.clientX>ie.current?"right":"left";se.current=B,ie.current=V.clientX}}))})})})})})})});b8.displayName=wi;var AV="MenuGroup",Z2=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return A.jsx(kt.div,{role:"group",...i,ref:t})});Z2.displayName=AV;var wV="MenuLabel",E8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return A.jsx(kt.div,{...i,ref:t})});E8.displayName=wV;var b0="MenuItem",c4="menu.itemSelect",rh=E.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...u}=e,a=E.useRef(null),s=Zc(b0,e.__scopeMenu),c=Q2(b0,e.__scopeMenu),f=rn(t,a),h=E.useRef(!1),p=()=>{const m=a.current;if(!n&&m){const v=new CustomEvent(c4,{bubbles:!0,cancelable:!0});m.addEventListener(c4,b=>i==null?void 0:i(b),{once:!0}),ZT(m,v),v.defaultPrevented?h.current=!1:s.onClose()}};return A.jsx(x8,{...u,ref:f,disabled:n,onClick:Re(e.onClick,p),onPointerDown:m=>{var v;(v=e.onPointerDown)==null||v.call(e,m),h.current=!0},onPointerUp:Re(e.onPointerUp,m=>{var v;h.current||(v=m.currentTarget)==null||v.click()}),onKeyDown:Re(e.onKeyDown,m=>{const v=c.searchRef.current!=="";n||v&&m.key===" "||Tg.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});rh.displayName=b0;var x8=E.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:u,...a}=e,s=Q2(b0,n),c=m8(n),f=E.useRef(null),h=rn(t,f),[p,m]=E.useState(!1),[v,b]=E.useState("");return E.useEffect(()=>{const x=f.current;x&&b((x.textContent??"").trim())},[a.children]),A.jsx(Ac.ItemSlot,{scope:n,disabled:i,textValue:u??v,children:A.jsx(fV,{asChild:!0,...c,focusable:!i,children:A.jsx(kt.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...a,ref:h,onPointerMove:Re(e.onPointerMove,wc(x=>{i?s.onItemLeave(x):(s.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Re(e.onPointerLeave,wc(x=>s.onItemLeave(x))),onFocus:Re(e.onFocus,()=>m(!0)),onBlur:Re(e.onBlur,()=>m(!1))})})})}),DV="MenuCheckboxItem",S8=E.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...u}=e;return A.jsx(w8,{scope:e.__scopeMenu,checked:n,children:A.jsx(rh,{role:"menuitemcheckbox","aria-checked":E0(n)?"mixed":n,...u,ref:t,"data-state":K2(n),onSelect:Re(u.onSelect,()=>i==null?void 0:i(E0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});S8.displayName=DV;var T8="MenuRadioGroup",[NV,OV]=va(T8,{value:void 0,onValueChange:()=>{}}),_8=E.forwardRef((e,t)=>{const{value:n,onValueChange:i,...u}=e,a=yu(i);return A.jsx(NV,{scope:e.__scopeMenu,value:n,onValueChange:a,children:A.jsx(Z2,{...u,ref:t})})});_8.displayName=T8;var C8="MenuRadioItem",A8=E.forwardRef((e,t)=>{const{value:n,...i}=e,u=OV(C8,e.__scopeMenu),a=n===u.value;return A.jsx(w8,{scope:e.__scopeMenu,checked:a,children:A.jsx(rh,{role:"menuitemradio","aria-checked":a,...i,ref:t,"data-state":K2(a),onSelect:Re(i.onSelect,()=>{var s;return(s=u.onValueChange)==null?void 0:s.call(u,n)},{checkForDefaultPrevented:!1})})})});A8.displayName=C8;var W2="MenuItemIndicator",[w8,RV]=va(W2,{checked:!1}),D8=E.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...u}=e,a=RV(W2,n);return A.jsx(jr,{present:i||E0(a.checked)||a.checked===!0,children:A.jsx(kt.span,{...u,ref:t,"data-state":K2(a.checked)})})});D8.displayName=W2;var MV="MenuSeparator",N8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return A.jsx(kt.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});N8.displayName=MV;var kV="MenuArrow",O8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,u=ih(n);return A.jsx(o8,{...u,...i,ref:t})});O8.displayName=kV;var LV="MenuSub",[TZ,R8]=va(LV),Zl="MenuSubTrigger",M8=E.forwardRef((e,t)=>{const n=ya(Zl,e.__scopeMenu),i=Zc(Zl,e.__scopeMenu),u=R8(Zl,e.__scopeMenu),a=Q2(Zl,e.__scopeMenu),s=E.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=a,h={__scopeMenu:e.__scopeMenu},p=E.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return E.useEffect(()=>p,[p]),E.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),f(null)}},[c,f]),A.jsx(G2,{asChild:!0,...h,children:A.jsx(x8,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":F8(n.open),...e,ref:G0(t,u.onTriggerChange),onClick:m=>{var v;(v=e.onClick)==null||v.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Re(e.onPointerMove,wc(m=>{a.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Re(e.onPointerLeave,wc(m=>{var b,x;p();const v=(b=n.content)==null?void 0:b.getBoundingClientRect();if(v){const S=(x=n.content)==null?void 0:x.dataset.side,_=S==="right",T=_?-5:5,D=v[_?"left":"right"],w=v[_?"right":"left"];a.onPointerGraceIntentChange({area:[{x:m.clientX+T,y:m.clientY},{x:D,y:v.top},{x:w,y:v.top},{x:w,y:v.bottom},{x:D,y:v.bottom}],side:S}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(m),m.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Re(e.onKeyDown,m=>{var b;const v=a.searchRef.current!=="";e.disabled||v&&m.key===" "||pV[i.dir].includes(m.key)&&(n.onOpenChange(!0),(b=n.content)==null||b.focus(),m.preventDefault())})})})});M8.displayName=Zl;var k8="MenuSubContent",L8=E.forwardRef((e,t)=>{const n=v8(wi,e.__scopeMenu),{forceMount:i=n.forceMount,...u}=e,a=ya(wi,e.__scopeMenu),s=Zc(wi,e.__scopeMenu),c=R8(k8,e.__scopeMenu),f=E.useRef(null),h=rn(t,f);return A.jsx(Ac.Provider,{scope:e.__scopeMenu,children:A.jsx(jr,{present:i||a.open,children:A.jsx(Ac.Slot,{scope:e.__scopeMenu,children:A.jsx(X2,{id:c.contentId,"aria-labelledby":c.triggerId,...u,ref:h,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;s.isUsingKeyboardRef.current&&((m=f.current)==null||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Re(e.onFocusOutside,p=>{p.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Re(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:Re(e.onKeyDown,p=>{var b;const m=p.currentTarget.contains(p.target),v=mV[s.dir].includes(p.key);m&&v&&(a.onOpenChange(!1),(b=c.trigger)==null||b.focus(),p.preventDefault())})})})})})});L8.displayName=k8;function F8(e){return e?"open":"closed"}function E0(e){return e==="indeterminate"}function K2(e){return E0(e)?"indeterminate":e?"checked":"unchecked"}function FV(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function IV(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function jV(e,t,n){const u=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=IV(e,Math.max(a,0));u.length===1&&(s=s.filter(h=>h!==n));const f=s.find(h=>h.toLowerCase().startsWith(u.toLowerCase()));return f!==n?f:void 0}function PV(e,t){const{x:n,y:i}=e;let u=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a],f=t[s],h=c.x,p=c.y,m=f.x,v=f.y;p>i!=v>i&&n<(m-h)*(i-p)/(v-p)+h&&(u=!u)}return u}function VV(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return PV(n,t)}function wc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $V=g8,BV=G2,UV=y8,zV=b8,HV=Z2,qV=E8,GV=rh,YV=S8,QV=_8,XV=A8,ZV=D8,WV=N8,KV=O8,JV=M8,e$=L8,uh="DropdownMenu",[t$]=ga(uh,[p8]),kn=p8(),[n$,I8]=t$(uh),j8=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:u,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,f=kn(t),h=E.useRef(null),[p,m]=Y0({prop:u,defaultProp:a??!1,onChange:s,caller:uh});return A.jsx(n$,{scope:t,triggerId:ta(),triggerRef:h,contentId:ta(),open:p,onOpenChange:m,onOpenToggle:E.useCallback(()=>m(v=>!v),[m]),modal:c,children:A.jsx($V,{...f,open:p,onOpenChange:m,dir:i,modal:c,children:n})})};j8.displayName=uh;var P8="DropdownMenuTrigger",V8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...u}=e,a=I8(P8,n),s=kn(n);return A.jsx(BV,{asChild:!0,...s,children:A.jsx(kt.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...u,ref:G0(t,a.triggerRef),onPointerDown:Re(e.onPointerDown,c=>{!i&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:Re(e.onKeyDown,c=>{i||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});V8.displayName=P8;var i$="DropdownMenuPortal",$8=e=>{const{__scopeDropdownMenu:t,...n}=e,i=kn(t);return A.jsx(UV,{...i,...n})};$8.displayName=i$;var B8="DropdownMenuContent",U8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=I8(B8,n),a=kn(n),s=E.useRef(!1);return A.jsx(zV,{id:u.contentId,"aria-labelledby":u.triggerId,...a,...i,ref:t,onCloseAutoFocus:Re(e.onCloseAutoFocus,c=>{var f;s.current||(f=u.triggerRef.current)==null||f.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:Re(e.onInteractOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!u.modal||p)&&(s.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)"}})});U8.displayName=B8;var r$="DropdownMenuGroup",u$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(HV,{...u,...i,ref:t})});u$.displayName=r$;var o$="DropdownMenuLabel",a$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(qV,{...u,...i,ref:t})});a$.displayName=o$;var s$="DropdownMenuItem",z8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(GV,{...u,...i,ref:t})});z8.displayName=s$;var l$="DropdownMenuCheckboxItem",c$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(YV,{...u,...i,ref:t})});c$.displayName=l$;var f$="DropdownMenuRadioGroup",d$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(QV,{...u,...i,ref:t})});d$.displayName=f$;var h$="DropdownMenuRadioItem",p$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(XV,{...u,...i,ref:t})});p$.displayName=h$;var m$="DropdownMenuItemIndicator",g$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(ZV,{...u,...i,ref:t})});g$.displayName=m$;var v$="DropdownMenuSeparator",y$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(WV,{...u,...i,ref:t})});y$.displayName=v$;var b$="DropdownMenuArrow",E$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(KV,{...u,...i,ref:t})});E$.displayName=b$;var x$="DropdownMenuSubTrigger",S$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(JV,{...u,...i,ref:t})});S$.displayName=x$;var T$="DropdownMenuSubContent",_$=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,u=kn(n);return A.jsx(e$,{...u,...i,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=T$;var C$=j8,A$=V8,w$=$8,D$=U8,N$=z8;const H8=E.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ht("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let u;return n[2]!==e||n[3]!==t||n[4]!==i?(u=A.jsx(A$,{asChild:!0,children:A.jsx("button",{...e,ref:t,className:i})}),n[2]=e,n[3]=t,n[4]=i,n[5]=u):u=n[5],u});H8.displayName="DropdownMenuButton";const O$=e=>{const t=ge.c(14);let n,i,u,a,s;t[0]!==e?({children:n,align:a,sideOffset:s,className:i,...u}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=u,t[4]=a,t[5]=s):(n=t[1],i=t[2],u=t[3],a=t[4],s=t[5]);const c=a===void 0?"start":a,f=s===void 0?5:s;let h;t[6]!==i?(h=ht("graphiql-dropdown-content",i),t[6]=i,t[7]=h):h=t[7];let p;return t[8]!==c||t[9]!==n||t[10]!==u||t[11]!==f||t[12]!==h?(p=A.jsx(w$,{children:A.jsx(D$,{align:c,sideOffset:f,className:h,...u,children:n})}),t[8]=c,t[9]=n,t[10]=u,t[11]=f,t[12]=h,t[13]=p):p=t[13],p},R$=e=>{const t=ge.c(10);let n,i,u;t[0]!==e?({className:i,children:n,...u}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=u):(n=t[1],i=t[2],u=t[3]);let a;t[4]!==i?(a=ht("graphiql-dropdown-item",i),t[4]=i,t[5]=a):a=t[5];let s;return t[6]!==n||t[7]!==u||t[8]!==a?(s=A.jsx(N$,{className:a,...u,children:n}),t[6]=n,t[7]=u,t[8]=a,t[9]=s):s=t[9],s},Id=Object.assign(C$,{Button:H8,Item:R$,Content:O$}),Rr=E.forwardRef((e,t)=>{const n=ge.c(18);let i,u,a,s;n[0]!==e?({children:i,onlyShowFirstChild:u,type:s,...a}=e,n[0]=e,n[1]=i,n[2]=u,n[3]=a,n[4]=s):(i=n[1],u=n[2],a=n[3],s=n[4]);const c=`graphiql-markdown-${s}`,f=u&&"graphiql-markdown-preview";let h;n[5]!==a.className||n[6]!==c||n[7]!==f?(h=ht(c,f,a.className),n[5]=a.className,n[6]=c,n[7]=f,n[8]=h):h=n[8];let p;n[9]!==i?(p=h0.render(i),n[9]=i,n[10]=p):p=n[10];let m;n[11]!==p?(m={__html:p},n[11]=p,n[12]=m):m=n[12];let v;return n[13]!==a||n[14]!==t||n[15]!==h||n[16]!==m?(v=A.jsx("div",{...a,ref:t,className:h,dangerouslySetInnerHTML:m}),n[13]=a,n[14]=t,n[15]=h,n[16]=m,n[17]=v):v=n[17],v});Rr.displayName="MarkdownContent";const J2=E.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ht("graphiql-spinner",e.className),n[0]=e.className,n[1]=i):i=n[1];let u;return n[2]!==e||n[3]!==t||n[4]!==i?(u=A.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=u):u=n[5],u});J2.displayName="Spinner";const q8=E.createContext({});function Wc(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const ev=typeof window<"u",G8=ev?E.useLayoutEffect:E.useEffect,tv=E.createContext(null);function nv(e,t){e.indexOf(t)===-1&&e.push(t)}function iv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function M$([...e],t,n){const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const u=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(u,0,a)}return e}const xu=(e,t,n)=>n>t?t:n<e?e:n;let rv=()=>{};const Su={},Y8=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Q8(e){return typeof e=="object"&&e!==null}const X8=e=>/^0[^.\s]+$/u.test(e);function uv(e){let t;return()=>(t===void 0&&(t=e()),t)}const Di=e=>e,k$=(e,t)=>n=>t(e(n)),Kc=(...e)=>e.reduce(k$),Dc=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class ov{constructor(){this.subscriptions=[]}add(t){return nv(this.subscriptions,t),()=>iv(this.subscriptions,t)}notify(t,n,i){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,i);else for(let a=0;a<u;a++){const s=this.subscriptions[a];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ar=e=>e*1e3,Ai=e=>e/1e3;function Z8(e,t){return t?e*(1e3/t):0}const W8=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,L$=1e-7,F$=12;function I$(e,t,n,i,u){let a,s,c=0;do s=t+(n-t)/2,a=W8(s,i,u)-e,a>0?n=s:t=s;while(Math.abs(a)>L$&&++c<F$);return s}function Jc(e,t,n,i){if(e===t&&n===i)return Di;const u=a=>I$(a,0,1,e,n);return a=>a===0||a===1?a:W8(u(a),t,i)}const K8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J8=e=>t=>1-e(1-t),eC=Jc(.33,1.53,.69,.99),av=J8(eC),tC=K8(av),nC=e=>(e*=2)<1?.5*av(e):.5*(2-Math.pow(2,-10*(e-1))),sv=e=>1-Math.sin(Math.acos(e)),iC=J8(sv),rC=K8(sv),j$=Jc(.42,0,1,1),P$=Jc(0,0,.58,1),uC=Jc(.42,0,.58,1),V$=e=>Array.isArray(e)&&typeof e[0]!="number",oC=e=>Array.isArray(e)&&typeof e[0]=="number",$$={linear:Di,easeIn:j$,easeInOut:uC,easeOut:P$,circIn:sv,circInOut:rC,circOut:iC,backIn:av,backInOut:tC,backOut:eC,anticipate:nC},B$=e=>typeof e=="string",f4=e=>{if(oC(e)){rv(e.length===4);const[t,n,i,u]=e;return Jc(t,n,i,u)}else if(B$(e))return $$[e];return e},jd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function U$(e,t){let n=new Set,i=new Set,u=!1,a=!1;const s=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(p){s.has(p)&&(h.schedule(p),e()),p(c)}const h={schedule:(p,m=!1,v=!1)=>{const x=v&&u?n:i;return m&&s.add(p),x.has(p)||x.add(p),p},cancel:p=>{i.delete(p),s.delete(p)},process:p=>{if(c=p,u){a=!0;return}u=!0,[n,i]=[i,n],n.forEach(f),n.clear(),u=!1,a&&(a=!1,h.process(p))}};return h}const z$=40;function aC(e,t){let n=!1,i=!0;const u={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=jd.reduce((w,N)=>(w[N]=U$(a),w),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:p,update:m,preRender:v,render:b,postRender:x}=s,S=()=>{const w=Su.useManualTiming?u.timestamp:performance.now();n=!1,Su.useManualTiming||(u.delta=i?1e3/60:Math.max(Math.min(w-u.timestamp,z$),1)),u.timestamp=w,u.isProcessing=!0,c.process(u),f.process(u),h.process(u),p.process(u),m.process(u),v.process(u),b.process(u),x.process(u),u.isProcessing=!1,n&&t&&(i=!1,e(S))},_=()=>{n=!0,i=!0,u.isProcessing||e(S)};return{schedule:jd.reduce((w,N)=>{const R=s[N];return w[N]=(M,I=!1,$=!1)=>(n||_(),R.schedule(M,I,$)),w},{}),cancel:w=>{for(let N=0;N<jd.length;N++)s[jd[N]].cancel(w)},state:u,steps:s}}const{schedule:xt,cancel:Tu,state:bn,steps:lm}=aC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Di,!0);let Zd;function H$(){Zd=void 0}const zn={now:()=>(Zd===void 0&&zn.set(bn.isProcessing||Su.useManualTiming?bn.timestamp:performance.now()),Zd),set:e=>{Zd=e,queueMicrotask(H$)}},sC=e=>t=>typeof t=="string"&&t.startsWith(e),lv=sC("--"),q$=sC("var(--"),cv=e=>q$(e)?G$.test(e.split("/*")[0].trim()):!1,G$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nc={...Gs,transform:e=>xu(0,1,e)},Pd={...Gs,default:1},ic=e=>Math.round(e*1e5)/1e5,fv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Y$(e){return e==null}const Q$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dv=(e,t)=>n=>!!(typeof n=="string"&&Q$.test(n)&&n.startsWith(e)||t&&!Y$(n)&&Object.prototype.hasOwnProperty.call(n,t)),lC=(e,t,n)=>i=>{if(typeof i!="string")return i;const[u,a,s,c]=i.match(fv);return{[e]:parseFloat(u),[t]:parseFloat(a),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},X$=e=>xu(0,255,e),cm={...Gs,transform:e=>Math.round(X$(e))},Xo={test:dv("rgb","red"),parse:lC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+cm.transform(e)+", "+cm.transform(t)+", "+cm.transform(n)+", "+ic(Nc.transform(i))+")"};function Z$(e){let t="",n="",i="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,i+=i,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:u?parseInt(u,16)/255:1}}const _g={test:dv("#"),parse:Z$,transform:Xo.transform},ef=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),so=ef("deg"),wr=ef("%"),Ne=ef("px"),W$=ef("vh"),K$=ef("vw"),d4={...wr,parse:e=>wr.parse(e)/100,transform:e=>wr.transform(e*100)},ps={test:dv("hsl","hue"),parse:lC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+wr.transform(ic(t))+", "+wr.transform(ic(n))+", "+ic(Nc.transform(i))+")"},Yt={test:e=>Xo.test(e)||_g.test(e)||ps.test(e),parse:e=>Xo.test(e)?Xo.parse(e):ps.test(e)?ps.parse(e):_g.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xo.transform(e):ps.transform(e),getAnimatableNone:e=>{const t=Yt.parse(e);return t.alpha=0,Yt.transform(t)}},J$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(fv))==null?void 0:t.length)||0)+(((n=e.match(J$))==null?void 0:n.length)||0)>0}const cC="number",fC="color",tB="var",nB="var(",h4="${}",iB=/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 Oc(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},u=[];let a=0;const c=t.replace(iB,f=>(Yt.test(f)?(i.color.push(a),u.push(fC),n.push(Yt.parse(f))):f.startsWith(nB)?(i.var.push(a),u.push(tB),n.push(f)):(i.number.push(a),u.push(cC),n.push(parseFloat(f))),++a,h4)).split(h4);return{values:n,split:c,indexes:i,types:u}}function dC(e){return Oc(e).values}function hC(e){const{split:t,types:n}=Oc(e),i=t.length;return u=>{let a="";for(let s=0;s<i;s++)if(a+=t[s],u[s]!==void 0){const c=n[s];c===cC?a+=ic(u[s]):c===fC?a+=Yt.transform(u[s]):a+=u[s]}return a}}const rB=e=>typeof e=="number"?0:Yt.test(e)?Yt.getAnimatableNone(e):e;function uB(e){const t=dC(e);return hC(e)(t.map(rB))}const vo={test:eB,parse:dC,createTransformer:hC,getAnimatableNone:uB};function fm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oB({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let u=0,a=0,s=0;if(!t)u=a=s=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;u=fm(f,c,e+1/3),a=fm(f,c,e),s=fm(f,c,e-1/3)}return{red:Math.round(u*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function x0(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,dm=(e,t,n)=>{const i=e*e,u=n*(t*t-i)+i;return u<0?0:Math.sqrt(u)},aB=[_g,Xo,ps],sB=e=>aB.find(t=>t.test(e));function p4(e){const t=sB(e);if(!t)return!1;let n=t.parse(e);return t===ps&&(n=oB(n)),n}const m4=(e,t)=>{const n=p4(e),i=p4(t);if(!n||!i)return x0(e,t);const u={...n};return a=>(u.red=dm(n.red,i.red,a),u.green=dm(n.green,i.green,a),u.blue=dm(n.blue,i.blue,a),u.alpha=wt(n.alpha,i.alpha,a),Xo.transform(u))},Cg=new Set(["none","hidden"]);function lB(e,t){return Cg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cB(e,t){return n=>wt(e,t,n)}function hv(e){return typeof e=="number"?cB:typeof e=="string"?cv(e)?x0:Yt.test(e)?m4:hB:Array.isArray(e)?pC:typeof e=="object"?Yt.test(e)?m4:fB:x0}function pC(e,t){const n=[...e],i=n.length,u=e.map((a,s)=>hv(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)n[s]=u[s](a);return n}}function fB(e,t){const n={...e,...t},i={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(i[u]=hv(e[u])(e[u],t[u]));return u=>{for(const a in i)n[a]=i[a](u);return n}}function dB(e,t){const n=[],i={color:0,var:0,number:0};for(let u=0;u<t.values.length;u++){const a=t.types[u],s=e.indexes[a][i[a]],c=e.values[s]??0;n[u]=c,i[a]++}return n}const hB=(e,t)=>{const n=vo.createTransformer(t),i=Oc(e),u=Oc(t);return i.indexes.var.length===u.indexes.var.length&&i.indexes.color.length===u.indexes.color.length&&i.indexes.number.length>=u.indexes.number.length?Cg.has(e)&&!u.values.length||Cg.has(t)&&!i.values.length?lB(e,t):Kc(pC(dB(i,u),u.values),n):x0(e,t)};function mC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):hv(e)(e,t)}const pB=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>Tu(t),now:()=>bn.isProcessing?bn.timestamp:zn.now()}},gC=(e,t,n=10)=>{let i="";const u=Math.max(Math.round(t/n),2);for(let a=0;a<u;a++)i+=Math.round(e(a/(u-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},S0=2e4;function pv(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<S0;)t+=n,i=e.next(t);return t>=S0?1/0:t}function mB(e,t=100,n){const i=n({...e,keyframes:[0,t]}),u=Math.min(pv(i),S0);return{type:"keyframes",ease:a=>i.next(u*a).value/t,duration:Ai(u)}}const gB=5;function vC(e,t,n){const i=Math.max(t-gB,0);return Z8(n-e(i),t-i)}const Mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hm=.001;function vB({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:i=Mt.mass}){let u,a,s=1-t;s=xu(Mt.minDamping,Mt.maxDamping,s),e=xu(Mt.minDuration,Mt.maxDuration,Ai(e)),s<1?(u=h=>{const p=h*s,m=p*e,v=p-n,b=Ag(h,s),x=Math.exp(-m);return hm-v/b*x},a=h=>{const m=h*s*e,v=m*n+n,b=Math.pow(s,2)*Math.pow(h,2)*e,x=Math.exp(-m),S=Ag(Math.pow(h,2),s);return(-u(h)+hm>0?-1:1)*((v-b)*x)/S}):(u=h=>{const p=Math.exp(-h*e),m=(h-n)*e+1;return-hm+p*m},a=h=>{const p=Math.exp(-h*e),m=(n-h)*(e*e);return p*m});const c=5/e,f=bB(u,a,c);if(e=Ar(e),isNaN(f))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:s*2*Math.sqrt(i*h),duration:e}}}const yB=12;function bB(e,t,n){let i=n;for(let u=1;u<yB;u++)i=i-e(i)/t(i);return i}function Ag(e,t){return e*Math.sqrt(1-t*t)}const EB=["duration","bounce"],xB=["stiffness","damping","mass"];function g4(e,t){return t.some(n=>e[n]!==void 0)}function SB(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!g4(e,xB)&&g4(e,EB))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),u=i*i,a=2*xu(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:Mt.mass,stiffness:u,damping:a}}else{const n=vB(e);t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function T0(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:u}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:h,mass:p,duration:m,velocity:v,isResolvedFromDuration:b}=SB({...n,velocity:-Ai(n.velocity||0)}),x=v||0,S=h/(2*Math.sqrt(f*p)),_=s-a,T=Ai(Math.sqrt(f/p)),D=Math.abs(_)<5;i||(i=D?Mt.restSpeed.granular:Mt.restSpeed.default),u||(u=D?Mt.restDelta.granular:Mt.restDelta.default);let w;if(S<1){const R=Ag(T,S);w=M=>{const I=Math.exp(-S*T*M);return s-I*((x+S*T*_)/R*Math.sin(R*M)+_*Math.cos(R*M))}}else if(S===1)w=R=>s-Math.exp(-T*R)*(_+(x+T*_)*R);else{const R=T*Math.sqrt(S*S-1);w=M=>{const I=Math.exp(-S*T*M),$=Math.min(R*M,300);return s-I*((x+S*T*_)*Math.sinh($)+R*_*Math.cosh($))/R}}const N={calculatedDuration:b&&m||null,next:R=>{const M=w(R);if(b)c.done=R>=m;else{let I=R===0?x:0;S<1&&(I=R===0?Ar(x):vC(w,R,M));const $=Math.abs(I)<=i,L=Math.abs(s-M)<=u;c.done=$&&L}return c.value=c.done?s:M,c},toString:()=>{const R=Math.min(pv(N),S0),M=gC(I=>N.next(R*I).value,R,30);return R+"ms "+M},toTransition:()=>{}};return N}T0.applyToOptions=e=>{const t=mB(e,100,T0);return e.ease=t.ease,e.duration=Ar(t.duration),e.type="keyframes",e};function wg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:u=10,bounceStiffness:a=500,modifyTarget:s,min:c,max:f,restDelta:h=.5,restSpeed:p}){const m=e[0],v={done:!1,value:m},b=$=>c!==void 0&&$<c||f!==void 0&&$>f,x=$=>c===void 0?f:f===void 0||Math.abs(c-$)<Math.abs(f-$)?c:f;let S=n*t;const _=m+S,T=s===void 0?_:s(_);T!==_&&(S=T-m);const D=$=>-S*Math.exp(-$/i),w=$=>T+D($),N=$=>{const L=D($),z=w($);v.done=Math.abs(L)<=h,v.value=v.done?T:z};let R,M;const I=$=>{b(v.value)&&(R=$,M=T0({keyframes:[v.value,x(v.value)],velocity:vC(w,$,v.value),damping:u,stiffness:a,restDelta:h,restSpeed:p}))};return I(0),{calculatedDuration:null,next:$=>{let L=!1;return!M&&R===void 0&&(L=!0,N($),I($)),R!==void 0&&$>=R?M.next($-R):(!L&&N($),v)}}}function TB(e,t,n){const i=[],u=n||Su.mix||mC,a=e.length-1;for(let s=0;s<a;s++){let c=u(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||Di:t;c=Kc(f,c)}i.push(c)}return i}function yC(e,t,{clamp:n=!0,ease:i,mixer:u}={}){const a=e.length;if(rv(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=TB(t,i,u),f=c.length,h=p=>{if(s&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const v=Dc(e[m],e[m+1],p);return c[m](v)};return n?p=>h(xu(e[0],e[a-1],p)):h}function _B(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const u=Dc(0,t,i);e.push(wt(n,1,u))}}function CB(e){const t=[0];return _B(t,e.length-1),t}function AB(e,t){return e.map(n=>n*t)}function wB(e,t){return e.map(()=>t||uC).splice(0,e.length-1)}function rc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const u=V$(i)?i.map(f4):f4(i),a={done:!1,value:t[0]},s=AB(n&&n.length===t.length?n:CB(t),e),c=yC(s,t,{ease:Array.isArray(u)?u:wB(t,u)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const DB=e=>e!==null;function mv(e,{repeat:t,repeatType:n="loop"},i,u=1){const a=e.filter(DB),c=u<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!c||i===void 0?a[c]:i}const NB={decay:wg,inertia:wg,tween:rc,keyframes:rc,spring:T0};function bC(e){typeof e.type=="string"&&(e.type=NB[e.type])}class gv{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const OB=e=>e/100;class vv extends gv{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,u;const{motionValue:n}=this.options;n&&n.updatedAt!==zn.now()&&this.tick(zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(i=this.options).onStop)==null||u.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;bC(t);const{type:n=rc,repeat:i=0,repeatDelay:u=0,repeatType:a,velocity:s=0}=t;let{keyframes:c}=t;const f=n||rc;f!==rc&&typeof c[0]!="number"&&(this.mixKeyframes=Kc(OB,mC(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=pv(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+u,this.totalDuration=this.resolvedDuration*(i+1)-u,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:u,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:p,repeat:m,repeatType:v,repeatDelay:b,type:x,onUpdate:S,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-h*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?T<0:T>u;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,N=i;if(m){const $=Math.min(this.currentTime,u)/c;let L=Math.floor($),z=$%1;!z&&$>=1&&(z=1),z===1&&L--,L=Math.min(L,m+1),!!(L%2)&&(v==="reverse"?(z=1-z,b&&(z-=b/c)):v==="mirror"&&(N=s)),w=xu(0,1,z)*c}const R=D?{done:!1,value:p[0]}:N.next(w);a&&(R.value=a(R.value));let{done:M}=R;!D&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return I&&x!==wg&&(R.value=mv(p,this.options,_,this.speed)),S&&S(R.value),I&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Ai(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ai(t)}get time(){return Ai(this.currentTime)}set time(t){var n;t=Ar(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ai(this.currentTime))}play(){var u,a;if(this.isStopped)return;const{driver:t=pB,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(u=this.options).onPlay)==null||a.call(u);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function RB(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Zo=e=>e*180/Math.PI,Dg=e=>{const t=Zo(Math.atan2(e[1],e[0]));return Ng(t)},MB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dg,rotateZ:Dg,skewX:e=>Zo(Math.atan(e[1])),skewY:e=>Zo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ng=e=>(e=e%360,e<0&&(e+=360),e),v4=Dg,y4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),b4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:y4,scaleY:b4,scale:e=>(y4(e)+b4(e))/2,rotateX:e=>Ng(Zo(Math.atan2(e[6],e[5]))),rotateY:e=>Ng(Zo(Math.atan2(-e[2],e[0]))),rotateZ:v4,rotate:v4,skewX:e=>Zo(Math.atan(e[4])),skewY:e=>Zo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Og(e){return e.includes("scale")?1:0}function Rg(e,t){if(!e||e==="none")return Og(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,u;if(n)i=kB,u=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=MB,u=c}if(!u)return Og(t);const a=i[t],s=u[1].split(",").map(FB);return typeof a=="function"?a(s):s[a]}const LB=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Rg(n,t)};function FB(e){return parseFloat(e.trim())}const Ys=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qs=new Set(Ys),E4=e=>e===Gs||e===Ne,IB=new Set(["x","y","z"]),jB=Ys.filter(e=>!IB.has(e));function PB(e){const t=[];return jB.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const na={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Rg(t,"x"),y:(e,{transform:t})=>Rg(t,"y")};na.translateX=na.x;na.translateY=na.y;const ia=new Set;let Mg=!1,kg=!1,Lg=!1;function EC(){if(kg){const e=Array.from(ia).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const u=PB(i);u.length&&(n.set(i,u),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const u=n.get(i);u&&u.forEach(([a,s])=>{var c;(c=i.getValue(a))==null||c.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}kg=!1,Mg=!1,ia.forEach(e=>e.complete(Lg)),ia.clear()}function xC(){ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(kg=!0)})}function VB(){Lg=!0,xC(),EC(),Lg=!1}class yv{constructor(t,n,i,u,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=u,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ia.add(this),Mg||(Mg=!0,xt.read(xC),xt.resolveKeyframes(EC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:u}=this;if(t[0]===null){const a=u==null?void 0:u.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(i&&n){const c=i.readValue(n,s);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=s),u&&a===void 0&&u.set(t[0])}RB(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ia.delete(this)}cancel(){this.state==="scheduled"&&(ia.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $B=e=>e.startsWith("--");function BB(e,t,n){$B(t)?e.style.setProperty(t,n):e.style[t]=n}const UB=uv(()=>window.ScrollTimeline!==void 0),zB={};function HB(e,t){const n=uv(e);return()=>zB[t]??n()}const SC=HB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,x4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function TC(e,t){if(e)return typeof e=="function"?SC()?gC(e,t):"ease-out":oC(e)?Wl(e):Array.isArray(e)?e.map(n=>TC(n,t)||x4.easeOut):x4[e]}function qB(e,t,n,{delay:i=0,duration:u=300,repeat:a=0,repeatType:s="loop",ease:c="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const m=TC(c,u);Array.isArray(m)&&(p.easing=m);const v={delay:i,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(p,v)}function _C(e){return typeof e=="function"&&"applyToOptions"in e}function GB({type:e,...t}){return _C(e)&&SC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class YB extends gv{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:u,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,rv(typeof t.type!="string");const h=GB(t);this.animation=qB(n,i,u,h,a),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const p=mv(u,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(p):BB(n,i,p),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return Ai(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ai(t)}get time(){return Ai(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ar(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&UB()?(this.animation.timeline=t,Di):n(this)}}const CC={anticipate:nC,backInOut:tC,circInOut:rC};function QB(e){return e in CC}function XB(e){typeof e.ease=="string"&&QB(e.ease)&&(e.ease=CC[e.ease])}const S4=10;class ZB extends YB{constructor(t){XB(t),bC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:u,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new vv({...s,autoplay:!1}),f=Ar(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-S4).value,c.sample(f).value,S4),c.stop()}}const T4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vo.test(e)||e==="0")&&!e.startsWith("url("));function WB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function KB(e,t,n,i){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=T4(u,t),c=T4(a,t);return!s||!c?!1:WB(e)||(n==="spring"||_C(n))&&i}function Fg(e){e.duration=0,e.type="keyframes"}const JB=new Set(["opacity","clipPath","filter","transform"]),eU=uv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function tU(e){var p;const{motionValue:t,name:n,repeatDelay:i,repeatType:u,damping:a,type:s}=e;if(!(((p=t==null?void 0:t.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return eU()&&n&&JB.has(n)&&(n!=="transform"||!h)&&!f&&!i&&u!=="mirror"&&a!==0&&s!=="inertia"}const nU=40;class iU extends gv{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:u=0,repeatDelay:a=0,repeatType:s="loop",keyframes:c,name:f,motionValue:h,element:p,...m}){var x;super(),this.stop=()=>{var S,_;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=zn.now();const v={autoplay:t,delay:n,type:i,repeat:u,repeatDelay:a,repeatType:s,name:f,motionValue:h,element:p,...m},b=(p==null?void 0:p.KeyframeResolver)||yv;this.keyframeResolver=new b(c,(S,_,T)=>this.onKeyframesResolved(S,_,v,!T),f,h,p),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,i,u){this.keyframeResolver=void 0;const{name:a,type:s,velocity:c,delay:f,isHandoff:h,onUpdate:p}=i;this.resolvedAt=zn.now(),KB(t,a,s,c)||((Su.instantAnimations||!f)&&(p==null||p(mv(t,i,n))),t[0]=t[t.length-1],Fg(i),i.repeat=0);const v={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>nU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},b=!h&&tU(v)?new ZB({...v,element:v.motionValue.owner.current}):new vv(v);b.finished.then(()=>this.notifyFinished()).catch(Di),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),VB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const rU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uU(e){const t=rU.exec(e);if(!t)return[,];const[,n,i,u]=t;return[`--${n??i}`,u]}function AC(e,t,n=1){const[i,u]=uU(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return Y8(s)?parseFloat(s):s}return cv(u)?AC(u,t,n+1):u}function bv(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const wC=new Set(["width","height","top","left","right","bottom",...Ys]),oU={test:e=>e==="auto",parse:e=>e},DC=e=>t=>t.test(e),NC=[Gs,Ne,wr,so,K$,W$,oU],_4=e=>NC.find(DC(e));function aU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X8(e):!0}const sU=new Set(["brightness","contrast","saturate","opacity"]);function lU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(fv)||[];if(!i)return e;const u=n.replace(i,"");let a=sU.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+u+")"}const cU=/\b([a-z-]*)\(.*?\)/gu,Ig={...vo,getAnimatableNone:e=>{const t=e.match(cU);return t?t.map(lU).join(" "):e}},C4={...Gs,transform:Math.round},fU={rotate:so,rotateX:so,rotateY:so,rotateZ:so,scale:Pd,scaleX:Pd,scaleY:Pd,scaleZ:Pd,skew:so,skewX:so,skewY:so,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:Nc,originX:d4,originY:d4,originZ:Ne},Ev={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,backgroundPositionX:Ne,backgroundPositionY:Ne,...fU,zIndex:C4,fillOpacity:Nc,strokeOpacity:Nc,numOctaves:C4},dU={...Ev,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:Ig,WebkitFilter:Ig},OC=e=>dU[e];function RC(e,t){let n=OC(e);return n!==Ig&&(n=vo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hU=new Set(["auto","none","0"]);function pU(e,t,n){let i=0,u;for(;i<e.length&&!u;){const a=e[i];typeof a=="string"&&!hU.has(a)&&Oc(a).values.length&&(u=e[i]),i++}if(u&&n)for(const a of t)e[a]=RC(n,u)}class mU extends yv{constructor(t,n,i,u,a){super(t,n,i,u,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),cv(h))){const p=AC(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!wC.has(i)||t.length!==2)return;const[u,a]=t,s=_4(u),c=_4(a);if(s!==c)if(E4(s)&&E4(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else na[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let u=0;u<t.length;u++)(t[u]===null||aU(t[u]))&&i.push(u);i.length&&pU(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=na[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(i,u).jump(u,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const u=t.getValue(n);u&&u.jump(this.measuredOrigin,!1);const a=i.length-1,s=i[a];i[a]=na[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function gU(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const u=(n==null?void 0:n[e])??i.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}const MC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function vU(e){return Q8(e)&&"offsetHeight"in e}const A4=30,yU=e=>!isNaN(parseFloat(e)),uc={current:void 0};class bU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var a;const u=zn.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ov);const i=this.events[t].add(n);return t==="change"?()=>{i(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return uc.current&&uc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>A4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,A4);return Z8(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ca(e,t){return new bU(e,t)}const{schedule:xv}=aC(queueMicrotask,!1),Gi={x:!1,y:!1};function kC(){return Gi.x||Gi.y}function EU(e){return e==="x"||e==="y"?Gi[e]?null:(Gi[e]=!0,()=>{Gi[e]=!1}):Gi.x||Gi.y?null:(Gi.x=Gi.y=!0,()=>{Gi.x=Gi.y=!1})}function LC(e,t){const n=gU(e),i=new AbortController,u={passive:!0,...t,signal:i.signal};return[n,u,()=>i.abort()]}function w4(e){return!(e.pointerType==="touch"||kC())}function xU(e,t,n={}){const[i,u,a]=LC(e,n),s=c=>{if(!w4(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const p=m=>{w4(m)&&(h(m),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,u)};return i.forEach(c=>{c.addEventListener("pointerenter",s,u)}),a}const FC=(e,t)=>t?e===t?!0:FC(e,t.parentElement):!1,Sv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,SU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TU(e){return SU.has(e.tagName)||e.tabIndex!==-1}const Wd=new WeakSet;function D4(e){return t=>{t.key==="Enter"&&e(t)}}function pm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _U=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=D4(()=>{if(Wd.has(n))return;pm(n,"down");const u=D4(()=>{pm(n,"up")}),a=()=>pm(n,"cancel");n.addEventListener("keyup",u,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function N4(e){return Sv(e)&&!kC()}function CU(e,t,n={}){const[i,u,a]=LC(e,n),s=c=>{const f=c.currentTarget;if(!N4(c))return;Wd.add(f);const h=t(f,c),p=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),Wd.has(f)&&Wd.delete(f),N4(b)&&typeof h=="function"&&h(b,{success:x})},m=b=>{p(b,f===window||f===document||n.useGlobalTarget||FC(f,b.target))},v=b=>{p(b,!1)};window.addEventListener("pointerup",m,u),window.addEventListener("pointercancel",v,u)};return i.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",s,u),vU(c)&&(c.addEventListener("focus",h=>_U(h,u)),!TU(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),a}function IC(e){return Q8(e)&&"ownerSVGElement"in e}function AU(e){return IC(e)&&e.tagName==="svg"}function wU(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],u=e[1+n],a=e[2+n],s=e[3+n],c=yC(u,a,s);return t?c(i):c}const En=e=>!!(e&&e.getVelocity),DU=[...NC,Yt,vo],NU=e=>DU.find(DC(e)),Tv=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function OU(e=!0){const t=E.useContext(tv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:u}=t,a=E.useId();E.useEffect(()=>{if(e)return u(a)},[e]);const s=E.useCallback(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,s]:[!0]}const jC=E.createContext({strict:!1}),O4={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"]},Is={};for(const e in O4)Is[e]={isEnabled:t=>O4[e].some(n=>!!t[n])};function RU(e){for(const t in e)Is[t]={...Is[t],...e[t]}}const MU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MU.has(e)}let PC=e=>!_0(e);function kU(e){typeof e=="function"&&(PC=t=>t.startsWith("on")?!_0(t):e(t))}try{kU(require("@emotion/is-prop-valid").default)}catch{}function LU(e,t,n){const i={};for(const u in e)u==="values"&&typeof e.values=="object"||(PC(u)||n===!0&&_0(u)||!t&&!_0(u)||e.draggable&&u.startsWith("onDrag"))&&(i[u]=e[u]);return i}const oh=E.createContext({});function ah(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rc(e){return typeof e=="string"||Array.isArray(e)}const _v=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cv=["initial",..._v];function sh(e){return ah(e.animate)||Cv.some(t=>Rc(e[t]))}function VC(e){return!!(sh(e)||e.variants)}function FU(e,t){if(sh(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(i)?i:void 0}}return e.inherit!==!1?t:{}}function IU(e){const{initial:t,animate:n}=FU(e,E.useContext(oh));return E.useMemo(()=>({initial:t,animate:n}),[R4(t),R4(n)])}function R4(e){return Array.isArray(e)?e.join(" "):e}const Mc={};function jU(e){for(const t in e)Mc[t]=e[t],lv(t)&&(Mc[t].isCSSVariable=!0)}function $C(e,{layout:t,layoutId:n}){return Qs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Mc[e]||e==="opacity")}const PU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VU=Ys.length;function $U(e,t,n){let i="",u=!0;for(let a=0;a<VU;a++){const s=Ys[a],c=e[s];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(s.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=MC(c,Ev[s]);if(!f){u=!1;const p=PU[s]||s;i+=`${p}(${h}) `}n&&(t[s]=h)}}return i=i.trim(),n?i=n(t,u?"":i):u&&(i="none"),i}function Av(e,t,n){const{style:i,vars:u,transformOrigin:a}=e;let s=!1,c=!1;for(const f in t){const h=t[f];if(Qs.has(f)){s=!0;continue}else if(lv(f)){u[f]=h;continue}else{const p=MC(h,Ev[f]);f.startsWith("origin")?(c=!0,a[f]=p):i[f]=p}}if(t.transform||(s||n?i.transform=$U(t,e.transform,n):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${h} ${p}`}}const wv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function BC(e,t,n){for(const i in t)!En(t[i])&&!$C(i,n)&&(e[i]=t[i])}function BU({transformTemplate:e},t){return E.useMemo(()=>{const n=wv();return Av(n,t,e),Object.assign({},n.vars,n.style)},[t])}function UU(e,t){const n=e.style||{},i={};return BC(i,n,e),Object.assign(i,BU(e,t)),i}function zU(e,t){const n={},i=UU(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const HU={offset:"stroke-dashoffset",array:"stroke-dasharray"},qU={offset:"strokeDashoffset",array:"strokeDasharray"};function GU(e,t,n=1,i=0,u=!0){e.pathLength=1;const a=u?HU:qU;e[a.offset]=Ne.transform(-i);const s=Ne.transform(t),c=Ne.transform(n);e[a.array]=`${s} ${c}`}function UC(e,{attrX:t,attrY:n,attrScale:i,pathLength:u,pathSpacing:a=1,pathOffset:s=0,...c},f,h,p){if(Av(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),i!==void 0&&(m.scale=i),u!==void 0&&GU(m,u,a,s,!1)}const zC=()=>({...wv(),attrs:{}}),HC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YU(e,t,n,i){const u=E.useMemo(()=>{const a=zC();return UC(a,t,HC(i),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};BC(a,e.style,e),u.style={...a,...u.style}}return u}const QU=["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 Dv(e){return typeof e!="string"||e.includes("-")?!1:!!(QU.indexOf(e)>-1||/[A-Z]/u.test(e))}function XU(e,t,n,{latestValues:i},u,a=!1){const c=(Dv(e)?YU:zU)(t,i,u,e),f=LU(t,typeof e=="string",a),h=e!==E.Fragment?{...f,...c,ref:n}:{},{children:p}=t,m=E.useMemo(()=>En(p)?p.get():p,[p]);return E.createElement(e,{...h,children:m})}function M4(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Nv(e,t,n,i){if(typeof t=="function"){const[u,a]=M4(i);t=t(n!==void 0?n:e.custom,u,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,a]=M4(i);t=t(n!==void 0?n:e.custom,u,a)}return t}function Kd(e){return En(e)?e.get():e}function ZU({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,u){return{latestValues:WU(n,i,u,e),renderState:t()}}function WU(e,t,n,i){const u={},a=i(e,{});for(const v in a)u[v]=Kd(a[v]);let{initial:s,animate:c}=e;const f=sh(e),h=VC(e);t&&h&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const m=p?c:s;if(m&&typeof m!="boolean"&&!ah(m)){const v=Array.isArray(m)?m:[m];for(let b=0;b<v.length;b++){const x=Nv(e,v[b]);if(x){const{transitionEnd:S,transition:_,...T}=x;for(const D in T){let w=T[D];if(Array.isArray(w)){const N=p?w.length-1:0;w=w[N]}w!==null&&(u[D]=w)}for(const D in S)u[D]=S[D]}}}return u}const qC=e=>(t,n)=>{const i=E.useContext(oh),u=E.useContext(tv),a=()=>ZU(e,t,i,u);return n?a():Wc(a)};function Ov(e,t,n){var a;const{style:i}=e,u={};for(const s in i)(En(i[s])||t.style&&En(t.style[s])||$C(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(u[s]=i[s]);return u}const KU=qC({scrapeMotionValuesFromProps:Ov,createRenderState:wv});function GC(e,t,n){const i=Ov(e,t,n);for(const u in e)if(En(e[u])||En(t[u])){const a=Ys.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;i[a]=e[u]}return i}const JU=qC({scrapeMotionValuesFromProps:GC,createRenderState:zC}),ez=Symbol.for("motionComponentSymbol");function ms(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tz(e,t,n){return E.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):ms(n)&&(n.current=i))},[t])}const Rv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nz="framerAppearId",YC="data-"+Rv(nz),QC=E.createContext({});function iz(e,t,n,i,u){var S,_;const{visualElement:a}=E.useContext(oh),s=E.useContext(jC),c=E.useContext(tv),f=E.useContext(Tv).reducedMotion,h=E.useRef(null);i=i||s.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,m=E.useContext(QC);p&&!p.projection&&u&&(p.type==="html"||p.type==="svg")&&rz(h.current,n,u,m);const v=E.useRef(!1);E.useInsertionEffect(()=>{p&&v.current&&p.update(n,c)});const b=n[YC],x=E.useRef(!!b&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,b))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,b)));return G8(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),E.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,b)}),x.current=!1),p.enteringChildren=void 0)}),p}function rz(e,t,n,i){const{layoutId:u,layout:a,drag:s,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:XC(e.parent)),e.projection.setOptions({layoutId:u,layout:a,alwaysMeasureLayout:!!s||c&&ms(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:f,layoutRoot:h})}function XC(e){if(e)return e.options.allowProjection!==!1?e.projection:XC(e.parent)}function mm(e,{forwardMotionProps:t=!1}={},n,i){n&&RU(n);const u=Dv(e)?JU:KU;function a(c,f){let h;const p={...E.useContext(Tv),...c,layoutId:uz(c)},{isStatic:m}=p,v=IU(c),b=u(c,m);if(!m&&ev){oz();const x=az(p);h=x.MeasureLayout,v.visualElement=iz(e,b,p,i,x.ProjectionNode)}return A.jsxs(oh.Provider,{value:v,children:[h&&v.visualElement?A.jsx(h,{visualElement:v.visualElement,...p}):null,XU(e,c,tz(b,v.visualElement,f),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(a);return s[ez]=e,s}function uz({layoutId:e}){const t=E.useContext(q8).id;return t&&e!==void 0?t+"-"+e:e}function oz(e,t){E.useContext(jC).strict}function az(e){const{drag:t,layout:n}=Is;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function sz(e,t){if(typeof Proxy>"u")return mm;const n=new Map,i=(a,s)=>mm(a,s,e,t),u=(a,s)=>i(a,s);return new Proxy(u,{get:(a,s)=>s==="create"?i:(n.has(s)||n.set(s,mm(s,void 0,e,t)),n.get(s))})}function ZC({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function lz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function gm(e){return e===void 0||e===1}function jg({scale:e,scaleX:t,scaleY:n}){return!gm(e)||!gm(t)||!gm(n)}function Ho(e){return jg(e)||WC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function WC(e){return k4(e.x)||k4(e.y)}function k4(e){return e&&e!=="0%"}function C0(e,t,n){const i=e-n,u=t*i;return n+u}function L4(e,t,n,i,u){return u!==void 0&&(e=C0(e,u,i)),C0(e,n,i)+t}function Pg(e,t=0,n=1,i,u){e.min=L4(e.min,t,n,i,u),e.max=L4(e.max,t,n,i,u)}function KC(e,{x:t,y:n}){Pg(e.x,t.translate,t.scale,t.originPoint),Pg(e.y,n.translate,n.scale,n.originPoint)}const F4=.999999999999,I4=1.0000000000001;function fz(e,t,n,i=!1){const u=n.length;if(!u)return;t.x=t.y=1;let a,s;for(let c=0;c<u;c++){a=n[c],s=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&vs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,KC(e,s)),i&&Ho(a.latestValues)&&vs(e,a.latestValues))}t.x<I4&&t.x>F4&&(t.x=1),t.y<I4&&t.y>F4&&(t.y=1)}function gs(e,t){e.min=e.min+t,e.max=e.max+t}function j4(e,t,n,i,u=.5){const a=wt(e.min,e.max,u);Pg(e,t,n,a,i)}function vs(e,t){j4(e.x,t.x,t.scaleX,t.scale,t.originX),j4(e.y,t.y,t.scaleY,t.scale,t.originY)}function JC(e,t){return ZC(cz(e.getBoundingClientRect(),t))}function dz(e,t,n){const i=JC(e,n),{scroll:u}=t;return u&&(gs(i.x,u.offset.x),gs(i.y,u.offset.y)),i}const P4=()=>({translate:0,scale:1,origin:0,originPoint:0}),ys=()=>({x:P4(),y:P4()}),V4=()=>({min:0,max:0}),Pt=()=>({x:V4(),y:V4()}),Vg={current:null},eA={current:!1};function hz(){if(eA.current=!0,!!ev)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vg.current=e.matches;e.addEventListener("change",t),t()}else Vg.current=!1}const pz=new WeakMap;function mz(e,t,n){for(const i in t){const u=t[i],a=n[i];if(En(u))e.addValue(i,u);else if(En(a))e.addValue(i,ca(u,{owner:e}));else if(a!==u)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(u):s.hasAnimated||s.set(u)}else{const s=e.getStaticValue(i);e.addValue(i,ca(s!==void 0?s:u,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const $4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gz{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:u,blockInitialAnimation:a,visualState:s},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=zn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,xt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=s;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=sh(n),this.isVariantNode=VC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];f[v]!==void 0&&En(b)&&b.set(f[v])}}mount(t){var n;this.current=t,pz.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,u)=>this.bindToMotionValue(u,i)),eA.current||hz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vg.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Tu(this.notifyUpdate),Tu(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Qs.has(t);i&&this.onBindTransform&&this.onBindTransform();const u=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&xt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Is){const n=Is[t];if(!n)continue;const{isEnabled:i,Feature:u}=n;if(!this.features[t]&&u&&i(this.props)&&(this.features[t]=new u(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<$4.length;i++){const u=$4[i];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const a="on"+u,s=t[a];s&&(this.propEventSubscriptions[u]=this.on(u,s))}this.prevMotionValues=mz(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=ca(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Y8(i)||X8(i))?i=parseFloat(i):!NU(i)&&vo.test(n)&&(i=RC(t,n)),this.setBaseTarget(t,En(i)?i.get():i)),En(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const s=Nv(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(i=s[t])}if(n&&i!==void 0)return i;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!En(u)?u:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ov),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xv.render(this.render)}}class tA extends gz{constructor(){super(...arguments),this.KeyframeResolver=mU}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;En(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function nA(e,{style:t,vars:n},i,u){const a=e.style;let s;for(s in t)a[s]=t[s];u==null||u.applyProjectionStyles(a,i);for(s in n)a.setProperty(s,n[s])}function vz(e){return window.getComputedStyle(e)}class yz extends tA{constructor(){super(...arguments),this.type="html",this.renderInstance=nA}readValueFromInstance(t,n){var i;if(Qs.has(n))return(i=this.projection)!=null&&i.isProjecting?Og(n):LB(t,n);{const u=vz(t),a=(lv(n)?u.getPropertyValue(n):u[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return JC(t,n)}build(t,n,i){Av(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Ov(t,n,i)}}const iA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function bz(e,t,n,i){nA(e,t,void 0,i);for(const u in t.attrs)e.setAttribute(iA.has(u)?u:Rv(u),t.attrs[u])}class Ez extends tA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qs.has(n)){const i=OC(n);return i&&i.default||0}return n=iA.has(n)?n:Rv(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return GC(t,n,i)}build(t,n,i){UC(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,u){bz(t,n,i,u)}mount(t){this.isSVGTag=HC(t.tagName),super.mount(t)}}const xz=(e,t)=>Dv(e)?new Ez(t):new yz(t,{allowProjection:e!==E.Fragment});function As(e,t,n){const i=e.getProps();return Nv(i,t,n!==void 0?n:i.custom,e)}const $g=e=>Array.isArray(e);function Sz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ca(n))}function Tz(e){return $g(e)?e[e.length-1]||0:e}function _z(e,t){const n=As(e,t);let{transitionEnd:i={},transition:u={},...a}=n||{};a={...a,...i};for(const s in a){const c=Tz(a[s]);Sz(e,s,c)}}function Cz(e){return!!(En(e)&&e.add)}function Bg(e,t){const n=e.getValue("willChange");if(Cz(n))return n.add(t);if(!n&&Su.WillChange){const i=new Su.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function rA(e){return e.props[YC]}const Az=e=>e!==null;function wz(e,{repeat:t,repeatType:n="loop"},i){const u=e.filter(Az),a=t&&n!=="loop"&&t%2===1?0:u.length-1;return u[a]}const Dz={type:"spring",stiffness:500,damping:25,restSpeed:10},Nz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Oz={type:"keyframes",duration:.8},Rz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mz=(e,{keyframes:t})=>t.length>2?Oz:Qs.has(e)?e.startsWith("scale")?Nz(t[1]):Dz:Rz;function kz({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:u,repeat:a,repeatType:s,repeatDelay:c,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const Mv=(e,t,n,i={},u,a)=>s=>{const c=bv(i,e)||{},f=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Ar(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:u};kz(c)||Object.assign(p,Mz(e,p)),p.duration&&(p.duration=Ar(p.duration)),p.repeatDelay&&(p.repeatDelay=Ar(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Fg(p),p.delay===0&&(m=!0)),(Su.instantAnimations||Su.skipAnimations)&&(m=!0,Fg(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const v=wz(p.keyframes,c);if(v!==void 0){xt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return c.isSync?new vv(p):new iU(p)};function Lz({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function uA(e,t,{delay:n=0,transitionOverride:i,type:u}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...c}=t;i&&(a=i);const f=[],h=u&&e.animationState&&e.animationState.getState()[u];for(const p in c){const m=e.getValue(p,e.latestValues[p]??null),v=c[p];if(v===void 0||h&&Lz(h,p))continue;const b={delay:n,...bv(a||{},p)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===x&&!b.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const T=rA(e);if(T){const D=window.MotionHandoffAnimation(T,p,xt);D!==null&&(b.startTime=D,S=!0)}}Bg(e,p),m.start(Mv(p,m,v,e.shouldReduceMotion&&wC.has(p)?{type:!1}:b,e,S));const _=m.animation;_&&f.push(_)}return s&&Promise.all(f).then(()=>{xt.update(()=>{s&&_z(e,s)})}),f}function oA(e,t,n,i=0,u=1){const a=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),s=e.size,c=(s-1)*i;return typeof n=="function"?n(a,s):u===1?a*i:c-a*i}function Ug(e,t,n={}){var f;const i=As(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(u=n.transitionOverride);const a=i?()=>Promise.all(uA(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:v}=u;return Fz(e,t,h,p,m,v,n)}:()=>Promise.resolve(),{when:c}=u;if(c){const[h,p]=c==="beforeChildren"?[a,s]:[s,a];return h().then(()=>p())}else return Promise.all([a(),s(n.delay)])}function Fz(e,t,n=0,i=0,u=0,a=1,s){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(Ug(f,t,{...s,delay:n+(typeof i=="function"?0:i)+oA(e.variantChildren,f,i,u,a)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function Iz(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const u=t.map(a=>Ug(e,a,n));i=Promise.all(u)}else if(typeof t=="string")i=Ug(e,t,n);else{const u=typeof t=="function"?As(e,t,n.custom):t;i=Promise.all(uA(e,u,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function aA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const jz=Cv.length;function sA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jz;n++){const i=Cv[n],u=e.props[i];(Rc(u)||u===!1)&&(t[i]=u)}return t}const Pz=[..._v].reverse(),Vz=_v.length;function $z(e){return t=>Promise.all(t.map(({animation:n,options:i})=>Iz(e,n,i)))}function Bz(e){let t=$z(e),n=B4(),i=!0;const u=f=>(h,p)=>{var v;const m=As(e,p,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(m){const{transition:b,transitionEnd:x,...S}=m;h={...h,...S,...x}}return h};function a(f){t=f(e)}function s(f){const{props:h}=e,p=sA(e.parent)||{},m=[],v=new Set;let b={},x=1/0;for(let _=0;_<Vz;_++){const T=Pz[_],D=n[T],w=h[T]!==void 0?h[T]:p[T],N=Rc(w),R=T===f?D.isActive:null;R===!1&&(x=_);let M=w===p[T]&&w!==h[T]&&N;if(M&&i&&e.manuallyAnimateOnMount&&(M=!1),D.protectedKeys={...b},!D.isActive&&R===null||!w&&!D.prevProp||ah(w)||typeof w=="boolean")continue;const I=Uz(D.prevProp,w);let $=I||T===f&&D.isActive&&!M&&N||_>x&&N,L=!1;const z=Array.isArray(w)?w:[w];let G=z.reduce(u(T),{});R===!1&&(G={});const{prevResolvedValues:J={}}=D,se={...J,...G},ie=H=>{$=!0,v.has(H)&&(L=!0,v.delete(H)),D.needsAnimating[H]=!0;const P=e.getValue(H);P&&(P.liveStyle=!1)};for(const H in se){const P=G[H],V=J[H];if(b.hasOwnProperty(H))continue;let re=!1;$g(P)&&$g(V)?re=!aA(P,V):re=P!==V,re?P!=null?ie(H):v.add(H):P!==void 0&&v.has(H)?ie(H):D.protectedKeys[H]=!0}D.prevProp=w,D.prevResolvedValues=G,D.isActive&&(b={...b,...G}),i&&e.blockInitialAnimation&&($=!1);const ee=M&&I;$&&(!ee||L)&&m.push(...z.map(H=>{const P={type:T};if(typeof H=="string"&&i&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,re=As(V,H);if(V.enteringChildren&&re){const{delayChildren:k}=re.transition||{};P.delay=oA(V.enteringChildren,e,k)}}return{animation:H,options:P}}))}if(v.size){const _={};if(typeof h.initial!="boolean"){const T=As(e,Array.isArray(h.initial)?h.initial[0]:h.initial);T&&T.transition&&(_.transition=T.transition)}v.forEach(T=>{const D=e.getBaseTarget(T),w=e.getValue(T);w&&(w.liveStyle=!0),_[T]=D??null}),m.push({animation:_})}let S=!!m.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,S?t(m):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(v=>{var b;return(b=v.animationState)==null?void 0:b.setActive(f,h)}),n[f].isActive=h;const p=s(f);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:s,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=B4(),i=!0}}}function Uz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aA(t,e):!1}function zo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function B4(){return{animate:zo(!0),whileInView:zo(),whileHover:zo(),whileTap:zo(),whileDrag:zo(),whileFocus:zo(),exit:zo()}}class bo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class zz extends bo{constructor(t){super(t),t.animationState||(t.animationState=Bz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ah(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Hz=0;class qz extends bo{constructor(){super(...arguments),this.id=Hz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Gz={animation:{Feature:zz},exit:{Feature:qz}};function kc(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tf(e){return{point:{x:e.pageX,y:e.pageY}}}const Yz=e=>t=>Sv(t)&&e(t,tf(t));function oc(e,t,n,i){return kc(e,t,Yz(n),i)}const lA=1e-4,Qz=1-lA,Xz=1+lA,cA=.01,Zz=0-cA,Wz=0+cA;function Rn(e){return e.max-e.min}function Kz(e,t,n){return Math.abs(e-t)<=n}function U4(e,t,n,i=.5){e.origin=i,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Qz&&e.scale<=Xz||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zz&&e.translate<=Wz||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,i){U4(e.x,t.x,n.x,i?i.originX:void 0),U4(e.y,t.y,n.y,i?i.originY:void 0)}function z4(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function Jz(e,t,n){z4(e.x,t.x,n.x),z4(e.y,t.y,n.y)}function H4(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function sc(e,t,n){H4(e.x,t.x,n.x),H4(e.y,t.y,n.y)}function Ti(e){return[e("x"),e("y")]}const fA=({current:e})=>e?e.ownerDocument.defaultView:null,q4=(e,t)=>Math.abs(e-t);function eH(e,t){const n=q4(e.x,t.x),i=q4(e.y,t.y);return Math.sqrt(n**2+i**2)}class dA{constructor(t,n,{transformPagePoint:i,contextWindow:u=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ym(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=eH(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!x)return;const{point:S}=v,{timestamp:_}=bn;this.history.push({...S,timestamp:_});const{onStart:T,onMove:D}=this.handlers;b||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=vm(b,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=ym(v.type==="pointercancel"?this.lastMoveEventInfo:vm(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,T),S&&S(v,T)},!Sv(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=u||window;const c=tf(t),f=vm(c,this.transformPagePoint),{point:h}=f,{timestamp:p}=bn;this.history=[{...h,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,ym(f,this.history)),this.removeListeners=Kc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Tu(this.updatePoint)}}function vm(e,t){return t?{point:t(e.point)}:e}function G4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ym({point:e},t){return{point:e,delta:G4(e,hA(t)),offset:G4(e,tH(t)),velocity:nH(t,.1)}}function tH(e){return e[0]}function hA(e){return e[e.length-1]}function nH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const u=hA(e);for(;n>=0&&(i=e[n],!(u.timestamp-i.timestamp>Ar(t)));)n--;if(!i)return{x:0,y:0};const a=Ai(u.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const s={x:(u.x-i.x)/a,y:(u.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function iH(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?wt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?wt(n,e,i.max):Math.min(e,n)),e}function Y4(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rH(e,{top:t,left:n,bottom:i,right:u}){return{x:Y4(e.x,n,u),y:Y4(e.y,t,i)}}function Q4(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function uH(e,t){return{x:Q4(e.x,t.x),y:Q4(e.y,t.y)}}function oH(e,t){let n=.5;const i=Rn(e),u=Rn(t);return u>i?n=Dc(t.min,t.max-i,e.min):i>u&&(n=Dc(e.min,e.max-u,t.min)),xu(0,1,n)}function aH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const zg=.35;function sH(e=zg){return e===!1?e=0:e===!0&&(e=zg),{x:X4(e,"left","right"),y:X4(e,"top","bottom")}}function X4(e,t,n){return{min:Z4(e,t),max:Z4(e,n)}}function Z4(e,t){return typeof e=="number"?e:e[t]||0}const lH=new WeakMap;class cH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tf(m).point)},s=(m,v)=>{const{drag:b,dragPropagation:x,onDragStart:S}=this.getProps();if(b&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=EU(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ti(T=>{let D=this.getAxisMotionValue(T).get()||0;if(wr.test(D)){const{projection:w}=this.visualElement;if(w&&w.layout){const N=w.layout.layoutBox[T];N&&(D=Rn(N)*(parseFloat(D)/100))}}this.originPoint[T]=D}),S&&xt.postRender(()=>S(m,v)),Bg(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:b,dragDirectionLock:x,onDirectionLock:S,onDrag:_}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:T}=v;if(x&&this.currentDirection===null){this.currentDirection=fH(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),_&&_(m,v)},f=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Ti(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)==null?void 0:v.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new dA(t,{onSessionStart:a,onStart:s,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:fA(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,u=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!u||!i)return;const{velocity:s}=u;this.startAnimation(s);const{onDragEnd:c}=this.getProps();c&&xt.postRender(()=>c(i,u))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:u}=this.getProps();if(!i||!Vd(t,u,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=iH(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,u=this.constraints;t&&ms(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=rH(i.layoutBox,t):this.constraints=!1,this.elastic=sH(n),u!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ti(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=aH(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ms(t))return!1;const i=t.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const a=dz(i,u.root,this.visualElement.getTransformPagePoint());let s=uH(u.layout.layoutBox,a);if(n){const c=n(lz(s));this.hasMutatedConstraints=!!c,c&&(s=ZC(c))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:u,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Ti(p=>{if(!Vd(p,n,this.currentDirection))return;let m=f&&f[p]||{};s&&(m={min:0,max:0});const v=u?200:1e6,b=u?40:1e7,x={type:"inertia",velocity:i?t[p]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Bg(this.visualElement,t),i.start(Mv(t,i,0,n,this.visualElement,!1))}stopAnimation(){Ti(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ti(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),u=i[n];return u||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Ti(n=>{const{drag:i}=this.getProps();if(!Vd(n,i,this.currentDirection))return;const{projection:u}=this.visualElement,a=this.getAxisMotionValue(n);if(u&&u.layout){const{min:s,max:c}=u.layout.layoutBox[n];a.set(t[n]-wt(s,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ms(n)||!i||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Ti(s=>{const c=this.getAxisMotionValue(s);if(c&&this.constraints!==!1){const f=c.get();u[s]=oH({min:f,max:f},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ti(s=>{if(!Vd(s,t,null))return;const c=this.getAxisMotionValue(s),{min:f,max:h}=this.constraints[s];c.set(wt(f,h,u[s]))})}addListeners(){if(!this.visualElement.current)return;lH.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();ms(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,a=u.addEventListener("measure",i);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),xt.read(i);const s=kc(window,"resize",()=>this.scalePositionWithinConstraints()),c=u.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ti(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=f[p].translate,m.set(m.get()+f[p].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:u=!1,dragConstraints:a=!1,dragElastic:s=zg,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:u,dragConstraints:a,dragElastic:s,dragMomentum:c}}}function Vd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dH extends bo{constructor(t){super(t),this.removeGroupControls=Di,this.removeListeners=Di,this.controls=new cH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Di}unmount(){this.removeGroupControls(),this.removeListeners()}}const W4=e=>(t,n)=>{e&&xt.postRender(()=>e(t,n))};class hH extends bo{constructor(){super(...arguments),this.removePointerDownListener=Di}onPointerDown(t){this.session=new dA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:u}=this.node.getProps();return{onSessionStart:W4(t),onStart:W4(n),onMove:i,onEnd:(a,s)=>{delete this.session,u&&xt.postRender(()=>u(a,s))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Jd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function K4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ql={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=K4(e,t.target.x),i=K4(e,t.target.y);return`${n}% ${i}%`}},pH={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,u=vo.parse(e);if(u.length>5)return i;const a=vo.createTransformer(e),s=typeof u[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;u[0+s]/=c,u[1+s]/=f;const h=wt(c,f,.5);return typeof u[2+s]=="number"&&(u[2+s]/=h),typeof u[3+s]=="number"&&(u[3+s]/=h),a(u)}};let bm=!1;class mH extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:u}=this.props,{projection:a}=t;jU(gH),a&&(n.group&&n.group.add(a),i&&i.register&&u&&i.register(a),bm&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Jd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:u,isPresent:a}=this.props,{projection:s}=i;return s&&(s.isPresent=a,bm=!0,u||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||xt.postRender(()=>{const c=s.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:u}=t;bm=!0,u&&(u.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(u),i&&i.deregister&&i.deregister(u))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pA(e){const[t,n]=OU(),i=E.useContext(q8);return A.jsx(mH,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(QC),isPresent:t,safeToRemove:n})}const gH={borderRadius:{...ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ql,borderTopRightRadius:ql,borderBottomLeftRadius:ql,borderBottomRightRadius:ql,boxShadow:pH};function vH(e,t,n){const i=En(e)?e:ca(e);return i.start(Mv("",i,t,n)),i.animation}const yH=(e,t)=>e.depth-t.depth;class bH{constructor(){this.children=[],this.isDirty=!1}add(t){nv(this.children,t),this.isDirty=!0}remove(t){iv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yH),this.isDirty=!1,this.children.forEach(t)}}function EH(e,t){const n=zn.now(),i=({timestamp:u})=>{const a=u-n;a>=t&&(Tu(i),e(a-t))};return xt.setup(i,!0),()=>Tu(i)}const mA=["TopLeft","TopRight","BottomLeft","BottomRight"],xH=mA.length,J4=e=>typeof e=="string"?parseFloat(e):e,e5=e=>typeof e=="number"||Ne.test(e);function SH(e,t,n,i,u,a){u?(e.opacity=wt(0,n.opacity??1,TH(i)),e.opacityExit=wt(t.opacity??1,0,_H(i))):a&&(e.opacity=wt(t.opacity??1,n.opacity??1,i));for(let s=0;s<xH;s++){const c=`border${mA[s]}Radius`;let f=t5(t,c),h=t5(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||e5(f)===e5(h)?(e[c]=Math.max(wt(J4(f),J4(h),i),0),(wr.test(h)||wr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,i))}function t5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const TH=gA(0,.5,iC),_H=gA(.5,.95,Di);function gA(e,t,n){return i=>i<e?0:i>t?1:n(Dc(e,t,i))}function n5(e,t){e.min=t.min,e.max=t.max}function xi(e,t){n5(e.x,t.x),n5(e.y,t.y)}function i5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function r5(e,t,n,i,u){return e-=t,e=C0(e,1/n,i),u!==void 0&&(e=C0(e,1/u,i)),e}function CH(e,t=0,n=1,i=.5,u,a=e,s=e){if(wr.test(t)&&(t=parseFloat(t),t=wt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let c=wt(a.min,a.max,i);e===a&&(c-=t),e.min=r5(e.min,t,n,c,u),e.max=r5(e.max,t,n,c,u)}function u5(e,t,[n,i,u],a,s){CH(e,t[n],t[i],t[u],t.scale,a,s)}const AH=["x","scaleX","originX"],wH=["y","scaleY","originY"];function o5(e,t,n,i){u5(e.x,t,AH,n?n.x:void 0,i?i.x:void 0),u5(e.y,t,wH,n?n.y:void 0,i?i.y:void 0)}function a5(e){return e.translate===0&&e.scale===1}function vA(e){return a5(e.x)&&a5(e.y)}function s5(e,t){return e.min===t.min&&e.max===t.max}function DH(e,t){return s5(e.x,t.x)&&s5(e.y,t.y)}function l5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yA(e,t){return l5(e.x,t.x)&&l5(e.y,t.y)}function c5(e){return Rn(e.x)/Rn(e.y)}function f5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NH{constructor(){this.members=[]}add(t){nv(this.members,t),t.scheduleRender()}remove(t){if(iv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(u=>t===u);if(n===0)return!1;let i;for(let u=n;u>=0;u--){const a=this.members[u];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:u}=t.options;u===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function OH(e,t,n){let i="";const u=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((u||a||s)&&(i=`translate3d(${u}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:m,rotateY:v,skewX:b,skewY:x}=n;h&&(i=`perspective(${h}px) ${i}`),p&&(i+=`rotate(${p}deg) `),m&&(i+=`rotateX(${m}deg) `),v&&(i+=`rotateY(${v}deg) `),b&&(i+=`skewX(${b}deg) `),x&&(i+=`skewY(${x}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(i+=`scale(${c}, ${f})`),i||"none"}const Em=["","X","Y","Z"],RH=1e3;let MH=0;function xm(e,t,n,i){const{latestValues:u}=t;u[e]&&(n[e]=u[e],t.setStaticValue(e,0),i&&(i[e]=0))}function bA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:u,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(u||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&bA(i)}function EA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:u}){return class{constructor(s={},c=t==null?void 0:t()){this.id=MH++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FH),this.nodes.forEach(VH),this.nodes.forEach($H),this.nodes.forEach(IH)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new bH)}addEventListener(s,c){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ov),this.eventHandlers.get(s).add(c)}notifyListeners(s,...c){const f=this.eventHandlers.get(s);f&&f.notify(...c)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=IC(s)&&!AU(s),this.instance=s;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let p,m=0;const v=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=EH(v,250),Jd.hasAnimatedSinceResize&&(Jd.hasAnimatedSinceResize=!1,this.nodes.forEach(p5)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||qH,{onLayoutAnimationStart:S,onLayoutAnimationComplete:_}=h.getProps(),T=!this.targetLayout||!yA(this.targetLayout,b),D=!m&&v;if(this.options.layoutRoot||this.resumeFrom||D||m&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...bv(x,"layout"),onPlay:S,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(p,D)}else m||p5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Tu(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(BH),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(d5);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(h5);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PH),this.nodes.forEach(kH),this.nodes.forEach(LH)):this.nodes.forEach(h5),this.clearAllSnapshots();const c=zn.now();bn.delta=xu(0,1e3/60,c-bn.timestamp),bn.timestamp=c,bn.isProcessing=!0,lm.update.process(bn),lm.preRender.process(bn),lm.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jH),this.sharedNodes.forEach(UH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Rn(this.snapshot.measuredBox.x)&&!Rn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(c=!1),c&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!u)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!vA(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;s&&this.instance&&(c||Ho(this.latestValues)||p)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return s&&(f=this.removeTransform(f)),GH(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:s}=this.options;if(!s)return Pt();const c=s.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(YH))){const{scroll:p}=this.root;p&&(gs(c.x,p.offset.x),gs(c.y,p.offset.y))}return c}removeElementScroll(s){var f;const c=Pt();if(xi(c,s),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:m,options:v}=p;p!==this.root&&m&&v.layoutScroll&&(m.wasRoot&&xi(c,s),gs(c.x,m.offset.x),gs(c.y,m.offset.y))}return c}applyTransform(s,c=!1){const f=Pt();xi(f,s);for(let h=0;h<this.path.length;h++){const p=this.path[h];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&vs(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ho(p.latestValues)&&vs(f,p.latestValues)}return Ho(this.latestValues)&&vs(f,this.latestValues),f}removeTransform(s){const c=Pt();xi(c,s);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ho(h.latestValues))continue;jg(h.latestValues)&&h.updateSnapshot();const p=Pt(),m=h.measurePageBox();xi(p,m),o5(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Ho(this.latestValues)&&o5(c,this.latestValues),c}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var v;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=bn.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),sc(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),xi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Jz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xi(this.target,this.layout.layoutBox),KC(this.target,this.targetDelta)):xi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),sc(this.relativeTargetOrigin,this.target,b.target),xi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||jg(this.parent.latestValues)||WC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var x;const s=this.getLead(),c=!!this.resumingFrom||this!==s;let f=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===bn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;xi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;fz(this.layoutCorrected,this.treeScale,this.path,c),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Pt());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(i5(this.prevProjectionDelta.x,this.projectionDelta.x),i5(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!f5(this.projectionDelta.x,this.prevProjectionDelta.x)||!f5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),s){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ys(),this.projectionDelta=ys(),this.projectionDeltaWithTransform=ys()}setAnimationOrigin(s,c=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},m=ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=Pt(),b=f?f.source:void 0,x=this.layout?this.layout.source:void 0,S=b!==x,_=this.getStack(),T=!_||_.members.length<=1,D=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(HH));this.animationProgress=0;let w;this.mixTargetDelta=N=>{const R=N/1e3;m5(m.x,s.x,R),m5(m.y,s.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zH(this.relativeTarget,this.relativeTargetOrigin,v,R),w&&DH(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Pt()),xi(w,this.relativeTarget)),S&&(this.animationValues=p,SH(p,h,this.latestValues,R,D,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Tu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{Jd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ca(0)),this.currentAnimation=vH(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),s.onUpdate&&s.onUpdate(p)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(RH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:p}=s;if(!(!c||!f||!h)){if(this!==s&&this.layout&&h&&xA(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Pt();const m=Rn(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+m;const v=Rn(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+v}xi(c,f),vs(c,p),ac(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(s,c){this.sharedNodes.has(s)||this.sharedNodes.set(s,new NH),this.sharedNodes.get(s).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var c;const{layoutId:s}=this.options;return s?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:s}=this.options;return s?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let c=!1;const{latestValues:f}=s;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&xm("z",s,h,this.animationValues);for(let p=0;p<Em.length;p++)xm(`rotate${Em[p]}`,s,h,this.animationValues),xm(`skew${Em[p]}`,s,h,this.animationValues);s.render();for(const p in h)s.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);s.scheduleRender()}applyProjectionStyles(s,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Kd(c==null?void 0:c.pointerEvents)||"",s.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Kd(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ho(this.latestValues)&&(s.transform=f?f({},""):"none",this.hasProjected=!1);return}s.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let m=OH(this.projectionDeltaWithTransform,this.treeScale,p);f&&(m=f(p,m)),s.transform=m;const{x:v,y:b}=this.projectionDelta;s.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,h.animationValues?s.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:s.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Mc){if(p[x]===void 0)continue;const{correct:S,applyTo:_,isCSSVariable:T}=Mc[x],D=m==="none"?p[x]:S(p[x],h);if(_){const w=_.length;for(let N=0;N<w;N++)s[_[N]]=D}else T?this.options.visualElement.renderState.vars[x]=D:s[x]=D}this.options.layoutId&&(s.pointerEvents=h===this?Kd(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var c;return(c=s.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(d5),this.root.sharedNodes.clear()}}}function kH(e){e.updateLayout()}function LH(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:u}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Ti(m=>{const v=s?t.measuredBox[m]:t.layoutBox[m],b=Rn(v);v.min=i[m].min,v.max=v.min+b}):xA(a,t.layoutBox,i)&&Ti(m=>{const v=s?t.measuredBox[m]:t.layoutBox[m],b=Rn(i[m]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const c=ys();ac(c,i,t.layoutBox);const f=ys();s?ac(f,e.applyTransform(u,!0),t.measuredBox):ac(f,i,t.layoutBox);const h=!vA(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:v,layout:b}=m;if(v&&b){const x=Pt();sc(x,t.layoutBox,v.layoutBox);const S=Pt();sc(S,i,b.layoutBox),yA(x,S)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function FH(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function IH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jH(e){e.clearSnapshot()}function d5(e){e.clearMeasurements()}function h5(e){e.isLayoutDirty=!1}function PH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function p5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VH(e){e.resolveTargetDelta()}function $H(e){e.calcProjection()}function BH(e){e.resetSkewAndRotation()}function UH(e){e.removeLeadSnapshot()}function m5(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function g5(e,t,n,i){e.min=wt(t.min,n.min,i),e.max=wt(t.max,n.max,i)}function zH(e,t,n,i){g5(e.x,t.x,n.x,i),g5(e.y,t.y,n.y,i)}function HH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qH={duration:.45,ease:[.4,0,.1,1]},v5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),y5=v5("applewebkit/")&&!v5("chrome/")?Math.round:Di;function b5(e){e.min=y5(e.min),e.max=y5(e.max)}function GH(e){b5(e.x),b5(e.y)}function xA(e,t,n){return e==="position"||e==="preserve-aspect"&&!Kz(c5(t),c5(n),.2)}function YH(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const QH=EA({attachResizeListener:(e,t)=>kc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sm={current:void 0},SA=EA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sm.current){const e=new QH({});e.mount(window),e.setOptions({layoutScroll:!0}),Sm.current=e}return Sm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),XH={pan:{Feature:hH},drag:{Feature:dH,ProjectionNode:SA,MeasureLayout:pA}};function E5(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,a=i[u];a&&xt.postRender(()=>a(t,tf(t)))}class ZH extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=xU(t,(n,i)=>(E5(this.node,i,"Start"),u=>E5(this.node,u,"End"))))}unmount(){}}class WH extends bo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kc(kc(this.node.current,"focus",()=>this.onFocus()),kc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function x5(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),a=i[u];a&&xt.postRender(()=>a(t,tf(t)))}class KH extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=CU(t,(n,i)=>(x5(this.node,i,"Start"),(u,{success:a})=>x5(this.node,u,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hg=new WeakMap,Tm=new WeakMap,JH=e=>{const t=Hg.get(e.target);t&&t(e)},eq=e=>{e.forEach(JH)};function tq({root:e,...t}){const n=e||document;Tm.has(n)||Tm.set(n,{});const i=Tm.get(n),u=JSON.stringify(t);return i[u]||(i[u]=new IntersectionObserver(eq,{root:e,...t})),i[u]}function nq(e,t,n){const i=tq(t);return Hg.set(e,n),i.observe(e),()=>{Hg.delete(e),i.unobserve(e)}}const iq={some:0,all:1};class rq extends bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:u="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof u=="number"?u:iq[u]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),v=h?p:m;v&&v(f)};return nq(this.node.current,s,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(uq(t,n))&&this.startObserver()}unmount(){}}function uq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oq={inView:{Feature:rq},tap:{Feature:KH},focus:{Feature:WH},hover:{Feature:ZH}},aq={layout:{ProjectionNode:SA,MeasureLayout:pA}},sq={...Gz,...oq,...XH,...aq},TA=sz(sq,xz);function _A(e){const t=Wc(()=>ca(e)),{isStatic:n}=E.useContext(Tv);if(n){const[,i]=E.useState(e);E.useEffect(()=>t.on("change",i),[])}return t}function CA(e,t){const n=_A(t()),i=()=>n.set(t());return i(),G8(()=>{const u=()=>xt.preRender(i,!1,!0),a=e.map(s=>s.on("change",u));return()=>{a.forEach(s=>s()),Tu(i)}}),n}function lq(e){uc.current=[],e();const t=CA(uc.current,e);return uc.current=void 0,t}function cq(e,t,n,i){if(typeof e=="function")return lq(e);const u=typeof t=="function"?t:wU(t,n,i);return Array.isArray(e)?S5(e,u):S5([e],([a])=>u(a))}function S5(e,t){const n=Wc(()=>[]);return CA(e,()=>{n.length=0;const i=e.length;for(let u=0;u<i;u++)n[u]=e[u].get();return t(n)})}const AA=E.createContext(null);function fq(e,t,n,i){if(!i)return e;const u=e.findIndex(p=>p.value===t);if(u===-1)return e;const a=i>0?1:-1,s=e[u+a];if(!s)return e;const c=e[u],f=s.layout,h=wt(f.min,f.max,.5);return a===1&&c.layout.max+n>h||a===-1&&c.layout.min+n<h?M$(e,u,u+a):e}function dq({children:e,as:t="ul",axis:n="y",onReorder:i,values:u,...a},s){const c=Wc(()=>TA[t]),f=[],h=E.useRef(!1),p={axis:n,registerItem:(m,v)=>{const b=f.findIndex(x=>m===x.value);b!==-1?f[b].layout=v[n]:f.push({value:m,layout:v[n]}),f.sort(mq)},updateOrder:(m,v,b)=>{if(h.current)return;const x=fq(f,m,v,b);f!==x&&(h.current=!0,i(x.map(pq).filter(S=>u.indexOf(S)!==-1)))}};return E.useEffect(()=>{h.current=!1}),A.jsx(c,{...a,ref:s,ignoreStrict:!0,children:A.jsx(AA.Provider,{value:p,children:e})})}const hq=E.forwardRef(dq);function pq(e){return e.value}function mq(e,t){return e.layout.min-t.layout.min}function T5(e,t=0){return En(e)?e:_A(t)}function gq({children:e,style:t={},value:n,as:i="li",onDrag:u,layout:a=!0,...s},c){const f=Wc(()=>TA[i]),h=E.useContext(AA),p={x:T5(t.x),y:T5(t.y)},m=cq([p.x,p.y],([S,_])=>S||_?1:"unset"),{axis:v,registerItem:b,updateOrder:x}=h;return A.jsx(f,{drag:v,...s,dragSnapToOrigin:!0,style:{...t,x:p.x,y:p.y,zIndex:m},layout:a,onDrag:(S,_)=>{const{velocity:T}=_;T[v]&&x(n,p[v].get(),T[v]),u&&u(S,_)},onLayoutMeasure:S=>b(n,S),ref:c,ignoreStrict:!0,children:e})}const vq=E.forwardRef(gq),wA=E.forwardRef((e,t)=>{const n=ge.c(16);let i,u,a,s,c;n[0]!==e?({isActive:a,value:c,children:i,className:u,...s}=e,n[0]=e,n[1]=i,n[2]=u,n[3]=a,n[4]=s,n[5]=c):(i=n[1],u=n[2],a=n[3],s=n[4],c=n[5]);const f=a&&"graphiql-tab-active";let h;n[6]!==u||n[7]!==f?(h=ht("graphiql-tab",f,u),n[6]=u,n[7]=f,n[8]=h):h=n[8];let p;return n[9]!==i||n[10]!==a||n[11]!==s||n[12]!==t||n[13]!==h||n[14]!==c?(p=A.jsx(vq,{...s,ref:t,value:c,"aria-selected":a,role:"tab",className:h,children:i}),n[9]=i,n[10]=a,n[11]=s,n[12]=t,n[13]=h,n[14]=c,n[15]=p):p=n[15],p});wA.displayName="Tab";const DA=E.forwardRef((e,t)=>{const n=ge.c(11);let i,u,a;n[0]!==e?({children:i,className:u,...a}=e,n[0]=e,n[1]=i,n[2]=u,n[3]=a):(i=n[1],u=n[2],a=n[3]);let s;n[4]!==u?(s=ht("graphiql-tab-button",u),n[4]=u,n[5]=s):s=n[5];let c;return n[6]!==i||n[7]!==a||n[8]!==t||n[9]!==s?(c=A.jsx(nn,{...a,ref:t,type:"button",className:s,children:i}),n[6]=i,n[7]=a,n[8]=t,n[9]=s,n[10]=c):c=n[10],c});DA.displayName="Tab.Button";const NA=E.forwardRef((e,t)=>{const n=ge.c(7);let i;n[0]!==e.className?(i=ht("graphiql-tab-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let u;n[2]===Symbol.for("react.memo_cache_sentinel")?(u=A.jsx(R2,{}),n[2]=u):u=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==i?(a=A.jsx(nn,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:i,children:u}),n[3]=e,n[4]=t,n[5]=i,n[6]=a):a=n[6],a});NA.displayName="Tab.Close";const _m=Object.assign(wA,{Button:DA,Close:NA}),OA=E.forwardRef((e,t)=>{const n=ge.c(15);let i,u,a,s,c;n[0]!==e?({values:c,onReorder:a,children:i,className:u,...s}=e,n[0]=e,n[1]=i,n[2]=u,n[3]=a,n[4]=s,n[5]=c):(i=n[1],u=n[2],a=n[3],s=n[4],c=n[5]);let f;n[6]!==u?(f=ht("graphiql-tabs",u),n[6]=u,n[7]=f):f=n[7];let h;return n[8]!==i||n[9]!==a||n[10]!==s||n[11]!==t||n[12]!==f||n[13]!==c?(h=A.jsx(hq,{...s,ref:t,values:c,onReorder:a,axis:"x",role:"tablist",className:f,children:i}),n[8]=i,n[9]=a,n[10]=s,n[11]=t,n[12]=f,n[13]=c,n[14]=h):h=n[14],h});OA.displayName="Tabs";var[lh]=ga("Tooltip",[nh]),ch=nh(),RA="TooltipProvider",yq=700,qg="tooltip.open",[bq,kv]=lh(RA),MA=e=>{const{__scopeTooltip:t,delayDuration:n=yq,skipDelayDuration:i=300,disableHoverableContent:u=!1,children:a}=e,s=E.useRef(!0),c=E.useRef(!1),f=E.useRef(0);return E.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),A.jsx(bq,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(f.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:E.useCallback(h=>{c.current=h},[]),disableHoverableContent:u,children:a})};MA.displayName=RA;var Lc="Tooltip",[Eq,nf]=lh(Lc),kA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:u,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,f=kv(Lc,e.__scopeTooltip),h=ch(t),[p,m]=E.useState(null),v=ta(),b=E.useRef(0),x=s??f.disableHoverableContent,S=c??f.delayDuration,_=E.useRef(!1),[T,D]=Y0({prop:i,defaultProp:u??!1,onChange:I=>{I?(f.onOpen(),document.dispatchEvent(new CustomEvent(qg))):f.onClose(),a==null||a(I)},caller:Lc}),w=E.useMemo(()=>T?_.current?"delayed-open":"instant-open":"closed",[T]),N=E.useCallback(()=>{window.clearTimeout(b.current),b.current=0,_.current=!1,D(!0)},[D]),R=E.useCallback(()=>{window.clearTimeout(b.current),b.current=0,D(!1)},[D]),M=E.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{_.current=!0,D(!0),b.current=0},S)},[S,D]);return E.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),A.jsx(i8,{...h,children:A.jsx(Eq,{scope:t,contentId:v,open:T,stateAttribute:w,trigger:p,onTriggerChange:m,onTriggerEnter:E.useCallback(()=>{f.isOpenDelayedRef.current?M():N()},[f.isOpenDelayedRef,M,N]),onTriggerLeave:E.useCallback(()=>{x?R():(window.clearTimeout(b.current),b.current=0)},[R,x]),onOpen:N,onClose:R,disableHoverableContent:x,children:n})})};kA.displayName=Lc;var Gg="TooltipTrigger",LA=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,u=nf(Gg,n),a=kv(Gg,n),s=ch(n),c=E.useRef(null),f=rn(t,c,u.onTriggerChange),h=E.useRef(!1),p=E.useRef(!1),m=E.useCallback(()=>h.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),A.jsx(r8,{asChild:!0,...s,children:A.jsx(kt.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...i,ref:f,onPointerMove:Re(e.onPointerMove,v=>{v.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(u.onTriggerEnter(),p.current=!0)}),onPointerLeave:Re(e.onPointerLeave,()=>{u.onTriggerLeave(),p.current=!1}),onPointerDown:Re(e.onPointerDown,()=>{u.open&&u.onClose(),h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Re(e.onFocus,()=>{h.current||u.onOpen()}),onBlur:Re(e.onBlur,u.onClose),onClick:Re(e.onClick,u.onClose)})})});LA.displayName=Gg;var Lv="TooltipPortal",[xq,Sq]=lh(Lv,{forceMount:void 0}),FA=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:u}=e,a=nf(Lv,t);return A.jsx(xq,{scope:t,forceMount:n,children:A.jsx(jr,{present:n||a.open,children:A.jsx(X0,{asChild:!0,container:u,children:i})})})};FA.displayName=Lv;var js="TooltipContent",IA=E.forwardRef((e,t)=>{const n=Sq(js,e.__scopeTooltip),{forceMount:i=n.forceMount,side:u="top",...a}=e,s=nf(js,e.__scopeTooltip);return A.jsx(jr,{present:i||s.open,children:s.disableHoverableContent?A.jsx(jA,{side:u,...a,ref:t}):A.jsx(Tq,{side:u,...a,ref:t})})}),Tq=E.forwardRef((e,t)=>{const n=nf(js,e.__scopeTooltip),i=kv(js,e.__scopeTooltip),u=E.useRef(null),a=rn(t,u),[s,c]=E.useState(null),{trigger:f,onClose:h}=n,p=u.current,{onPointerInTransitChange:m}=i,v=E.useCallback(()=>{c(null),m(!1)},[m]),b=E.useCallback((x,S)=>{const _=x.currentTarget,T={x:x.clientX,y:x.clientY},D=Dq(T,_.getBoundingClientRect()),w=Nq(T,D),N=Oq(S.getBoundingClientRect()),R=Mq([...w,...N]);c(R),m(!0)},[m]);return E.useEffect(()=>()=>v(),[v]),E.useEffect(()=>{if(f&&p){const x=_=>b(_,p),S=_=>b(_,f);return f.addEventListener("pointerleave",x),p.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",S)}}},[f,p,b,v]),E.useEffect(()=>{if(s){const x=S=>{const _=S.target,T={x:S.clientX,y:S.clientY},D=(f==null?void 0:f.contains(_))||(p==null?void 0:p.contains(_)),w=!Rq(T,s);D?v():w&&(v(),h())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[f,p,s,h,v]),A.jsx(jA,{...e,ref:a})}),[_q,Cq]=lh(Lc,{isInside:!1}),Aq=fI("TooltipContent"),jA=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":u,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,f=nf(js,n),h=ch(n),{onClose:p}=f;return E.useEffect(()=>(document.addEventListener(qg,p),()=>document.removeEventListener(qg,p)),[p]),E.useEffect(()=>{if(f.trigger){const m=v=>{const b=v.target;b!=null&&b.contains(f.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,p]),A.jsx(Q0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:A.jsxs(u8,{"data-state":f.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[A.jsx(Aq,{children:i}),A.jsx(_q,{scope:n,isInside:!0,children:A.jsx(w_,{id:f.contentId,role:"tooltip",children:u||i})})]})})});IA.displayName=js;var PA="TooltipArrow",wq=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,u=ch(n);return Cq(PA,n).isInside?null:A.jsx(o8,{...u,...i,ref:t})});wq.displayName=PA;function Dq(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),u=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,i,u,a)){case a:return"left";case u:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Nq(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function Oq(e){const{top:t,right:n,bottom:i,left:u}=e;return[{x:u,y:t},{x:n,y:t},{x:n,y:i},{x:u,y:i}]}function Rq(e,t){const{x:n,y:i}=e;let u=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a],f=t[s],h=c.x,p=c.y,m=f.x,v=f.y;p>i!=v>i&&n<(m-h)*(i-p)/(v-p)+h&&(u=!u)}return u}function Mq(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),kq(t)}function kq(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const u=e[i];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(u.y-s.y)>=(a.y-s.y)*(u.x-s.x))t.pop();else break}t.push(u)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const u=e[i];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(u.y-s.y)>=(a.y-s.y)*(u.x-s.x))n.pop();else break}n.push(u)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Lq=MA,Fq=kA,Iq=LA,jq=FA,Pq=IA;const Vq=e=>{const t=ge.c(10),{children:n,align:i,side:u,sideOffset:a,label:s}=e,c=i===void 0?"start":i,f=u===void 0?"bottom":u,h=a===void 0?5:a;let p;t[0]!==n?(p=A.jsx(Iq,{asChild:!0,children:n}),t[0]=n,t[1]=p):p=t[1];let m;t[2]!==c||t[3]!==s||t[4]!==f||t[5]!==h?(m=A.jsx(jq,{children:A.jsx(Pq,{className:"graphiql-tooltip",align:c,side:f,sideOffset:h,children:s})}),t[2]=c,t[3]=s,t[4]=f,t[5]=h,t[6]=m):m=t[6];let v;return t[7]!==p||t[8]!==m?(v=A.jsxs(Fq,{children:[p,m]}),t[7]=p,t[8]=m,t[9]=v):v=t[9],v},Bn=Object.assign(Vq,{Provider:Lq}),e0=E.forwardRef((e,t)=>{const n=ge.c(19);let i,u,a;n[0]!==e?({label:i,onClick:u,...a}=e,n[0]=e,n[1]=i,n[2]=u,n[3]=a):(i=n[1],u=n[2],a=n[3]);const[s,c]=E.useState(null);let f;n[4]!==u?(f=_=>{try{u&&u(_),c(null)}catch(T){const D=T;c(D instanceof Error?D:new Error(`Toolbar button click failed: ${D}`))}},n[4]=u,n[5]=f):f=n[5];const h=f,p=s&&"error";let m;n[6]!==a.className||n[7]!==p?(m=ht("graphiql-toolbar-button",p,a.className),n[6]=a.className,n[7]=p,n[8]=m):m=n[8];const v=s?s.message:i,b=s?"true":a["aria-invalid"];let x;n[9]!==h||n[10]!==a||n[11]!==t||n[12]!==m||n[13]!==v||n[14]!==b?(x=A.jsx(nn,{...a,ref:t,type:"button",className:m,onClick:h,"aria-label":v,"aria-invalid":b}),n[9]=h,n[10]=a,n[11]=t,n[12]=m,n[13]=v,n[14]=b,n[15]=x):x=n[15];let S;return n[16]!==i||n[17]!==x?(S=A.jsx(Bn,{label:i,children:x}),n[16]=i,n[17]=x,n[18]=S):S=n[18],S});e0.displayName="ToolbarButton";const Yg=()=>{const e=ge.c(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:Yg},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:i}=xn(t);let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0,caller:Yg},e[1]=u):u=e[1];const{isFetching:a,isSubscribed:s,operationName:c,run:f,stop:h}=zs(u);let p;e[2]!==(n==null?void 0:n.operations)?(p=(n==null?void 0:n.operations)||[],e[2]=n==null?void 0:n.operations,e[3]=p):p=e[3];const m=p,v=m.length>1&&typeof c!="string",b=a||s,x=`${b?"Stop":"Execute"} query (Ctrl-Enter)`;let S;e[4]!==b?(S=b?A.jsx(XF,{}):A.jsx(BF,{}),e[4]=b,e[5]=S):S=e[5];let _;e[6]!==x||e[7]!==S?(_={type:"button",className:"graphiql-execute-button",children:S,"aria-label":x},e[6]=x,e[7]=S,e[8]=_):_=e[8];const T=_;let D;return e[9]!==T||e[10]!==v||e[11]!==b||e[12]!==x||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==i||e[17]!==h?(D=v&&!b?A.jsxs(Id,{children:[A.jsx(Bn,{label:x,children:A.jsx(Id.Button,{...T})}),A.jsx(Id.Content,{children:m.map((w,N)=>{const R=w.name?w.name.value:`<Unnamed ${w.operation}>`;return A.jsx(Id.Item,{onSelect:()=>{var M;const I=(M=w.name)==null?void 0:M.value;n&&I&&I!==n.operationName&&i(I),f()},children:R},`${R}-${N}`)})})]}):A.jsx(Bn,{label:x,children:A.jsx("button",{...T,onClick:()=>{b?h():f()}})}),e[9]=T,e[10]=v,e[11]=b,e[12]=x,e[13]=m,e[14]=n,e[15]=f,e[16]=i,e[17]=h,e[18]=D):D=e[18],D},Qg=Vc((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:i}=t();i.updateHistory(n),e({})},editLabel(n,i){const{historyStorage:u}=t();u.editLabel(n,i),e({})},toggleFavorite(n){const{historyStorage:i}=t();i.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,i){const{historyStorage:u}=t();u.deleteHistory(n,i),e({})}}})),$q=e=>{const t=ge.c(12),{maxHistoryLength:n,children:i}=e,u=n===void 0?20:n;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0},t[0]=a):a=t[0];const{isFetching:s}=zs(a);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={nonNull:!0},t[1]=c):c=t[1];const{tabs:f,activeTabIndex:h}=xn(c),p=f[h],m=Bs();let v;t[2]!==u||t[3]!==m?(v=new oO(m,u),t[2]=u,t[3]=m,t[4]=v):v=t[4];const b=v;let x,S;t[5]!==b?(x=()=>{Qg.setState({historyStorage:b})},S=[b],t[5]=b,t[6]=x,t[7]=S):(x=t[6],S=t[7]),E.useEffect(x,S);let _,T;return t[8]!==p||t[9]!==s?(_=()=>{if(!s)return;const{addToHistory:D}=Qg.getState().actions;D({query:p.query??void 0,variables:p.variables??void 0,headers:p.headers??void 0,operationName:p.operationName??void 0})},T=[s,p],t[8]=p,t[9]=s,t[10]=_,t[11]=T):(_=t[10],T=t[11]),E.useEffect(_,T),i},VA=$c(Qg),Bq=()=>VA(Uq),$A=()=>VA(zq);function Uq(e){return e.historyStorage.queries}function zq(e){return e.actions}function Hq(e,t){for(const n of e)t(n,!0)}const qq=()=>{const e=ge.c(13),t=Bq(),{deleteFromHistory:n}=$A();let i;i=t.slice().map(Yq).reverse();const u=i.filter(Qq);u.length&&(i=i.filter(Xq));const[a,s]=E.useState(null);let c,f;e[0]!==a?(c=()=>{a&&setTimeout(()=>{s(null)},2e3)},f=[a],e[0]=a,e[1]=c,e[2]=f):(c=e[1],f=e[2]),E.useEffect(c,f);const h=()=>{try{Hq(i,n),s("success")}catch{s("error")}},p=!!u.length,m=!!i.length,v="History",b="graphiql-history",x=(a||m)&&A.jsx(Xi,{type:"button",state:a||void 0,disabled:!i.length,onClick:h,children:{success:"Cleared",error:"Failed to Clear"}[a]||"Clear"});let S;e[3]!==x?(S=A.jsxs("div",{className:"graphiql-history-header",children:["History",x]}),e[3]=x,e[4]=S):S=e[4];const _=p&&A.jsx("ul",{className:"graphiql-history-items",children:u.map(Zq)});let T;e[5]!==p||e[6]!==m?(T=p&&m&&A.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=p,e[6]=m,e[7]=T):T=e[7];const D=m&&A.jsx("ul",{className:"graphiql-history-items",children:i.map(Wq)});let w;return e[8]!==S||e[9]!==_||e[10]!==T||e[11]!==D?(w=A.jsxs("section",{"aria-label":v,className:b,children:[S,_,T,D]}),e[8]=S,e[9]=_,e[10]=T,e[11]=D,e[12]=w):w=e[12],w},Fv=e=>{const t=ge.c(39),{editLabel:n,toggleFavorite:i,deleteFromHistory:u,setActive:a}=$A();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:Fv},t[0]=s):s=t[0];const{headerEditor:c,queryEditor:f,variableEditor:h}=xn(s),p=E.useRef(null),m=E.useRef(null),[v,b]=E.useState(!1);let x,S;t[1]!==v?(x=()=>{var P;v&&((P=p.current)==null||P.focus())},S=[v],t[1]=v,t[2]=x,t[3]=S):(x=t[2],S=t[3]),E.useEffect(x,S);let _;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(_=e.item.label||e.item.operationName||Gq(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=_):_=t[7];const T=_;let D;t[8]!==n||t[9]!==e.item?(D=()=>{var P;b(!1);const{index:V,...re}=e.item;n({...re,label:(P=p.current)==null?void 0:P.value},V)},t[8]=n,t[9]=e.item,t[10]=D):D=t[10];const w=D;let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{b(!1)},t[11]=N):N=t[11];const R=N;let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=P=>{P.stopPropagation(),b(!0)},t[12]=M):M=t[12];const I=M;let $;t[13]!==c||t[14]!==e.item||t[15]!==f||t[16]!==a||t[17]!==h?($=()=>{const{query:P,variables:V,headers:re}=e.item;f==null||f.setValue(P??""),h==null||h.setValue(V??""),c==null||c.setValue(re??""),a(e.item)},t[13]=c,t[14]=e.item,t[15]=f,t[16]=a,t[17]=h,t[18]=$):$=t[18];const L=$;let z;t[19]!==u||t[20]!==e.item?(z=P=>{P.stopPropagation(),u(e.item)},t[19]=u,t[20]=e.item,t[21]=z):z=t[21];const G=z;let J;t[22]!==e.item||t[23]!==i?(J=P=>{P.stopPropagation(),i(e.item)},t[22]=e.item,t[23]=i,t[24]=J):J=t[24];const se=J,ie=v&&"editable";let ee;t[25]!==ie?(ee=ht("graphiql-history-item",ie),t[25]=ie,t[26]=ee):ee=t[26];let F;t[27]!==T||t[28]!==n||t[29]!==G||t[30]!==L||t[31]!==w||t[32]!==se||t[33]!==v||t[34]!==e.item?(F=v?A.jsxs(A.Fragment,{children:[A.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:P=>{P.key==="Esc"?b(!1):P.key==="Enter"&&(b(!1),n({...e.item,label:P.currentTarget.value}))},placeholder:"Type a label"}),A.jsx(nn,{type:"button",ref:m,onClick:w,children:"Save"}),A.jsx(nn,{type:"button",ref:m,onClick:R,children:A.jsx(R2,{})})]}):A.jsxs(A.Fragment,{children:[A.jsx(Bn,{label:"Set active",children:A.jsx(nn,{type:"button",className:"graphiql-history-item-label",onClick:L,"aria-label":"Set active",children:T})}),A.jsx(Bn,{label:"Edit label",children:A.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:I,"aria-label":"Edit label",children:A.jsx($F,{"aria-hidden":"true"})})}),A.jsx(Bn,{label:e.item.favorite?"Remove favorite":"Add favorite",children:A.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:se,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?A.jsx(YF,{"aria-hidden":"true"}):A.jsx(QF,{"aria-hidden":"true"})})}),A.jsx(Bn,{label:"Delete from history",children:A.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:G,"aria-label":"Delete from history",children:A.jsx(ZF,{"aria-hidden":"true"})})})]}),t[27]=T,t[28]=n,t[29]=G,t[30]=L,t[31]=w,t[32]=se,t[33]=v,t[34]=e.item,t[35]=F):F=t[35];let H;return t[36]!==ee||t[37]!==F?(H=A.jsx("li",{className:ee,children:F}),t[36]=ee,t[37]=F,t[38]=H):H=t[38],H};function Gq(e){return e==null?void 0:e.split(`
|
|
359
|
+
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function Yq(e,t){return{...e,index:t}}function Qq(e){return e.favorite}function Xq(e){return!e.favorite}function Zq(e){return A.jsx(Fv,{item:e},e.index)}function Wq(e){return A.jsx(Fv,{item:e},e.index)}const Kq={title:"History",icon:FF,content:qq},$d=[{name:"Docs"}],Xg=Vc((e,t)=>({explorerNavStack:$d,actions:{push(n){e(i=>{const u=i.explorerNavStack;return{explorerNavStack:u.at(-1).def===n.def?u:[...u,n]}})},pop(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length>1?i.slice(0,-1):i}})},reset(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length===1?i:$d}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{push:i}=t().actions;switch(n.kind){case"Type":{i({name:n.type.name,def:n.type});break}case"Field":{i({name:n.field.name,def:n.field});break}case"Argument":{n.field&&i({name:n.field.name,def:n.field});break}case"EnumValue":{n.type&&i({name:n.type.name,def:n.type});break}}},rebuildNavStackWithSchema(n){e(i=>{const u=i.explorerNavStack;if(u.length===1)return i;const a=[...$d];let s=null;for(const c of u)if(c!==$d[0])if(c.def)if(d2(c.def)){const f=n.getType(c.def.name);if(f)a.push({name:c.name,def:f}),s=f;else break}else{if(s===null)break;if(St(s)||hn(s)){const f=s.getFields()[c.name];if(f)a.push({name:c.name,def:f});else break}else{if(yo(s)||si(s)||Dt(s)||Ni(s))break;{const f=s;if(f.args.some(h=>h.name===c.name))a.push({name:c.name,def:f});else break}}}else s=null,a.push(c);return{explorerNavStack:a}})}}})),Jq=e=>{const t=ge.c(7),{children:n}=e,{schema:i,validationErrors:u,schemaReference:a}=Lr();let s,c;t[0]!==a?(s=()=>{const{resolveSchemaReferenceToNavItem:p}=Xg.getState().actions;p(a)},c=[a],t[0]=a,t[1]=s,t[2]=c):(s=t[1],c=t[2]),E.useEffect(s,c);let f,h;return t[3]!==i||t[4]!==u?(f=()=>{const{reset:p,rebuildNavStackWithSchema:m}=Xg.getState().actions;i==null||u.length>0?p():m(i)},h=[i,u],t[3]=i,t[4]=u,t[5]=f,t[6]=h):(f=t[5],h=t[6]),E.useEffect(f,h),n},BA=$c(Xg),Iv=()=>BA(eG),fh=()=>BA(tG);function eG(e){return e.explorerNavStack}function tG(e){return e.actions}const nG=e=>e?ai(e):"",UA=e=>{const t=ge.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const i=n.defaultValue,u=n.type;let a,s,c,f;if(t[0]!==n.defaultValue||t[1]!==n.type){f=Symbol.for("react.early_return_sentinel");e:{const m=hs(i,u);if(!m){f=null;break e}c=" = ",a="graphiql-doc-explorer-default-value",s=nG(m)}t[0]=n.defaultValue,t[1]=n.type,t[2]=a,t[3]=s,t[4]=c,t[5]=f}else a=t[2],s=t[3],c=t[4],f=t[5];if(f!==Symbol.for("react.early_return_sentinel"))return f;let h;t[6]!==a||t[7]!==s?(h=A.jsx("span",{className:a,children:s}),t[6]=a,t[7]=s,t[8]=h):h=t[8];let p;return t[9]!==c||t[10]!==h?(p=A.jsxs(A.Fragment,{children:[c,h]}),t[9]=c,t[10]=h,t[11]=p):p=t[11],p};function A0(e,t){return Vt(e)?A.jsxs(A.Fragment,{children:[A0(e.ofType,t),"!"]}):Mn(e)?A.jsxs(A.Fragment,{children:["[",A0(e.ofType,t),"]"]}):t(e)}const pu=e=>{const t=ge.c(5),{type:n}=e,{push:i}=fh();if(!n)return null;let u;t[0]!==i?(u=s=>A.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:c=>{c.preventDefault(),i({name:s.name,def:s})},href:"#",children:s.name}),t[0]=i,t[1]=u):u=t[1];let a;return t[2]!==u||t[3]!==n?(a=A0(n,u),t[2]=u,t[3]=n,t[4]=a):a=t[4],a},w0=e=>{const t=ge.c(19),{arg:n,showDefaultValue:i,inline:u}=e;let a;t[0]!==n.name?(a=A.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=a):a=t[1];let s;t[2]!==n.type?(s=A.jsx(pu,{type:n.type}),t[2]=n.type,t[3]=s):s=t[3];let c;t[4]!==n||t[5]!==i?(c=i!==!1&&A.jsx(UA,{field:n}),t[4]=n,t[5]=i,t[6]=c):c=t[6];let f;t[7]!==a||t[8]!==s||t[9]!==c?(f=A.jsxs("span",{children:[a,": ",s,c]}),t[7]=a,t[8]=s,t[9]=c,t[10]=f):f=t[10];const h=f;if(u)return h;let p;t[11]!==n.description?(p=n.description?A.jsx(Rr,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=p):p=t[12];let m;t[13]!==n.deprecationReason?(m=n.deprecationReason?A.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[A.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),A.jsx(Rr,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=m):m=t[14];let v;return t[15]!==h||t[16]!==p||t[17]!==m?(v=A.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[h,p,m]}),t[15]=h,t[16]=p,t[17]=m,t[18]=v):v=t[18],v},zA=e=>{const t=ge.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?A.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[A.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),A.jsx(Rr,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},iG=e=>{const t=ge.c(2),{directive:n}=e;let i;return t[0]!==n.name.value?(i=A.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=i):i=t[1],i},Ri=e=>{const t=ge.c(10),{title:n,children:i}=e,u=rG[n];let a;t[0]!==u?(a=A.jsx(u,{}),t[0]=u,t[1]=a):a=t[1];let s;t[2]!==a||t[3]!==n?(s=A.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[a,n]}),t[2]=a,t[3]=n,t[4]=s):s=t[4];let c;t[5]!==i?(c=A.jsx("div",{className:"graphiql-doc-explorer-section-content",children:i}),t[5]=i,t[6]=c):c=t[6];let f;return t[7]!==s||t[8]!==c?(f=A.jsxs("div",{children:[s,c]}),t[7]=s,t[8]=c,t[9]=f):f=t[9],f},rG={Arguments:SF,"Deprecated Arguments":wF,"Deprecated Enum Values":DF,"Deprecated Fields":NF,Directives:OF,"Enum Values":kF,Fields:LF,Implements:IF,Implementations:wd,"Possible Types":wd,"Root Types":qF,Type:wd,"All Schema Types":wd},uG=e=>{const t=ge.c(15),{field:n}=e;let i;t[0]!==n.description?(i=n.description?A.jsx(Rr,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=i):i=t[1];let u;t[2]!==n.deprecationReason?(u=A.jsx(zA,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=u):u=t[3];let a;t[4]!==n.type?(a=A.jsx(Ri,{title:"Type",children:A.jsx(pu,{type:n.type})}),t[4]=n.type,t[5]=a):a=t[5];let s,c;t[6]!==n?(s=A.jsx(oG,{field:n}),c=A.jsx(aG,{field:n}),t[6]=n,t[7]=s,t[8]=c):(s=t[7],c=t[8]);let f;return t[9]!==i||t[10]!==u||t[11]!==a||t[12]!==s||t[13]!==c?(f=A.jsxs(A.Fragment,{children:[i,u,a,s,c]}),t[9]=i,t[10]=u,t[11]=a,t[12]=s,t[13]=c,t[14]=f):f=t[14],f},oG=e=>{const t=ge.c(12),{field:n}=e,[i,u]=E.useState(!1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{u(!0)},t[0]=a):a=t[0];const s=a;if(!("args"in n))return null;let c,f,h;if(t[1]!==n.args){c=[],f=[];for(const v of n.args)v.deprecationReason?f.push(v):c.push(v);h=c.length>0?A.jsx(Ri,{title:"Arguments",children:c.map(sG)}):null,t[1]=n.args,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c.length||t[6]!==f||t[7]!==i?(p=f.length>0?i||c.length===0?A.jsx(Ri,{title:"Deprecated Arguments",children:f.map(lG)}):A.jsx(Xi,{type:"button",onClick:s,children:"Show Deprecated Arguments"}):null,t[5]=c.length,t[6]=f,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==h||t[10]!==p?(m=A.jsxs(A.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=m):m=t[11],m},aG=e=>{var t;const n=ge.c(4),{field:i}=e,u=(t=i.astNode)==null?void 0:t.directives;if(!(u!=null&&u.length))return null;let a;n[0]!==u?(a=u.map(cG),n[0]=u,n[1]=a):a=n[1];let s;return n[2]!==a?(s=A.jsx(Ri,{title:"Directives",children:a}),n[2]=a,n[3]=s):s=n[3],s};function sG(e){return A.jsx(w0,{arg:e},e.name)}function lG(e){return A.jsx(w0,{arg:e},e.name)}function cG(e){return A.jsx("div",{children:A.jsx(iG,{directive:e})},e.name.value)}const fG=e=>{var t,n;const i=ge.c(39),{schema:u}=e;let a;i[0]!==u?(a=u.getQueryType(),i[0]=u,i[1]=a):a=i[1];const s=a;let c;i[2]!==u?(c=(t=u.getMutationType)==null?void 0:t.call(u),i[2]=u,i[3]=c):c=i[3];const f=c;let h;i[4]!==u?(h=(n=u.getSubscriptionType)==null?void 0:n.call(u),i[4]=u,i[5]=h):h=i[5];const p=h;let m,v,b,x,S;if(i[6]!==f||i[7]!==s||i[8]!==u||i[9]!==p){const D=u.getTypeMap(),w=s==null?void 0:s.name,N=f==null?void 0:f.name,R=p==null?void 0:p.name;let M;i[15]!==R||i[16]!==w||i[17]!==N?(M=[w,N,R],i[15]=R,i[16]=w,i[17]=N,i[18]=M):M=i[18];const I=M,$=u.description||"A GraphQL schema provides a root type for each kind of operation.";i[19]!==$?(x=A.jsx(Rr,{type:"description",children:$}),i[19]=$,i[20]=x):x=i[20];let L;i[21]!==s?(L=s?A.jsxs("div",{children:[A.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",A.jsx(pu,{type:s})]}):null,i[21]=s,i[22]=L):L=i[22];let z;i[23]!==f?(z=f&&A.jsxs("div",{children:[A.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",A.jsx(pu,{type:f})]}),i[23]=f,i[24]=z):z=i[24];let G;i[25]!==p?(G=p&&A.jsxs("div",{children:[A.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",A.jsx(pu,{type:p})]}),i[25]=p,i[26]=G):G=i[26],i[27]!==L||i[28]!==z||i[29]!==G?(S=A.jsxs(Ri,{title:"Root Types",children:[L,z,G]}),i[27]=L,i[28]=z,i[29]=G,i[30]=S):S=i[30],m=Ri,v="All Schema Types",b=D&&A.jsx("div",{children:Object.values(D).map(J=>I.includes(J.name)||J.name.startsWith("__")?null:A.jsx("div",{children:A.jsx(pu,{type:J})},J.name))}),i[6]=f,i[7]=s,i[8]=u,i[9]=p,i[10]=m,i[11]=v,i[12]=b,i[13]=x,i[14]=S}else m=i[10],v=i[11],b=i[12],x=i[13],S=i[14];let _;i[31]!==m||i[32]!==v||i[33]!==b?(_=A.jsx(m,{title:v,children:b}),i[31]=m,i[32]=v,i[33]=b,i[34]=_):_=i[34];let T;return i[35]!==x||i[36]!==S||i[37]!==_?(T=A.jsxs(A.Fragment,{children:[x,S,_]}),i[35]=x,i[36]=S,i[37]=_,i[38]=T):T=i[38],T},HA=typeof document<"u"?Oe.useLayoutEffect:()=>{};var Cm;const dG=(Cm=Oe.useInsertionEffect)!==null&&Cm!==void 0?Cm:HA;function hG(e){const t=E.useRef(null);return dG(()=>{t.current=e},[e]),E.useCallback((...n)=>{const i=t.current;return i==null?void 0:i(...n)},[])}const Eo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Wo=e=>e&&"window"in e&&e.window===e?e:Eo(e).defaultView||window;function pG(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function mG(e){return pG(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let gG=!1;function jv(){return gG}function qA(e,t){if(!jv())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:mG(n)?n=n.host:n=n.parentNode}return!1}const Zg=(e=document)=>{var t;if(!jv())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function GA(e){return jv()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function vG(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(i=>e.test(i.brand))||e.test(window.navigator.userAgent)}function yG(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function YA(e){let t=null;return()=>(t==null&&(t=e()),t)}const bG=YA(function(){return yG(/^Mac/i)}),EG=YA(function(){return vG(/Android/i)});function QA(){let e=E.useRef(new Map),t=E.useCallback((u,a,s,c)=>{let f=c!=null&&c.once?(...h)=>{e.current.delete(s),s(...h)}:s;e.current.set(s,{type:a,eventTarget:u,fn:f,options:c}),u.addEventListener(a,f,c)},[]),n=E.useCallback((u,a,s,c)=>{var f;let h=((f=e.current.get(s))===null||f===void 0?void 0:f.fn)||s;u.removeEventListener(a,h,c),e.current.delete(s)},[]),i=E.useCallback(()=>{e.current.forEach((u,a)=>{n(u.eventTarget,u.type,a,u.options)})},[n]);return E.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function xG(e){return e.pointerType===""&&e.isTrusted?!0:EG()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function XA(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function SG(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ZA(e){let t=E.useRef({isFocused:!1,observer:null});HA(()=>{const i=t.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=hG(i=>{e==null||e(i)});return E.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){t.current.isFocused=!0;let u=i.target,a=s=>{if(t.current.isFocused=!1,u.disabled){let c=XA(s);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};u.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&u.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let c=u===document.activeElement?null:document.activeElement;u.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),u.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(u,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let TG=!1,rf=null,Wg=new Set,lc=new Map,fa=!1,Kg=!1;const _G={Tab:!0,Escape:!0};function Pv(e,t){for(let n of Wg)n(e,t)}function CG(e){return!(e.metaKey||!bG()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function D0(e){fa=!0,CG(e)&&(rf="keyboard",Pv("keyboard",e))}function ws(e){rf="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(fa=!0,Pv("pointer",e))}function WA(e){xG(e)&&(fa=!0,rf="virtual")}function KA(e){e.target===window||e.target===document||TG||!e.isTrusted||(!fa&&!Kg&&(rf="virtual",Pv("virtual",e)),fa=!1,Kg=!1)}function JA(){fa=!1,Kg=!0}function Jg(e){if(typeof window>"u"||typeof document>"u"||lc.get(Wo(e)))return;const t=Wo(e),n=Eo(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){fa=!0,i.apply(this,arguments)},n.addEventListener("keydown",D0,!0),n.addEventListener("keyup",D0,!0),n.addEventListener("click",WA,!0),t.addEventListener("focus",KA,!0),t.addEventListener("blur",JA,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",ws,!0),n.addEventListener("pointermove",ws,!0),n.addEventListener("pointerup",ws,!0)),t.addEventListener("beforeunload",()=>{e9(e)},{once:!0}),lc.set(t,{focus:i})}const e9=(e,t)=>{const n=Wo(e),i=Eo(e);t&&i.removeEventListener("DOMContentLoaded",t),lc.has(n)&&(n.HTMLElement.prototype.focus=lc.get(n).focus,i.removeEventListener("keydown",D0,!0),i.removeEventListener("keyup",D0,!0),i.removeEventListener("click",WA,!0),n.removeEventListener("focus",KA,!0),n.removeEventListener("blur",JA,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",ws,!0),i.removeEventListener("pointermove",ws,!0),i.removeEventListener("pointerup",ws,!0)),lc.delete(n))};function AG(e){const t=Eo(e);let n;return t.readyState!=="loading"?Jg(e):(n=()=>{Jg(e)},t.addEventListener("DOMContentLoaded",n)),()=>e9(e,n)}typeof document<"u"&&AG();function t9(){return rf!=="pointer"}const wG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function DG(e,t,n){let i=Eo(n==null?void 0:n.target);const u=typeof window<"u"?Wo(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Wo(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Wo(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?Wo(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof u&&!wG.has(i.activeElement.type)||i.activeElement instanceof a||i.activeElement instanceof s&&i.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!_G[n.key])}function NG(e,t,n){Jg(),E.useEffect(()=>{let i=(u,a)=>{DG(!!(n!=null&&n.isTextInput),u,a)&&e(t9())};return Wg.add(i),()=>{Wg.delete(i)}},t)}function OG(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:u}=e;const a=E.useCallback(f=>{if(f.target===f.currentTarget)return i&&i(f),u&&u(!1),!0},[i,u]),s=ZA(a),c=E.useCallback(f=>{const h=Eo(f.target),p=h?Zg(h):Zg();f.target===f.currentTarget&&p===GA(f.nativeEvent)&&(n&&n(f),u&&u(!0),s(f))},[u,n,s]);return{focusProps:{onFocus:!t&&(n||u||i)?c:void 0,onBlur:!t&&(i||u)?a:void 0}}}function RG(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:u}=e,a=E.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=QA(),f=E.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,c(),n&&n(m),u&&u(!1))},[n,u,a,c]),h=ZA(f),p=E.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const v=Eo(m.target),b=Zg(v);if(!a.current.isFocusWithin&&b===GA(m.nativeEvent)){i&&i(m),u&&u(!0),a.current.isFocusWithin=!0,h(m);let x=m.currentTarget;s(v,"focus",S=>{if(a.current.isFocusWithin&&!qA(x,S.target)){let _=new v.defaultView.FocusEvent("blur",{relatedTarget:S.target});SG(_,x);let T=XA(_);f(T)}},{capture:!0})}},[i,u,h,s,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let e2=!1,Bd=0;function MG(){e2=!0,setTimeout(()=>{e2=!1},50)}function _5(e){e.pointerType==="touch"&&MG()}function kG(){if(!(typeof document>"u"))return Bd===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",_5),Bd++,()=>{Bd--,!(Bd>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",_5)}}function n9(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:u}=e,[a,s]=E.useState(!1),c=E.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;E.useEffect(kG,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=QA(),{hoverProps:p,triggerHoverEnd:m}=E.useMemo(()=>{let v=(S,_)=>{if(c.pointerType=_,u||_==="touch"||c.isHovered||!S.currentTarget.contains(S.target))return;c.isHovered=!0;let T=S.currentTarget;c.target=T,f(Eo(S.target),"pointerover",D=>{c.isHovered&&c.target&&!qA(c.target,D.target)&&b(D,D.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:T,pointerType:_}),n&&n(!0),s(!0)},b=(S,_)=>{let T=c.target;c.pointerType="",c.target=null,!(_==="touch"||!c.isHovered||!T)&&(c.isHovered=!1,h(),i&&i({type:"hoverend",target:T,pointerType:_}),n&&n(!1),s(!1))},x={};return typeof PointerEvent<"u"&&(x.onPointerEnter=S=>{e2&&S.pointerType==="mouse"||v(S,S.pointerType)},x.onPointerLeave=S=>{!u&&S.currentTarget.contains(S.target)&&b(S,S.pointerType)}),{hoverProps:x,triggerHoverEnd:b}},[t,n,i,u,c,f,h]);return E.useEffect(()=>{u&&m({currentTarget:c.target},c.pointerType)},[u]),{hoverProps:p,isHovered:a}}function i9(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,u=E.useRef({isFocused:!1,isFocusVisible:t||t9()}),[a,s]=E.useState(!1),[c,f]=E.useState(()=>u.current.isFocused&&u.current.isFocusVisible),h=E.useCallback(()=>f(u.current.isFocused&&u.current.isFocusVisible),[]),p=E.useCallback(b=>{u.current.isFocused=b,s(b),h()},[h]);NG(b=>{u.current.isFocusVisible=b,h()},[],{isTextInput:n});let{focusProps:m}=OG({isDisabled:i,onFocusChange:p}),{focusWithinProps:v}=RG({isDisabled:!i,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:c,focusProps:i?v:m}}var LG=Object.defineProperty,FG=(e,t,n)=>t in e?LG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Am=(e,t,n)=>(FG(e,typeof t!="symbol"?t+"":t,n),n);let IG=class{constructor(){Am(this,"current",this.detect()),Am(this,"handoffState","pending"),Am(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ra=new IG;function uf(e){var t;return ra.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function jG(e){var t,n;return ra.isServer?null:e==null?document:(n=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?n:document}function PG(e){var t,n;return(n=(t=jG(e))==null?void 0:t.activeElement)!=null?n:null}function r9(e){return PG(e)===e}function u9(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ki(){let e=[],t={addEventListener(n,i,u,a){return n.addEventListener(i,u,a),t.add(()=>n.removeEventListener(i,u,a))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return u9(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,u){let a=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:u}),this.add(()=>{Object.assign(n.style,{[i]:a})})},group(n){let i=ki();return n(i),this.add(()=>i.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let u of e.splice(i,1))u()}},dispose(){for(let n of e.splice(0))n()}};return t}function Xs(){let[e]=E.useState(ki);return E.useEffect(()=>()=>e.dispose(),[e]),e}let Qt=(e,t)=>{ra.isServer?E.useEffect(e,t):E.useLayoutEffect(e,t)};function ba(e){let t=E.useRef(e);return Qt(()=>{t.current=e},[e]),t}let Qe=function(e){let t=ba(e);return Oe.useCallback((...n)=>t.current(...n),[t])};function VG(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $G(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function BG({disabled:e=!1}={}){let t=E.useRef(null),[n,i]=E.useState(!1),u=Xs(),a=Qe(()=>{t.current=null,i(!1),u.dispose()}),s=Qe(c=>{if(u.dispose(),t.current===null){t.current=c.currentTarget,i(!0);{let f=uf(c.currentTarget);u.addEventListener(f,"pointerup",a,!1),u.addEventListener(f,"pointermove",h=>{if(t.current){let p=VG(h);i($G(p,t.current.getBoundingClientRect()))}},!1),u.addEventListener(f,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:a,onClick:a}}}function Ea(e){return E.useMemo(()=>e,Object.values(e))}let UG=E.createContext(void 0);function Vv(){return E.useContext(UG)}function C5(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Mr(e,t,...n){if(e in t){let u=t[e];return typeof u=="function"?u(...n):u}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Mr),i}var t2=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(t2||{}),zG=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zG||{});function ir(){let e=qG();return E.useCallback(t=>HG({mergeRefs:e,...t}),[e])}function HG({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:u,visible:a=!0,name:s,mergeRefs:c}){c=c??GG;let f=o9(t,e);if(a)return Ud(f,n,i,s,c);let h=u??0;if(h&2){let{static:p=!1,...m}=f;if(p)return Ud(m,n,i,s,c)}if(h&1){let{unmount:p=!0,...m}=f;return Mr(p?0:1,{0(){return null},1(){return Ud({...m,hidden:!0,style:{display:"none"}},n,i,s,c)}})}return Ud(f,n,i,s,c)}function Ud(e,t={},n,i,u){let{as:a=n,children:s,refName:c="ref",...f}=wm(e,["unmount","static"]),h=e.ref!==void 0?{[c]:e.ref}:{},p=typeof s=="function"?s(t):s;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t)),f["aria-labelledby"]&&f["aria-labelledby"]===f.id&&(f["aria-labelledby"]=void 0);let m={};if(t){let v=!1,b=[];for(let[x,S]of Object.entries(t))typeof S=="boolean"&&(v=!0),S===!0&&b.push(x.replace(/([A-Z])/g,_=>`-${_.toLowerCase()}`));if(v){m["data-headlessui-state"]=b.join(" ");for(let x of b)m[`data-${x}`]=""}}if(t0(a)&&(Object.keys(qo(f)).length>0||Object.keys(qo(m)).length>0))if(!E.isValidElement(p)||Array.isArray(p)&&p.length>1||QG(p)){if(Object.keys(qo(f)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(qo(f)).concat(Object.keys(qo(m))).map(v=>` - ${v}`).join(`
|
|
360
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
361
|
+
`)].join(`
|
|
362
|
+
`))}else{let v=p.props,b=v==null?void 0:v.className,x=typeof b=="function"?(...T)=>C5(b(...T),f.className):C5(b,f.className),S=x?{className:x}:{},_=o9(p.props,qo(wm(f,["ref"])));for(let T in m)T in _&&delete m[T];return E.cloneElement(p,Object.assign({},_,m,h,{ref:u(YG(p),h.ref)},S))}return E.createElement(a,Object.assign({},wm(f,["ref"]),!t0(a)&&h,!t0(a)&&m),p)}function qG(){let e=E.useRef([]),t=E.useCallback(n=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(n):i.current=n)},[]);return(...n)=>{if(!n.every(i=>i==null))return e.current=n,t}}function GG(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function o9(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let u in i)u.startsWith("on")&&typeof i[u]=="function"?(n[u]!=null||(n[u]=[]),n[u].push(i[u])):t[u]=i[u];if(t.disabled||t["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[u=>{var a;return(a=u==null?void 0:u.preventDefault)==null?void 0:a.call(u)}]);for(let i in n)Object.assign(t,{[i](u,...a){let s=n[i];for(let c of s){if((u instanceof Event||(u==null?void 0:u.nativeEvent)instanceof Event)&&u.defaultPrevented)return;c(u,...a)}}});return t}function $v(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let u in i)u.startsWith("on")&&typeof i[u]=="function"?(n[u]!=null||(n[u]=[]),n[u].push(i[u])):t[u]=i[u];for(let i in n)Object.assign(t,{[i](...u){let a=n[i];for(let s of a)s==null||s(...u)}});return t}function rr(e){var t;return Object.assign(E.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function qo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wm(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function YG(e){return Oe.version.split(".")[0]>="19"?e.props.ref:e.ref}function t0(e){return e===E.Fragment||e===Symbol.for("react.fragment")}function QG(e){return t0(e.type)}function XG(e,t,n){let[i,u]=E.useState(n),a=e!==void 0,s=E.useRef(a),c=E.useRef(!1),f=E.useRef(!1);return a&&!s.current&&!c.current?(c.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&s.current&&!f.current&&(f.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,Qe(h=>(a||An.flushSync(()=>u(h)),t==null?void 0:t(h)))]}function ZG(e){let[t]=E.useState(e);return t}function a9(e={},t=null,n=[]){for(let[i,u]of Object.entries(e))l9(n,s9(t,i),u);return n}function s9(e,t){return e?e+"["+t+"]":t}function l9(e,t,n){if(Array.isArray(n))for(let[i,u]of n.entries())l9(e,s9(t,i.toString()),u);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):WG(n)&&!E.isValidElement(n)&&a9(n,t,e)}function WG(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}let KG="span";var Bv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Bv||{});function JG(e,t){var n;let{features:i=1,...u}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(n=u["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return ir()({ourProps:a,theirProps:u,slot:{},defaultTag:KG,name:"Hidden"})}let c9=rr(JG),eY=E.createContext(null);function tY({children:e}){let t=E.useContext(eY);if(!t)return Oe.createElement(Oe.Fragment,null,e);let{target:n}=t;return n?An.createPortal(Oe.createElement(Oe.Fragment,null,e),n):null}function nY({data:e,form:t,disabled:n,onReset:i,overrides:u}){let[a,s]=E.useState(null),c=Xs();return E.useEffect(()=>{if(i&&a)return c.addEventListener(a,"reset",i)},[a,t,i]),Oe.createElement(tY,null,Oe.createElement(iY,{setForm:s,formId:t}),a9(e).map(([f,h])=>Oe.createElement(c9,{features:Bv.Hidden,...qo({key:f,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:f,value:h,...u})})))}function iY({setForm:e,formId:t}){return E.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Oe.createElement(c9,{features:Bv.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let i=n.closest("form");i&&e(i)}})}let rY=E.createContext(void 0);function f9(){return E.useContext(rY)}function d9(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function dh(e){return d9(e)&&"tagName"in e}function xo(e){return dh(e)&&"accessKey"in e}function Ko(e){return dh(e)&&"tabIndex"in e}function uY(e){return dh(e)&&"style"in e}function oY(e){return xo(e)&&e.nodeName==="IFRAME"}function N0(e){return xo(e)&&e.nodeName==="INPUT"}function A5(e){return xo(e)&&e.nodeName==="LABEL"}function aY(e){return xo(e)&&e.nodeName==="FIELDSET"}function h9(e){return xo(e)&&e.nodeName==="LEGEND"}function sY(e){return dh(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function w5(e){let t=e.parentElement,n=null;for(;t&&!aY(t);)h9(t)&&(n=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&lY(n)?!1:i}function lY(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(h9(t))return!1;t=t.previousElementSibling}return!0}let p9=Symbol();function cY(e,t=!0){return Object.assign(e,{[p9]:t})}function _u(...e){let t=E.useRef(e);E.useEffect(()=>{t.current=e},[e]);let n=Qe(i=>{for(let u of t.current)u!=null&&(typeof u=="function"?u(i):u.current=i)});return e.every(i=>i==null||(i==null?void 0:i[p9]))?void 0:n}let Uv=E.createContext(null);Uv.displayName="DescriptionContext";function m9(){let e=E.useContext(Uv);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,m9),t}return e}function fY(){var e,t;return(t=(e=E.useContext(Uv))==null?void 0:e.value)!=null?t:void 0}let dY="p";function hY(e,t){let n=E.useId(),i=Vv(),{id:u=`headlessui-description-${n}`,...a}=e,s=m9(),c=_u(t);Qt(()=>s.register(u),[u,s.register]);let f=Ea({...s.slot,disabled:i||!1}),h={ref:c,...s.props,id:u};return ir()({ourProps:h,theirProps:a,slot:f,defaultTag:dY,name:s.name||"Description"})}let pY=rr(hY);Object.assign(pY,{});var Dn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Dn||{});let hh=E.createContext(null);hh.displayName="LabelContext";function g9(){let e=E.useContext(hh);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,g9),t}return e}function ph(e){var t,n,i;let u=(n=(t=E.useContext(hh))==null?void 0:t.value)!=null?n:void 0;return((i=e==null?void 0:e.length)!=null?i:0)>0?[u,...e].filter(Boolean).join(" "):u}function mY({inherit:e=!1}={}){let t=ph(),[n,i]=E.useState([]),u=e?[t,...n].filter(Boolean):n;return[u.length>0?u.join(" "):void 0,E.useMemo(()=>function(a){let s=Qe(f=>(i(h=>[...h,f]),()=>i(h=>{let p=h.slice(),m=p.indexOf(f);return m!==-1&&p.splice(m,1),p}))),c=E.useMemo(()=>({register:s,slot:a.slot,name:a.name,props:a.props,value:a.value}),[s,a.slot,a.name,a.props,a.value]);return Oe.createElement(hh.Provider,{value:c},a.children)},[i])]}let gY="label";function vY(e,t){var n;let i=E.useId(),u=g9(),a=f9(),s=Vv(),{id:c=`headlessui-label-${i}`,htmlFor:f=a??((n=u.props)==null?void 0:n.htmlFor),passive:h=!1,...p}=e,m=_u(t);Qt(()=>u.register(c),[c,u.register]);let v=Qe(S=>{let _=S.currentTarget;if(!(S.target!==S.currentTarget&&sY(S.target))&&(A5(_)&&S.preventDefault(),u.props&&"onClick"in u.props&&typeof u.props.onClick=="function"&&u.props.onClick(S),A5(_))){let T=document.getElementById(_.htmlFor);if(T){let D=T.getAttribute("disabled");if(D==="true"||D==="")return;let w=T.getAttribute("aria-disabled");if(w==="true"||w==="")return;(N0(T)&&(T.type==="file"||T.type==="radio"||T.type==="checkbox")||T.role==="radio"||T.role==="checkbox"||T.role==="switch")&&T.click(),T.focus({preventScroll:!0})}}}),b=Ea({...u.slot,disabled:s||!1}),x={ref:m,...u.props,id:c,htmlFor:f,onClick:v};return h&&("onClick"in x&&(delete x.htmlFor,delete x.onClick),"onClick"in p&&delete p.onClick),ir()({ourProps:x,theirProps:p,slot:b,defaultTag:f?gY:"div",name:u.name||"Label"})}let yY=rr(vY),bY=Object.assign(yY,{});function cs(e,t,n){let i=n.initialDeps??[],u;function a(){var s,c,f,h;let p;n.key&&((s=n.debug)!=null&&s.call(n))&&(p=Date.now());const m=e();if(!(m.length!==i.length||m.some((x,S)=>i[S]!==x)))return u;i=m;let b;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(b=Date.now()),u=t(...m),n.key&&((f=n.debug)!=null&&f.call(n))){const x=Math.round((Date.now()-p)*100)/100,S=Math.round((Date.now()-b)*100)/100,_=S/16,T=(D,w)=>{for(D=String(D);D.length<w;)D=" "+D;return D};console.info(`%c⏱ ${T(S,5)} /${T(x,5)} ms`,`
|
|
363
|
+
font-size: .6rem;
|
|
364
|
+
font-weight: bold;
|
|
365
|
+
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(h=n==null?void 0:n.onChange)==null||h.call(n,u),u}return a.updateDeps=s=>{i=s},a}function D5(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const EY=(e,t)=>Math.abs(e-t)<1.01,xY=(e,t,n)=>{let i;return function(...u){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,u),n)}},N5=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},SY=e=>e,TY=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let u=t;u<=n;u++)i.push(u);return i},_Y=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const u=s=>{const{width:c,height:f}=s;t({width:Math.round(c),height:Math.round(f)})};if(u(N5(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(s=>{const c=()=>{const f=s[0];if(f!=null&&f.borderBoxSize){const h=f.borderBoxSize[0];if(h){u({width:h.inlineSize,height:h.blockSize});return}}u(N5(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},O5={passive:!0},R5=typeof window>"u"?!0:"onscrollend"in window,CY=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let u=0;const a=e.options.useScrollendEvent&&R5?()=>{}:xY(i,()=>{t(u,!1)},e.options.isScrollingResetDelay),s=p=>()=>{const{horizontal:m,isRtl:v}=e.options;u=m?n.scrollLeft*(v&&-1||1):n.scrollTop,a(),t(u,p)},c=s(!0),f=s(!1);f(),n.addEventListener("scroll",c,O5);const h=e.options.useScrollendEvent&&R5;return h&&n.addEventListener("scrollend",f,O5),()=>{n.removeEventListener("scroll",c),h&&n.removeEventListener("scrollend",f)}},AY=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},wY=(e,{adjustments:t=0,behavior:n},i)=>{var u,a;const s=e+t;(a=(u=i.scrollElement)==null?void 0:u.scrollTo)==null||a.call(u,{[i.options.horizontal?"left":"top"]:s,behavior:n})};class DY{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(u=>{u.forEach(a=>{const s=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var u;(u=i())==null||u.disconnect(),n=null},observe:u=>{var a;return(a=i())==null?void 0:a.observe(u,{box:"border-box"})},unobserve:u=>{var a;return(a=i())==null?void 0:a.unobserve(u)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,u])=>{typeof u>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:SY,rangeExtractor:TY,onChange:()=>{},measureElement:AY,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,u;(u=(i=this.options).onChange)==null||u.call(i,this,n)},this.maybeNotify=cs(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(u=>{this.observer.observe(u)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,u=>{this.scrollRect=u,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(u,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<u?"forward":"backward":null,this.scrollOffset=u,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const u=new Map,a=new Map;for(let s=i-1;s>=0;s--){const c=n[s];if(u.has(c.lane))continue;const f=a.get(c.lane);if(f==null||c.end>f.end?a.set(c.lane,c):c.end<f.end&&u.set(c.lane,!0),u.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=cs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,i,u,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:u,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=cs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:u,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,f);for(let p=f;p<n;p++){const m=a(p),v=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),b=v?v.end+this.options.gap:i+u,x=c.get(m),S=typeof x=="number"?x:this.options.estimateSize(p),_=b+S,T=v?v.lane:p%this.options.lanes;h[p]={index:p,start:b,size:S,end:_,key:m,lane:T}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,u,a)=>this.range=n.length>0&&i>0?NY({measurements:n,outerSize:i,scrollOffset:u,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cs(()=>{let n=null,i=null;const u=this.calculateRange();return u&&(n=u.startIndex,i=u.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,u,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:i,count:u}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,u=n.getAttribute(i);return u?parseInt(u,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(n,i)=>{const u=this.indexFromElement(n),a=this.measurementsCache[u];if(!a)return;const s=a.key,c=this.elementsCache.get(s);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(s,n)),n.isConnected&&this.resizeItem(u,this.options.measureElement(n,i,this))},this.resizeItem=(n,i)=>{const u=this.measurementsCache[n];if(!u)return;const a=this.itemSizeCache.get(u.key)??u.size,s=i-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(u,s,this):u.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(u.index),this.itemSizeCache=new Map(this.itemSizeCache.set(u.key,i)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,u)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(u))});return}this._measureElement(n,void 0)},this.getVirtualItems=cs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const u=[];for(let a=0,s=n.length;a<s;a++){const c=n[a],f=i[c];u.push(f)}return u},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return D5(i[v9(0,i.length-1,u=>D5(i[u]).start,n)])},this.getOffsetForAlignment=(n,i,u=0)=>{const a=this.getSize(),s=this.getScrollOffset();i==="auto"&&(i=n>=s+a?"end":"start"),i==="center"?n+=(u-a)/2:i==="end"&&(n-=a);const c=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const u=this.measurementsCache[n];if(!u)return;const a=this.getSize(),s=this.getScrollOffset();if(i==="auto")if(u.end>=s+a-this.options.scrollPaddingEnd)i="end";else if(u.start<=s+this.options.scrollPaddingStart)i="start";else return[s,i];const c=i==="end"?u.end+this.options.scrollPaddingEnd:u.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,i,u.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:i="start",behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,i),{adjustments:void 0,behavior:u})},this.scrollToIndex=(n,{align:i="auto",behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const s=10,c=h=>{if(!this.targetWindow)return;const p=this.getOffsetForIndex(n,h);if(!p){console.warn("Failed to get offset for index:",n);return}const[m,v]=p;this._scrollToOffset(m,{adjustments:void 0,behavior:u}),this.targetWindow.requestAnimationFrame(()=>{const b=this.getScrollOffset(),x=this.getOffsetForIndex(n,v);if(!x){console.warn("Failed to get offset for index:",n);return}EY(x[0],b)||f(v)})},f=h=>{this.targetWindow&&(a++,a<s?this.targetWindow.requestAnimationFrame(()=>c(h)):console.warn(`Failed to scroll to index ${n} after ${s} attempts.`))};c(i)},this.scrollBy=(n,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let u;if(i.length===0)u=this.options.paddingStart;else if(this.options.lanes===1)u=((n=i[i.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=i.length-1;for(;s>=0&&a.some(c=>c===null);){const c=i[s];a[c.lane]===null&&(a[c.lane]=c.end),s--}u=Math.max(...a.filter(c=>c!==null))}return Math.max(u-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:u})=>{this.options.scrollToFn(n,{behavior:u,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const v9=(e,t,n,i)=>{for(;e<=t;){const u=(e+t)/2|0,a=n(u);if(a<i)e=u+1;else if(a>i)t=u-1;else return u}return e>0?e-1:0};function NY({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const u=e.length-1,a=f=>e[f].start;if(e.length<=i)return{startIndex:0,endIndex:u};let s=v9(0,u,a,n),c=s;if(i===1)for(;c<u&&e[c].end<n+t;)c++;else if(i>1){const f=Array(i).fill(0);for(;c<u&&f.some(p=>p<n+t);){const p=e[c];f[p.lane]=p.end,c++}const h=Array(i).fill(n+t);for(;s>=0&&h.some(p=>p>=n);){const p=e[s];h[p.lane]=p.start,s--}s=Math.max(0,s-s%i),c=Math.min(u,c+(i-1-c%i))}return{startIndex:s,endIndex:c}}const M5=typeof document<"u"?E.useLayoutEffect:E.useEffect;function OY(e){const t=E.useReducer(()=>({}),{})[1],n={...e,onChange:(u,a)=>{var s;a?An.flushSync(t):t(),(s=e.onChange)==null||s.call(e,u,a)}},[i]=E.useState(()=>new DY(n));return i.setOptions(n),M5(()=>i._didMount(),[]),M5(()=>i._willUpdate()),i}function RY(e){return OY({observeElementRect:_Y,observeElementOffset:CY,scrollToFn:wY,...e})}function MY(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function kY(e=MY){return E.useCallback((t,n)=>{if(typeof e=="string"){let i=e;return(t==null?void 0:t[i])===(n==null?void 0:n[i])}return e(t,n)},[e])}function k5(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function L5(e,t,n=!1){let[i,u]=E.useState(()=>k5(t));return Qt(()=>{if(!t||!e)return;let a=ki();return a.requestAnimationFrame(function s(){a.requestAnimationFrame(s),u(c=>{let f=k5(t);return f.width===c.width&&f.height===c.height?c:f})}),()=>{a.dispose()}},[t,e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}var zv=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(zv||{});function LY(e){let t=E.useRef(null),n=Qe(u=>{t.current=u.pointerType,!w5(u.currentTarget)&&u.pointerType==="mouse"&&u.button===zv.Left&&(u.preventDefault(),e(u))}),i=Qe(u=>{t.current!=="mouse"&&(w5(u.currentTarget)||e(u))});return{onPointerDown:n,onClick:i}}let y9=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var FY=Object.defineProperty,IY=(e,t,n)=>t in e?FY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jY=(e,t,n)=>(IY(e,t+"",n),n),b9=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Si=(e,t,n)=>(b9(e,t,"read from private field"),n?n.call(e):t.get(e)),Dm=(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)},F5=(e,t,n,i)=>(b9(e,t,"write to private field"),t.set(e,n),n),br,Kl,Jl;let E9=class{constructor(t){Dm(this,br,{}),Dm(this,Kl,new y9(()=>new Set)),Dm(this,Jl,new Set),jY(this,"disposables",ki()),F5(this,br,t),ra.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Si(this,br)}subscribe(t,n){if(ra.isServer)return()=>{};let i={selector:t,callback:n,current:t(Si(this,br))};return Si(this,Jl).add(i),this.disposables.add(()=>{Si(this,Jl).delete(i)})}on(t,n){return ra.isServer?()=>{}:(Si(this,Kl).get(t).add(n),this.disposables.add(()=>{Si(this,Kl).get(t).delete(n)}))}send(t){let n=this.reduce(Si(this,br),t);if(n!==Si(this,br)){F5(this,br,n);for(let i of Si(this,Jl)){let u=i.selector(Si(this,br));x9(i.current,u)||(i.current=u,i.callback(u))}for(let i of Si(this,Kl).get(t.type))i(Si(this,br),t)}}};br=new WeakMap,Kl=new WeakMap,Jl=new WeakMap;function x9(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Nm(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Nm(e.entries(),t.entries()):I5(e)&&I5(t)?Nm(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Nm(e,t){do{let n=e.next(),i=t.next();if(n.done&&i.done)return!0;if(n.done||i.done||!Object.is(n.value,i.value))return!1}while(!0)}function I5(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var PY=Object.defineProperty,VY=(e,t,n)=>t in e?PY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j5=(e,t,n)=>(VY(e,typeof t!="symbol"?t+"":t,n),n),S9=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(S9||{});let $Y={0(e,t){let n=t.id,i=e.stack,u=e.stack.indexOf(n);if(u!==-1){let a=e.stack.slice();return a.splice(u,1),a.push(n),i=a,{...e,stack:i}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,i=e.stack.indexOf(n);if(i===-1)return e;let u=e.stack.slice();return u.splice(i,1),{...e,stack:u}}},BY=class T9 extends E9{constructor(){super(...arguments),j5(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),j5(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new T9({stack:[]})}reduce(t,n){return Mr(n.type,$Y,t,n)}};const Hv=new y9(()=>BY.new());var Om={exports:{}},Rm={};/**
|
|
366
|
+
* @license React
|
|
367
|
+
* use-sync-external-store-with-selector.production.js
|
|
368
|
+
*
|
|
369
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the MIT license found in the
|
|
372
|
+
* LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/var P5;function UY(){if(P5)return Rm;P5=1;var e=jc();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,u=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;return Rm.useSyncExternalStoreWithSelector=function(f,h,p,m,v){var b=u(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=s(function(){function _(R){if(!T){if(T=!0,D=R,R=m(R),v!==void 0&&x.hasValue){var M=x.value;if(v(M,R))return w=M}return w=R}if(M=w,n(D,R))return M;var I=m(R);return v!==void 0&&v(M,I)?(D=R,M):(D=R,w=I)}var T=!1,D,w,N=p===void 0?null:p;return[function(){return _(h())},N===null?void 0:function(){return _(N())}]},[h,p,m,v]);var S=i(f,b[0],b[1]);return a(function(){x.hasValue=!0,x.value=S},[S]),c(S),S},Rm}var V5;function zY(){return V5||(V5=1,Om.exports=UY()),Om.exports}var HY=zY();function dn(e,t,n=x9){return HY.useSyncExternalStoreWithSelector(Qe(i=>e.subscribe(qY,i)),Qe(()=>e.state),Qe(()=>e.state),Qe(t),n)}function qY(e){return e}function _9(e,t){let n=E.useId(),i=Hv.get(t),[u,a]=dn(i,E.useCallback(s=>[i.selectors.isTop(s,n),i.selectors.inStack(s,n)],[i,n]));return Qt(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),e?a?u:!0:!1}let n2=new Map,cc=new Map;function $5(e){var t;let n=(t=cc.get(e))!=null?t:0;return cc.set(e,n+1),n!==0?()=>B5(e):(n2.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>B5(e))}function B5(e){var t;let n=(t=cc.get(e))!=null?t:1;if(n===1?cc.delete(e):cc.set(e,n-1),n!==1)return;let i=n2.get(e);i&&(i["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,n2.delete(e))}function GY(e,{allowed:t,disallowed:n}={}){let i=_9(e,"inert-others");Qt(()=>{var u,a;if(!i)return;let s=ki();for(let f of(u=n==null?void 0:n())!=null?u:[])f&&s.add($5(f));let c=(a=t==null?void 0:t())!=null?a:[];for(let f of c){if(!f)continue;let h=uf(f);if(!h)continue;let p=f.parentElement;for(;p&&p!==h.body;){for(let m of p.children)c.some(v=>m.contains(v))||s.add($5(m));p=p.parentElement}}return s.dispose},[i,t,n])}function YY(e,t,n){let i=ba(u=>{let a=u.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});E.useEffect(()=>{if(!e)return;let u=t===null?null:xo(t)?t:t.current;if(!u)return;let a=ki();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>i.current(u));s.observe(u),a.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>i.current(u));s.observe(u),a.add(()=>s.disconnect())}return()=>a.dispose()},[t,i,e])}let i2=["[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(",");var QY=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(QY||{}),XY=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(XY||{}),ZY=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ZY||{}),C9=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(C9||{});function WY(e,t=0){var n;return e===((n=uf(e))==null?void 0:n.body)?!1:Mr(t,{0(){return e.matches(i2)},1(){let i=e;for(;i!==null;){if(i.matches(i2))return!0;i=i.parentElement}return!1}})}var KY=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(KY||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function JY(e,t=n=>n){return e.slice().sort((n,i)=>{let u=t(n),a=t(i);if(u===null||a===null)return 0;let s=u.compareDocumentPosition(a);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function A9(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function eQ(){return/Android/gi.test(window.navigator.userAgent)}function r2(){return A9()||eQ()}function bs(e,t,n,i){let u=ba(n);E.useEffect(()=>{if(!e)return;function a(s){u.current(s)}return document.addEventListener(t,a,i),()=>document.removeEventListener(t,a,i)},[e,t,i])}function tQ(e,t,n,i){let u=ba(n);E.useEffect(()=>{if(!e)return;function a(s){u.current(s)}return window.addEventListener(t,a,i),()=>window.removeEventListener(t,a,i)},[e,t,i])}const U5=30;function nQ(e,t,n){let i=ba(n),u=E.useCallback(function(c,f){if(c.defaultPrevented)return;let h=f(c);if(h===null||!h.getRootNode().contains(h)||!h.isConnected)return;let p=function m(v){return typeof v=="function"?m(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t);for(let m of p)if(m!==null&&(m.contains(h)||c.composed&&c.composedPath().includes(m)))return;return!WY(h,C9.Loose)&&h.tabIndex!==-1&&c.preventDefault(),i.current(c,h)},[i,t]),a=E.useRef(null);bs(e,"pointerdown",c=>{var f,h;r2()||(a.current=((h=(f=c.composedPath)==null?void 0:f.call(c))==null?void 0:h[0])||c.target)},!0),bs(e,"pointerup",c=>{if(r2()||!a.current)return;let f=a.current;return a.current=null,u(c,()=>f)},!0);let s=E.useRef({x:0,y:0});bs(e,"touchstart",c=>{s.current.x=c.touches[0].clientX,s.current.y=c.touches[0].clientY},!0),bs(e,"touchend",c=>{let f={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(f.x-s.current.x)>=U5||Math.abs(f.y-s.current.y)>=U5))return u(c,()=>Ko(c.target)?c.target:null)},!0),tQ(e,"blur",c=>u(c,()=>oY(window.document.activeElement)?window.document.activeElement:null),!0)}function u2(...e){return E.useMemo(()=>uf(...e),[...e])}var iQ=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(iQ||{});const Gl={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},rQ=200,z5=5;function uQ(e,{trigger:t,action:n,close:i,select:u}){let a=E.useRef(null),s=E.useRef(null),c=E.useRef(null);bs(e&&t!==null,"pointerdown",f=>{d9(f==null?void 0:f.target)&&t!=null&&t.contains(f.target)&&(s.current=f.x,c.current=f.y,a.current=f.timeStamp)}),bs(e&&t!==null,"pointerup",f=>{var h,p;let m=a.current;if(m===null||(a.current=null,!Ko(f.target))||Math.abs(f.x-((h=s.current)!=null?h:f.x))<z5&&Math.abs(f.y-((p=c.current)!=null?p:f.y))<z5)return;let v=n(f);switch(v.kind){case 0:return;case 1:{f.timeStamp-m>rQ&&(u(v.target),i());break}case 2:{i();break}}},{capture:!0})}function oQ(e,t,n,i){let u=ba(n);E.useEffect(()=>{e=e??window;function a(s){u.current(s)}return e.addEventListener(t,a,i),()=>e.removeEventListener(t,a,i)},[e,t,i])}function w9(e){let t=E.useRef({value:"",selectionStart:null,selectionEnd:null});return oQ(e,"blur",n=>{let i=n.target;N0(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),Qe(()=>{if(!r9(e)&&N0(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:i}=t.current;n!==null&&i!==null&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function aQ(e,t){return E.useMemo(()=>{var n;if(e.type)return e.type;let i=(n=e.as)!=null?n:"button";if(typeof i=="string"&&i.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function sQ(e){return E.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function lQ(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(u){return i.add(u),()=>i.delete(u)},dispatch(u,...a){let s=t[u].call(n,...a);s&&(n=s,i.forEach(c=>c()))}}}function cQ(){let e;return{before({doc:t}){var n;let i=t.documentElement,u=(n=t.defaultView)!=null?n:window;e=Math.max(0,u.innerWidth-i.clientWidth)},after({doc:t,d:n}){let i=t.documentElement,u=Math.max(0,i.clientWidth-i.offsetWidth),a=Math.max(0,e-u);n.style(i,"paddingRight",`${a}px`)}}}function fQ(){return A9()?{before({doc:e,d:t,meta:n}){function i(u){for(let a of n().containers)for(let s of a())if(s.contains(u))return!0;return!1}t.microTask(()=>{var u;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=ki();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let a=(u=window.scrollY)!=null?u:window.pageYOffset,s=null;t.addEventListener(e,"click",c=>{if(Ko(c.target))try{let f=c.target.closest("a");if(!f)return;let{hash:h}=new URL(f.href),p=e.querySelector(h);Ko(p)&&!i(p)&&(s=p)}catch{}},!0),t.group(c=>{t.addEventListener(e,"touchstart",f=>{if(c.dispose(),Ko(f.target)&&uY(f.target))if(i(f.target)){let h=f.target;for(;h.parentElement&&i(h.parentElement);)h=h.parentElement;c.style(h,"overscrollBehavior","contain")}else c.style(f.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",c=>{if(Ko(c.target)){if(N0(c.target))return;if(i(c.target)){let f=c.target;for(;f.parentElement&&f.dataset.headlessuiPortal!==""&&!(f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth);)f=f.parentElement;f.dataset.headlessuiPortal===""&&c.preventDefault()}else c.preventDefault()}},{passive:!1}),t.add(()=>{var c;let f=(c=window.scrollY)!=null?c:window.pageYOffset;a!==f&&window.scrollTo(0,a),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function dQ(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function H5(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Jo=lQ(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:ki(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(t),i.computedMeta=H5(i.meta),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=H5(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[fQ(),cQ(),dQ()];n.forEach(({before:i})=>i==null?void 0:i(t)),n.forEach(({after:i})=>i==null?void 0:i(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Jo.subscribe(()=>{let e=Jo.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let i=t.get(n.doc)==="hidden",u=n.count!==0;(u&&!i||!u&&i)&&Jo.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Jo.dispatch("TEARDOWN",n)}});function hQ(e,t,n=()=>({containers:[]})){let i=sQ(Jo),u=t?i.get(t):void 0,a=u?u.count>0:!1;return Qt(()=>{if(!(!t||!e))return Jo.dispatch("PUSH",t,n),()=>Jo.dispatch("POP",t,n)},[e,t]),a}function pQ(e,t,n=()=>[document.body]){let i=_9(e,"scroll-lock");hQ(i,t,u=>{var a;return{containers:[...(a=u.containers)!=null?a:[],n]}})}function q5(e){return[e.screenX,e.screenY]}function mQ(){let e=E.useRef([-1,-1]);return{wasMoved(t){let n=q5(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=q5(t)}}}function gQ(e=0){let[t,n]=E.useState(e),i=E.useCallback(f=>n(f),[]),u=E.useCallback(f=>n(h=>h|f),[]),a=E.useCallback(f=>(t&f)===f,[t]),s=E.useCallback(f=>n(h=>h&~f),[]),c=E.useCallback(f=>n(h=>h^f),[]);return{flags:t,setFlag:i,addFlag:u,hasFlag:a,removeFlag:s,toggleFlag:c}}var vQ={},G5,Y5;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((G5=process==null?void 0:vQ)==null?void 0:G5.NODE_ENV)==="test"&&typeof((Y5=Element==null?void 0:Element.prototype)==null?void 0:Y5.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
374
|
+
`)),[]});var yQ=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(yQ||{});function bQ(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function EQ(e,t,n,i){let[u,a]=E.useState(n),{hasFlag:s,addFlag:c,removeFlag:f}=gQ(e&&u?3:0),h=E.useRef(!1),p=E.useRef(!1),m=Xs();return Qt(()=>{var v;if(e){if(n&&a(!0),!t){n&&c(3);return}return(v=void 0)==null||v.call(i,n),xQ(t,{inFlight:h,prepare(){p.current?p.current=!1:p.current=h.current,h.current=!0,!p.current&&(n?(c(3),f(4)):(c(4),f(2)))},run(){p.current?n?(f(3),c(4)):(f(4),c(3)):n?f(1):c(1)},done(){var b;p.current&&_Q(t)||(h.current=!1,f(7),n||a(!1),(b=void 0)==null||b.call(i,n))}})}},[e,n,t,m]),e?[u,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function xQ(e,{prepare:t,run:n,done:i,inFlight:u}){let a=ki();return TQ(e,{prepare:t,inFlight:u}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(SQ(e,i))})}),a.dispose}function SQ(e,t){var n,i;let u=ki();if(!e)return u.dispose;let a=!1;u.add(()=>{a=!0});let s=(i=(n=e.getAnimations)==null?void 0:n.call(e).filter(c=>c instanceof CSSTransition))!=null?i:[];return s.length===0?(t(),u.dispose):(Promise.allSettled(s.map(c=>c.finished)).then(()=>{a||t()}),u.dispose)}function TQ(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}function _Q(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}function CQ(e,{container:t,accept:n,walk:i}){let u=E.useRef(n),a=E.useRef(i);E.useEffect(()=>{u.current=n,a.current=i},[n,i]),Qt(()=>{if(!t||!e)return;let s=uf(t);if(!s)return;let c=u.current,f=a.current,h=Object.assign(m=>c(m),{acceptNode:c}),p=s.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,h,!1);for(;p.nextNode();)f(p.currentNode)},[t,e,u,a])}function Q5(e,t){let n=E.useRef([]),i=Qe(e);E.useEffect(()=>{let u=[...n.current];for(let[a,s]of t.entries())if(n.current[a]!==s){let c=i(t,u);return n.current=t,c}},[i,...t])}function AQ(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:i}=t;return n+"/"+i}).join(" "):navigator.userAgent}const D9={...s2},wQ=D9.useInsertionEffect,DQ=wQ||(e=>e());function N9(e){const t=E.useRef(()=>{});return DQ(()=>{t.current=e}),E.useCallback(function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];return t.current==null?void 0:t.current(...i)},[])}var o2=typeof document<"u"?E.useLayoutEffect:E.useEffect;let X5=!1,NQ=0;const Z5=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+NQ++;function OQ(){const[e,t]=E.useState(()=>X5?Z5():void 0);return o2(()=>{e==null&&t(Z5())},[]),E.useEffect(()=>{X5=!0},[]),e}const RQ=D9.useId,MQ=RQ||OQ;function kQ(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(u=>u(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,((i=e.get(t))==null?void 0:i.filter(u=>u!==n))||[])}}}const LQ=E.createContext(null),FQ=E.createContext(null),IQ=()=>{var e;return((e=E.useContext(LQ))==null?void 0:e.id)||null},jQ=()=>E.useContext(FQ),PQ="data-floating-ui-focusable";function VQ(e){const{open:t=!1,onOpenChange:n,elements:i}=e,u=MQ(),a=E.useRef({}),[s]=E.useState(()=>kQ()),c=IQ()!=null,[f,h]=E.useState(i.reference),p=N9((b,x,S)=>{a.current.openEvent=b?x:void 0,s.emit("openchange",{open:b,event:x,reason:S,nested:c}),n==null||n(b,x,S)}),m=E.useMemo(()=>({setPositionReference:h}),[]),v=E.useMemo(()=>({reference:f||i.reference||null,floating:i.floating||null,domReference:i.reference}),[f,i.reference,i.floating]);return E.useMemo(()=>({dataRef:a,open:t,onOpenChange:p,elements:v,events:s,floatingId:u,refs:m}),[t,p,v,s,u,m])}function $Q(e){e===void 0&&(e={});const{nodeId:t}=e,n=VQ({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,u=i.elements,[a,s]=E.useState(null),[c,f]=E.useState(null),p=(u==null?void 0:u.domReference)||a,m=E.useRef(null),v=jQ();o2(()=>{p&&(m.current=p)},[p]);const b=z_({...e,elements:{...u,...c&&{reference:c}}}),x=E.useCallback(w=>{const N=On(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;f(N),b.refs.setReference(N)},[b.refs]),S=E.useCallback(w=>{(On(w)||w===null)&&(m.current=w,s(w)),(On(b.refs.reference.current)||b.refs.reference.current===null||w!==null&&!On(w))&&b.refs.setReference(w)},[b.refs]),_=E.useMemo(()=>({...b.refs,setReference:S,setPositionReference:x,domReference:m}),[b.refs,S,x]),T=E.useMemo(()=>({...b.elements,domReference:p}),[b.elements,p]),D=E.useMemo(()=>({...b,...i,refs:_,elements:T,nodeId:t}),[b,_,T,t,i]);return o2(()=>{i.dataRef.current.floatingContext=D;const w=v==null?void 0:v.nodesRef.current.find(N=>N.id===t);w&&(w.context=D)}),E.useMemo(()=>({...b,context:D,refs:_,elements:T}),[b,_,T,D])}const W5="active",K5="selected";function Mm(e,t,n){const i=new Map,u=n==="item";let a=e;if(u&&e){const{[W5]:s,[K5]:c,...f}=e;a=f}return{...n==="floating"&&{tabIndex:-1,[PQ]:""},...a,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(f=>{let[h,p]=f;if(!(u&&[W5,K5].includes(h)))if(h.indexOf("on")===0){if(i.has(h)||i.set(h,[]),typeof p=="function"){var m;(m=i.get(h))==null||m.push(p),s[h]=function(){for(var v,b=arguments.length,x=new Array(b),S=0;S<b;S++)x[S]=arguments[S];return(v=i.get(h))==null?void 0:v.map(_=>_(...x)).find(_=>_!==void 0)}}}else s[h]=p}),s),{})}}function BQ(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),i=e.map(c=>c==null?void 0:c.item),u=E.useCallback(c=>Mm(c,e,"reference"),t),a=E.useCallback(c=>Mm(c,e,"floating"),n),s=E.useCallback(c=>Mm(c,e,"item"),i);return E.useMemo(()=>({getReferenceProps:u,getFloatingProps:a,getItemProps:s}),[u,a,s])}function J5(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const UQ=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:i,onFallbackChange:u,offset:a=0,index:s=0,minItemsVisible:c=4,referenceOverflowThreshold:f=0,scrollRef:h,...p}=Nr(e,t),{rects:m,elements:{floating:v}}=t,b=n.current[s],x=(h==null?void 0:h.current)||v,S=v.clientTop||x.clientTop,_=v.clientTop!==0,T=x.clientTop!==0,D=v===x;if(!b)return{};const w={...t,...await z2(-b.offsetTop-v.clientTop-m.reference.height/2-b.offsetHeight/2-a).fn(t)},N=await om(J5(w,x.scrollHeight+S+v.clientTop),p),R=await om(w,{...p,elementContext:"reference"}),M=Cn(0,N.top),I=w.y+M,z=(x.scrollHeight>x.clientHeight?G=>G:_c)(Cn(0,x.scrollHeight+(_&&D||T?S*2:0)-M-Cn(0,N.bottom)));if(x.style.maxHeight=z+"px",x.scrollTop=M,u){const G=x.offsetHeight<b.offsetHeight*bu(c,n.current.length)-1||R.top>=-f||R.bottom>=-f;An.flushSync(()=>u(G))}return i&&(i.current=await om(J5({...w,y:I},x.offsetHeight+S+v.clientTop),p)),{y:I}}});function zQ(e,t){const{open:n,elements:i}=e,{enabled:u=!0,overflowRef:a,scrollRef:s,onChange:c}=t,f=N9(c),h=E.useRef(!1),p=E.useRef(null),m=E.useRef(null);E.useEffect(()=>{if(!u)return;function b(S){if(S.ctrlKey||!x||a.current==null)return;const _=S.deltaY,T=a.current.top>=-.5,D=a.current.bottom>=-.5,w=x.scrollHeight-x.clientHeight,N=_<0?-1:1,R=_<0?"max":"min";x.scrollHeight<=x.clientHeight||(!T&&_>0||!D&&_<0?(S.preventDefault(),An.flushSync(()=>{f(M=>M+Math[R](_,w*N))})):/firefox/i.test(AQ())&&(x.scrollTop+=_))}const x=(s==null?void 0:s.current)||i.floating;if(n&&x)return x.addEventListener("wheel",b),requestAnimationFrame(()=>{p.current=x.scrollTop,a.current!=null&&(m.current={...a.current})}),()=>{p.current=null,m.current=null,x.removeEventListener("wheel",b)}},[u,n,i.floating,a,s,f]);const v=E.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){const b=(s==null?void 0:s.current)||i.floating;if(!(!a.current||!b||!h.current)){if(p.current!==null){const x=b.scrollTop-p.current;(a.current.bottom<-.5&&x<-1||a.current.top<-.5&&x>1)&&An.flushSync(()=>f(S=>S+x))}requestAnimationFrame(()=>{p.current=b.scrollTop})}}}),[i.floating,f,a,s]);return E.useMemo(()=>u?{floating:v}:{},[u,v])}let of=E.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});of.displayName="FloatingContext";let qv=E.createContext(null);qv.displayName="PlacementContext";function HQ(e){return E.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function qQ(){return E.useContext(of).setReference}function GQ(){let{getFloatingProps:e,slot:t}=E.useContext(of);return E.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function YQ(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=E.useContext(qv),n=E.useMemo(()=>e,[JSON.stringify(e,(u,a)=>{var s;return(s=a==null?void 0:a.outerHTML)!=null?s:a})]);Qt(()=>{t==null||t(n??null)},[t,n]);let i=E.useContext(of);return E.useMemo(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}let eS=4;function QQ({children:e,enabled:t=!0}){let[n,i]=E.useState(null),[u,a]=E.useState(0),s=E.useRef(null),[c,f]=E.useState(null);XQ(c);let h=t&&n!==null&&c!==null,{to:p="bottom",gap:m=0,offset:v=0,padding:b=0,inner:x}=ZQ(n,c),[S,_="center"]=p.split(" ");Qt(()=>{h&&a(0)},[h]);let{refs:T,floatingStyles:D,context:w}=$Q({open:h,placement:S==="selection"?_==="center"?"bottom":`bottom-${_}`:_==="center"?`${S}`:`${S}-${_}`,strategy:"absolute",transform:!1,middleware:[z2({mainAxis:S==="selection"?0:m,crossAxis:v}),H_({padding:b}),S!=="selection"&&q_({padding:b}),S==="selection"&&x?UQ({...x,padding:b,overflowRef:s,offset:u,minItemsVisible:eS,referenceOverflowThreshold:b,onFallbackChange(G){var J,se;if(!G)return;let ie=w.elements.floating;if(!ie)return;let ee=parseFloat(getComputedStyle(ie).scrollPaddingBottom)||0,F=Math.min(eS,ie.childElementCount),H=0,P=0;for(let V of(se=(J=w.elements.floating)==null?void 0:J.childNodes)!=null?se:[])if(xo(V)){let re=V.offsetTop,k=re+V.clientHeight+ee,B=ie.scrollTop,te=B+ie.clientHeight;if(re>=B&&k<=te)F--;else{P=Math.max(0,Math.min(k,te)-Math.max(re,B)),H=V.clientHeight;break}}F>=1&&a(V=>{let re=H*F-P+ee;return V>=re?V:re})}}):null,G_({padding:b,apply({availableWidth:G,availableHeight:J,elements:se}){Object.assign(se.floating.style,{overflow:"auto",maxWidth:`${G}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${J}px)`})}})].filter(Boolean),whileElementsMounted:B_}),[N=S,R=_]=w.placement.split("-");S==="selection"&&(N="selection");let M=E.useMemo(()=>({anchor:[N,R].filter(Boolean).join(" ")}),[N,R]),I=zQ(w,{overflowRef:s,onChange:a}),{getReferenceProps:$,getFloatingProps:L}=BQ([I]),z=Qe(G=>{f(G),T.setFloating(G)});return E.createElement(qv.Provider,{value:i},E.createElement(of.Provider,{value:{setFloating:z,setReference:T.setReference,styles:D,getReferenceProps:$,getFloatingProps:L,slot:M}},e))}function XQ(e){Qt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,i=parseFloat(n);if(isNaN(i))return;let u=parseInt(n);isNaN(u)||i!==u&&(e.style.maxHeight=`${Math.ceil(i)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function ZQ(e,t){var n,i,u;let a=km((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=km((i=e==null?void 0:e.offset)!=null?i:"var(--anchor-offset, 0)",t),c=km((u=e==null?void 0:e.padding)!=null?u:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:s,padding:c}}function km(e,t,n=void 0){let i=Xs(),u=Qe((f,h)=>{if(f==null)return[n,null];if(typeof f=="number")return[f,null];if(typeof f=="string"){if(!h)return[n,null];let p=tS(f,h);return[p,m=>{let v=O9(f);{let b=v.map(x=>window.getComputedStyle(h).getPropertyValue(x));i.requestAnimationFrame(function x(){i.nextFrame(x);let S=!1;for(let[T,D]of v.entries()){let w=window.getComputedStyle(h).getPropertyValue(D);if(b[T]!==w){b[T]=w,S=!0;break}}if(!S)return;let _=tS(f,h);p!==_&&(m(_),p=_)})}return i.dispose}]}return[n,null]}),a=E.useMemo(()=>u(e,t)[0],[e,t]),[s=a,c]=E.useState();return Qt(()=>{let[f,h]=u(e,t);if(c(f),!!h)return h(c)},[e,t]),s}function O9(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let i=t[1].slice(0,n).trim(),u=t[1].slice(n+1).trim();return u?[i,...O9(u)]:[i]}return[]}function tS(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 i=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),i}function WQ({children:e,freeze:t},n){let i=a2(t,e);return E.isValidElement(i)?E.cloneElement(i,{ref:n}):Oe.createElement(Oe.Fragment,null,i)}const KQ=Oe.forwardRef(WQ);function a2(e,t){let[n,i]=E.useState(t);return!e&&n!==t&&i(t),e?n:t}let Gv=E.createContext(null);Gv.displayName="OpenClosedContext";var Fc=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Fc||{});function JQ(){return E.useContext(Gv)}function eX({value:e,children:t}){return Oe.createElement(Gv.Provider,{value:e},t)}function tX(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Go=[];tX(()=>{function e(t){if(!Ko(t.target)||t.target===document.body||Go[0]===t.target)return;let n=t.target;n=n.closest(i2),Go.unshift(n??t.target),Go=Go.filter(i=>i!=null&&i.isConnected),Go.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function nX(e){throw new Error("Unexpected object: "+e)}var sn=(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))(sn||{});function nS(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),u=i??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return i}case 1:{u===-1&&(u=n.length);for(let a=u-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return i}case 2:{for(let a=u+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return i}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return i}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return i}case 5:return null;default:nX(e)}}function R9(e){let t=Qe(e),n=E.useRef(!1);E.useEffect(()=>(n.current=!1,()=>{n.current=!0,u9(()=>{n.current&&t()})}),[t])}let iX=E.createContext(!1);function rX(){return E.useContext(iX)}function uX(e){let t=rX(),n=E.useContext(k9),[i,u]=E.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(ra.isServer)return null;let s=e==null?void 0:e.getElementById("headlessui-portal-root");if(s)return s;if(e===null)return null;let c=e.createElement("div");return c.setAttribute("id","headlessui-portal-root"),e.body.appendChild(c)});return E.useEffect(()=>{i!==null&&(e!=null&&e.body.contains(i)||e==null||e.body.appendChild(i))},[i,e]),E.useEffect(()=>{t||n!==null&&u(n.current)},[n,u,t]),i}let M9=E.Fragment,oX=rr(function(e,t){let{ownerDocument:n=null,...i}=e,u=E.useRef(null),a=_u(cY(v=>{u.current=v}),t),s=u2(u.current),c=n??s,f=uX(c),h=E.useContext(cX),p=Xs(),m=ir();return R9(()=>{var v;f&&f.childNodes.length<=0&&((v=f.parentElement)==null||v.removeChild(f))}),f?An.createPortal(Oe.createElement("div",{"data-headlessui-portal":"",ref:v=>{p.dispose(),h&&v&&p.add(h.register(v))}},m({ourProps:{ref:a},theirProps:i,slot:{},defaultTag:M9,name:"Portal"})),f):null});function aX(e,t){let n=_u(t),{enabled:i=!0,ownerDocument:u,...a}=e,s=ir();return i?Oe.createElement(oX,{...a,ownerDocument:u,ref:n}):s({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:M9,name:"Portal"})}let sX=E.Fragment,k9=E.createContext(null);function lX(e,t){let{target:n,...i}=e,u={ref:_u(t)},a=ir();return Oe.createElement(k9.Provider,{value:n},a({ourProps:u,theirProps:i,defaultTag:sX,name:"Popover.Group"}))}let cX=E.createContext(null),fX=rr(aX),dX=rr(lX),hX=Object.assign(fX,{Group:dX});const ec={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function L9(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function pX(e,t,n){let i=ki();if(t.kind==="Tracked"){let u=function(){a!==L9(e)&&(i.dispose(),n())},{position:a}=t,s=new ResizeObserver(u);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",u,{passive:!0}),i.addEventListener(window,"resize",u)}return()=>i.dispose()}var mX=Object.defineProperty,gX=(e,t,n)=>t in e?mX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iS=(e,t,n)=>(gX(e,typeof t!="symbol"?t+"":t,n),n),$e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($e||{}),ri=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ri||{}),Dr=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Dr||{}),F9=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(F9||{});function Lm(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),u=i.length>0&&i[0].dataRef.current.order!==null?i.sort((s,c)=>s.dataRef.current.order-c.dataRef.current.order):JY(i,s=>s.dataRef.current.domRef.current),a=n?u.indexOf(n):null;return a===-1&&(a=null),{options:u,activeOptionIndex:a}}let vX={1(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1)return e;let n=e.inputElement?ec.Tracked(L9(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let i=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(i!==-1)return{...e,activeOptionIndex:i,comboboxState:0,__demoMode:!1,inputPositionState:ec.Idle}}return{...e,comboboxState:0,inputPositionState:ec.Idle,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,i,u,a;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:h,disabled:p}=e.virtual,m=t.focus===sn.Specific?t.idx:nS(t,{resolveItems:()=>h,resolveActiveIndex:()=>{var b,x;return(x=(b=e.activeOptionIndex)!=null?b:h.findIndex(S=>!p(S)))!=null?x:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),v=(u=t.trigger)!=null?u:2;return e.activeOptionIndex===m&&e.activationTrigger===v?e:{...e,activeOptionIndex:m,activationTrigger:v,isTyping:!1,__demoMode:!1}}let s=Lm(e);if(s.activeOptionIndex===null){let h=s.options.findIndex(p=>!p.dataRef.current.disabled);h!==-1&&(s.activeOptionIndex=h)}let c=t.focus===sn.Specific?t.idx:nS(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled}),f=(a=t.trigger)!=null?a:2;return e.activeOptionIndex===c&&e.activationTrigger===f?e:{...e,...s,isTyping:!1,activeOptionIndex:c,activationTrigger:f,__demoMode:!1}},4:(e,t)=>{var n,i,u,a;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,c=Lm(e,h=>(h.push(s),h));e.activeOptionIndex===null&&(u=(i=e.dataRef.current).isSelected)!=null&&u.call(i,t.payload.dataRef.current.value)&&(c.activeOptionIndex=c.options.indexOf(s));let f={...e,...c,activationTrigger:2};return(a=e.dataRef.current)!=null&&a.__demoMode&&e.dataRef.current.value===void 0&&(f.activeOptionIndex=0),f},5:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(u=>u.id!==t.id)};let i=Lm(e,u=>{let a=u.findIndex(s=>s.id===t.id);return a!==-1&&u.splice(a,1),u});return{...e,...i,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,i;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let u=e.activeOptionIndex;if(e.activeOptionIndex!==null){let a=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);a!==-1?u=a:u=null}return{...e,activeOptionIndex:u,virtual:{options:t.options,disabled:(i=t.disabled)!=null?i:()=>!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){return e.inputPositionState.kind!=="Tracked"?e:{...e,inputPositionState:ec.Moved}}};class Yv extends E9{constructor(t){super(t),iS(this,"actions",{onChange:n=>{let{onChange:i,compare:u,mode:a,value:s}=this.state.dataRef.current;return Mr(a,{0:()=>i==null?void 0:i(n),1:()=>{let c=s.slice(),f=c.findIndex(h=>u(h,n));return f===-1?c.push(n):c.splice(f,1),i==null?void 0:i(c)}})},registerOption:(n,i)=>(this.send({type:4,payload:{id:n,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,i)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:i})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(n=this.state.dataRef.current).onClose)==null||i.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:i}=this.state.options[n];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:sn.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),iS(this,"selectors",{activeDescendantId:n=>{var i,u;let a=this.selectors.activeOptionIndex(n);if(a!==null)return n.virtual?(u=n.options.find(s=>!s.dataRef.current.disabled&&n.dataRef.current.compare(s.dataRef.current.value,n.virtual.options[a])))==null?void 0:u.id:(i=n.options[a])==null?void 0:i.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:u,disabled:a}=n.virtual,s=u.findIndex(c=>{var f;return!((f=a==null?void 0:a(c))!=null&&f)});if(s!==-1)return s}let i=n.options.findIndex(u=>!u.dataRef.current.disabled);if(i!==-1)return i}return n.activeOptionIndex},activeOption:n=>{var i,u;let a=this.selectors.activeOptionIndex(n);return a===null?null:n.virtual?n.virtual.options[a??0]:(u=(i=n.options[a])==null?void 0:i.dataRef.current.value)!=null?u:null},isActive:(n,i,u)=>{var a;let s=this.selectors.activeOptionIndex(n);return s===null?!1:n.virtual?s===n.dataRef.current.calculateIndex(i):((a=n.options[s])==null?void 0:a.id)===u},shouldScrollIntoView:(n,i,u)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,i,u)),didInputMove(n){return n.inputPositionState.kind==="Moved"}});{let n=this.state.id,i=Hv.get(null);this.disposables.add(i.on(S9.Push,u=>{!i.selectors.isTop(u,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(n)),this.on(1,()=>i.actions.pop(n))}this.disposables.group(n=>{this.on(1,i=>{i.inputElement&&(n.dispose(),n.add(pX(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:i=!1}){var u;return new Yv({id:t,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(u=n.disabled)!=null?u:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:ec.Idle})}reduce(t,n){return Mr(n.type,vX,t,n)}}const I9=E.createContext(null);function af(e){let t=E.useContext(I9);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,j9),n}return t}function j9({id:e,virtual:t=null,__demoMode:n=!1}){let i=E.useMemo(()=>Yv.new({id:e,virtual:t,__demoMode:n}),[]);return R9(()=>i.dispose()),i}let Ic=E.createContext(null);Ic.displayName="ComboboxDataContext";function Zs(e){let t=E.useContext(Ic);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Zs),n}return t}let P9=E.createContext(null);function yX(e){let t=af("VirtualProvider"),n=Zs("VirtualProvider"),{options:i}=n.virtual,u=dn(t,b=>b.optionsElement),[a,s]=E.useMemo(()=>{let b=u;if(!b)return[0,0];let x=window.getComputedStyle(b);return[parseFloat(x.paddingBlockStart||x.paddingTop),parseFloat(x.paddingBlockEnd||x.paddingBottom)]},[u]),c=RY({enabled:i.length!==0,scrollPaddingStart:a,scrollPaddingEnd:s,count:i.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[f,h]=E.useState(0);Qt(()=>{h(b=>b+1)},[i]);let p=c.getVirtualItems(),m=dn(t,b=>b.activationTrigger===Dr.Pointer),v=dn(t,t.selectors.activeOptionIndex);return p.length===0?null:Oe.createElement(P9.Provider,{value:c},Oe.createElement("div",{style:{position:"relative",width:"100%",height:`${c.getTotalSize()}px`},ref:b=>{b&&(m||v!==null&&i.length>v&&c.scrollToIndex(v))}},p.map(b=>{var x;return Oe.createElement(E.Fragment,{key:b.key},Oe.cloneElement((x=e.children)==null?void 0:x.call(e,{...e.slot,option:i[b.index]}),{key:`${f}-${b.key}`,"data-index":b.index,"aria-setsize":i.length,"aria-posinset":b.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${b.start}px)`,overflowAnchor:"none"}}))})))}let bX=E.Fragment;function EX(e,t){let n=E.useId(),i=Vv(),{value:u,defaultValue:a,onChange:s,form:c,name:f,by:h,invalid:p=!1,disabled:m=i||!1,onClose:v,__demoMode:b=!1,multiple:x=!1,immediate:S=!1,virtual:_=null,nullable:T,...D}=e,w=ZG(a),[N=x?[]:void 0,R]=XG(u,s,w),M=j9({id:n,virtual:_,__demoMode:b}),I=E.useRef({static:!1,hold:!1}),$=kY(h),L=Qe(fe=>_?h===null?_.options.indexOf(fe):_.options.findIndex(me=>$(me,fe)):M.state.options.findIndex(me=>$(me.dataRef.current.value,fe))),z=E.useCallback(fe=>Mr(se.mode,{[ri.Multi]:()=>N.some(me=>$(me,fe)),[ri.Single]:()=>$(N,fe)}),[N]),G=dn(M,fe=>fe.virtual),J=Qe(()=>v==null?void 0:v()),se=E.useMemo(()=>({__demoMode:b,immediate:S,optionsPropsRef:I,value:N,defaultValue:w,disabled:m,invalid:p,mode:x?ri.Multi:ri.Single,virtual:_?G:null,onChange:R,isSelected:z,calculateIndex:L,compare:$,onClose:J}),[b,S,I,N,w,m,p,x,_,G,R,z,L,$,J]);Qt(()=>{var fe;_&&M.send({type:F9.UpdateVirtualConfiguration,options:_.options,disabled:(fe=_.disabled)!=null?fe:null})},[_,_==null?void 0:_.options,_==null?void 0:_.disabled]),Qt(()=>{M.state.dataRef.current=se},[se]);let[ie,ee,F,H]=dn(M,fe=>[fe.comboboxState,fe.buttonElement,fe.inputElement,fe.optionsElement]),P=Hv.get(null),V=dn(P,E.useCallback(fe=>P.selectors.isTop(fe,n),[P,n]));nQ(V,[ee,F,H],()=>M.actions.closeCombobox());let re=dn(M,M.selectors.activeOptionIndex),k=dn(M,M.selectors.activeOption),B=Ea({open:ie===$e.Open,disabled:m,invalid:p,activeIndex:re,activeOption:k,value:N}),[te,W]=mY(),he=t===null?{}:{ref:t},de=E.useCallback(()=>{if(w!==void 0)return R==null?void 0:R(w)},[R,w]),ue=ir();return Oe.createElement(W,{value:te,props:{htmlFor:F==null?void 0:F.id},slot:{open:ie===$e.Open,disabled:m}},Oe.createElement(QQ,null,Oe.createElement(Ic.Provider,{value:se},Oe.createElement(I9.Provider,{value:M},Oe.createElement(eX,{value:Mr(ie,{[$e.Open]:Fc.Open,[$e.Closed]:Fc.Closed})},f!=null&&Oe.createElement(nY,{disabled:m,data:N!=null?{[f]:N}:{},form:c,onReset:de}),ue({ourProps:he,theirProps:D,slot:B,defaultTag:bX,name:"Combobox"}))))))}let xX="input";function SX(e,t){var n,i;let u=af("Combobox.Input"),a=Zs("Combobox.Input"),s=E.useId(),c=f9(),{id:f=c||`headlessui-combobox-input-${s}`,onChange:h,displayValue:p,disabled:m=a.disabled||!1,autoFocus:v=!1,type:b="text",...x}=e,S=E.useRef(null),_=_u(S,t,qQ(),u.actions.setInputElement),[T,D]=dn(u,B=>[B.comboboxState,B.isTyping]),w=Xs(),N=Qe(()=>{u.actions.onChange(null),u.state.optionsElement&&(u.state.optionsElement.scrollTop=0),u.actions.goToOption({focus:sn.Nothing})}),R=E.useMemo(()=>{var B;return typeof p=="function"&&a.value!==void 0?(B=p(a.value))!=null?B:"":typeof a.value=="string"?a.value:""},[a.value,p]);Q5(([B,te],[W,he])=>{if(u.state.isTyping)return;let de=S.current;de&&((he===$e.Open&&te===$e.Closed||B!==W)&&(de.value=B),requestAnimationFrame(()=>{if(u.state.isTyping||!de||r9(de))return;let{selectionStart:ue,selectionEnd:fe}=de;Math.abs((fe??0)-(ue??0))===0&&ue===0&&de.setSelectionRange(de.value.length,de.value.length)}))},[R,T,D]),Q5(([B],[te])=>{if(B===$e.Open&&te===$e.Closed){if(u.state.isTyping)return;let W=S.current;if(!W)return;let he=W.value,{selectionStart:de,selectionEnd:ue,selectionDirection:fe}=W;W.value="",W.value=he,fe!==null?W.setSelectionRange(de,ue,fe):W.setSelectionRange(de,ue)}},[T]);let M=E.useRef(!1),I=Qe(()=>{M.current=!0}),$=Qe(()=>{w.nextFrame(()=>{M.current=!1})}),L=Qe(B=>{switch(u.actions.setIsTyping(!0),B.key){case Dn.Enter:if(u.state.comboboxState!==$e.Open||M.current)return;if(B.preventDefault(),B.stopPropagation(),u.selectors.activeOptionIndex(u.state)===null){u.actions.closeCombobox();return}u.actions.selectActiveOption(),a.mode===ri.Single&&u.actions.closeCombobox();break;case Dn.ArrowDown:return B.preventDefault(),B.stopPropagation(),Mr(u.state.comboboxState,{[$e.Open]:()=>u.actions.goToOption({focus:sn.Next}),[$e.Closed]:()=>u.actions.openCombobox()});case Dn.ArrowUp:return B.preventDefault(),B.stopPropagation(),Mr(u.state.comboboxState,{[$e.Open]:()=>u.actions.goToOption({focus:sn.Previous}),[$e.Closed]:()=>{An.flushSync(()=>u.actions.openCombobox()),a.value||u.actions.goToOption({focus:sn.Last})}});case Dn.Home:if(u.state.comboboxState===$e.Closed||B.shiftKey)break;return B.preventDefault(),B.stopPropagation(),u.actions.goToOption({focus:sn.First});case Dn.PageUp:return B.preventDefault(),B.stopPropagation(),u.actions.goToOption({focus:sn.First});case Dn.End:if(u.state.comboboxState===$e.Closed||B.shiftKey)break;return B.preventDefault(),B.stopPropagation(),u.actions.goToOption({focus:sn.Last});case Dn.PageDown:return B.preventDefault(),B.stopPropagation(),u.actions.goToOption({focus:sn.Last});case Dn.Escape:return u.state.comboboxState!==$e.Open?void 0:(B.preventDefault(),u.state.optionsElement&&!a.optionsPropsRef.current.static&&B.stopPropagation(),a.mode===ri.Single&&a.value===null&&N(),u.actions.closeCombobox());case Dn.Tab:if(u.actions.setIsTyping(!1),u.state.comboboxState!==$e.Open)return;a.mode===ri.Single&&u.state.activationTrigger!==Dr.Focus&&u.actions.selectActiveOption(),u.actions.closeCombobox();break}}),z=Qe(B=>{h==null||h(B),a.mode===ri.Single&&B.target.value===""&&N(),u.actions.openCombobox()}),G=Qe(B=>{var te,W,he;let de=(te=B.relatedTarget)!=null?te:Go.find(ue=>ue!==B.currentTarget);if(!((W=u.state.optionsElement)!=null&&W.contains(de))&&!((he=u.state.buttonElement)!=null&&he.contains(de))&&u.state.comboboxState===$e.Open)return B.preventDefault(),a.mode===ri.Single&&a.value===null&&N(),u.actions.closeCombobox()}),J=Qe(B=>{var te,W,he;let de=(te=B.relatedTarget)!=null?te:Go.find(ue=>ue!==B.currentTarget);(W=u.state.buttonElement)!=null&&W.contains(de)||(he=u.state.optionsElement)!=null&&he.contains(de)||a.disabled||a.immediate&&u.state.comboboxState!==$e.Open&&w.microTask(()=>{An.flushSync(()=>u.actions.openCombobox()),u.actions.setActivationTrigger(Dr.Focus)})}),se=ph(),ie=fY(),{isFocused:ee,focusProps:F}=i9({autoFocus:v}),{isHovered:H,hoverProps:P}=n9({isDisabled:m}),V=dn(u,B=>B.optionsElement),re=Ea({open:T===$e.Open,disabled:m,invalid:a.invalid,hover:H,focus:ee,autofocus:v}),k=$v({ref:_,id:f,role:"combobox",type:b,"aria-controls":V==null?void 0:V.id,"aria-expanded":T===$e.Open,"aria-activedescendant":dn(u,u.selectors.activeDescendantId),"aria-labelledby":se,"aria-describedby":ie,"aria-autocomplete":"list",defaultValue:(i=(n=e.defaultValue)!=null?n:a.defaultValue!==void 0?p==null?void 0:p(a.defaultValue):null)!=null?i:a.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:I,onCompositionEnd:$,onKeyDown:L,onChange:z,onFocus:J,onBlur:G},F,P);return ir()({ourProps:k,theirProps:x,slot:re,defaultTag:xX,name:"Combobox.Input"})}let TX="button";function _X(e,t){let n=af("Combobox.Button"),i=Zs("Combobox.Button"),[u,a]=E.useState(null),s=_u(t,a,n.actions.setButtonElement),c=E.useId(),{id:f=`headlessui-combobox-button-${c}`,disabled:h=i.disabled||!1,autoFocus:p=!1,...m}=e,[v,b,x]=dn(n,J=>[J.comboboxState,J.inputElement,J.optionsElement]),S=w9(b),_=v===$e.Open;uQ(_,{trigger:u,action:E.useCallback(J=>{if(u!=null&&u.contains(J.target)||b!=null&&b.contains(J.target))return Gl.Ignore;let se=J.target.closest('[role="option"]:not([data-disabled])');return xo(se)?Gl.Select(se):x!=null&&x.contains(J.target)?Gl.Ignore:Gl.Close},[u,b,x]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let T=Qe(J=>{switch(J.key){case Dn.Space:case Dn.Enter:J.preventDefault(),J.stopPropagation(),n.state.comboboxState===$e.Closed&&An.flushSync(()=>n.actions.openCombobox()),S();return;case Dn.ArrowDown:J.preventDefault(),J.stopPropagation(),n.state.comboboxState===$e.Closed&&(An.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:sn.First})),S();return;case Dn.ArrowUp:J.preventDefault(),J.stopPropagation(),n.state.comboboxState===$e.Closed&&(An.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:sn.Last})),S();return;case Dn.Escape:if(n.state.comboboxState!==$e.Open)return;J.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&J.stopPropagation(),An.flushSync(()=>n.actions.closeCombobox()),S();return;default:return}}),D=LY(()=>{n.state.comboboxState===$e.Open?n.actions.closeCombobox():n.actions.openCombobox(),S()}),w=ph([f]),{isFocusVisible:N,focusProps:R}=i9({autoFocus:p}),{isHovered:M,hoverProps:I}=n9({isDisabled:h}),{pressed:$,pressProps:L}=BG({disabled:h}),z=Ea({open:v===$e.Open,active:$||v===$e.Open,disabled:h,invalid:i.invalid,value:i.value,hover:M,focus:N}),G=$v({ref:s,id:f,type:aQ(e,u),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":x==null?void 0:x.id,"aria-expanded":v===$e.Open,"aria-labelledby":w,disabled:h||void 0,autoFocus:p,onKeyDown:T},D,R,I,L);return ir()({ourProps:G,theirProps:m,slot:z,defaultTag:TX,name:"Combobox.Button"})}let CX="div",AX=t2.RenderStrategy|t2.Static;function wX(e,t){var n,i,u;let a=E.useId(),{id:s=`headlessui-combobox-options-${a}`,hold:c=!1,anchor:f,portal:h=!1,modal:p=!0,transition:m=!1,...v}=e,b=af("Combobox.Options"),x=Zs("Combobox.Options"),S=HQ(f);S&&(h=!0);let[_,T]=YQ(S),[D,w]=E.useState(null),N=GQ(),R=_u(t,S?_:null,b.actions.setOptionsElement,w),[M,I,$,L,z]=dn(b,Se=>[Se.comboboxState,Se.inputElement,Se.buttonElement,Se.optionsElement,Se.activationTrigger]),G=u2(I||$),J=u2(L),se=JQ(),[ie,ee]=EQ(m,D,se!==null?(se&Fc.Open)===Fc.Open:M===$e.Open);YY(ie,I,b.actions.closeCombobox);let F=x.__demoMode?!1:p&&M===$e.Open;pQ(F,J);let H=x.__demoMode?!1:p&&M===$e.Open;GY(H,{allowed:E.useCallback(()=>[I,$,L],[I,$,L])});let P=dn(b,b.selectors.didInputMove)?!1:ie;Qt(()=>{var Se;x.optionsPropsRef.current.static=(Se=e.static)!=null?Se:!1},[x.optionsPropsRef,e.static]),Qt(()=>{x.optionsPropsRef.current.hold=c},[x.optionsPropsRef,c]),CQ(M===$e.Open,{container:L,accept(Se){return Se.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:Se.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(Se){Se.setAttribute("role","none")}});let V=ph([$==null?void 0:$.id]),re=Ea({open:M===$e.Open,option:void 0}),k=Qe(()=>{b.actions.setActivationTrigger(Dr.Pointer)}),B=Qe(Se=>{Se.preventDefault(),b.actions.setActivationTrigger(Dr.Pointer)}),te=$v(S?N():{},{"aria-labelledby":V,role:"listbox","aria-multiselectable":x.mode===ri.Multi?!0:void 0,id:s,ref:R,style:{...v.style,...T,"--input-width":L5(ie,I,!0).width,"--button-width":L5(ie,$,!0).width},onWheel:z===Dr.Pointer?void 0:k,onMouseDown:B,...bQ(ee)}),W=ie&&M===$e.Closed&&!e.static,he=a2(W,(n=x.virtual)==null?void 0:n.options),de=a2(W,x.value),ue=E.useCallback(Se=>x.compare(de,Se),[x.compare,de]),fe=E.useMemo(()=>{if(!x.virtual)return x;if(he===void 0)throw new Error("Missing `options` in virtual mode");return he!==x.virtual.options?{...x,virtual:{...x.virtual,options:he}}:x},[x,he,(i=x.virtual)==null?void 0:i.options]);x.virtual&&Object.assign(v,{children:Oe.createElement(Ic.Provider,{value:fe},Oe.createElement(yX,{slot:re},v.children))});let me=ir(),_e=E.useMemo(()=>x.mode===ri.Multi?x:{...x,isSelected:ue},[x,ue]);return Oe.createElement(hX,{enabled:h?e.static||ie:!1,ownerDocument:G},Oe.createElement(Ic.Provider,{value:_e},me({ourProps:te,theirProps:{...v,children:Oe.createElement(KQ,{freeze:W},typeof v.children=="function"?(u=v.children)==null?void 0:u.call(v,re):v.children)},slot:re,defaultTag:CX,features:AX,visible:P,name:"Combobox.Options"})))}let DX="div";function NX(e,t){var n,i,u;let a=Zs("Combobox.Option"),s=af("Combobox.Option"),c=E.useId(),{id:f=`headlessui-combobox-option-${c}`,value:h,disabled:p=(u=(i=(n=a.virtual)==null?void 0:n.disabled)==null?void 0:i.call(n,h))!=null?u:!1,order:m=null,...v}=e,[b]=dn(s,ee=>[ee.inputElement]),x=w9(b),S=dn(s,E.useCallback(ee=>s.selectors.isActive(ee,h,f),[h,f])),_=a.isSelected(h),T=E.useRef(null),D=ba({disabled:p,value:h,domRef:T,order:m}),w=E.useContext(P9),N=_u(t,T,w?w.measureElement:null),R=Qe(()=>{s.actions.setIsTyping(!1),s.actions.onChange(h)});Qt(()=>s.actions.registerOption(f,D),[D,f]);let M=dn(s,E.useCallback(ee=>s.selectors.shouldScrollIntoView(ee,h,f),[h,f]));Qt(()=>{if(M)return ki().requestAnimationFrame(()=>{var ee,F;(F=(ee=T.current)==null?void 0:ee.scrollIntoView)==null||F.call(ee,{block:"nearest"})})},[M,T]);let I=Qe(ee=>{ee.preventDefault(),ee.button===zv.Left&&(p||(R(),r2()||requestAnimationFrame(()=>x()),a.mode===ri.Single&&s.actions.closeCombobox()))}),$=Qe(()=>{if(p)return s.actions.goToOption({focus:sn.Nothing});let ee=a.calculateIndex(h);s.actions.goToOption({focus:sn.Specific,idx:ee})}),L=mQ(),z=Qe(ee=>L.update(ee)),G=Qe(ee=>{if(!L.wasMoved(ee)||p||S&&s.state.activationTrigger===Dr.Pointer)return;let F=a.calculateIndex(h);s.actions.goToOption({focus:sn.Specific,idx:F},Dr.Pointer)}),J=Qe(ee=>{L.wasMoved(ee)&&(p||S&&(a.optionsPropsRef.current.hold||s.state.activationTrigger===Dr.Pointer&&s.actions.goToOption({focus:sn.Nothing})))}),se=Ea({active:S,focus:S,selected:_,disabled:p}),ie={id:f,ref:N,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":_,disabled:void 0,onMouseDown:I,onFocus:$,onPointerEnter:z,onMouseEnter:z,onPointerMove:G,onMouseMove:G,onPointerLeave:J,onMouseLeave:J};return ir()({ourProps:ie,theirProps:v,slot:se,defaultTag:DX,name:"Combobox.Option"})}let OX=rr(EX),RX=rr(_X),V9=rr(SX),MX=bY,$9=rr(wX),mh=rr(NX),kX=Object.assign(OX,{Input:V9,Button:RX,Label:MX,Options:$9,Option:mh});const LX=()=>{const e=ge.c(32),t=Iv(),{push:n}=fh(),i=E.useRef(null),u=FX(),[a,s]=E.useState("");let c;e[0]!==u||e[1]!==a?(c=()=>u(a),e[0]=u,e[1]=a,e[2]=c):c=e[2];const[f,h]=E.useState(c);let p;e[3]!==u?(p=ks(200,ie=>{h(u(ie))}),e[3]=u,e[4]=p):p=e[4];const m=p,[v]=E.useState(i),b=v.current===document.activeElement;let x,S;e[5]!==m||e[6]!==a?(x=()=>{m(a)},S=[m,a],e[5]=m,e[6]=a,e[7]=x,e[8]=S):(x=e[7],S=e[8]),E.useEffect(x,S);let _,T;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{const ie=function(F){F.metaKey&&F.key==="k"&&i.current.focus()};return window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)},T=[],e[9]=_,e[10]=T):(_=e[9],T=e[10]),E.useEffect(_,T);let D,w,N;if(e[11]!==t||e[12]!==n){D=t.at(-1);let ie;e[16]!==n?(ie=ee=>{n("field"in ee?{name:ee.field.name,def:ee.field}:{name:ee.type.name,def:ee.type})},e[16]=n,e[17]=ie):ie=e[17],w=ie,N=t.length===1||St(D.def)||Dt(D.def)||hn(D.def),e[11]=t,e[12]=n,e[13]=D,e[14]=w,e[15]=N}else D=e[13],w=e[14],N=e[15];if(!N)return null;const M=b?void 0:"idle",I=`Search ${D.name}...`;let $,L;e[18]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{i.current.focus()},$=A.jsx(PF,{}),e[18]=$,e[19]=L):($=e[18],L=e[19]);let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=ie=>s(ie.target.value),e[20]=z):z=e[20];let G;e[21]!==a?(G=A.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:L,children:[$,A.jsx(V9,{autoComplete:"off",onChange:z,placeholder:`${b2?"⌘":"Ctrl"} K`,ref:i,value:a,"data-cy":"doc-explorer-input"})]}),e[21]=a,e[22]=G):G=e[22];let J;e[23]!==b||e[24]!==f?(J=b&&A.jsxs($9,{"data-cy":"doc-explorer-list",children:[f.within.length+f.types.length+f.fields.length===0?A.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):f.within.map(IX),f.within.length>0&&f.types.length+f.fields.length>0?A.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,f.types.map(jX),f.fields.map(PX)]}),e[23]=b,e[24]=f,e[25]=J):J=e[25];let se;return e[26]!==w||e[27]!==G||e[28]!==J||e[29]!==M||e[30]!==I?(se=A.jsxs(kX,{as:"div",className:"graphiql-doc-explorer-search",onChange:w,"data-state":M,"aria-label":I,children:[G,J]}),e[26]=w,e[27]=G,e[28]=J,e[29]=M,e[30]=I,e[31]=se):se=e[31],se};function FX(){const e=ge.c(5),t=Iv(),{schema:n}=Lr();let i;e[0]!==t?(i=t.at(-1),e[0]=t,e[1]=i):i=e[1];const u=i;let a;return e[2]!==u||e[3]!==n?(a=s=>{const c={within:[],types:[],fields:[]};if(!n)return c;const f=u.def,h=n.getTypeMap();let p=Object.keys(h);f&&(p=p.filter(m=>m!==f.name),p.unshift(f.name));for(const m of p){if(c.within.length+c.types.length+c.fields.length>=100)break;const v=h[m];if(f!==v&&Fm(m,s)&&c.types.push({type:v}),!St(v)&&!Dt(v)&&!hn(v))continue;const b=v.getFields();for(const x in b){const S=b[x];let _;if(!Fm(x,s))if("args"in S){if(_=S.args.filter(T=>Fm(T.name,s)),_.length===0)continue}else continue;c[f===v?"within":"fields"].push(..._?_.map(T=>({type:v,field:S,argument:T})):[{type:v,field:S}])}}return c},e[2]=u,e[3]=n,e[4]=a):a=e[4],a}function Fm(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,i=>"\\"+i);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const Qv=e=>{const t=ge.c(2),{type:n}=e;let i;return t[0]!==n.name?(i=A.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],i},B9=e=>{const t=ge.c(7),{field:n,argument:i}=e;let u;t[0]!==n.name?(u=A.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=u):u=t[1];let a;t[2]!==i?(a=i?A.jsxs(A.Fragment,{children:["(",A.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:i.name}),":"," ",A0(i.type,VX),")"]}):null,t[2]=i,t[3]=a):a=t[3];let s;return t[4]!==u||t[5]!==a?(s=A.jsxs(A.Fragment,{children:[u,a]}),t[4]=u,t[5]=a,t[6]=s):s=t[6],s};function IX(e,t){return A.jsx(mh,{value:e,"data-cy":"doc-explorer-option",children:A.jsx(B9,{field:e.field,argument:e.argument})},`within-${t}`)}function jX(e,t){return A.jsx(mh,{value:e,"data-cy":"doc-explorer-option",children:A.jsx(Qv,{type:e.type})},`type-${t}`)}function PX(e,t){return A.jsxs(mh,{value:e,"data-cy":"doc-explorer-option",children:[A.jsx(Qv,{type:e.type}),".",A.jsx(B9,{field:e.field,argument:e.argument})]},`field-${t}`)}function VX(e){return A.jsx(Qv,{type:e})}const $X=e=>{const t=ge.c(6),{field:n}=e,{push:i}=fh();let u;t[0]!==n||t[1]!==i?(u=s=>{s.preventDefault(),i({name:n.name,def:n})},t[0]=n,t[1]=i,t[2]=u):u=t[2];let a;return t[3]!==n.name||t[4]!==u?(a=A.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:u,href:"#",children:n.name}),t[3]=n.name,t[4]=u,t[5]=a):a=t[5],a},BX=e=>{const t=ge.c(2),{type:n}=e;let i;return t[0]!==n?(i=d2(n)?A.jsxs(A.Fragment,{children:[n.description?A.jsx(Rr,{type:"description",children:n.description}):null,A.jsx(UX,{type:n}),A.jsx(zX,{type:n}),A.jsx(HX,{type:n}),A.jsx(qX,{type:n})]}):null,t[0]=n,t[1]=i):i=t[1],i},UX=e=>{const t=ge.c(5),{type:n}=e;if(!St(n))return null;let i;t[0]!==n?(i=n.getInterfaces(),t[0]=n,t[1]=i):i=t[1];const u=i;let a;return t[2]!==u.length||t[3]!==n?(a=u.length>0?A.jsx(Ri,{title:"Implements",children:n.getInterfaces().map(GX)}):null,t[2]=u.length,t[3]=n,t[4]=a):a=t[4],a},zX=e=>{const t=ge.c(12),{type:n}=e,[i,u]=E.useState(!1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{u(!0)},t[0]=a):a=t[0];const s=a;if(!St(n)&&!Dt(n)&&!hn(n))return null;let c,f,h;if(t[1]!==n){const v=n.getFields();f=[],c=[];for(const b of Object.keys(v).map(x=>v[x]))b.deprecationReason?c.push(b):f.push(b);h=f.length>0?A.jsx(Ri,{title:"Fields",children:f.map(YX)}):null,t[1]=n,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c||t[6]!==f.length||t[7]!==i?(p=c.length>0?i||f.length===0?A.jsx(Ri,{title:"Deprecated Fields",children:c.map(QX)}):A.jsx(Xi,{type:"button",onClick:s,children:"Show Deprecated Fields"}):null,t[5]=c,t[6]=f.length,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==h||t[10]!==p?(m=A.jsxs(A.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=m):m=t[11],m},U9=e=>{const t=ge.c(22),{field:n}=e;let i,u,a;if(t[0]!==n){const v="args"in n?n.args.filter(XX):[];a="graphiql-doc-explorer-item",i=A.jsx($X,{field:n}),u=v.length>0?A.jsxs(A.Fragment,{children:["(",A.jsx("span",{children:v.map(b=>v.length===1?A.jsx(w0,{arg:b,inline:!0},b.name):A.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:A.jsx(w0,{arg:b,inline:!0})},b.name))}),")"]}):null,t[0]=n,t[1]=i,t[2]=u,t[3]=a}else i=t[1],u=t[2],a=t[3];let s;t[4]!==n.type?(s=A.jsx(pu,{type:n.type}),t[4]=n.type,t[5]=s):s=t[5];let c;t[6]!==n?(c=A.jsx(UA,{field:n}),t[6]=n,t[7]=c):c=t[7];let f;t[8]!==i||t[9]!==u||t[10]!==s||t[11]!==c?(f=A.jsxs("div",{children:[i,u,": ",s,c]}),t[8]=i,t[9]=u,t[10]=s,t[11]=c,t[12]=f):f=t[12];let h;t[13]!==n.description?(h=n.description?A.jsx(Rr,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=h):h=t[14];let p;t[15]!==n.deprecationReason?(p=A.jsx(zA,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=p):p=t[16];let m;return t[17]!==a||t[18]!==f||t[19]!==h||t[20]!==p?(m=A.jsxs("div",{className:a,children:[f,h,p]}),t[17]=a,t[18]=f,t[19]=h,t[20]=p,t[21]=m):m=t[21],m},HX=e=>{const t=ge.c(12),{type:n}=e,[i,u]=E.useState(!1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{u(!0)},t[0]=a):a=t[0];const s=a;if(!si(n))return null;let c,f,h;if(t[1]!==n){h=[],c=[];for(const v of n.getValues())v.deprecationReason?c.push(v):h.push(v);f=h.length>0?A.jsx(Ri,{title:"Enum Values",children:h.map(ZX)}):null,t[1]=n,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c||t[6]!==i||t[7]!==h.length?(p=c.length>0?i||h.length===0?A.jsx(Ri,{title:"Deprecated Enum Values",children:c.map(WX)}):A.jsx(Xi,{type:"button",onClick:s,children:"Show Deprecated Values"}):null,t[5]=c,t[6]=i,t[7]=h.length,t[8]=p):p=t[8];let m;return t[9]!==f||t[10]!==p?(m=A.jsxs(A.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=m):m=t[11],m},z9=e=>{const t=ge.c(10),{value:n}=e;let i;t[0]!==n.name?(i=A.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let u;t[2]!==n.description?(u=n.description&&A.jsx(Rr,{type:"description",children:n.description}),t[2]=n.description,t[3]=u):u=t[3];let a;t[4]!==n.deprecationReason?(a=n.deprecationReason&&A.jsx(Rr,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=a):a=t[5];let s;return t[6]!==i||t[7]!==u||t[8]!==a?(s=A.jsxs("div",{className:"graphiql-doc-explorer-item",children:[i,u,a]}),t[6]=i,t[7]=u,t[8]=a,t[9]=s):s=t[9],s},qX=e=>{const t=ge.c(6),{type:n}=e,{schema:i}=Lr();if(!i||!mu(n))return null;const u=Dt(n)?"Implementations":"Possible Types";let a;t[0]!==i||t[1]!==n?(a=i.getPossibleTypes(n).map(KX),t[0]=i,t[1]=n,t[2]=a):a=t[2];let s;return t[3]!==u||t[4]!==a?(s=A.jsx(Ri,{title:u,children:a}),t[3]=u,t[4]=a,t[5]=s):s=t[5],s};function GX(e){return A.jsx("div",{children:A.jsx(pu,{type:e})},e.name)}function YX(e){return A.jsx(U9,{field:e},e.name)}function QX(e){return A.jsx(U9,{field:e},e.name)}function XX(e){return!e.deprecationReason}function ZX(e){return A.jsx(z9,{value:e},e.name)}function WX(e){return A.jsx(z9,{value:e},e.name)}function KX(e){return A.jsx("div",{children:A.jsx(pu,{type:e})},e.name)}const JX=()=>{const e=ge.c(38),{fetchError:t,isFetching:n,schema:i,validationErrors:u}=Lr(),a=Iv(),{pop:s}=fh();let c,f;if(e[0]!==a||e[1]!==t||e[2]!==n||e[3]!==i||e[4]!==u){if(f=a.at(-1),c=null,t){let T;e[7]===Symbol.for("react.memo_cache_sentinel")?(T=A.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[7]=T):T=e[7],c=T}else if(u.length>0){let T;e[8]!==u[0].message?(T=A.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",u[0].message]}),e[8]=u[0].message,e[9]=T):T=e[9],c=T}else if(n){let T;e[10]===Symbol.for("react.memo_cache_sentinel")?(T=A.jsx(J2,{}),e[10]=T):T=e[10],c=T}else if(i){if(a.length===1){let T;e[12]!==i?(T=A.jsx(fG,{schema:i}),e[12]=i,e[13]=T):T=e[13],c=T}else if(c2(f.def)){let T;e[14]!==f.def?(T=A.jsx(BX,{type:f.def}),e[14]=f.def,e[15]=T):T=e[15],c=T}else if(f.def){let T;e[16]!==f.def?(T=A.jsx(uG,{field:f.def}),e[16]=f.def,e[17]=T):T=e[17],c=T}}else{let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=A.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[11]=T):T=e[11],c=T}e[0]=a,e[1]=t,e[2]=n,e[3]=i,e[4]=u,e[5]=c,e[6]=f}else c=e[5],f=e[6];let h;if(a.length>1){let T;e[18]!==a?(T=a.at(-2),e[18]=a,e[19]=T):T=e[19],h=T.name}let p;e[20]!==s||e[21]!==h?(p=h&&A.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:T=>{T.preventDefault(),s()},"aria-label":`Go back to ${h}`,children:[A.jsx(_F,{}),h]}),e[20]=s,e[21]=h,e[22]=p):p=e[22];let m;e[23]!==f.name?(m=A.jsx("div",{className:"graphiql-doc-explorer-title",children:f.name}),e[23]=f.name,e[24]=m):m=e[24];let v;e[25]!==p||e[26]!==m?(v=A.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[p,m]}),e[25]=p,e[26]=m,e[27]=v):v=e[27];let b;e[28]!==f.name?(b=A.jsx(LX,{},f.name),e[28]=f.name,e[29]=b):b=e[29];let x;e[30]!==v||e[31]!==b?(x=A.jsxs("div",{className:"graphiql-doc-explorer-header",children:[v,b]}),e[30]=v,e[31]=b,e[32]=x):x=e[32];let S;e[33]!==c?(S=A.jsx("div",{className:"graphiql-doc-explorer-content",children:c}),e[33]=c,e[34]=S):S=e[34];let _;return e[35]!==x||e[36]!==S?(_=A.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[x,S]}),e[35]=x,e[36]=S,e[37]=_):_=e[37],_},H9={title:"Documentation Explorer",icon:function(){const{visiblePlugin:t}=$0();return t===H9?A.jsx(RF,{}):A.jsx(MF,{})},content:JX},eZ=e=>{var t,n;const i=ge.c(72);let u,a,s,c,f,h,p,m,v,b,x,S,_,T,D,w,N,R,M,I,$,L,z,G,J,se,ie,ee,F;i[0]!==e?({dangerouslyAssumeSchemaIsValid:a,confirmCloseTab:u,defaultQuery:c,defaultTabs:f,externalFragments:h,fetcher:p,getDefaultFieldNames:m,headers:v,inputValueDeprecation:b,introspectionQueryName:x,maxHistoryLength:S,onEditOperationName:_,onSchemaChange:T,onTabChange:D,onTogglePluginVisibility:w,operationName:N,plugins:J,referencePlugin:se,query:M,response:I,schema:$,schemaDescription:L,shouldPersistHeaders:z,storage:G,validationRules:ie,variables:ee,visiblePlugin:F,defaultHeaders:s,...R}=e,i[0]=e,i[1]=u,i[2]=a,i[3]=s,i[4]=c,i[5]=f,i[6]=h,i[7]=p,i[8]=m,i[9]=v,i[10]=b,i[11]=x,i[12]=S,i[13]=_,i[14]=T,i[15]=D,i[16]=w,i[17]=N,i[18]=R,i[19]=M,i[20]=I,i[21]=$,i[22]=L,i[23]=z,i[24]=G,i[25]=J,i[26]=se,i[27]=ie,i[28]=ee,i[29]=F):(u=i[1],a=i[2],s=i[3],c=i[4],f=i[5],h=i[6],p=i[7],m=i[8],v=i[9],b=i[10],x=i[11],S=i[12],_=i[13],T=i[14],D=i[15],w=i[16],N=i[17],R=i[18],M=i[19],I=i[20],$=i[21],L=i[22],z=i[23],G=i[24],J=i[25],se=i[26],ie=i[27],ee=i[28],F=i[29]);let H;i[30]!==J?(H=J===void 0?[]:J,i[30]=J,i[31]=H):H=i[31];const P=H,V=se===void 0?H9:se;if((t=R.toolbar)!=null&&t.additionalContent)throw new TypeError("`toolbar.additionalContent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");if((n=R.toolbar)!=null&&n.additionalComponent)throw new TypeError("`toolbar.additionalComponent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");let re;i[32]!==P||i[33]!==V?(re=[V,Kq,...P],i[32]=P,i[33]=V,i[34]=re):re=i[34];let k;i[35]!==a||i[36]!==s||i[37]!==c||i[38]!==f||i[39]!==h||i[40]!==p||i[41]!==m||i[42]!==v||i[43]!==b||i[44]!==x||i[45]!==_||i[46]!==T||i[47]!==D||i[48]!==w||i[49]!==N||i[50]!==M||i[51]!==V||i[52]!==I||i[53]!==$||i[54]!==L||i[55]!==z||i[56]!==G||i[57]!==re||i[58]!==ie||i[59]!==ee||i[60]!==F?(k={getDefaultFieldNames:m,dangerouslyAssumeSchemaIsValid:a,defaultQuery:c,defaultHeaders:s,defaultTabs:f,externalFragments:h,fetcher:p,headers:v,inputValueDeprecation:b,introspectionQueryName:x,onEditOperationName:_,onSchemaChange:T,onTabChange:D,onTogglePluginVisibility:w,plugins:re,referencePlugin:V,visiblePlugin:F,operationName:N,query:M,response:I,schema:$,schemaDescription:L,shouldPersistHeaders:z,storage:G,validationRules:ie,variables:ee},i[35]=a,i[36]=s,i[37]=c,i[38]=f,i[39]=h,i[40]=p,i[41]=m,i[42]=v,i[43]=b,i[44]=x,i[45]=_,i[46]=T,i[47]=D,i[48]=w,i[49]=N,i[50]=M,i[51]=V,i[52]=I,i[53]=$,i[54]=L,i[55]=z,i[56]=G,i[57]=re,i[58]=ie,i[59]=ee,i[60]=F,i[61]=k):k=i[61];const B=k,te=z!==!1;let W;i[62]!==u||i[63]!==R||i[64]!==te?(W=A.jsx(Jq,{children:A.jsx(nZ,{confirmCloseTab:u,showPersistHeadersSettings:te,forcedTheme:R.forcedTheme,...R})}),i[62]=u,i[63]=R,i[64]=te,i[65]=W):W=i[65];let he;i[66]!==S||i[67]!==W?(he=A.jsx($q,{maxHistoryLength:S,children:W}),i[66]=S,i[67]=W,i[68]=he):he=i[68];let de;return i[69]!==B||i[70]!==he?(de=A.jsx(zL,{...B,children:he}),i[69]=B,i[70]=he,i[71]=de):de=i[71],de},tZ=["light","dark","system"],Im="graphiql-session-tab-",nZ=e=>{const t=ge.c(234),n=e.isHeadersEditorEnabled??!0;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0},t[0]=i):i=t[0];const{initialVariables:u,initialHeaders:a,setShouldPersistHeaders:s,addTab:c,moveTab:f,closeTab:h,changeTab:p,shouldPersistHeaders:m,tabs:v,activeTabIndex:b}=xn(i);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={nonNull:!0},t[1]=x):x=t[1];const S=zs(x),{isFetching:_,introspect:T}=Lr(),D=Bs(),{visiblePlugin:w,setVisiblePlugin:N,plugins:R}=$0(),M=e.forcedTheme&&tZ.includes(e.forcedTheme)?e.forcedTheme:void 0,{theme:I,setTheme:$}=HL(e.defaultTheme);let L,z;t[2]!==M||t[3]!==$?(L=()=>{M==="system"?$(null):(M==="light"||M==="dark")&&$(M)},z=[M,$],t[2]=M,t[3]=$,t[4]=L,t[5]=z):(L=t[4],z=t[5]),E.useEffect(L,z);const G=w==null?void 0:w.content,J=w?void 0:"first";let se;t[6]!==N||t[7]!==J?(se={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:J,onHiddenElementChange(Ue){Ue==="first"&&N(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[6]=N,t[7]=J,t[8]=se):se=t[8];const ie=W1(se);let ee;t[9]===Symbol.for("react.memo_cache_sentinel")?(ee={direction:"horizontal",storageKey:"editorFlex"},t[9]=ee):ee=t[9];const F=W1(ee);let H;e:{if(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"){H=void 0;break e}if(typeof e.defaultEditorToolsVisibility=="boolean"){H=e.defaultEditorToolsVisibility?void 0:"second";break e}H=u||a?void 0:"second"}let P;t[10]!==H?(P={defaultSizeRelation:3,direction:"vertical",initiallyHidden:H,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[10]=H,t[11]=P):P=t[11];const V=W1(P);let re;t[12]!==a||t[13]!==u||t[14]!==n||t[15]!==e.defaultEditorToolsVisibility?(re=()=>e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!u&&a&&n?"headers":"variables",t[12]=a,t[13]=u,t[14]=n,t[15]=e.defaultEditorToolsVisibility,t[16]=re):re=t[16];const[k,B]=E.useState(re),[te,W]=E.useState(null),[he,de]=E.useState(null);let ue;if(t[17]!==e.children||t[18]!==e.onCopyQuery||t[19]!==e.onPrettifyQuery){let Ue;t[21]!==e.onCopyQuery||t[22]!==e.onPrettifyQuery?(Ue=(Nt,Zn)=>{e:switch(cZ(Zn)){case fs.Logo:{Nt.logo=Zn;break e}case fs.Toolbar:{Nt.toolbar=E.cloneElement(Zn,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery});break e}case fs.Footer:{Nt.footer=Zn;break e}default:Nt.children.push(Zn)}return Nt},t[21]=e.onCopyQuery,t[22]=e.onPrettifyQuery,t[23]=Ue):Ue=t[23];let Ct;t[24]===Symbol.for("react.memo_cache_sentinel")?(Ct=A.jsx(fs.Logo,{}),t[24]=Ct):Ct=t[24];let Lt;t[25]!==e.onCopyQuery||t[26]!==e.onPrettifyQuery?(Lt=A.jsx(fs.Toolbar,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery}),t[25]=e.onCopyQuery,t[26]=e.onPrettifyQuery,t[27]=Lt):Lt=t[27],ue=E.Children.toArray(e.children).reduce(Ue,{logo:Ct,toolbar:Lt,children:[]}),t[17]=e.children,t[18]=e.onCopyQuery,t[19]=e.onPrettifyQuery,t[20]=ue}else ue=t[20];const{logo:fe,toolbar:me,footer:_e,children:Se}=ue;let ct;t[28]!==ie?(ct=()=>{ie.hiddenElement==="first"&&ie.setHiddenElement(null)},t[28]=ie,t[29]=ct):ct=t[29];const Ce=ct;let rt;t[30]!==D?(rt=()=>{try{D.clear(),de("success")}catch{de("error")}},t[30]=D,t[31]=rt):rt=t[31];const Xt=rt;let Zt;t[32]!==s?(Zt=Ue=>{s(Ue.currentTarget.dataset.value==="true")},t[32]=s,t[33]=Zt):Zt=t[33];const un=Zt;let xe;t[34]!==$?(xe=Ue=>{const Ct=Ue.currentTarget.dataset.theme;$(Ct||null)},t[34]=$,t[35]=xe):xe=t[35];const Me=xe;let De;t[36]===Symbol.for("react.memo_cache_sentinel")?(De=Ue=>{W(Ue.currentTarget.dataset.value)},t[36]=De):De=t[36];const ke=De;let Tt;t[37]!==ie||t[38]!==R||t[39]!==N||t[40]!==w?(Tt=Ue=>{const Ct=Number(Ue.currentTarget.dataset.index),Lt=R.find((Zn,Ks)=>Ct===Ks);Lt===w?(N(null),ie.setHiddenElement("first")):(N(Lt),ie.setHiddenElement(null))},t[37]=ie,t[38]=R,t[39]=N,t[40]=w,t[41]=Tt):Tt=t[41];const Xe=Tt;let ft;t[42]!==V?(ft=Ue=>{V.hiddenElement==="second"&&V.setHiddenElement(null),B(Ue.currentTarget.dataset.name)},t[42]=V,t[43]=ft):ft=t[43];const Li=ft;let So;t[44]!==V?(So=()=>{V.setHiddenElement(V.hiddenElement==="second"?null:"second")},t[44]=V,t[45]=So):So=t[45];const xa=So;let Vr;t[46]===Symbol.for("react.memo_cache_sentinel")?(Vr=Ue=>{Ue||W(null)},t[46]=Vr):Vr=t[46];const gh=Vr;let To;t[47]===Symbol.for("react.memo_cache_sentinel")?(To=Ue=>{Ue||(W(null),de(null))},t[47]=To):To=t[47];const vh=To,Sa=e.confirmCloseTab;let ur;t[48]!==b||t[49]!==h||t[50]!==Sa||t[51]!==S?(ur=async Ue=>{const Ct=Ue.currentTarget.previousSibling,Lt=Number(Ct.id.replace(Im,""));(!Sa||await Sa(Lt))&&(b===Lt&&S.stop(),h(Lt))},t[48]=b,t[49]=h,t[50]=Sa,t[51]=S,t[52]=ur):ur=t[52];const Wt=ur;let qn;t[53]!==p||t[54]!==S?(qn=Ue=>{const Ct=Number(Ue.currentTarget.id.replace(Im,""));S.stop(),p(Ct)},t[53]=p,t[54]=S,t[55]=qn):qn=t[55];const Kt=qn;let Cu;t[56]!==e.className?(Cu=ht("graphiql-container",e.className),t[56]=e.className,t[57]=Cu):Cu=t[57];let Au;if(t[58]!==Xe||t[59]!==R||t[60]!==w){let Ue;t[62]!==Xe||t[63]!==w?(Ue=(Ct,Lt)=>{const Nt=Ct===w,Zn=`${Nt?"Hide":"Show"} ${Ct.title}`;return A.jsx(Bn,{label:Zn,children:A.jsx(nn,{type:"button",className:ht(Nt&&"active"),onClick:Xe,"data-index":Lt,"aria-label":Zn,children:A.jsx(Ct.icon,{"aria-hidden":"true"})})},Ct.title)},t[62]=Xe,t[63]=w,t[64]=Ue):Ue=t[64],Au=R.map(Ue),t[58]=Xe,t[59]=R,t[60]=w,t[61]=Au}else Au=t[61];let Ta;t[65]===Symbol.for("react.memo_cache_sentinel")?(Ta={marginTop:"auto"},t[65]=Ta):Ta=t[65];const wu=_&&"graphiql-spin";let Fi;t[66]!==wu?(Fi=ht(wu),t[66]=wu,t[67]=Fi):Fi=t[67];let Ii;t[68]!==Fi?(Ii=A.jsx(HF,{className:Fi,"aria-hidden":"true"}),t[68]=Fi,t[69]=Ii):Ii=t[69];let Ln;t[70]!==T||t[71]!==_||t[72]!==Ii?(Ln=A.jsx(Bn,{label:"Re-fetch GraphQL schema",children:A.jsx(nn,{type:"button",disabled:_,onClick:T,"aria-label":"Re-fetch GraphQL schema",style:Ta,children:Ii})}),t[70]=T,t[71]=_,t[72]=Ii,t[73]=Ln):Ln=t[73];let $r;t[74]===Symbol.for("react.memo_cache_sentinel")?($r=A.jsx(Bn,{label:"Open short keys dialog",children:A.jsx(nn,{type:"button","data-value":"short-keys",onClick:ke,"aria-label":"Open short keys dialog",children:A.jsx(jF,{"aria-hidden":"true"})})}),t[74]=$r):$r=t[74];let or;t[75]===Symbol.for("react.memo_cache_sentinel")?(or=A.jsx(Bn,{label:"Open settings dialog",children:A.jsx(nn,{type:"button","data-value":"settings",onClick:ke,"aria-label":"Open settings dialog",children:A.jsx(GF,{"aria-hidden":"true"})})}),t[75]=or):or=t[75];let Du;t[76]!==Au||t[77]!==Ln?(Du=A.jsxs("div",{className:"graphiql-sidebar",children:[Au,Ln,$r,or]}),t[76]=Au,t[77]=Ln,t[78]=Du):Du=t[78];let _o;t[79]===Symbol.for("react.memo_cache_sentinel")?(_o={minWidth:"200px"},t[79]=_o):_o=t[79];let ar;t[80]!==G?(ar=G?A.jsx(G,{}):null,t[80]=G,t[81]=ar):ar=t[81];let ci;t[82]!==ie.firstRef||t[83]!==ar?(ci=A.jsx("div",{ref:ie.firstRef,className:"graphiql-plugin",style:_o,children:ar}),t[82]=ie.firstRef,t[83]=ar,t[84]=ci):ci=t[84];let Nu;t[85]!==ie.dragBarRef||t[86]!==w?(Nu=w&&A.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:ie.dragBarRef}),t[85]=ie.dragBarRef,t[86]=w,t[87]=Nu):Nu=t[87];const sf=ie.secondRef;let Br;if(t[88]!==b||t[89]!==Kt||t[90]!==Wt||t[91]!==v){let Ue;t[93]!==b||t[94]!==Kt||t[95]!==Wt?(Ue=(Ct,Lt,Nt)=>A.jsxs(_m,{value:Ct,isActive:Lt===b,children:[A.jsx(_m.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${Lt}`,title:Ct.title,onClick:Kt,children:Ct.title}),Nt.length>1&&A.jsx(_m.Close,{onClick:Wt})]},Ct.id),t[93]=b,t[94]=Kt,t[95]=Wt,t[96]=Ue):Ue=t[96],Br=v.map(Ue),t[88]=b,t[89]=Kt,t[90]=Wt,t[91]=v,t[92]=Br}else Br=t[92];let Ur;t[97]!==f||t[98]!==Br||t[99]!==v?(Ur=A.jsx(OA,{values:v,onReorder:f,"aria-label":"Select active operation",className:"no-scrollbar",children:Br}),t[97]=f,t[98]=Br,t[99]=v,t[100]=Ur):Ur=t[100];let Ou;t[101]===Symbol.for("react.memo_cache_sentinel")?(Ou=A.jsx(UF,{"aria-hidden":"true"}),t[101]=Ou):Ou=t[101];let sr;t[102]!==c?(sr=A.jsx(Bn,{label:"New tab",children:A.jsx(nn,{type:"button",className:"graphiql-tab-add",onClick:c,"aria-label":"New tab",children:Ou})}),t[102]=c,t[103]=sr):sr=t[103];let zr;t[104]!==fe||t[105]!==Ur||t[106]!==sr?(zr=A.jsxs("div",{className:"graphiql-session-header",children:[Ur,sr,fe]}),t[104]=fe,t[105]=Ur,t[106]=sr,t[107]=zr):zr=t[107];const _a=`${Im}${b}`,lr=F.firstRef;let _t;t[108]!==Ce||t[109]!==e.editorTheme||t[110]!==e.keyMap||t[111]!==e.onCopyQuery||t[112]!==e.onEditQuery||t[113]!==e.onPrettifyQuery||t[114]!==e.readOnly?(_t=A.jsx(GT,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:Ce,onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),t[108]=Ce,t[109]=e.editorTheme,t[110]=e.keyMap,t[111]=e.onCopyQuery,t[112]=e.onEditQuery,t[113]=e.onPrettifyQuery,t[114]=e.readOnly,t[115]=_t):_t=t[115];let Jt;t[116]===Symbol.for("react.memo_cache_sentinel")?(Jt=A.jsx(Yg,{}),t[116]=Jt):Jt=t[116];let Gn;t[117]!==me?(Gn=A.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[Jt,me]}),t[117]=me,t[118]=Gn):Gn=t[118];let cr;t[119]!==V.firstRef||t[120]!==_t||t[121]!==Gn?(cr=A.jsxs("section",{className:"graphiql-query-editor","aria-label":"Query Editor",ref:V.firstRef,children:[_t,Gn]}),t[119]=V.firstRef,t[120]=_t,t[121]=Gn,t[122]=cr):cr=t[122];const yh=V.dragBarRef,Ws=k==="variables"&&V.hiddenElement!=="second"&&"active";let Hr;t[123]!==Ws?(Hr=ht(Ws),t[123]=Ws,t[124]=Hr):Hr=t[124];let fi;t[125]!==Li||t[126]!==Hr?(fi=A.jsx(nn,{type:"button",className:Hr,onClick:Li,"data-name":"variables",children:"Variables"}),t[125]=Li,t[126]=Hr,t[127]=fi):fi=t[127];let fr;t[128]!==k||t[129]!==V.hiddenElement||t[130]!==Li||t[131]!==n?(fr=n&&A.jsx(nn,{type:"button",className:ht(k==="headers"&&V.hiddenElement!=="second"&&"active"),onClick:Li,"data-name":"headers",children:"Headers"}),t[128]=k,t[129]=V.hiddenElement,t[130]=Li,t[131]=n,t[132]=fr):fr=t[132];const dr=V.hiddenElement==="second"?"Show editor tools":"Hide editor tools",hr=V.hiddenElement==="second"?"Show editor tools":"Hide editor tools";let di;t[133]!==V.hiddenElement?(di=V.hiddenElement==="second"?A.jsx(CF,{className:"graphiql-chevron-icon","aria-hidden":"true"}):A.jsx(TF,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[133]=V.hiddenElement,t[134]=di):di=t[134];let Yn;t[135]!==hr||t[136]!==di||t[137]!==xa?(Yn=A.jsx(nn,{type:"button",onClick:xa,"aria-label":hr,className:"graphiql-toggle-editor-tools",children:di}),t[135]=hr,t[136]=di,t[137]=xa,t[138]=Yn):Yn=t[138];let vt;t[139]!==dr||t[140]!==Yn?(vt=A.jsx(Bn,{label:dr,children:Yn}),t[139]=dr,t[140]=Yn,t[141]=vt):vt=t[141];let qr;t[142]!==V.dragBarRef||t[143]!==fi||t[144]!==fr||t[145]!==vt?(qr=A.jsxs("div",{ref:yh,className:"graphiql-editor-tools",children:[fi,fr,vt]}),t[142]=V.dragBarRef,t[143]=fi,t[144]=fr,t[145]=vt,t[146]=qr):qr=t[146];const Ca=k==="variables"?"Variables":"Headers",ji=k!=="variables";let Qn;t[147]!==Ce||t[148]!==e.editorTheme||t[149]!==e.keyMap||t[150]!==e.onEditVariables||t[151]!==e.readOnly||t[152]!==ji?(Qn=A.jsx(mg,{editorTheme:e.editorTheme,isHidden:ji,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:Ce,readOnly:e.readOnly}),t[147]=Ce,t[148]=e.editorTheme,t[149]=e.keyMap,t[150]=e.onEditVariables,t[151]=e.readOnly,t[152]=ji,t[153]=Qn):Qn=t[153];let Ru;t[154]!==k||t[155]!==n||t[156]!==e.editorTheme||t[157]!==e.keyMap||t[158]!==e.onEditHeaders||t[159]!==e.readOnly?(Ru=n&&A.jsx(pg,{editorTheme:e.editorTheme,isHidden:k!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}),t[154]=k,t[155]=n,t[156]=e.editorTheme,t[157]=e.keyMap,t[158]=e.onEditHeaders,t[159]=e.readOnly,t[160]=Ru):Ru=t[160];let Gr;t[161]!==V.secondRef||t[162]!==Ca||t[163]!==Qn||t[164]!==Ru?(Gr=A.jsxs("section",{className:"graphiql-editor-tool","aria-label":Ca,ref:V.secondRef,children:[Qn,Ru]}),t[161]=V.secondRef,t[162]=Ca,t[163]=Qn,t[164]=Ru,t[165]=Gr):Gr=t[165];let Yr;t[166]!==F.firstRef||t[167]!==cr||t[168]!==qr||t[169]!==Gr?(Yr=A.jsxs("div",{className:"graphiql-editors",ref:lr,children:[cr,qr,Gr]}),t[166]=F.firstRef,t[167]=cr,t[168]=qr,t[169]=Gr,t[170]=Yr):Yr=t[170];let Mu;t[171]!==F.dragBarRef?(Mu=A.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:F.dragBarRef}),t[171]=F.dragBarRef,t[172]=Mu):Mu=t[172];let Pi;t[173]!==S.isFetching?(Pi=S.isFetching?A.jsx(J2,{}):null,t[173]=S.isFetching,t[174]=Pi):Pi=t[174];let Vi;t[175]!==e.editorTheme||t[176]!==e.keyMap||t[177]!==e.responseTooltip?(Vi=A.jsx(QT,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),t[175]=e.editorTheme,t[176]=e.keyMap,t[177]=e.responseTooltip,t[178]=Vi):Vi=t[178];let Sn;t[179]!==F.secondRef||t[180]!==_e||t[181]!==Pi||t[182]!==Vi?(Sn=A.jsxs("div",{className:"graphiql-response",ref:F.secondRef,children:[Pi,Vi,_e]}),t[179]=F.secondRef,t[180]=_e,t[181]=Pi,t[182]=Vi,t[183]=Sn):Sn=t[183];let en;t[184]!==_a||t[185]!==Yr||t[186]!==Mu||t[187]!==Sn?(en=A.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":_a,children:[Yr,Mu,Sn]}),t[184]=_a,t[185]=Yr,t[186]=Mu,t[187]=Sn,t[188]=en):en=t[188];let Qr;t[189]!==ie.secondRef||t[190]!==zr||t[191]!==en?(Qr=A.jsxs("div",{ref:sf,className:"graphiql-sessions",children:[zr,en]}),t[189]=ie.secondRef,t[190]=zr,t[191]=en,t[192]=Qr):Qr=t[192];let ku;t[193]!==ci||t[194]!==Nu||t[195]!==Qr?(ku=A.jsxs("div",{className:"graphiql-main",children:[ci,Nu,Qr]}),t[193]=ci,t[194]=Nu,t[195]=Qr,t[196]=ku):ku=t[196];const Co=te==="short-keys";let Ao;t[197]===Symbol.for("react.memo_cache_sentinel")?(Ao=A.jsxs("div",{className:"graphiql-dialog-header",children:[A.jsx(ls.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),A.jsx(ls.Close,{})]}),t[197]=Ao):Ao=t[197];let $i;t[198]!==e.keyMap?($i=A.jsx("div",{className:"graphiql-dialog-section",children:A.jsx(rZ,{keyMap:e.keyMap})}),t[198]=e.keyMap,t[199]=$i):$i=t[199];let Lu;t[200]!==Co||t[201]!==$i?(Lu=A.jsxs(ls,{open:Co,onOpenChange:gh,children:[Ao,$i]}),t[200]=Co,t[201]=$i,t[202]=Lu):Lu=t[202];const Tn=te==="settings";let Fu;t[203]===Symbol.for("react.memo_cache_sentinel")?(Fu=A.jsxs("div",{className:"graphiql-dialog-header",children:[A.jsx(ls.Title,{className:"graphiql-dialog-title",children:"Settings"}),A.jsx(ls.Close,{})]}),t[203]=Fu):Fu=t[203];let Xr;t[204]!==un||t[205]!==e.showPersistHeadersSettings||t[206]!==m?(Xr=e.showPersistHeadersSettings?A.jsxs("div",{className:"graphiql-dialog-section",children:[A.jsxs("div",{children:[A.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),A.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",A.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),A.jsxs(gg,{children:[A.jsx(Xi,{type:"button",id:"enable-persist-headers",className:ht(m&&"active"),"data-value":"true",onClick:un,children:"On"}),A.jsx(Xi,{type:"button",id:"disable-persist-headers",className:ht(!m&&"active"),onClick:un,children:"Off"})]})]}):null,t[204]=un,t[205]=e.showPersistHeadersSettings,t[206]=m,t[207]=Xr):Xr=t[207];let pr;t[208]!==M||t[209]!==Me||t[210]!==I?(pr=!M&&A.jsxs("div",{className:"graphiql-dialog-section",children:[A.jsxs("div",{children:[A.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),A.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),A.jsxs(gg,{children:[A.jsx(Xi,{type:"button",className:ht(I===null&&"active"),onClick:Me,children:"System"}),A.jsx(Xi,{type:"button",className:ht(I==="light"&&"active"),"data-theme":"light",onClick:Me,children:"Light"}),A.jsx(Xi,{type:"button",className:ht(I==="dark"&&"active"),"data-theme":"dark",onClick:Me,children:"Dark"})]})]}),t[208]=M,t[209]=Me,t[210]=I,t[211]=pr):pr=t[211];let Bi;t[212]===Symbol.for("react.memo_cache_sentinel")?(Bi=A.jsxs("div",{children:[A.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),A.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[212]=Bi):Bi=t[212];const Aa=he||void 0,wa=he==="success";let Xn;t[213]!==he?(Xn={success:"Cleared data",error:"Failed"}[he]||"Clear data",t[213]=he,t[214]=Xn):Xn=t[214];let Iu;t[215]!==Xt||t[216]!==Aa||t[217]!==wa||t[218]!==Xn?(Iu=A.jsxs("div",{className:"graphiql-dialog-section",children:[Bi,A.jsx(Xi,{type:"button",state:Aa,disabled:wa,onClick:Xt,children:Xn})]}),t[215]=Xt,t[216]=Aa,t[217]=wa,t[218]=Xn,t[219]=Iu):Iu=t[219];let Zr;t[220]!==Tn||t[221]!==Xr||t[222]!==pr||t[223]!==Iu?(Zr=A.jsxs(ls,{open:Tn,onOpenChange:vh,children:[Fu,Xr,pr,Iu]}),t[220]=Tn,t[221]=Xr,t[222]=pr,t[223]=Iu,t[224]=Zr):Zr=t[224];let Wr;t[225]!==Cu||t[226]!==Du||t[227]!==ku||t[228]!==Lu||t[229]!==Zr?(Wr=A.jsxs("div",{className:Cu,children:[Du,ku,Lu,Zr]}),t[225]=Cu,t[226]=Du,t[227]=ku,t[228]=Lu,t[229]=Zr,t[230]=Wr):Wr=t[230];let ju;return t[231]!==Se||t[232]!==Wr?(ju=A.jsxs(Bn.Provider,{children:[Wr,Se]}),t[231]=Se,t[232]=Wr,t[233]=ju):ju=t[233],ju},jm=b2?"⌘":"Ctrl",iZ=Object.entries({"Search in editor":[jm,"F"],"Search in documentation":[jm,"K"],"Execute query":[jm,"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"]}),rZ=e=>{const t=ge.c(5),{keyMap:n}=e,i=n===void 0?"sublime":n;let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=A.jsxs("table",{className:"graphiql-table",children:[A.jsx("thead",{children:A.jsxs("tr",{children:[A.jsx("th",{children:"Short Key"}),A.jsx("th",{children:"Function"})]})}),A.jsx("tbody",{children:iZ.map(dZ)})]}),t[0]=u):u=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=A.jsx("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer",children:"CodeMirror Key Maps"}),t[1]=a):a=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=A.jsx("em",{children:"i"}),t[2]=s):s=t[2];let c;return t[3]!==i?(c=A.jsxs("div",{children:[u,A.jsxs("p",{children:["The editors use"," ",a," ","that add more short keys. This instance of Graph",s,"QL uses"," ",A.jsx("code",{children:i}),"."]})]}),t[3]=i,t[4]=c):c=t[4],c},uZ=A.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",A.jsx("em",{children:"i"}),"QL"]}),oZ=e=>{const t=ge.c(2),{children:n}=e,i=n===void 0?uZ:n;let u;return t[0]!==i?(u=A.jsx("div",{className:"graphiql-logo",children:i}),t[0]=i,t[1]=u):u=t[1],u},aZ=e=>{const t=ge.c(4),{prettify:n,copy:i,merge:u}=e;let a;return t[0]!==i||t[1]!==u||t[2]!==n?(a=A.jsxs(A.Fragment,{children:[n,u,i]}),t[0]=i,t[1]=u,t[2]=n,t[3]=a):a=t[3],a},sZ=({children:e=aZ,onCopyQuery:t,onPrettifyQuery:n})=>{"use no memo";if(typeof e!="function")throw new TypeError("The `GraphiQL.Toolbar` component requires a render prop function as its child.");const i=D2({onCopyQuery:t}),u=qc(),a=Gc({onPrettifyQuery:n}),s=A.jsx(e0,{onClick:a,label:"Prettify query (Shift-Ctrl-P)",children:A.jsx(zF,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),c=A.jsx(e0,{onClick:u,label:"Merge fragments into query (Shift-Ctrl-M)",children:A.jsx(VF,{className:"graphiql-toolbar-icon","aria-hidden":"true"})});return e({prettify:s,copy:A.jsx(e0,{onClick:i,label:"Copy query (Shift-Ctrl-C)",children:A.jsx(AF,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),merge:c})},lZ=e=>{const t=ge.c(2);let n;return t[0]!==e.children?(n=A.jsx("div",{className:"graphiql-footer",children:e.children}),t[0]=e.children,t[1]=n):n=t[1],n};function cZ(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}const fs=Object.assign(eZ,{Logo:oZ,Toolbar:sZ,Footer:lZ});function fZ(e,t,n){return A.jsxs(E.Fragment,{children:[A.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function dZ(e){const[t,n]=e;return A.jsxs("tr",{children:[A.jsx("td",{children:n.map(fZ)}),A.jsx("td",{children:t})]},t)}const hZ={clear(){},getItem(e){return null},length:0,removeItem(e){},setItem(e,t){}},pZ=({apiType:e})=>{const{adminApiUrl:t,shopApiUrl:n}=window.GRAPHIQL_SETTINGS??{adminApiUrl:"http://localhost:3000/admin-api",shopApiUrl:"http://localhost:3000/shop-api"},i=e==="admin"?t:n,u=e==="admin"?"Admin API":"Shop API",a=new URLSearchParams(window.location.search),s=a.get("query")??void 0,c=a.get("embeddedMode")==="true",f=c?hZ:void 0,h=E.useCallback(()=>YN({url:i,subscriptionUrl:i.replace(/^http/,"ws")}),[i]),p=m=>{if(m!==e){const v=window.location.pathname.split("/"),b=v.length>1?`/${v[1]}`:"";window.location.href=`${b}/${m}`}};return A.jsxs("div",{className:"graphiql-app",children:[c?null:A.jsxs("div",{className:"vendure-header",children:[A.jsxs("h1",{children:["Vendure GraphiQL - ",u]}),A.jsxs("div",{className:"switch-api",children:[A.jsx("span",{children:"Switch API:"}),A.jsx("a",{href:"#",className:e==="admin"?"active":"",onClick:m=>{m.preventDefault(),p("admin")},children:"Admin API"}),A.jsx("a",{href:"#",className:e==="shop"?"active":"",onClick:m=>{m.preventDefault(),p("shop")},children:"Shop API"})]})]}),A.jsx("div",{className:"graphiql-wrapper",children:A.jsx(fs,{className:c?"embedded-mode":void 0,fetcher:h(),storage:f,defaultEditorToolsVisibility:!c,query:s})})]})},q9=window.location.pathname;q9.includes("/admin");const mZ=q9.includes("/shop"),gZ=mZ?"shop":"admin",rS=document.getElementById("root");rS&&iD.createRoot(rS).render(A.jsx(Oe.StrictMode,{children:A.jsx(pZ,{apiType:gZ})}));export{vO as $,dN as A,hn as B,sN as C,Ae as D,SS as E,_i as F,tt as G,xS as H,qd as I,Wi as J,X as K,kN as L,nt as M,EZ as N,Ci as O,bZ as P,ha as Q,bO as R,r6 as S,zS as T,Ge as U,Un as V,p2 as W,Vs as X,hc as Y,pc as Z,mc as _,xZ as a,gO as a0,mO as a1,cn as a2,pa as a3,Fe as a4,Ze as a5,M1 as a6,jt as a7,Dt as b,St as c,HD as d,ho as e,vN as f,da as g,O0 as h,mu as i,ye as j,fN as k,$S as l,Nn as m,qD as n,Mn as o,ai as p,Vt as q,L0 as r,YD as s,gc as t,lN as u,h2 as v,ES as w,c2 as x,Ql as y,hN as z};
|
|
375
|
+
//# sourceMappingURL=index-ClC-PD84.js.map
|