@vendure/graphiql-plugin 3.8.0-minor-202610110227 → 3.8.0
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-CfKqfWu3.js → SchemaReference-CDyfOppZ.js} +2 -2
- package/dist/graphiql/assets/{SchemaReference-CfKqfWu3.js.map → SchemaReference-CDyfOppZ.js.map} +1 -1
- package/dist/graphiql/assets/{brace-fold-C5O-tk8b.js → brace-fold-EB2Pe2oz.js} +2 -2
- package/dist/graphiql/assets/{brace-fold-C5O-tk8b.js.map → brace-fold-EB2Pe2oz.js.map} +1 -1
- package/dist/graphiql/assets/{closebrackets-D2KlGt8z.js → closebrackets-ByoMqinT.js} +2 -2
- package/dist/graphiql/assets/{closebrackets-D2KlGt8z.js.map → closebrackets-ByoMqinT.js.map} +1 -1
- package/dist/graphiql/assets/{codemirror-ei6zCxXC.js → codemirror-DI4-4PU5.js} +2 -2
- package/dist/graphiql/assets/codemirror-DI4-4PU5.js.map +1 -0
- package/dist/graphiql/assets/{comment-DC5lX99a.js → comment-D59pNPCf.js} +2 -2
- package/dist/graphiql/assets/{comment-DC5lX99a.js.map → comment-D59pNPCf.js.map} +1 -1
- package/dist/graphiql/assets/{dialog-DH5HGd9V.js → dialog-DBYEq9g4.js} +2 -2
- package/dist/graphiql/assets/dialog-DBYEq9g4.js.map +1 -0
- package/dist/graphiql/assets/{foldgutter-BfmfFYY2.js → foldgutter-Jd2oNpfO.js} +2 -2
- package/dist/graphiql/assets/{foldgutter-BfmfFYY2.js.map → foldgutter-Jd2oNpfO.js.map} +1 -1
- package/dist/graphiql/assets/{hint-DIYMnhqe.js → hint-CpMoR3It.js} +2 -2
- package/dist/graphiql/assets/{hint-DIYMnhqe.js.map → hint-CpMoR3It.js.map} +1 -1
- package/dist/graphiql/assets/{hint-snve8vRA.js → hint-XtQOonBB.js} +2 -2
- package/dist/graphiql/assets/{hint-snve8vRA.js.map → hint-XtQOonBB.js.map} +1 -1
- package/dist/graphiql/assets/index-5e9LZB--.js +267 -0
- package/dist/graphiql/assets/index-5e9LZB--.js.map +1 -0
- package/dist/graphiql/assets/{info-C7caGbne.js → info-DzkKLAOh.js} +2 -2
- package/dist/graphiql/assets/{info-C7caGbne.js.map → info-DzkKLAOh.js.map} +1 -1
- package/dist/graphiql/assets/{info-addon-Bwagocb7.js → info-addon-qIHJ_wS-.js} +2 -2
- package/dist/graphiql/assets/{info-addon-Bwagocb7.js.map → info-addon-qIHJ_wS-.js.map} +1 -1
- package/dist/graphiql/assets/{javascript-Rdo_Z62l.js → javascript-BpcBZqdo.js} +2 -2
- package/dist/graphiql/assets/{javascript-Rdo_Z62l.js.map → javascript-BpcBZqdo.js.map} +1 -1
- package/dist/graphiql/assets/{jump-Df8ej_Mj.js → jump-CSZttLu_.js} +2 -2
- package/dist/graphiql/assets/{jump-Df8ej_Mj.js.map → jump-CSZttLu_.js.map} +1 -1
- package/dist/graphiql/assets/{jump-to-line-CiiC2ICE.js → jump-to-line-C0wBP0hk.js} +2 -2
- package/dist/graphiql/assets/{jump-to-line-CiiC2ICE.js.map → jump-to-line-C0wBP0hk.js.map} +1 -1
- package/dist/graphiql/assets/{lint-BpNj-VC5.js → lint-6HS258n4.js} +2 -2
- package/dist/graphiql/assets/{lint-BpNj-VC5.js.map → lint-6HS258n4.js.map} +1 -1
- package/dist/graphiql/assets/{lint-Bu-KMzfY.js → lint-BqA8lDxr.js} +2 -2
- package/dist/graphiql/assets/{lint-Bu-KMzfY.js.map → lint-BqA8lDxr.js.map} +1 -1
- package/dist/graphiql/assets/{lint-DcxigCVU.js → lint-hJI3JwCA.js} +2 -2
- package/dist/graphiql/assets/{lint-DcxigCVU.js.map → lint-hJI3JwCA.js.map} +1 -1
- package/dist/graphiql/assets/{matchbrackets-CN1h2y97.js → matchbrackets-BxKfE3W2.js} +2 -2
- package/dist/graphiql/assets/matchbrackets-BxKfE3W2.js.map +1 -0
- package/dist/graphiql/assets/{mode-oxtrsRc8.js → mode-3antXsbc.js} +2 -2
- package/dist/graphiql/assets/{mode-oxtrsRc8.js.map → mode-3antXsbc.js.map} +1 -1
- package/dist/graphiql/assets/{mode-D6i8L5qJ.js → mode-CTGBiqzT.js} +2 -2
- package/dist/graphiql/assets/{mode-D6i8L5qJ.js.map → mode-CTGBiqzT.js.map} +1 -1
- package/dist/graphiql/assets/{mode-Dg0osFXE.js → mode-DSj0x7Ut.js} +2 -2
- package/dist/graphiql/assets/{mode-Dg0osFXE.js.map → mode-DSj0x7Ut.js.map} +1 -1
- package/dist/graphiql/assets/{search-QD0PhoEN.js → search-z1HtMMX7.js} +2 -2
- package/dist/graphiql/assets/{search-QD0PhoEN.js.map → search-z1HtMMX7.js.map} +1 -1
- package/dist/graphiql/assets/{searchcursor-CcxYPK2a.js → searchcursor-BIsUKLOX.js} +2 -2
- package/dist/graphiql/assets/searchcursor-BIsUKLOX.js.map +1 -0
- package/dist/graphiql/assets/{show-hint-g6PfftIg.js → show-hint-BBAeVBOz.js} +2 -2
- package/dist/graphiql/assets/{show-hint-g6PfftIg.js.map → show-hint-BBAeVBOz.js.map} +1 -1
- package/dist/graphiql/assets/{sublime-D8g-_l1y.js → sublime-BtlG2qS0.js} +2 -2
- package/dist/graphiql/assets/{sublime-D8g-_l1y.js.map → sublime-BtlG2qS0.js.map} +1 -1
- package/dist/graphiql/index.html +1 -1
- package/package.json +3 -3
- package/dist/graphiql/assets/codemirror-ei6zCxXC.js.map +0 -1
- package/dist/graphiql/assets/dialog-DH5HGd9V.js.map +0 -1
- package/dist/graphiql/assets/index-BBoEq5zA.js +0 -267
- package/dist/graphiql/assets/index-BBoEq5zA.js.map +0 -1
- package/dist/graphiql/assets/matchbrackets-CN1h2y97.js.map +0 -1
- package/dist/graphiql/assets/searchcursor-CcxYPK2a.js.map +0 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codemirror-DI4-4PU5.js","assets/codemirror-DpyRu-EA.js","assets/show-hint-BBAeVBOz.js","assets/matchbrackets-BxKfE3W2.js","assets/matchbrackets-jw92OCMd.js","assets/closebrackets-ByoMqinT.js","assets/brace-fold-EB2Pe2oz.js","assets/foldgutter-Jd2oNpfO.js","assets/lint-hJI3JwCA.js","assets/searchcursor-BIsUKLOX.js","assets/searchcursor-BkXLGAQH.js","assets/jump-to-line-C0wBP0hk.js","assets/dialog-CNuDh2gC.js","assets/dialog-DBYEq9g4.js","assets/sublime-BtlG2qS0.js","assets/javascript-BpcBZqdo.js","assets/comment-D59pNPCf.js","assets/search-z1HtMMX7.js","assets/hint-CpMoR3It.js","assets/Range-CZNrBk8u.js","assets/lint-6HS258n4.js","assets/info-DzkKLAOh.js","assets/SchemaReference-CDyfOppZ.js","assets/forEachState-DETpARGm.js","assets/info-addon-qIHJ_wS-.js","assets/jump-CSZttLu_.js","assets/mode-3antXsbc.js","assets/mode-indent-Dvf_-b54.js","assets/hint-XtQOonBB.js","assets/lint-BqA8lDxr.js","assets/mode-CTGBiqzT.js","assets/mode-DSj0x7Ut.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function _N(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const u=Object.getOwnPropertyDescriptor(i,r);u&&Object.defineProperty(e,r,u.get?u:{enumerable:!0,get:()=>i[r]})}}}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 r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const u of r)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const u={};return r.integrity&&(u.integrity=r.integrity),r.referrerPolicy&&(u.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?u.credentials="include":r.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(r){if(r.ep)return;r.ep=!0;const u=n(r);fetch(r.href,u)}})();function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d1={exports:{}},rc={};var wE;function CN(){if(wE)return rc;wE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,u){var a=null;if(u!==void 0&&(a=""+u),r.key!==void 0&&(a=""+r.key),"key"in r){u={};for(var c in r)c!=="key"&&(u[c]=r[c])}else u=r;return r=u.ref,{$$typeof:e,type:i,key:a,ref:r!==void 0?r:null,props:u}}return rc.Fragment=t,rc.jsx=n,rc.jsxs=n,rc}var DE;function AN(){return DE||(DE=1,d1.exports=CN()),d1.exports}var w=AN(),h1={exports:{}},Le={};var NE;function wN(){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"),r=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),a=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 y(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function T(I,U,ie){this.props=I,this.context=U,this.refs=_,this.updater=ie||x}T.prototype.isReactComponent={},T.prototype.setState=function(I,U){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,U,"setState")},T.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function N(){}N.prototype=T.prototype;function A(I,U,ie){this.props=I,this.context=U,this.refs=_,this.updater=ie||x}var D=A.prototype=new N;D.constructor=A,S(D,T.prototype),D.isPureReactComponent=!0;var R=Array.isArray;function M(){}var F={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function k(I,U,ie){var ee=ie.ref;return{$$typeof:e,type:I,key:U,ref:ee!==void 0?ee:null,props:ie}}function $(I,U){return k(I.type,U,I.props)}function H(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Y(I){var U={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ie){return U[ie]})}var se=/\/+/g;function W(I,U){return typeof I=="object"&&I!==null&&I.key!=null?Y(""+I.key):U.toString(36)}function J(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(M,M):(I.status="pending",I.then(function(U){I.status==="pending"&&(I.status="fulfilled",I.value=U)},function(U){I.status==="pending"&&(I.status="rejected",I.reason=U)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function L(I,U,ie,ee,he){var de=typeof I;(de==="undefined"||de==="boolean")&&(I=null);var oe=!1;if(I===null)oe=!0;else switch(de){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(I.$$typeof){case e:case t:oe=!0;break;case p:return oe=I._init,L(oe(I._payload),U,ie,ee,he)}}if(oe)return he=he(I),oe=ee===""?"."+W(I,0):ee,R(he)?(ie="",oe!=null&&(ie=oe.replace(se,"$&/")+"/"),L(he,U,ie,"",function(Ne){return Ne})):he!=null&&(H(he)&&(he=$(he,ie+(he.key==null||I&&I.key===he.key?"":(""+he.key).replace(se,"$&/")+"/")+oe)),U.push(he)),1;oe=0;var fe=ee===""?".":ee+":";if(R(I))for(var ge=0;ge<I.length;ge++)ee=I[ge],de=fe+W(ee,ge),oe+=L(ee,U,ie,de,he);else if(ge=y(I),typeof ge=="function")for(I=ge.call(I),ge=0;!(ee=I.next()).done;)ee=ee.value,de=fe+W(ee,ge++),oe+=L(ee,U,ie,de,he);else if(de==="object"){if(typeof I.then=="function")return L(J(I),U,ie,ee,he);throw U=String(I),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return oe}function q(I,U,ie){if(I==null)return I;var ee=[],he=0;return L(I,ee,"","",function(de){return U.call(ie,de,he++)}),ee}function j(I){if(I._status===-1){var U=I._result;U=U(),U.then(function(ie){(I._status===0||I._status===-1)&&(I._status=1,I._result=ie)},function(ie){(I._status===0||I._status===-1)&&(I._status=2,I._result=ie)}),I._status===-1&&(I._status=0,I._result=U)}if(I._status===1)return I._result.default;throw I._result}var P=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},ne={map:q,forEach:function(I,U,ie){q(I,function(){U.apply(this,arguments)},ie)},count:function(I){var U=0;return q(I,function(){U++}),U},toArray:function(I){return q(I,function(U){return U})||[]},only:function(I){if(!H(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Le.Activity=m,Le.Children=ne,Le.Component=T,Le.Fragment=n,Le.Profiler=r,Le.PureComponent=A,Le.StrictMode=i,Le.Suspense=f,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Le.__COMPILER_RUNTIME={__proto__:null,c:function(I){return F.H.useMemoCache(I)}},Le.cache=function(I){return function(){return I.apply(null,arguments)}},Le.cacheSignal=function(){return null},Le.cloneElement=function(I,U,ie){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ee=S({},I.props),he=I.key;if(U!=null)for(de in U.key!==void 0&&(he=""+U.key),U)!B.call(U,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&U.ref===void 0||(ee[de]=U[de]);var de=arguments.length-2;if(de===1)ee.children=ie;else if(1<de){for(var oe=Array(de),fe=0;fe<de;fe++)oe[fe]=arguments[fe+2];ee.children=oe}return k(I.type,he,ee)},Le.createContext=function(I){return I={$$typeof:a,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:u,_context:I},I},Le.createElement=function(I,U,ie){var ee,he={},de=null;if(U!=null)for(ee in U.key!==void 0&&(de=""+U.key),U)B.call(U,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(he[ee]=U[ee]);var oe=arguments.length-2;if(oe===1)he.children=ie;else if(1<oe){for(var fe=Array(oe),ge=0;ge<oe;ge++)fe[ge]=arguments[ge+2];he.children=fe}if(I&&I.defaultProps)for(ee in oe=I.defaultProps,oe)he[ee]===void 0&&(he[ee]=oe[ee]);return k(I,de,he)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(I){return{$$typeof:c,render:I}},Le.isValidElement=H,Le.lazy=function(I){return{$$typeof:p,_payload:{_status:-1,_result:I},_init:j}},Le.memo=function(I,U){return{$$typeof:h,type:I,compare:U===void 0?null:U}},Le.startTransition=function(I){var U=F.T,ie={};F.T=ie;try{var ee=I(),he=F.S;he!==null&&he(ie,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(M,P)}catch(de){P(de)}finally{U!==null&&ie.types!==null&&(U.types=ie.types),F.T=U}},Le.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Le.use=function(I){return F.H.use(I)},Le.useActionState=function(I,U,ie){return F.H.useActionState(I,U,ie)},Le.useCallback=function(I,U){return F.H.useCallback(I,U)},Le.useContext=function(I){return F.H.useContext(I)},Le.useDebugValue=function(){},Le.useDeferredValue=function(I,U){return F.H.useDeferredValue(I,U)},Le.useEffect=function(I,U){return F.H.useEffect(I,U)},Le.useEffectEvent=function(I){return F.H.useEffectEvent(I)},Le.useId=function(){return F.H.useId()},Le.useImperativeHandle=function(I,U,ie){return F.H.useImperativeHandle(I,U,ie)},Le.useInsertionEffect=function(I,U){return F.H.useInsertionEffect(I,U)},Le.useLayoutEffect=function(I,U){return F.H.useLayoutEffect(I,U)},Le.useMemo=function(I,U){return F.H.useMemo(I,U)},Le.useOptimistic=function(I,U){return F.H.useOptimistic(I,U)},Le.useReducer=function(I,U,ie){return F.H.useReducer(I,U,ie)},Le.useRef=function(I){return F.H.useRef(I)},Le.useState=function(I){return F.H.useState(I)},Le.useSyncExternalStore=function(I,U,ie){return F.H.useSyncExternalStore(I,U,ie)},Le.useTransition=function(){return F.H.useTransition()},Le.version="19.2.4",Le}var OE;function rf(){return OE||(OE=1,h1.exports=wN()),h1.exports}var E=rf();const Oe=Du(E),fy=_N({__proto__:null,default:Oe},[E]);var p1={exports:{}},oc={},m1={exports:{}},g1={};var RE;function DN(){return RE||(RE=1,(function(e){function t(L,q){var j=L.length;L.push(q);e:for(;0<j;){var P=j-1>>>1,ne=L[P];if(0<r(ne,q))L[P]=q,L[j]=ne,j=P;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var q=L[0],j=L.pop();if(j!==q){L[0]=j;e:for(var P=0,ne=L.length,I=ne>>>1;P<I;){var U=2*(P+1)-1,ie=L[U],ee=U+1,he=L[ee];if(0>r(ie,j))ee<ne&&0>r(he,ie)?(L[P]=he,L[ee]=j,P=ee):(L[P]=ie,L[U]=j,P=U);else if(ee<ne&&0>r(he,j))L[P]=he,L[ee]=j,P=ee;else break e}}return q}function r(L,q){var j=L.sortIndex-q.sortIndex;return j!==0?j:L.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var f=[],h=[],p=1,m=null,v=3,y=!1,x=!1,S=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D(L){for(var q=n(h);q!==null;){if(q.callback===null)i(h);else if(q.startTime<=L)i(h),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(h)}}function R(L){if(S=!1,D(L),!x)if(n(f)!==null)x=!0,M||(M=!0,Y());else{var q=n(h);q!==null&&J(R,q.startTime-L)}}var M=!1,F=-1,B=5,k=-1;function $(){return _?!0:!(e.unstable_now()-k<B)}function H(){if(_=!1,M){var L=e.unstable_now();k=L;var q=!0;try{e:{x=!1,S&&(S=!1,N(F),F=-1),y=!0;var j=v;try{t:{for(D(L),m=n(f);m!==null&&!(m.expirationTime>L&&$());){var P=m.callback;if(typeof P=="function"){m.callback=null,v=m.priorityLevel;var ne=P(m.expirationTime<=L);if(L=e.unstable_now(),typeof ne=="function"){m.callback=ne,D(L),q=!0;break t}m===n(f)&&i(f),D(L)}else i(f);m=n(f)}if(m!==null)q=!0;else{var I=n(h);I!==null&&J(R,I.startTime-L),q=!1}}break e}finally{m=null,v=j,y=!1}q=void 0}}finally{q?Y():M=!1}}}var Y;if(typeof A=="function")Y=function(){A(H)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,W=se.port2;se.port1.onmessage=H,Y=function(){W.postMessage(null)}}else Y=function(){T(H,0)};function J(L,q){F=T(function(){L(e.unstable_now())},q)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var j=v;v=q;try{return L()}finally{v=j}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var j=v;v=L;try{return q()}finally{v=j}},e.unstable_scheduleCallback=function(L,q,j){var P=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?P+j:P):j=P,L){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=j+ne,L={id:p++,callback:q,priorityLevel:L,startTime:j,expirationTime:ne,sortIndex:-1},j>P?(L.sortIndex=j,t(h,L),n(f)===null&&L===n(h)&&(S?(N(F),F=-1):S=!0,J(R,j-P))):(L.sortIndex=ne,t(f,L),x||y||(x=!0,M||(M=!0,Y()))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var q=v;return function(){var j=v;v=q;try{return L.apply(this,arguments)}finally{v=j}}}})(g1)),g1}var ME;function NN(){return ME||(ME=1,m1.exports=DN()),m1.exports}var v1={exports:{}},Cn={};var kE;function ON(){if(kE)return Cn;kE=1;var e=rf();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},r=Symbol.for("react.portal");function u(f,h,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:m==null?null:""+m,children:f,containerInfo:h,implementation:p}}var a=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 Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Cn.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 u(f,h,null,p)},Cn.flushSync=function(f){var h=a.T,p=i.p;try{if(a.T=null,i.p=2,f)return f()}finally{a.T=h,i.p=p,i.d.f()}},Cn.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))},Cn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Cn.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,y=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:y}):p==="script"&&i.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Cn.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)},Cn.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})}},Cn.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)},Cn.requestFormReset=function(f){i.d.r(f)},Cn.unstable_batchedUpdates=function(f,h){return f(h)},Cn.useFormState=function(f,h,p){return a.H.useFormState(f,h,p)},Cn.useFormStatus=function(){return a.H.useHostTransitionStatus()},Cn.version="19.2.4",Cn}var LE;function vT(){if(LE)return v1.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(),v1.exports=ON(),v1.exports}var IE;function RN(){if(IE)return oc;IE=1;var e=NN(),t=rf(),n=vT();function i(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function u(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function a(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function c(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function f(o){if(u(o)!==o)throw Error(i(188))}function h(o){var s=o.alternate;if(!s){if(s=u(o),s===null)throw Error(i(188));return s!==o?null:o}for(var l=o,d=s;;){var g=l.return;if(g===null)break;var b=g.alternate;if(b===null){if(d=g.return,d!==null){l=d;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===l)return f(g),o;if(b===d)return f(g),s;b=b.sibling}throw Error(i(188))}if(l.return!==d.return)l=g,d=b;else{for(var C=!1,O=g.child;O;){if(O===l){C=!0,l=g,d=b;break}if(O===d){C=!0,d=g,l=b;break}O=O.sibling}if(!C){for(O=b.child;O;){if(O===l){C=!0,l=b,d=g;break}if(O===d){C=!0,d=b,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?o:s}function p(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=p(o),s!==null)return s;o=o.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),y=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"),N=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Y(o){return o===null||typeof o!="object"?null:(o=H&&o[H]||o["@@iterator"],typeof o=="function"?o:null)}var se=Symbol.for("react.client.reference");function W(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===se?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case T:return"Profiler";case _:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList";case k:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case x:return"Portal";case A:return o.displayName||"Context";case N:return(o._context.displayName||"Context")+".Consumer";case D:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case F:return s=o.displayName||null,s!==null?s:W(o.type)||"Memo";case B:s=o._payload,o=o._init;try{return W(o(s))}catch{}}return null}var J=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},P=[],ne=-1;function I(o){return{current:o}}function U(o){0>ne||(o.current=P[ne],P[ne]=null,ne--)}function ie(o,s){ne++,P[ne]=o.current,o.current=s}var ee=I(null),he=I(null),de=I(null),oe=I(null);function fe(o,s){switch(ie(de,s),ie(he,o),ie(ee,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?Wx(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=Wx(s),o=Zx(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}U(ee),ie(ee,o)}function ge(){U(ee),U(he),U(de)}function Ne(o){o.memoizedState!==null&&ie(oe,o);var s=ee.current,l=Zx(s,o.type);s!==l&&(ie(he,o),ie(ee,l))}function Te(o){he.current===o&&(U(ee),U(he)),oe.current===o&&(U(oe),ec._currentValue=j)}var pt,Ae;function mt(o){if(pt===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);pt=s&&s[1]||"",Ae=-1<l.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+pt+o+Ae}var dn=!1;function hn(o,s){if(!o||dn)return"";dn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(s){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(re){var te=re}Reflect.construct(o,[],ce)}else{try{ce.call()}catch(re){te=re}o.call(ce.prototype)}}else{try{throw Error()}catch(re){te=re}(ce=o())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.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 b=d.DetermineComponentFrameRoot(),C=b[0],O=b[1];if(C&&O){var V=C.split(`
|
|
5
|
+
`),Z=O.split(`
|
|
6
|
+
`);for(g=d=0;d<V.length&&!V[d].includes("DetermineComponentFrameRoot");)d++;for(;g<Z.length&&!Z[g].includes("DetermineComponentFrameRoot");)g++;if(d===V.length||g===Z.length)for(d=V.length-1,g=Z.length-1;1<=d&&0<=g&&V[d]!==Z[g];)g--;for(;1<=d&&0<=g;d--,g--)if(V[d]!==Z[g]){if(d!==1||g!==1)do if(d--,g--,0>g||V[d]!==Z[g]){var ue=`
|
|
7
|
+
`+V[d].replace(" at new "," at ");return o.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",o.displayName)),ue}while(1<=d&&0<=g);break}}}finally{dn=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?mt(l):""}function Sn(o,s){switch(o.tag){case 26:case 27:case 5:return mt(o.type);case 16:return mt("Lazy");case 13:return o.child!==s&&s!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return hn(o.type,!1);case 11:return hn(o.type.render,!1);case 1:return hn(o.type,!0);case 31:return mt("Activity");default:return""}}function _e(o){try{var s="",l=null;do s+=Sn(o,l),l=o,o=o.return;while(o);return s}catch(d){return`
|
|
8
|
+
Error generating stack: `+d.message+`
|
|
9
|
+
`+d.stack}}var Pe=Object.prototype.hasOwnProperty,De=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,_t=e.unstable_shouldYield,Xe=e.unstable_requestPaint,ct=e.unstable_now,Ii=e.unstable_getCurrentPriorityLevel,Ls=e.unstable_ImmediatePriority,ju=e.unstable_UserBlockingPriority,Gr=e.unstable_NormalPriority,ap=e.unstable_LowPriority,Is=e.unstable_IdlePriority,lp=e.log,Pu=e.unstable_setDisableYieldValue,cr=null,Xt=null;function qn(o){if(typeof lp=="function"&&Pu(o),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(cr,o)}catch{}}var Wt=Math.clz32?Math.clz32:$u,Lo=Math.log,Io=Math.LN2;function $u(o){return o>>>=0,o===0?32:31-(Lo(o)/Io|0)|0}var Fo=256,Fi=262144,ji=4194304;function In(o){var s=o&42;if(s!==0)return s;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Yr(o,s,l){var d=o.pendingLanes;if(d===0)return 0;var g=0,b=o.suspendedLanes,C=o.pingedLanes;o=o.warmLanes;var O=d&134217727;return O!==0?(d=O&~b,d!==0?g=In(d):(C&=O,C!==0?g=In(C):l||(l=O&~o,l!==0&&(g=In(l))))):(O=d&~b,O!==0?g=In(O):C!==0?g=In(C):l||(l=d&~o,l!==0&&(g=In(l)))),g===0?0:s!==0&&s!==g&&(s&b)===0&&(b=g&-g,l=s&-s,b>=l||b===32&&(l&4194048)!==0)?s:g}function fr(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function jo(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Fs(){var o=ji;return ji<<=1,(ji&62914560)===0&&(ji=4194304),o}function dr(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function hi(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Po(o,s,l,d,g,b){var C=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var O=o.entanglements,V=o.expirationTimes,Z=o.hiddenUpdates;for(l=C&~l;0<l;){var ue=31-Wt(l),ce=1<<ue;O[ue]=0,V[ue]=-1;var te=Z[ue];if(te!==null)for(Z[ue]=null,ue=0;ue<te.length;ue++){var re=te[ue];re!==null&&(re.lane&=-536870913)}l&=~ce}d!==0&&Of(o,d,0),b!==0&&g===0&&o.tag!==0&&(o.suspendedLanes|=b&~(C&~s))}function Of(o,s,l){o.pendingLanes|=s,o.suspendedLanes&=~s;var d=31-Wt(s);o.entangledLanes|=s,o.entanglements[d]=o.entanglements[d]|1073741824|l&261930}function Qr(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var d=31-Wt(l),g=1<<d;g&s|o[d]&s&&(o[d]|=s),l&=~g}}function Xr(o,s){var l=s&-s;return l=(l&42)!==0?1:$o(l),(l&(o.suspendedLanes|s))!==0?0:l}function $o(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function hr(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Wr(){var o=q.p;return o!==0?o:(o=window.event,o===void 0?32:xE(o.type))}function Vu(o,s){var l=q.p;try{return q.p=o,s()}finally{q.p=l}}var pr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+pr,Zt="__reactProps$"+pr,Gn="__reactContainer$"+pr,mr="__reactEvents$"+pr,cp="__reactListeners$"+pr,ml="__reactHandles$"+pr,Zr="__reactResources$"+pr,pi="__reactMarker$"+pr;function gr(o){delete o[Ct],delete o[Zt],delete o[mr],delete o[cp],delete o[ml]}function vr(o){var s=o[Ct];if(s)return s;for(var l=o.parentNode;l;){if(s=l[Gn]||l[Ct]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=rE(o);o!==null;){if(l=o[Ct])return l;o=rE(o)}return s}o=l,l=o.parentNode}return null}function yr(o){if(o=o[Ct]||o[Gn]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function mi(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(i(33))}function Yn(o){var s=o[Zr];return s||(s=o[Zr]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function bt(o){o[pi]=!0}var Kr=new Set,Bu={};function Pi(o,s){Qn(o,s),Qn(o+"Capture",s)}function Qn(o,s){for(Bu[o]=s,o=0;o<s.length;o++)Kr.add(s[o])}var Vo=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]*$"),Jr={},eo={};function Bo(o){return Pe.call(eo,o)?!0:Pe.call(Jr,o)?!1:Vo.test(o)?eo[o]=!0:(Jr[o]=!0,!1)}function $i(o,s,l){if(Bo(s))if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var d=s.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+l)}}function Vi(o,s,l){if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+l)}}function Tn(o,s,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(s,l,""+d)}}function Kt(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function to(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Uo(o,s,l){var d=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,b=d.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return g.call(this)},set:function(C){l=""+C,b.call(this,C)}}),Object.defineProperty(o,s,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function js(o){if(!o._valueTracker){var s=to(o)?"checked":"value";o._valueTracker=Uo(o,s,""+o[s])}}function Ps(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),d="";return o&&(d=to(o)?o.checked?"true":"false":o.value),o=d,o!==l?(s.setValue(o),!0):!1}function Bi(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var zo=/[\n"\\]/g;function _n(o){return o.replace(zo,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Ho(o,s,l,d,g,b,C,O){o.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?o.type=C:o.removeAttribute("type"),s!=null?C==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Kt(s)):o.value!==""+Kt(s)&&(o.value=""+Kt(s)):C!=="submit"&&C!=="reset"||o.removeAttribute("value"),s!=null?br(o,C,Kt(s)):l!=null?br(o,C,Kt(l)):d!=null&&o.removeAttribute("value"),g==null&&b!=null&&(o.defaultChecked=!!b),g!=null&&(o.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?o.name=""+Kt(O):o.removeAttribute("name")}function no(o,s,l,d,g,b,C,O){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),s!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||s!=null)){js(o);return}l=l!=null?""+Kt(l):"",s=s!=null?""+Kt(s):l,O||s===o.value||(o.value=s),o.defaultValue=s}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,o.checked=O?o.checked:!!d,o.defaultChecked=!!d,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(o.name=C),js(o)}function br(o,s,l){s==="number"&&Bi(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function Ui(o,s,l,d){if(o=o.options,s){s={};for(var g=0;g<l.length;g++)s["$"+l[g]]=!0;for(l=0;l<o.length;l++)g=s.hasOwnProperty("$"+o[l].value),o[l].selected!==g&&(o[l].selected=g),g&&d&&(o[l].defaultSelected=!0)}else{for(l=""+Kt(l),s=null,g=0;g<o.length;g++){if(o[g].value===l){o[g].selected=!0,d&&(o[g].defaultSelected=!0);return}s!==null||o[g].disabled||(s=o[g])}s!==null&&(s.selected=!0)}}function Uu(o,s,l){if(s!=null&&(s=""+Kt(s),s!==o.value&&(o.value=s),l==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=l!=null?""+Kt(l):""}function zu(o,s,l,d){if(s==null){if(d!=null){if(l!=null)throw Error(i(92));if(J(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),s=l}l=Kt(s),o.defaultValue=l,d=o.textContent,d===l&&d!==""&&d!==null&&(o.value=d),js(o)}function Xn(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var qo=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 io(o,s,l){var d=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":d?o.setProperty(s,l):typeof l!="number"||l===0||qo.has(s)?s==="float"?o.cssFloat=l:o[s]=(""+l).trim():o[s]=l+"px"}function ro(o,s,l){if(s!=null&&typeof s!="object")throw Error(i(62));if(o=o.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||s!=null&&s.hasOwnProperty(d)||(d.indexOf("--")===0?o.setProperty(d,""):d==="float"?o.cssFloat="":o[d]="");for(var g in s)d=s[g],s.hasOwnProperty(g)&&l[g]!==d&&io(o,g,d)}else for(var b in s)s.hasOwnProperty(b)&&io(o,b,s[b])}function Go(o){if(o.indexOf("-")===-1)return!1;switch(o){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 He=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"]]),At=/^[\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 It(o){return At.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Nt(){}var Wn=null;function gl(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Hu=null,qu=null;function X2(o){var s=yr(o);if(s&&(o=s.stateNode)){var l=o[Zt]||null;e:switch(o=s.stateNode,s.type){case"input":if(Ho(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_n(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var d=l[s];if(d!==o&&d.form===o.form){var g=d[Zt]||null;if(!g)throw Error(i(90));Ho(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(s=0;s<l.length;s++)d=l[s],d.form===o.form&&Ps(d)}break e;case"textarea":Uu(o,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&Ui(o,!!l.multiple,s,!1)}}}var fp=!1;function W2(o,s,l){if(fp)return o(s,l);fp=!0;try{var d=o(s);return d}finally{if(fp=!1,(Hu!==null||qu!==null)&&(vd(),Hu&&(s=Hu,o=qu,qu=Hu=null,X2(s),o)))for(s=0;s<o.length;s++)X2(o[s])}}function vl(o,s){var l=o.stateNode;if(l===null)return null;var d=l[Zt]||null;if(d===null)return null;l=d[s];e:switch(s){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)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,s,typeof l));return l}var oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dp=!1;if(oo)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){dp=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{dp=!1}var Yo=null,hp=null,Rf=null;function Z2(){if(Rf)return Rf;var o,s=hp,l=s.length,d,g="value"in Yo?Yo.value:Yo.textContent,b=g.length;for(o=0;o<l&&s[o]===g[o];o++);var C=l-o;for(d=1;d<=C&&s[l-d]===g[b-d];d++);return Rf=g.slice(o,1<d?1-d:void 0)}function Mf(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function kf(){return!0}function K2(){return!1}function Fn(o){function s(l,d,g,b,C){this._reactName=l,this._targetInst=g,this.type=d,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(l=o[O],this[O]=l?l(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?kf:K2,this.isPropagationStopped=K2,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kf)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kf)},persist:function(){},isPersistent:kf}),s}var $s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lf=Fn($s),bl=m({},$s,{view:0,detail:0}),S7=Fn(bl),pp,mp,xl,If=m({},bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==xl&&(xl&&o.type==="mousemove"?(pp=o.screenX-xl.screenX,mp=o.screenY-xl.screenY):mp=pp=0,xl=o),pp)},movementY:function(o){return"movementY"in o?o.movementY:mp}}),J2=Fn(If),T7=m({},If,{dataTransfer:0}),_7=Fn(T7),C7=m({},bl,{relatedTarget:0}),gp=Fn(C7),A7=m({},$s,{animationName:0,elapsedTime:0,pseudoElement:0}),w7=Fn(A7),D7=m({},$s,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),N7=Fn(D7),O7=m({},$s,{data:0}),eb=Fn(O7),R7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M7={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"},k7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L7(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=k7[o])?!!s[o]:!1}function vp(){return L7}var I7=m({},bl,{key:function(o){if(o.key){var s=R7[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Mf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?M7[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vp,charCode:function(o){return o.type==="keypress"?Mf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Mf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),F7=Fn(I7),j7=m({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tb=Fn(j7),P7=m({},bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vp}),$7=Fn(P7),V7=m({},$s,{propertyName:0,elapsedTime:0,pseudoElement:0}),B7=Fn(V7),U7=m({},If,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),z7=Fn(U7),H7=m({},$s,{newState:0,oldState:0}),q7=Fn(H7),G7=[9,13,27,32],yp=oo&&"CompositionEvent"in window,El=null;oo&&"documentMode"in document&&(El=document.documentMode);var Y7=oo&&"TextEvent"in window&&!El,nb=oo&&(!yp||El&&8<El&&11>=El),ib=" ",rb=!1;function ob(o,s){switch(o){case"keyup":return G7.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sb(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Gu=!1;function Q7(o,s){switch(o){case"compositionend":return sb(s);case"keypress":return s.which!==32?null:(rb=!0,ib);case"textInput":return o=s.data,o===ib&&rb?null:o;default:return null}}function X7(o,s){if(Gu)return o==="compositionend"||!yp&&ob(o,s)?(o=Z2(),Rf=hp=Yo=null,Gu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return nb&&s.locale!=="ko"?null:s.data;default:return null}}var W7={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 ub(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!W7[o.type]:s==="textarea"}function ab(o,s,l,d){Hu?qu?qu.push(d):qu=[d]:Hu=d,s=_d(s,"onChange"),0<s.length&&(l=new Lf("onChange","change",null,l,d),o.push({event:l,listeners:s}))}var Sl=null,Tl=null;function Z7(o){Hx(o,0)}function Ff(o){var s=mi(o);if(Ps(s))return o}function lb(o,s){if(o==="change")return s}var cb=!1;if(oo){var bp;if(oo){var xp="oninput"in document;if(!xp){var fb=document.createElement("div");fb.setAttribute("oninput","return;"),xp=typeof fb.oninput=="function"}bp=xp}else bp=!1;cb=bp&&(!document.documentMode||9<document.documentMode)}function db(){Sl&&(Sl.detachEvent("onpropertychange",hb),Tl=Sl=null)}function hb(o){if(o.propertyName==="value"&&Ff(Tl)){var s=[];ab(s,Tl,o,gl(o)),W2(Z7,s)}}function K7(o,s,l){o==="focusin"?(db(),Sl=s,Tl=l,Sl.attachEvent("onpropertychange",hb)):o==="focusout"&&db()}function J7(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ff(Tl)}function eD(o,s){if(o==="click")return Ff(s)}function tD(o,s){if(o==="input"||o==="change")return Ff(s)}function nD(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Zn=typeof Object.is=="function"?Object.is:nD;function _l(o,s){if(Zn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var g=l[d];if(!Pe.call(s,g)||!Zn(o[g],s[g]))return!1}return!0}function pb(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function mb(o,s){var l=pb(o);o=0;for(var d;l;){if(l.nodeType===3){if(d=o+l.textContent.length,o<=s&&d>=s)return{node:l,offset:s-o};o=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pb(l)}}function gb(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?gb(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function vb(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=Bi(o.document);s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=Bi(o.document)}return s}function Ep(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var iD=oo&&"documentMode"in document&&11>=document.documentMode,Yu=null,Sp=null,Cl=null,Tp=!1;function yb(o,s,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tp||Yu==null||Yu!==Bi(d)||(d=Yu,"selectionStart"in d&&Ep(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}),Cl&&_l(Cl,d)||(Cl=d,d=_d(Sp,"onSelect"),0<d.length&&(s=new Lf("onSelect","select",null,s,l),o.push({event:s,listeners:d}),s.target=Yu)))}function Vs(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var Qu={animationend:Vs("Animation","AnimationEnd"),animationiteration:Vs("Animation","AnimationIteration"),animationstart:Vs("Animation","AnimationStart"),transitionrun:Vs("Transition","TransitionRun"),transitionstart:Vs("Transition","TransitionStart"),transitioncancel:Vs("Transition","TransitionCancel"),transitionend:Vs("Transition","TransitionEnd")},_p={},bb={};oo&&(bb=document.createElement("div").style,"AnimationEvent"in window||(delete Qu.animationend.animation,delete Qu.animationiteration.animation,delete Qu.animationstart.animation),"TransitionEvent"in window||delete Qu.transitionend.transition);function Bs(o){if(_p[o])return _p[o];if(!Qu[o])return o;var s=Qu[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in bb)return _p[o]=s[l];return o}var xb=Bs("animationend"),Eb=Bs("animationiteration"),Sb=Bs("animationstart"),rD=Bs("transitionrun"),oD=Bs("transitionstart"),sD=Bs("transitioncancel"),Tb=Bs("transitionend"),_b=new Map,Cp="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(" ");Cp.push("scrollEnd");function zi(o,s){_b.set(o,s),Pi(s,[o])}var jf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},gi=[],Xu=0,Ap=0;function Pf(){for(var o=Xu,s=Ap=Xu=0;s<o;){var l=gi[s];gi[s++]=null;var d=gi[s];gi[s++]=null;var g=gi[s];gi[s++]=null;var b=gi[s];if(gi[s++]=null,d!==null&&g!==null){var C=d.pending;C===null?g.next=g:(g.next=C.next,C.next=g),d.pending=g}b!==0&&Cb(l,g,b)}}function $f(o,s,l,d){gi[Xu++]=o,gi[Xu++]=s,gi[Xu++]=l,gi[Xu++]=d,Ap|=d,o.lanes|=d,o=o.alternate,o!==null&&(o.lanes|=d)}function wp(o,s,l,d){return $f(o,s,l,d),Vf(o)}function Us(o,s){return $f(o,null,null,s),Vf(o)}function Cb(o,s,l){o.lanes|=l;var d=o.alternate;d!==null&&(d.lanes|=l);for(var g=!1,b=o.return;b!==null;)b.childLanes|=l,d=b.alternate,d!==null&&(d.childLanes|=l),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(g=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,g&&s!==null&&(g=31-Wt(l),o=b.hiddenUpdates,d=o[g],d===null?o[g]=[s]:d.push(s),s.lane=l|536870912),b):null}function Vf(o){if(50<Yl)throw Yl=0,Fm=null,Error(i(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var Wu={};function uD(o,s,l,d){this.tag=o,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=s,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(o,s,l,d){return new uD(o,s,l,d)}function Dp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function so(o,s){var l=o.alternate;return l===null?(l=Kn(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Ab(o,s){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,s=l.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Bf(o,s,l,d,g,b){var C=0;if(d=o,typeof o=="function")Dp(o)&&(C=1);else if(typeof o=="string")C=dN(o,l,ee.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case k:return o=Kn(31,l,s,g),o.elementType=k,o.lanes=b,o;case S:return zs(l.children,g,b,s);case _:C=8,g|=24;break;case T:return o=Kn(12,l,s,g|2),o.elementType=T,o.lanes=b,o;case R:return o=Kn(13,l,s,g),o.elementType=R,o.lanes=b,o;case M:return o=Kn(19,l,s,g),o.elementType=M,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case A:C=10;break e;case N:C=9;break e;case D:C=11;break e;case F:C=14;break e;case B:C=16,d=null;break e}C=29,l=Error(i(130,o===null?"null":typeof o,"")),d=null}return s=Kn(C,l,s,g),s.elementType=o,s.type=d,s.lanes=b,s}function zs(o,s,l,d){return o=Kn(7,o,d,s),o.lanes=l,o}function Np(o,s,l){return o=Kn(6,o,null,s),o.lanes=l,o}function wb(o){var s=Kn(18,null,null,0);return s.stateNode=o,s}function Op(o,s,l){return s=Kn(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var Db=new WeakMap;function vi(o,s){if(typeof o=="object"&&o!==null){var l=Db.get(o);return l!==void 0?l:(s={value:o,source:s,stack:_e(s)},Db.set(o,s),s)}return{value:o,source:s,stack:_e(s)}}var Zu=[],Ku=0,Uf=null,Al=0,yi=[],bi=0,Qo=null,xr=1,Er="";function uo(o,s){Zu[Ku++]=Al,Zu[Ku++]=Uf,Uf=o,Al=s}function Nb(o,s,l){yi[bi++]=xr,yi[bi++]=Er,yi[bi++]=Qo,Qo=o;var d=xr;o=Er;var g=32-Wt(d)-1;d&=~(1<<g),l+=1;var b=32-Wt(s)+g;if(30<b){var C=g-g%5;b=(d&(1<<C)-1).toString(32),d>>=C,g-=C,xr=1<<32-Wt(s)+g|l<<g|d,Er=b+o}else xr=1<<b|l<<g|d,Er=o}function Rp(o){o.return!==null&&(uo(o,1),Nb(o,1,0))}function Mp(o){for(;o===Uf;)Uf=Zu[--Ku],Zu[Ku]=null,Al=Zu[--Ku],Zu[Ku]=null;for(;o===Qo;)Qo=yi[--bi],yi[bi]=null,Er=yi[--bi],yi[bi]=null,xr=yi[--bi],yi[bi]=null}function Ob(o,s){yi[bi++]=xr,yi[bi++]=Er,yi[bi++]=Qo,xr=s.id,Er=s.overflow,Qo=o}var pn=null,xt=null,Ye=!1,Xo=null,xi=!1,kp=Error(i(519));function Wo(o){var s=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(vi(s,o)),kp}function Rb(o){var s=o.stateNode,l=o.type,d=o.memoizedProps;switch(s[Ct]=o,s[Zt]=d,l){case"dialog":Be("cancel",s),Be("close",s);break;case"iframe":case"object":case"embed":Be("load",s);break;case"video":case"audio":for(l=0;l<Xl.length;l++)Be(Xl[l],s);break;case"source":Be("error",s);break;case"img":case"image":case"link":Be("error",s),Be("load",s);break;case"details":Be("toggle",s);break;case"input":Be("invalid",s),no(s,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Be("invalid",s);break;case"textarea":Be("invalid",s),zu(s,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||d.suppressHydrationWarning===!0||Qx(s.textContent,l)?(d.popover!=null&&(Be("beforetoggle",s),Be("toggle",s)),d.onScroll!=null&&Be("scroll",s),d.onScrollEnd!=null&&Be("scrollend",s),d.onClick!=null&&(s.onclick=Nt),s=!0):s=!1,s||Wo(o,!0)}function Mb(o){for(pn=o.return;pn;)switch(pn.tag){case 5:case 31:case 13:xi=!1;return;case 27:case 3:xi=!0;return;default:pn=pn.return}}function Ju(o){if(o!==pn)return!1;if(!Ye)return Mb(o),Ye=!0,!1;var s=o.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||Zm(o.type,o.memoizedProps)),l=!l),l&&xt&&Wo(o),Mb(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xt=iE(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xt=iE(o)}else s===27?(s=xt,cs(o.type)?(o=n1,n1=null,xt=o):xt=s):xt=pn?Si(o.stateNode.nextSibling):null;return!0}function Hs(){xt=pn=null,Ye=!1}function Lp(){var o=Xo;return o!==null&&(Vn===null?Vn=o:Vn.push.apply(Vn,o),Xo=null),o}function wl(o){Xo===null?Xo=[o]:Xo.push(o)}var Ip=I(null),qs=null,ao=null;function Zo(o,s,l){ie(Ip,s._currentValue),s._currentValue=l}function lo(o){o._currentValue=Ip.current,U(Ip)}function Fp(o,s,l){for(;o!==null;){var d=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),o===l)break;o=o.return}}function jp(o,s,l,d){var g=o.child;for(g!==null&&(g.return=o);g!==null;){var b=g.dependencies;if(b!==null){var C=g.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=g;for(var V=0;V<s.length;V++)if(O.context===s[V]){b.lanes|=l,O=b.alternate,O!==null&&(O.lanes|=l),Fp(b.return,l,o),d||(C=null);break e}b=O.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(i(341));C.lanes|=l,b=C.alternate,b!==null&&(b.lanes|=l),Fp(C,l,o),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===o){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function ea(o,s,l,d){o=null;for(var g=s,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!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;Zn(g.pendingProps.value,C.value)||(o!==null?o.push(O):o=[O])}}else if(g===oe.current){if(C=g.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(o!==null?o.push(ec):o=[ec])}g=g.return}o!==null&&jp(s,o,l,d),s.flags|=262144}function zf(o){for(o=o.firstContext;o!==null;){if(!Zn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Gs(o){qs=o,ao=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function mn(o){return kb(qs,o)}function Hf(o,s){return qs===null&&Gs(o),kb(o,s)}function kb(o,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},ao===null){if(o===null)throw Error(i(308));ao=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ao=ao.next=s;return l}var aD=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(l,d){o.push(d)}};this.abort=function(){s.aborted=!0,o.forEach(function(l){return l()})}},lD=e.unstable_scheduleCallback,cD=e.unstable_NormalPriority,Bt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pp(){return{controller:new aD,data:new Map,refCount:0}}function Dl(o){o.refCount--,o.refCount===0&&lD(cD,function(){o.controller.abort()})}var Nl=null,$p=0,ta=0,na=null;function fD(o,s){if(Nl===null){var l=Nl=[];$p=0,ta=Um(),na={status:"pending",value:void 0,then:function(d){l.push(d)}}}return $p++,s.then(Lb,Lb),s}function Lb(){if(--$p===0&&Nl!==null){na!==null&&(na.status="fulfilled");var o=Nl;Nl=null,ta=0,na=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function dD(o,s){var l=[],d={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return o.then(function(){d.status="fulfilled",d.value=s;for(var g=0;g<l.length;g++)(0,l[g])(s)},function(g){for(d.status="rejected",d.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),d}var Ib=L.S;L.S=function(o,s){yx=ct(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&fD(o,s),Ib!==null&&Ib(o,s)};var Ys=I(null);function Vp(){var o=Ys.current;return o!==null?o:ft.pooledCache}function qf(o,s){s===null?ie(Ys,Ys.current):ie(Ys,s.pool)}function Fb(){var o=Vp();return o===null?null:{parent:Bt._currentValue,pool:o}}var ia=Error(i(460)),Bp=Error(i(474)),Gf=Error(i(542)),Yf={then:function(){}};function jb(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Pb(o,s,l){switch(l=o[l],l===void 0?o.push(s):l!==s&&(s.then(Nt,Nt),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,Vb(o),o;default:if(typeof s.status=="string")s.then(Nt,Nt);else{if(o=ft,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=s,o.status="pending",o.then(function(d){if(s.status==="pending"){var g=s;g.status="fulfilled",g.value=d}},function(d){if(s.status==="pending"){var g=s;g.status="rejected",g.reason=d}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,Vb(o),o}throw Xs=s,ia}}function Qs(o){try{var s=o._init;return s(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xs=l,ia):l}}var Xs=null;function $b(){if(Xs===null)throw Error(i(459));var o=Xs;return Xs=null,o}function Vb(o){if(o===ia||o===Gf)throw Error(i(483))}var ra=null,Ol=0;function Qf(o){var s=Ol;return Ol+=1,ra===null&&(ra=[]),Pb(ra,o,s)}function Rl(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Xf(o,s){throw s.$$typeof===v?Error(i(525)):(o=Object.prototype.toString.call(s),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function Bb(o){function s(G,z){if(o){var X=G.deletions;X===null?(G.deletions=[z],G.flags|=16):X.push(z)}}function l(G,z){if(!o)return null;for(;z!==null;)s(G,z),z=z.sibling;return null}function d(G){for(var z=new Map;G!==null;)G.key!==null?z.set(G.key,G):z.set(G.index,G),G=G.sibling;return z}function g(G,z){return G=so(G,z),G.index=0,G.sibling=null,G}function b(G,z,X){return G.index=X,o?(X=G.alternate,X!==null?(X=X.index,X<z?(G.flags|=67108866,z):X):(G.flags|=67108866,z)):(G.flags|=1048576,z)}function C(G){return o&&G.alternate===null&&(G.flags|=67108866),G}function O(G,z,X,le){return z===null||z.tag!==6?(z=Np(X,G.mode,le),z.return=G,z):(z=g(z,X),z.return=G,z)}function V(G,z,X,le){var Se=X.type;return Se===S?ue(G,z,X.props.children,le,X.key):z!==null&&(z.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===B&&Qs(Se)===z.type)?(z=g(z,X.props),Rl(z,X),z.return=G,z):(z=Bf(X.type,X.key,X.props,null,G.mode,le),Rl(z,X),z.return=G,z)}function Z(G,z,X,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==X.containerInfo||z.stateNode.implementation!==X.implementation?(z=Op(X,G.mode,le),z.return=G,z):(z=g(z,X.children||[]),z.return=G,z)}function ue(G,z,X,le,Se){return z===null||z.tag!==7?(z=zs(X,G.mode,le,Se),z.return=G,z):(z=g(z,X),z.return=G,z)}function ce(G,z,X){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Np(""+z,G.mode,X),z.return=G,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case y:return X=Bf(z.type,z.key,z.props,null,G.mode,X),Rl(X,z),X.return=G,X;case x:return z=Op(z,G.mode,X),z.return=G,z;case B:return z=Qs(z),ce(G,z,X)}if(J(z)||Y(z))return z=zs(z,G.mode,X,null),z.return=G,z;if(typeof z.then=="function")return ce(G,Qf(z),X);if(z.$$typeof===A)return ce(G,Hf(G,z),X);Xf(G,z)}return null}function te(G,z,X,le){var Se=z!==null?z.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Se!==null?null:O(G,z,""+X,le);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case y:return X.key===Se?V(G,z,X,le):null;case x:return X.key===Se?Z(G,z,X,le):null;case B:return X=Qs(X),te(G,z,X,le)}if(J(X)||Y(X))return Se!==null?null:ue(G,z,X,le,null);if(typeof X.then=="function")return te(G,z,Qf(X),le);if(X.$$typeof===A)return te(G,z,Hf(G,X),le);Xf(G,X)}return null}function re(G,z,X,le,Se){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return G=G.get(X)||null,O(z,G,""+le,Se);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case y:return G=G.get(le.key===null?X:le.key)||null,V(z,G,le,Se);case x:return G=G.get(le.key===null?X:le.key)||null,Z(z,G,le,Se);case B:return le=Qs(le),re(G,z,X,le,Se)}if(J(le)||Y(le))return G=G.get(X)||null,ue(z,G,le,Se,null);if(typeof le.then=="function")return re(G,z,X,Qf(le),Se);if(le.$$typeof===A)return re(G,z,X,Hf(z,le),Se);Xf(z,le)}return null}function ye(G,z,X,le){for(var Se=null,Ze=null,Ee=z,je=z=0,Ge=null;Ee!==null&&je<X.length;je++){Ee.index>je?(Ge=Ee,Ee=null):Ge=Ee.sibling;var Ke=te(G,Ee,X[je],le);if(Ke===null){Ee===null&&(Ee=Ge);break}o&&Ee&&Ke.alternate===null&&s(G,Ee),z=b(Ke,z,je),Ze===null?Se=Ke:Ze.sibling=Ke,Ze=Ke,Ee=Ge}if(je===X.length)return l(G,Ee),Ye&&uo(G,je),Se;if(Ee===null){for(;je<X.length;je++)Ee=ce(G,X[je],le),Ee!==null&&(z=b(Ee,z,je),Ze===null?Se=Ee:Ze.sibling=Ee,Ze=Ee);return Ye&&uo(G,je),Se}for(Ee=d(Ee);je<X.length;je++)Ge=re(Ee,G,je,X[je],le),Ge!==null&&(o&&Ge.alternate!==null&&Ee.delete(Ge.key===null?je:Ge.key),z=b(Ge,z,je),Ze===null?Se=Ge:Ze.sibling=Ge,Ze=Ge);return o&&Ee.forEach(function(ms){return s(G,ms)}),Ye&&uo(G,je),Se}function we(G,z,X,le){if(X==null)throw Error(i(151));for(var Se=null,Ze=null,Ee=z,je=z=0,Ge=null,Ke=X.next();Ee!==null&&!Ke.done;je++,Ke=X.next()){Ee.index>je?(Ge=Ee,Ee=null):Ge=Ee.sibling;var ms=te(G,Ee,Ke.value,le);if(ms===null){Ee===null&&(Ee=Ge);break}o&&Ee&&ms.alternate===null&&s(G,Ee),z=b(ms,z,je),Ze===null?Se=ms:Ze.sibling=ms,Ze=ms,Ee=Ge}if(Ke.done)return l(G,Ee),Ye&&uo(G,je),Se;if(Ee===null){for(;!Ke.done;je++,Ke=X.next())Ke=ce(G,Ke.value,le),Ke!==null&&(z=b(Ke,z,je),Ze===null?Se=Ke:Ze.sibling=Ke,Ze=Ke);return Ye&&uo(G,je),Se}for(Ee=d(Ee);!Ke.done;je++,Ke=X.next())Ke=re(Ee,G,je,Ke.value,le),Ke!==null&&(o&&Ke.alternate!==null&&Ee.delete(Ke.key===null?je:Ke.key),z=b(Ke,z,je),Ze===null?Se=Ke:Ze.sibling=Ke,Ze=Ke);return o&&Ee.forEach(function(TN){return s(G,TN)}),Ye&&uo(G,je),Se}function at(G,z,X,le){if(typeof X=="object"&&X!==null&&X.type===S&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case y:e:{for(var Se=X.key;z!==null;){if(z.key===Se){if(Se=X.type,Se===S){if(z.tag===7){l(G,z.sibling),le=g(z,X.props.children),le.return=G,G=le;break e}}else if(z.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===B&&Qs(Se)===z.type){l(G,z.sibling),le=g(z,X.props),Rl(le,X),le.return=G,G=le;break e}l(G,z);break}else s(G,z);z=z.sibling}X.type===S?(le=zs(X.props.children,G.mode,le,X.key),le.return=G,G=le):(le=Bf(X.type,X.key,X.props,null,G.mode,le),Rl(le,X),le.return=G,G=le)}return C(G);case x:e:{for(Se=X.key;z!==null;){if(z.key===Se)if(z.tag===4&&z.stateNode.containerInfo===X.containerInfo&&z.stateNode.implementation===X.implementation){l(G,z.sibling),le=g(z,X.children||[]),le.return=G,G=le;break e}else{l(G,z);break}else s(G,z);z=z.sibling}le=Op(X,G.mode,le),le.return=G,G=le}return C(G);case B:return X=Qs(X),at(G,z,X,le)}if(J(X))return ye(G,z,X,le);if(Y(X)){if(Se=Y(X),typeof Se!="function")throw Error(i(150));return X=Se.call(X),we(G,z,X,le)}if(typeof X.then=="function")return at(G,z,Qf(X),le);if(X.$$typeof===A)return at(G,z,Hf(G,X),le);Xf(G,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,z!==null&&z.tag===6?(l(G,z.sibling),le=g(z,X),le.return=G,G=le):(l(G,z),le=Np(X,G.mode,le),le.return=G,G=le),C(G)):l(G,z)}return function(G,z,X,le){try{Ol=0;var Se=at(G,z,X,le);return ra=null,Se}catch(Ee){if(Ee===ia||Ee===Gf)throw Ee;var Ze=Kn(29,Ee,null,G.mode);return Ze.lanes=le,Ze.return=G,Ze}}}var Ws=Bb(!0),Ub=Bb(!1),Ko=!1;function Up(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zp(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Jo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function es(o,s,l){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(et&2)!==0){var g=d.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),d.pending=s,s=Vf(o),Cb(o,null,l),s}return $f(o,d,s,l),Vf(o)}function Ml(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var d=s.lanes;d&=o.pendingLanes,l|=d,s.lanes=l,Qr(o,l)}}function Hp(o,s){var l=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var g=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?g=b=C:b=b.next=C,l=l.next}while(l!==null);b===null?g=b=s:b=b.next=s}else g=b=s;l={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}var qp=!1;function kl(){if(qp){var o=na;if(o!==null)throw o}}function Ll(o,s,l,d){qp=!1;var g=o.updateQueue;Ko=!1;var b=g.firstBaseUpdate,C=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var V=O,Z=V.next;V.next=null,C===null?b=Z:C.next=Z,C=V;var ue=o.alternate;ue!==null&&(ue=ue.updateQueue,O=ue.lastBaseUpdate,O!==C&&(O===null?ue.firstBaseUpdate=Z:O.next=Z,ue.lastBaseUpdate=V))}if(b!==null){var ce=g.baseState;C=0,ue=Z=V=null,O=b;do{var te=O.lane&-536870913,re=te!==O.lane;if(re?(qe&te)===te:(d&te)===te){te!==0&&te===ta&&(qp=!0),ue!==null&&(ue=ue.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ye=o,we=O;te=s;var at=l;switch(we.tag){case 1:if(ye=we.payload,typeof ye=="function"){ce=ye.call(at,ce,te);break e}ce=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=we.payload,te=typeof ye=="function"?ye.call(at,ce,te):ye,te==null)break e;ce=m({},ce,te);break e;case 2:Ko=!0}}te=O.callback,te!==null&&(o.flags|=64,re&&(o.flags|=8192),re=g.callbacks,re===null?g.callbacks=[te]:re.push(te))}else re={lane:te,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ue===null?(Z=ue=re,V=ce):ue=ue.next=re,C|=te;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;re=O,O=re.next,re.next=null,g.lastBaseUpdate=re,g.shared.pending=null}}while(!0);ue===null&&(V=ce),g.baseState=V,g.firstBaseUpdate=Z,g.lastBaseUpdate=ue,b===null&&(g.shared.lanes=0),os|=C,o.lanes=C,o.memoizedState=ce}}function zb(o,s){if(typeof o!="function")throw Error(i(191,o));o.call(s)}function Hb(o,s){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)zb(l[o],s)}var oa=I(null),Wf=I(0);function qb(o,s){o=bo,ie(Wf,o),ie(oa,s),bo=o|s.baseLanes}function Gp(){ie(Wf,bo),ie(oa,oa.current)}function Yp(){bo=Wf.current,U(oa),U(Wf)}var Jn=I(null),Ei=null;function ts(o){var s=o.alternate;ie(Ft,Ft.current&1),ie(Jn,o),Ei===null&&(s===null||oa.current!==null||s.memoizedState!==null)&&(Ei=o)}function Qp(o){ie(Ft,Ft.current),ie(Jn,o),Ei===null&&(Ei=o)}function Gb(o){o.tag===22?(ie(Ft,Ft.current),ie(Jn,o),Ei===null&&(Ei=o)):ns()}function ns(){ie(Ft,Ft.current),ie(Jn,Jn.current)}function ei(o){U(Jn),Ei===o&&(Ei=null),U(Ft)}var Ft=I(0);function Zf(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||e1(l)||t1(l)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var co=0,Fe=null,st=null,Ut=null,Kf=!1,sa=!1,Zs=!1,Jf=0,Il=0,ua=null,hD=0;function Ot(){throw Error(i(321))}function Xp(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!Zn(o[l],s[l]))return!1;return!0}function Wp(o,s,l,d,g,b){return co=b,Fe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,L.H=o===null||o.memoizedState===null?N3:fm,Zs=!1,b=l(d,g),Zs=!1,sa&&(b=Qb(s,l,d,g)),Yb(o),b}function Yb(o){L.H=Pl;var s=st!==null&&st.next!==null;if(co=0,Ut=st=Fe=null,Kf=!1,Il=0,ua=null,s)throw Error(i(300));o===null||zt||(o=o.dependencies,o!==null&&zf(o)&&(zt=!0))}function Qb(o,s,l,d){Fe=o;var g=0;do{if(sa&&(ua=null),Il=0,sa=!1,25<=g)throw Error(i(301));if(g+=1,Ut=st=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}L.H=O3,b=s(l,d)}while(sa);return b}function pD(){var o=L.H,s=o.useState()[0];return s=typeof s.then=="function"?Fl(s):s,o=o.useState()[0],(st!==null?st.memoizedState:null)!==o&&(Fe.flags|=1024),s}function Zp(){var o=Jf!==0;return Jf=0,o}function Kp(o,s,l){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~l}function Jp(o){if(Kf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Kf=!1}co=0,Ut=st=Fe=null,sa=!1,Il=Jf=0,ua=null}function wn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?Fe.memoizedState=Ut=o:Ut=Ut.next=o,Ut}function jt(){if(st===null){var o=Fe.alternate;o=o!==null?o.memoizedState:null}else o=st.next;var s=Ut===null?Fe.memoizedState:Ut.next;if(s!==null)Ut=s,st=o;else{if(o===null)throw Fe.alternate===null?Error(i(467)):Error(i(310));st=o,o={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},Ut===null?Fe.memoizedState=Ut=o:Ut=Ut.next=o}return Ut}function ed(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fl(o){var s=Il;return Il+=1,ua===null&&(ua=[]),o=Pb(ua,o,s),s=Fe,(Ut===null?s.memoizedState:Ut.next)===null&&(s=s.alternate,L.H=s===null||s.memoizedState===null?N3:fm),o}function td(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Fl(o);if(o.$$typeof===A)return mn(o)}throw Error(i(438,String(o)))}function em(o){var s=null,l=Fe.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var d=Fe.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(s={data:d.data.map(function(g){return g.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=ed(),Fe.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(o),d=0;d<o;d++)l[d]=$;return s.index++,l}function fo(o,s){return typeof s=="function"?s(o):s}function nd(o){var s=jt();return tm(s,st,o)}function tm(o,s,l){var d=o.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=l;var g=o.baseQueue,b=d.pending;if(b!==null){if(g!==null){var C=g.next;g.next=b.next,b.next=C}s.baseQueue=g=b,d.pending=null}if(b=o.baseState,g===null)o.memoizedState=b;else{s=g.next;var O=C=null,V=null,Z=s,ue=!1;do{var ce=Z.lane&-536870913;if(ce!==Z.lane?(qe&ce)===ce:(co&ce)===ce){var te=Z.revertLane;if(te===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),ce===ta&&(ue=!0);else if((co&te)===te){Z=Z.next,te===ta&&(ue=!0);continue}else ce={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},V===null?(O=V=ce,C=b):V=V.next=ce,Fe.lanes|=te,os|=te;ce=Z.action,Zs&&l(b,ce),b=Z.hasEagerState?Z.eagerState:l(b,ce)}else te={lane:ce,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},V===null?(O=V=te,C=b):V=V.next=te,Fe.lanes|=ce,os|=ce;Z=Z.next}while(Z!==null&&Z!==s);if(V===null?C=b:V.next=O,!Zn(b,o.memoizedState)&&(zt=!0,ue&&(l=na,l!==null)))throw l;o.memoizedState=b,o.baseState=C,o.baseQueue=V,d.lastRenderedState=b}return g===null&&(d.lanes=0),[o.memoizedState,d.dispatch]}function nm(o){var s=jt(),l=s.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var d=l.dispatch,g=l.pending,b=s.memoizedState;if(g!==null){l.pending=null;var C=g=g.next;do b=o(b,C.action),C=C.next;while(C!==g);Zn(b,s.memoizedState)||(zt=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),l.lastRenderedState=b}return[b,d]}function Xb(o,s,l){var d=Fe,g=jt(),b=Ye;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=s();var C=!Zn((st||g).memoizedState,l);if(C&&(g.memoizedState=l,zt=!0),g=g.queue,om(Kb.bind(null,d,g,o),[o]),g.getSnapshot!==s||C||Ut!==null&&Ut.memoizedState.tag&1){if(d.flags|=2048,aa(9,{destroy:void 0},Zb.bind(null,d,g,l,s),null),ft===null)throw Error(i(349));b||(co&127)!==0||Wb(d,s,l)}return l}function Wb(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=Fe.updateQueue,s===null?(s=ed(),Fe.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function Zb(o,s,l,d){s.value=l,s.getSnapshot=d,Jb(s)&&e3(o)}function Kb(o,s,l){return l(function(){Jb(s)&&e3(o)})}function Jb(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!Zn(o,l)}catch{return!0}}function e3(o){var s=Us(o,2);s!==null&&Bn(s,o,2)}function im(o){var s=wn();if(typeof o=="function"){var l=o;if(o=l(),Zs){qn(!0);try{l()}finally{qn(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:o},s}function t3(o,s,l,d){return o.baseState=l,tm(o,st,typeof d=="function"?d:fo)}function mD(o,s,l,d,g){if(od(o))throw Error(i(485));if(o=s.action,o!==null){var b={payload:g,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};L.T!==null?l(!0):b.isTransition=!1,d(b),l=s.pending,l===null?(b.next=s.pending=b,n3(s,b)):(b.next=l.next,s.pending=l.next=b)}}function n3(o,s){var l=s.action,d=s.payload,g=o.state;if(s.isTransition){var b=L.T,C={};L.T=C;try{var O=l(g,d),V=L.S;V!==null&&V(C,O),i3(o,s,O)}catch(Z){rm(o,s,Z)}finally{b!==null&&C.types!==null&&(b.types=C.types),L.T=b}}else try{b=l(g,d),i3(o,s,b)}catch(Z){rm(o,s,Z)}}function i3(o,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){r3(o,s,d)},function(d){return rm(o,s,d)}):r3(o,s,l)}function r3(o,s,l){s.status="fulfilled",s.value=l,o3(s),o.state=l,s=o.pending,s!==null&&(l=s.next,l===s?o.pending=null:(l=l.next,s.next=l,n3(o,l)))}function rm(o,s,l){var d=o.pending;if(o.pending=null,d!==null){d=d.next;do s.status="rejected",s.reason=l,o3(s),s=s.next;while(s!==d)}o.action=null}function o3(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function s3(o,s){return s}function u3(o,s){if(Ye){var l=ft.formState;if(l!==null){e:{var d=Fe;if(Ye){if(xt){t:{for(var g=xt,b=xi;g.nodeType!==8;){if(!b){g=null;break t}if(g=Si(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){xt=Si(g.nextSibling),d=g.data==="F!";break e}}Wo(d)}d=!1}d&&(s=l[0])}}return l=wn(),l.memoizedState=l.baseState=s,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s3,lastRenderedState:s},l.queue=d,l=A3.bind(null,Fe,d),d.dispatch=l,d=im(!1),b=cm.bind(null,Fe,!1,d.queue),d=wn(),g={state:s,dispatch:null,action:o,pending:null},d.queue=g,l=mD.bind(null,Fe,g,b,l),g.dispatch=l,d.memoizedState=o,[s,l,!1]}function a3(o){var s=jt();return l3(s,st,o)}function l3(o,s,l){if(s=tm(o,s,s3)[0],o=nd(fo)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var d=Fl(s)}catch(C){throw C===ia?Gf:C}else d=s;s=jt();var g=s.queue,b=g.dispatch;return l!==s.memoizedState&&(Fe.flags|=2048,aa(9,{destroy:void 0},gD.bind(null,g,l),null)),[d,b,o]}function gD(o,s){o.action=s}function c3(o){var s=jt(),l=st;if(l!==null)return l3(s,l,o);jt(),s=s.memoizedState,l=jt();var d=l.queue.dispatch;return l.memoizedState=o,[s,d,!1]}function aa(o,s,l,d){return o={tag:o,create:l,deps:d,inst:s,next:null},s=Fe.updateQueue,s===null&&(s=ed(),Fe.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=o.next=o:(d=l.next,l.next=o,o.next=d,s.lastEffect=o),o}function f3(){return jt().memoizedState}function id(o,s,l,d){var g=wn();Fe.flags|=o,g.memoizedState=aa(1|s,{destroy:void 0},l,d===void 0?null:d)}function rd(o,s,l,d){var g=jt();d=d===void 0?null:d;var b=g.memoizedState.inst;st!==null&&d!==null&&Xp(d,st.memoizedState.deps)?g.memoizedState=aa(s,b,l,d):(Fe.flags|=o,g.memoizedState=aa(1|s,b,l,d))}function d3(o,s){id(8390656,8,o,s)}function om(o,s){rd(2048,8,o,s)}function vD(o){Fe.flags|=4;var s=Fe.updateQueue;if(s===null)s=ed(),Fe.updateQueue=s,s.events=[o];else{var l=s.events;l===null?s.events=[o]:l.push(o)}}function h3(o){var s=jt().memoizedState;return vD({ref:s,nextImpl:o}),function(){if((et&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}function p3(o,s){return rd(4,2,o,s)}function m3(o,s){return rd(4,4,o,s)}function g3(o,s){if(typeof s=="function"){o=o();var l=s(o);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function v3(o,s,l){l=l!=null?l.concat([o]):null,rd(4,4,g3.bind(null,s,o),l)}function sm(){}function y3(o,s){var l=jt();s=s===void 0?null:s;var d=l.memoizedState;return s!==null&&Xp(s,d[1])?d[0]:(l.memoizedState=[o,s],o)}function b3(o,s){var l=jt();s=s===void 0?null:s;var d=l.memoizedState;if(s!==null&&Xp(s,d[1]))return d[0];if(d=o(),Zs){qn(!0);try{o()}finally{qn(!1)}}return l.memoizedState=[d,s],d}function um(o,s,l){return l===void 0||(co&1073741824)!==0&&(qe&261930)===0?o.memoizedState=s:(o.memoizedState=l,o=xx(),Fe.lanes|=o,os|=o,l)}function x3(o,s,l,d){return Zn(l,s)?l:oa.current!==null?(o=um(o,l,d),Zn(o,s)||(zt=!0),o):(co&42)===0||(co&1073741824)!==0&&(qe&261930)===0?(zt=!0,o.memoizedState=l):(o=xx(),Fe.lanes|=o,os|=o,s)}function E3(o,s,l,d,g){var b=q.p;q.p=b!==0&&8>b?b:8;var C=L.T,O={};L.T=O,cm(o,!1,s,l);try{var V=g(),Z=L.S;if(Z!==null&&Z(O,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ue=dD(V,d);jl(o,s,ue,ii(o))}else jl(o,s,d,ii(o))}catch(ce){jl(o,s,{then:function(){},status:"rejected",reason:ce},ii())}finally{q.p=b,C!==null&&O.types!==null&&(C.types=O.types),L.T=C}}function yD(){}function am(o,s,l,d){if(o.tag!==5)throw Error(i(476));var g=S3(o).queue;E3(o,g,s,j,l===null?yD:function(){return T3(o),l(d)})}function S3(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:j},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:l},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function T3(o){var s=S3(o);s.next===null&&(s=o.alternate.memoizedState),jl(o,s.next.queue,{},ii())}function lm(){return mn(ec)}function _3(){return jt().memoizedState}function C3(){return jt().memoizedState}function bD(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var l=ii();o=Jo(l);var d=es(s,o,l);d!==null&&(Bn(d,s,l),Ml(d,s,l)),s={cache:Pp()},o.payload=s;return}s=s.return}}function xD(o,s,l){var d=ii();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},od(o)?w3(s,l):(l=wp(o,s,l,d),l!==null&&(Bn(l,o,d),D3(l,s,d)))}function A3(o,s,l){var d=ii();jl(o,s,l,d)}function jl(o,s,l,d){var g={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(od(o))w3(s,g);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var C=s.lastRenderedState,O=b(C,l);if(g.hasEagerState=!0,g.eagerState=O,Zn(O,C))return $f(o,s,g,0),ft===null&&Pf(),!1}catch{}if(l=wp(o,s,g,d),l!==null)return Bn(l,o,d),D3(l,s,d),!0}return!1}function cm(o,s,l,d){if(d={lane:2,revertLane:Um(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},od(o)){if(s)throw Error(i(479))}else s=wp(o,l,d,2),s!==null&&Bn(s,o,2)}function od(o){var s=o.alternate;return o===Fe||s!==null&&s===Fe}function w3(o,s){sa=Kf=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function D3(o,s,l){if((l&4194048)!==0){var d=s.lanes;d&=o.pendingLanes,l|=d,s.lanes=l,Qr(o,l)}}var Pl={readContext:mn,use:td,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};Pl.useEffectEvent=Ot;var N3={readContext:mn,use:td,useCallback:function(o,s){return wn().memoizedState=[o,s===void 0?null:s],o},useContext:mn,useEffect:d3,useImperativeHandle:function(o,s,l){l=l!=null?l.concat([o]):null,id(4194308,4,g3.bind(null,s,o),l)},useLayoutEffect:function(o,s){return id(4194308,4,o,s)},useInsertionEffect:function(o,s){id(4,2,o,s)},useMemo:function(o,s){var l=wn();s=s===void 0?null:s;var d=o();if(Zs){qn(!0);try{o()}finally{qn(!1)}}return l.memoizedState=[d,s],d},useReducer:function(o,s,l){var d=wn();if(l!==void 0){var g=l(s);if(Zs){qn(!0);try{l(s)}finally{qn(!1)}}}else g=s;return d.memoizedState=d.baseState=g,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:g},d.queue=o,o=o.dispatch=xD.bind(null,Fe,o),[d.memoizedState,o]},useRef:function(o){var s=wn();return o={current:o},s.memoizedState=o},useState:function(o){o=im(o);var s=o.queue,l=A3.bind(null,Fe,s);return s.dispatch=l,[o.memoizedState,l]},useDebugValue:sm,useDeferredValue:function(o,s){var l=wn();return um(l,o,s)},useTransition:function(){var o=im(!1);return o=E3.bind(null,Fe,o.queue,!0,!1),wn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,l){var d=Fe,g=wn();if(Ye){if(l===void 0)throw Error(i(407));l=l()}else{if(l=s(),ft===null)throw Error(i(349));(qe&127)!==0||Wb(d,s,l)}g.memoizedState=l;var b={value:l,getSnapshot:s};return g.queue=b,d3(Kb.bind(null,d,b,o),[o]),d.flags|=2048,aa(9,{destroy:void 0},Zb.bind(null,d,b,l,s),null),l},useId:function(){var o=wn(),s=ft.identifierPrefix;if(Ye){var l=Er,d=xr;l=(d&~(1<<32-Wt(d)-1)).toString(32)+l,s="_"+s+"R_"+l,l=Jf++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=hD++,s="_"+s+"r_"+l.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:lm,useFormState:u3,useActionState:u3,useOptimistic:function(o){var s=wn();s.memoizedState=s.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=cm.bind(null,Fe,!0,l),l.dispatch=s,[o,s]},useMemoCache:em,useCacheRefresh:function(){return wn().memoizedState=bD.bind(null,Fe)},useEffectEvent:function(o){var s=wn(),l={impl:o};return s.memoizedState=l,function(){if((et&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},fm={readContext:mn,use:td,useCallback:y3,useContext:mn,useEffect:om,useImperativeHandle:v3,useInsertionEffect:p3,useLayoutEffect:m3,useMemo:b3,useReducer:nd,useRef:f3,useState:function(){return nd(fo)},useDebugValue:sm,useDeferredValue:function(o,s){var l=jt();return x3(l,st.memoizedState,o,s)},useTransition:function(){var o=nd(fo)[0],s=jt().memoizedState;return[typeof o=="boolean"?o:Fl(o),s]},useSyncExternalStore:Xb,useId:_3,useHostTransitionStatus:lm,useFormState:a3,useActionState:a3,useOptimistic:function(o,s){var l=jt();return t3(l,st,o,s)},useMemoCache:em,useCacheRefresh:C3};fm.useEffectEvent=h3;var O3={readContext:mn,use:td,useCallback:y3,useContext:mn,useEffect:om,useImperativeHandle:v3,useInsertionEffect:p3,useLayoutEffect:m3,useMemo:b3,useReducer:nm,useRef:f3,useState:function(){return nm(fo)},useDebugValue:sm,useDeferredValue:function(o,s){var l=jt();return st===null?um(l,o,s):x3(l,st.memoizedState,o,s)},useTransition:function(){var o=nm(fo)[0],s=jt().memoizedState;return[typeof o=="boolean"?o:Fl(o),s]},useSyncExternalStore:Xb,useId:_3,useHostTransitionStatus:lm,useFormState:c3,useActionState:c3,useOptimistic:function(o,s){var l=jt();return st!==null?t3(l,st,o,s):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:em,useCacheRefresh:C3};O3.useEffectEvent=h3;function dm(o,s,l,d){s=o.memoizedState,l=l(d,s),l=l==null?s:m({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var hm={enqueueSetState:function(o,s,l){o=o._reactInternals;var d=ii(),g=Jo(d);g.payload=s,l!=null&&(g.callback=l),s=es(o,g,d),s!==null&&(Bn(s,o,d),Ml(s,o,d))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var d=ii(),g=Jo(d);g.tag=1,g.payload=s,l!=null&&(g.callback=l),s=es(o,g,d),s!==null&&(Bn(s,o,d),Ml(s,o,d))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=ii(),d=Jo(l);d.tag=2,s!=null&&(d.callback=s),s=es(o,d,l),s!==null&&(Bn(s,o,l),Ml(s,o,l))}};function R3(o,s,l,d,g,b,C){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,b,C):s.prototype&&s.prototype.isPureReactComponent?!_l(l,d)||!_l(g,b):!0}function M3(o,s,l,d){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,d),s.state!==o&&hm.enqueueReplaceState(s,s.state,null)}function Ks(o,s){var l=s;if("ref"in s){l={};for(var d in s)d!=="ref"&&(l[d]=s[d])}if(o=o.defaultProps){l===s&&(l=m({},l));for(var g in o)l[g]===void 0&&(l[g]=o[g])}return l}function k3(o){jf(o)}function L3(o){console.error(o)}function I3(o){jf(o)}function sd(o,s){try{var l=o.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(d){setTimeout(function(){throw d})}}function F3(o,s,l){try{var d=o.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function pm(o,s,l){return l=Jo(l),l.tag=3,l.payload={element:null},l.callback=function(){sd(o,s)},l}function j3(o){return o=Jo(o),o.tag=3,o}function P3(o,s,l,d){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var b=d.value;o.payload=function(){return g(b)},o.callback=function(){F3(s,l,d)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(o.callback=function(){F3(s,l,d),typeof g!="function"&&(ss===null?ss=new Set([this]):ss.add(this));var O=d.stack;this.componentDidCatch(d.value,{componentStack:O!==null?O:""})})}function ED(o,s,l,d,g){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(s=l.alternate,s!==null&&ea(s,l,g,!0),l=Jn.current,l!==null){switch(l.tag){case 31:case 13:return Ei===null?yd():l.alternate===null&&Rt===0&&(Rt=3),l.flags&=-257,l.flags|=65536,l.lanes=g,d===Yf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([d]):s.add(d),$m(o,d,g)),!1;case 22:return l.flags|=65536,d===Yf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([d]):l.add(d)),$m(o,d,g)),!1}throw Error(i(435,l.tag))}return $m(o,d,g),yd(),!1}if(Ye)return s=Jn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=g,d!==kp&&(o=Error(i(422),{cause:d}),wl(vi(o,l)))):(d!==kp&&(s=Error(i(423),{cause:d}),wl(vi(s,l))),o=o.current.alternate,o.flags|=65536,g&=-g,o.lanes|=g,d=vi(d,l),g=pm(o.stateNode,d,g),Hp(o,g),Rt!==4&&(Rt=2)),!1;var b=Error(i(520),{cause:d});if(b=vi(b,l),Gl===null?Gl=[b]:Gl.push(b),Rt!==4&&(Rt=2),s===null)return!0;d=vi(d,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,o=g&-g,l.lanes|=o,o=pm(l.stateNode,d,o),Hp(l,o),!1;case 1:if(s=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ss===null||!ss.has(b))))return l.flags|=65536,g&=-g,l.lanes|=g,g=j3(g),P3(g,o,l,d),Hp(l,g),!1}l=l.return}while(l!==null);return!1}var mm=Error(i(461)),zt=!1;function gn(o,s,l,d){s.child=o===null?Ub(s,null,l,d):Ws(s,o.child,l,d)}function $3(o,s,l,d,g){l=l.render;var b=s.ref;if("ref"in d){var C={};for(var O in d)O!=="ref"&&(C[O]=d[O])}else C=d;return Gs(s),d=Wp(o,s,l,C,b,g),O=Zp(),o!==null&&!zt?(Kp(o,s,g),ho(o,s,g)):(Ye&&O&&Rp(s),s.flags|=1,gn(o,s,d,g),s.child)}function V3(o,s,l,d,g){if(o===null){var b=l.type;return typeof b=="function"&&!Dp(b)&&b.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=b,B3(o,s,b,d,g)):(o=Bf(l.type,null,d,s,s.mode,g),o.ref=s.ref,o.return=s,s.child=o)}if(b=o.child,!Tm(o,g)){var C=b.memoizedProps;if(l=l.compare,l=l!==null?l:_l,l(C,d)&&o.ref===s.ref)return ho(o,s,g)}return s.flags|=1,o=so(b,d),o.ref=s.ref,o.return=s,s.child=o}function B3(o,s,l,d,g){if(o!==null){var b=o.memoizedProps;if(_l(b,d)&&o.ref===s.ref)if(zt=!1,s.pendingProps=d=b,Tm(o,g))(o.flags&131072)!==0&&(zt=!0);else return s.lanes=o.lanes,ho(o,s,g)}return gm(o,s,l,d,g)}function U3(o,s,l,d){var g=d.children,b=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((s.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(d=s.child=o.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~b}else d=0,s.child=null;return z3(o,s,b,l,d)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&qf(s,b!==null?b.cachePool:null),b!==null?qb(s,b):Gp(),Gb(s);else return d=s.lanes=536870912,z3(o,s,b!==null?b.baseLanes|l:l,l,d)}else b!==null?(qf(s,b.cachePool),qb(s,b),ns(),s.memoizedState=null):(o!==null&&qf(s,null),Gp(),ns());return gn(o,s,g,l),s.child}function $l(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function z3(o,s,l,d,g){var b=Vp();return b=b===null?null:{parent:Bt._currentValue,pool:b},s.memoizedState={baseLanes:l,cachePool:b},o!==null&&qf(s,null),Gp(),Gb(s),o!==null&&ea(o,s,d,!0),s.childLanes=g,null}function ud(o,s){return s=ld({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function H3(o,s,l){return Ws(s,o.child,null,l),o=ud(s,s.pendingProps),o.flags|=2,ei(s),s.memoizedState=null,o}function SD(o,s,l){var d=s.pendingProps,g=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Ye){if(d.mode==="hidden")return o=ud(s,d),s.lanes=536870912,$l(null,o);if(Qp(s),(o=xt)?(o=nE(o,xi),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Qo!==null?{id:xr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},l=wb(o),l.return=s,s.child=l,pn=s,xt=null)):o=null,o===null)throw Wo(s);return s.lanes=536870912,null}return ud(s,d)}var b=o.memoizedState;if(b!==null){var C=b.dehydrated;if(Qp(s),g)if(s.flags&256)s.flags&=-257,s=H3(o,s,l);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(i(558));else if(zt||ea(o,s,l,!1),g=(l&o.childLanes)!==0,zt||g){if(d=ft,d!==null&&(C=Xr(d,l),C!==0&&C!==b.retryLane))throw b.retryLane=C,Us(o,C),Bn(d,o,C),mm;yd(),s=H3(o,s,l)}else o=b.treeContext,xt=Si(C.nextSibling),pn=s,Ye=!0,Xo=null,xi=!1,o!==null&&Ob(s,o),s=ud(s,d),s.flags|=4096;return s}return o=so(o.child,{mode:d.mode,children:d.children}),o.ref=s.ref,s.child=o,o.return=s,o}function ad(o,s){var l=s.ref;if(l===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(o===null||o.ref!==l)&&(s.flags|=4194816)}}function gm(o,s,l,d,g){return Gs(s),l=Wp(o,s,l,d,void 0,g),d=Zp(),o!==null&&!zt?(Kp(o,s,g),ho(o,s,g)):(Ye&&d&&Rp(s),s.flags|=1,gn(o,s,l,g),s.child)}function q3(o,s,l,d,g,b){return Gs(s),s.updateQueue=null,l=Qb(s,d,l,g),Yb(o),d=Zp(),o!==null&&!zt?(Kp(o,s,b),ho(o,s,b)):(Ye&&d&&Rp(s),s.flags|=1,gn(o,s,l,b),s.child)}function G3(o,s,l,d,g){if(Gs(s),s.stateNode===null){var b=Wu,C=l.contextType;typeof C=="object"&&C!==null&&(b=mn(C)),b=new l(d,b),s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=hm,s.stateNode=b,b._reactInternals=s,b=s.stateNode,b.props=d,b.state=s.memoizedState,b.refs={},Up(s),C=l.contextType,b.context=typeof C=="object"&&C!==null?mn(C):Wu,b.state=s.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(dm(s,l,C,d),b.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(C=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),C!==b.state&&hm.enqueueReplaceState(b,b.state,null),Ll(s,d,b,g),kl(),b.state=s.memoizedState),typeof b.componentDidMount=="function"&&(s.flags|=4194308),d=!0}else if(o===null){b=s.stateNode;var O=s.memoizedProps,V=Ks(l,O);b.props=V;var Z=b.context,ue=l.contextType;C=Wu,typeof ue=="object"&&ue!==null&&(C=mn(ue));var ce=l.getDerivedStateFromProps;ue=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=s.pendingProps!==O,ue||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||Z!==C)&&M3(s,b,d,C),Ko=!1;var te=s.memoizedState;b.state=te,Ll(s,d,b,g),kl(),Z=s.memoizedState,O||te!==Z||Ko?(typeof ce=="function"&&(dm(s,l,ce,d),Z=s.memoizedState),(V=Ko||R3(s,l,V,d,te,Z,C))?(ue||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=Z),b.props=d,b.state=Z,b.context=C,d=V):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{b=s.stateNode,zp(o,s),C=s.memoizedProps,ue=Ks(l,C),b.props=ue,ce=s.pendingProps,te=b.context,Z=l.contextType,V=Wu,typeof Z=="object"&&Z!==null&&(V=mn(Z)),O=l.getDerivedStateFromProps,(Z=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==ce||te!==V)&&M3(s,b,d,V),Ko=!1,te=s.memoizedState,b.state=te,Ll(s,d,b,g),kl();var re=s.memoizedState;C!==ce||te!==re||Ko||o!==null&&o.dependencies!==null&&zf(o.dependencies)?(typeof O=="function"&&(dm(s,l,O,d),re=s.memoizedState),(ue=Ko||R3(s,l,ue,d,te,re,V)||o!==null&&o.dependencies!==null&&zf(o.dependencies))?(Z||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,re,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,re,V)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===o.memoizedProps&&te===o.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===o.memoizedProps&&te===o.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=re),b.props=d,b.state=re,b.context=V,d=ue):(typeof b.componentDidUpdate!="function"||C===o.memoizedProps&&te===o.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===o.memoizedProps&&te===o.memoizedState||(s.flags|=1024),d=!1)}return b=d,ad(o,s),d=(s.flags&128)!==0,b||d?(b=s.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:b.render(),s.flags|=1,o!==null&&d?(s.child=Ws(s,o.child,null,g),s.child=Ws(s,null,l,g)):gn(o,s,l,g),s.memoizedState=b.state,o=s.child):o=ho(o,s,g),o}function Y3(o,s,l,d){return Hs(),s.flags|=256,gn(o,s,l,d),s.child}var vm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ym(o){return{baseLanes:o,cachePool:Fb()}}function bm(o,s,l){return o=o!==null?o.childLanes&~l:0,s&&(o|=ni),o}function Q3(o,s,l){var d=s.pendingProps,g=!1,b=(s.flags&128)!==0,C;if((C=b)||(C=o!==null&&o.memoizedState===null?!1:(Ft.current&2)!==0),C&&(g=!0,s.flags&=-129),C=(s.flags&32)!==0,s.flags&=-33,o===null){if(Ye){if(g?ts(s):ns(),(o=xt)?(o=nE(o,xi),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Qo!==null?{id:xr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},l=wb(o),l.return=s,s.child=l,pn=s,xt=null)):o=null,o===null)throw Wo(s);return t1(o)?s.lanes=32:s.lanes=536870912,null}var O=d.children;return d=d.fallback,g?(ns(),g=s.mode,O=ld({mode:"hidden",children:O},g),d=zs(d,g,l,null),O.return=s,d.return=s,O.sibling=d,s.child=O,d=s.child,d.memoizedState=ym(l),d.childLanes=bm(o,C,l),s.memoizedState=vm,$l(null,d)):(ts(s),xm(s,O))}var V=o.memoizedState;if(V!==null&&(O=V.dehydrated,O!==null)){if(b)s.flags&256?(ts(s),s.flags&=-257,s=Em(o,s,l)):s.memoizedState!==null?(ns(),s.child=o.child,s.flags|=128,s=null):(ns(),O=d.fallback,g=s.mode,d=ld({mode:"visible",children:d.children},g),O=zs(O,g,l,null),O.flags|=2,d.return=s,O.return=s,d.sibling=O,s.child=d,Ws(s,o.child,null,l),d=s.child,d.memoizedState=ym(l),d.childLanes=bm(o,C,l),s.memoizedState=vm,s=$l(null,d));else if(ts(s),t1(O)){if(C=O.nextSibling&&O.nextSibling.dataset,C)var Z=C.dgst;C=Z,d=Error(i(419)),d.stack="",d.digest=C,wl({value:d,source:null,stack:null}),s=Em(o,s,l)}else if(zt||ea(o,s,l,!1),C=(l&o.childLanes)!==0,zt||C){if(C=ft,C!==null&&(d=Xr(C,l),d!==0&&d!==V.retryLane))throw V.retryLane=d,Us(o,d),Bn(C,o,d),mm;e1(O)||yd(),s=Em(o,s,l)}else e1(O)?(s.flags|=192,s.child=o.child,s=null):(o=V.treeContext,xt=Si(O.nextSibling),pn=s,Ye=!0,Xo=null,xi=!1,o!==null&&Ob(s,o),s=xm(s,d.children),s.flags|=4096);return s}return g?(ns(),O=d.fallback,g=s.mode,V=o.child,Z=V.sibling,d=so(V,{mode:"hidden",children:d.children}),d.subtreeFlags=V.subtreeFlags&65011712,Z!==null?O=so(Z,O):(O=zs(O,g,l,null),O.flags|=2),O.return=s,d.return=s,d.sibling=O,s.child=d,$l(null,d),d=s.child,O=o.child.memoizedState,O===null?O=ym(l):(g=O.cachePool,g!==null?(V=Bt._currentValue,g=g.parent!==V?{parent:V,pool:V}:g):g=Fb(),O={baseLanes:O.baseLanes|l,cachePool:g}),d.memoizedState=O,d.childLanes=bm(o,C,l),s.memoizedState=vm,$l(o.child,d)):(ts(s),l=o.child,o=l.sibling,l=so(l,{mode:"visible",children:d.children}),l.return=s,l.sibling=null,o!==null&&(C=s.deletions,C===null?(s.deletions=[o],s.flags|=16):C.push(o)),s.child=l,s.memoizedState=null,l)}function xm(o,s){return s=ld({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function ld(o,s){return o=Kn(22,o,null,s),o.lanes=0,o}function Em(o,s,l){return Ws(s,o.child,null,l),o=xm(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function X3(o,s,l){o.lanes|=s;var d=o.alternate;d!==null&&(d.lanes|=s),Fp(o.return,s,l)}function Sm(o,s,l,d,g,b){var C=o.memoizedState;C===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g,treeForkCount:b}:(C.isBackwards=s,C.rendering=null,C.renderingStartTime=0,C.last=d,C.tail=l,C.tailMode=g,C.treeForkCount=b)}function W3(o,s,l){var d=s.pendingProps,g=d.revealOrder,b=d.tail;d=d.children;var C=Ft.current,O=(C&2)!==0;if(O?(C=C&1|2,s.flags|=128):C&=1,ie(Ft,C),gn(o,s,d,l),d=Ye?Al:0,!O&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&X3(o,l,s);else if(o.tag===19)X3(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(g){case"forwards":for(l=s.child,g=null;l!==null;)o=l.alternate,o!==null&&Zf(o)===null&&(g=l),l=l.sibling;l=g,l===null?(g=s.child,s.child=null):(g=l.sibling,l.sibling=null),Sm(s,!1,g,l,b,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,g=s.child,s.child=null;g!==null;){if(o=g.alternate,o!==null&&Zf(o)===null){s.child=g;break}o=g.sibling,g.sibling=l,l=g,g=o}Sm(s,!0,l,null,b,d);break;case"together":Sm(s,!1,null,null,void 0,d);break;default:s.memoizedState=null}return s.child}function ho(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),os|=s.lanes,(l&s.childLanes)===0)if(o!==null){if(ea(o,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(i(153));if(s.child!==null){for(o=s.child,l=so(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=so(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function Tm(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&zf(o)))}function TD(o,s,l){switch(s.tag){case 3:fe(s,s.stateNode.containerInfo),Zo(s,Bt,o.memoizedState.cache),Hs();break;case 27:case 5:Ne(s);break;case 4:fe(s,s.stateNode.containerInfo);break;case 10:Zo(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Qp(s),null;break;case 13:var d=s.memoizedState;if(d!==null)return d.dehydrated!==null?(ts(s),s.flags|=128,null):(l&s.child.childLanes)!==0?Q3(o,s,l):(ts(s),o=ho(o,s,l),o!==null?o.sibling:null);ts(s);break;case 19:var g=(o.flags&128)!==0;if(d=(l&s.childLanes)!==0,d||(ea(o,s,l,!1),d=(l&s.childLanes)!==0),g){if(d)return W3(o,s,l);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),ie(Ft,Ft.current),d)break;return null;case 22:return s.lanes=0,U3(o,s,l,s.pendingProps);case 24:Zo(s,Bt,o.memoizedState.cache)}return ho(o,s,l)}function Z3(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps)zt=!0;else{if(!Tm(o,l)&&(s.flags&128)===0)return zt=!1,TD(o,s,l);zt=(o.flags&131072)!==0}else zt=!1,Ye&&(s.flags&1048576)!==0&&Nb(s,Al,s.index);switch(s.lanes=0,s.tag){case 16:e:{var d=s.pendingProps;if(o=Qs(s.elementType),s.type=o,typeof o=="function")Dp(o)?(d=Ks(o,d),s.tag=1,s=G3(null,s,o,d,l)):(s.tag=0,s=gm(null,s,o,d,l));else{if(o!=null){var g=o.$$typeof;if(g===D){s.tag=11,s=$3(null,s,o,d,l);break e}else if(g===F){s.tag=14,s=V3(null,s,o,d,l);break e}}throw s=W(o)||o,Error(i(306,s,""))}}return s;case 0:return gm(o,s,s.type,s.pendingProps,l);case 1:return d=s.type,g=Ks(d,s.pendingProps),G3(o,s,d,g,l);case 3:e:{if(fe(s,s.stateNode.containerInfo),o===null)throw Error(i(387));d=s.pendingProps;var b=s.memoizedState;g=b.element,zp(o,s),Ll(s,d,null,l);var C=s.memoizedState;if(d=C.cache,Zo(s,Bt,d),d!==b.cache&&jp(s,[Bt],l,!0),kl(),d=C.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:C.cache},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){s=Y3(o,s,d,l);break e}else if(d!==g){g=vi(Error(i(424)),s),wl(g),s=Y3(o,s,d,l);break e}else for(o=s.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,xt=Si(o.firstChild),pn=s,Ye=!0,Xo=null,xi=!0,l=Ub(s,null,d,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Hs(),d===g){s=ho(o,s,l);break e}gn(o,s,d,l)}s=s.child}return s;case 26:return ad(o,s),o===null?(l=aE(s.type,null,s.pendingProps,null))?s.memoizedState=l:Ye||(l=s.type,o=s.pendingProps,d=Cd(de.current).createElement(l),d[Ct]=s,d[Zt]=o,vn(d,l,o),bt(d),s.stateNode=d):s.memoizedState=aE(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return Ne(s),o===null&&Ye&&(d=s.stateNode=oE(s.type,s.pendingProps,de.current),pn=s,xi=!0,g=xt,cs(s.type)?(n1=g,xt=Si(d.firstChild)):xt=g),gn(o,s,s.pendingProps.children,l),ad(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Ye&&((g=d=xt)&&(d=JD(d,s.type,s.pendingProps,xi),d!==null?(s.stateNode=d,pn=s,xt=Si(d.firstChild),xi=!1,g=!0):g=!1),g||Wo(s)),Ne(s),g=s.type,b=s.pendingProps,C=o!==null?o.memoizedProps:null,d=b.children,Zm(g,b)?d=null:C!==null&&Zm(g,C)&&(s.flags|=32),s.memoizedState!==null&&(g=Wp(o,s,pD,null,null,l),ec._currentValue=g),ad(o,s),gn(o,s,d,l),s.child;case 6:return o===null&&Ye&&((o=l=xt)&&(l=eN(l,s.pendingProps,xi),l!==null?(s.stateNode=l,pn=s,xt=null,o=!0):o=!1),o||Wo(s)),null;case 13:return Q3(o,s,l);case 4:return fe(s,s.stateNode.containerInfo),d=s.pendingProps,o===null?s.child=Ws(s,null,d,l):gn(o,s,d,l),s.child;case 11:return $3(o,s,s.type,s.pendingProps,l);case 7:return gn(o,s,s.pendingProps,l),s.child;case 8:return gn(o,s,s.pendingProps.children,l),s.child;case 12:return gn(o,s,s.pendingProps.children,l),s.child;case 10:return d=s.pendingProps,Zo(s,s.type,d.value),gn(o,s,d.children,l),s.child;case 9:return g=s.type._context,d=s.pendingProps.children,Gs(s),g=mn(g),d=d(g),s.flags|=1,gn(o,s,d,l),s.child;case 14:return V3(o,s,s.type,s.pendingProps,l);case 15:return B3(o,s,s.type,s.pendingProps,l);case 19:return W3(o,s,l);case 31:return SD(o,s,l);case 22:return U3(o,s,l,s.pendingProps);case 24:return Gs(s),d=mn(Bt),o===null?(g=Vp(),g===null&&(g=ft,b=Pp(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=l),g=b),s.memoizedState={parent:d,cache:g},Up(s),Zo(s,Bt,g)):((o.lanes&l)!==0&&(zp(o,s),Ll(s,null,null,l),kl()),g=o.memoizedState,b=s.memoizedState,g.parent!==d?(g={parent:d,cache:d},s.memoizedState=g,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=g),Zo(s,Bt,d)):(d=b.cache,Zo(s,Bt,d),d!==g.cache&&jp(s,[Bt],l,!0))),gn(o,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function po(o){o.flags|=4}function _m(o,s,l,d,g){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(g&335544128)===g)if(o.stateNode.complete)o.flags|=8192;else if(_x())o.flags|=8192;else throw Xs=Yf,Bp}else o.flags&=-16777217}function K3(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!hE(s))if(_x())o.flags|=8192;else throw Xs=Yf,Bp}function cd(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?Fs():536870912,o.lanes|=s,da|=s)}function Vl(o,s){if(!Ye)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function Et(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,d=0;if(s)for(var g=o.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=d,o.childLanes=l,s}function _D(o,s,l){var d=s.pendingProps;switch(Mp(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(s),null;case 1:return Et(s),null;case 3:return l=s.stateNode,d=null,o!==null&&(d=o.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),lo(Bt),ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Ju(s)?po(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Lp())),Et(s),null;case 26:var g=s.type,b=s.memoizedState;return o===null?(po(s),b!==null?(Et(s),K3(s,b)):(Et(s),_m(s,g,null,d,l))):b?b!==o.memoizedState?(po(s),Et(s),K3(s,b)):(Et(s),s.flags&=-16777217):(o=o.memoizedProps,o!==d&&po(s),Et(s),_m(s,g,o,d,l)),null;case 27:if(Te(s),l=de.current,g=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==d&&po(s);else{if(!d){if(s.stateNode===null)throw Error(i(166));return Et(s),null}o=ee.current,Ju(s)?Rb(s):(o=oE(g,d,l),s.stateNode=o,po(s))}return Et(s),null;case 5:if(Te(s),g=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==d&&po(s);else{if(!d){if(s.stateNode===null)throw Error(i(166));return Et(s),null}if(b=ee.current,Ju(s))Rb(s);else{var C=Cd(de.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=C.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof d.is=="string"?C.createElement("select",{is:d.is}):C.createElement("select"),d.multiple?b.multiple=!0:d.size&&(b.size=d.size);break;default:b=typeof d.is=="string"?C.createElement(g,{is:d.is}):C.createElement(g)}}b[Ct]=s,b[Zt]=d;e:for(C=s.child;C!==null;){if(C.tag===5||C.tag===6)b.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===s)break e;for(;C.sibling===null;){if(C.return===null||C.return===s)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}s.stateNode=b;e:switch(vn(b,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&&po(s)}}return Et(s),_m(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,l),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==d&&po(s);else{if(typeof d!="string"&&s.stateNode===null)throw Error(i(166));if(o=de.current,Ju(s)){if(o=s.stateNode,l=s.memoizedProps,d=null,g=pn,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}o[Ct]=s,o=!!(o.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||Qx(o.nodeValue,l)),o||Wo(s,!0)}else o=Cd(o).createTextNode(d),o[Ct]=s,s.stateNode=o}return Et(s),null;case 31:if(l=s.memoizedState,o===null||o.memoizedState!==null){if(d=Ju(s),l!==null){if(o===null){if(!d)throw Error(i(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[Ct]=s}else Hs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Et(s),o=!1}else l=Lp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return s.flags&256?(ei(s),s):(ei(s),null);if((s.flags&128)!==0)throw Error(i(558))}return Et(s),null;case 13:if(d=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(g=Ju(s),d!==null&&d.dehydrated!==null){if(o===null){if(!g)throw Error(i(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Ct]=s}else Hs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Et(s),g=!1}else g=Lp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=g),g=!0;if(!g)return s.flags&256?(ei(s),s):(ei(s),null)}return ei(s),(s.flags&128)!==0?(s.lanes=l,s):(l=d!==null,o=o!==null&&o.memoizedState!==null,l&&(d=s.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==g&&(d.flags|=2048)),l!==o&&l&&(s.child.flags|=8192),cd(s,s.updateQueue),Et(s),null);case 4:return ge(),o===null&&Gm(s.stateNode.containerInfo),Et(s),null;case 10:return lo(s.type),Et(s),null;case 19:if(U(Ft),d=s.memoizedState,d===null)return Et(s),null;if(g=(s.flags&128)!==0,b=d.rendering,b===null)if(g)Vl(d,!1);else{if(Rt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(b=Zf(o),b!==null){for(s.flags|=128,Vl(d,!1),o=b.updateQueue,s.updateQueue=o,cd(s,o),s.subtreeFlags=0,o=l,l=s.child;l!==null;)Ab(l,o),l=l.sibling;return ie(Ft,Ft.current&1|2),Ye&&uo(s,d.treeForkCount),s.child}o=o.sibling}d.tail!==null&&ct()>md&&(s.flags|=128,g=!0,Vl(d,!1),s.lanes=4194304)}else{if(!g)if(o=Zf(b),o!==null){if(s.flags|=128,g=!0,o=o.updateQueue,s.updateQueue=o,cd(s,o),Vl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!b.alternate&&!Ye)return Et(s),null}else 2*ct()-d.renderingStartTime>md&&l!==536870912&&(s.flags|=128,g=!0,Vl(d,!1),s.lanes=4194304);d.isBackwards?(b.sibling=s.child,s.child=b):(o=d.last,o!==null?o.sibling=b:s.child=b,d.last=b)}return d.tail!==null?(o=d.tail,d.rendering=o,d.tail=o.sibling,d.renderingStartTime=ct(),o.sibling=null,l=Ft.current,ie(Ft,g?l&1|2:l&1),Ye&&uo(s,d.treeForkCount),o):(Et(s),null);case 22:case 23:return ei(s),Yp(),d=s.memoizedState!==null,o!==null?o.memoizedState!==null!==d&&(s.flags|=8192):d&&(s.flags|=8192),d?(l&536870912)!==0&&(s.flags&128)===0&&(Et(s),s.subtreeFlags&6&&(s.flags|=8192)):Et(s),l=s.updateQueue,l!==null&&cd(s,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==l&&(s.flags|=2048),o!==null&&U(Ys),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),lo(Bt),Et(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function CD(o,s){switch(Mp(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return lo(Bt),ge(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return Te(s),null;case 31:if(s.memoizedState!==null){if(ei(s),s.alternate===null)throw Error(i(340));Hs()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(ei(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Hs()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return U(Ft),null;case 4:return ge(),null;case 10:return lo(s.type),null;case 22:case 23:return ei(s),Yp(),o!==null&&U(Ys),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return lo(Bt),null;case 25:return null;default:return null}}function J3(o,s){switch(Mp(s),s.tag){case 3:lo(Bt),ge();break;case 26:case 27:case 5:Te(s);break;case 4:ge();break;case 31:s.memoizedState!==null&&ei(s);break;case 13:ei(s);break;case 19:U(Ft);break;case 10:lo(s.type);break;case 22:case 23:ei(s),Yp(),o!==null&&U(Ys);break;case 24:lo(Bt)}}function Bl(o,s){try{var l=s.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var g=d.next;l=g;do{if((l.tag&o)===o){d=void 0;var b=l.create,C=l.inst;d=b(),C.destroy=d}l=l.next}while(l!==g)}}catch(O){ot(s,s.return,O)}}function is(o,s,l){try{var d=s.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var b=g.next;d=b;do{if((d.tag&o)===o){var C=d.inst,O=C.destroy;if(O!==void 0){C.destroy=void 0,g=s;var V=l,Z=O;try{Z()}catch(ue){ot(g,V,ue)}}}d=d.next}while(d!==b)}}catch(ue){ot(s,s.return,ue)}}function ex(o){var s=o.updateQueue;if(s!==null){var l=o.stateNode;try{Hb(s,l)}catch(d){ot(o,o.return,d)}}}function tx(o,s,l){l.props=Ks(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(d){ot(o,s,d)}}function Ul(o,s){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var d=o.stateNode;break;case 30:d=o.stateNode;break;default:d=o.stateNode}typeof l=="function"?o.refCleanup=l(d):l.current=d}}catch(g){ot(o,s,g)}}function Sr(o,s){var l=o.ref,d=o.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(g){ot(o,s,g)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){ot(o,s,g)}else l.current=null}function nx(o){var s=o.type,l=o.memoizedProps,d=o.stateNode;try{e:switch(s){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(o,o.return,g)}}function Cm(o,s,l){try{var d=o.stateNode;YD(d,o.type,l,s),d[Zt]=s}catch(g){ot(o,o.return,g)}}function ix(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&cs(o.type)||o.tag===4}function Am(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||ix(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&cs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function wm(o,s,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(o),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Nt));else if(d!==4&&(d===27&&cs(o.type)&&(l=o.stateNode,s=null),o=o.child,o!==null))for(wm(o,s,l),o=o.sibling;o!==null;)wm(o,s,l),o=o.sibling}function fd(o,s,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(d!==4&&(d===27&&cs(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(fd(o,s,l),o=o.sibling;o!==null;)fd(o,s,l),o=o.sibling}function rx(o){var s=o.stateNode,l=o.memoizedProps;try{for(var d=o.type,g=s.attributes;g.length;)s.removeAttributeNode(g[0]);vn(s,d,l),s[Ct]=o,s[Zt]=l}catch(b){ot(o,o.return,b)}}var mo=!1,Ht=!1,Dm=!1,ox=typeof WeakSet=="function"?WeakSet:Set,on=null;function AD(o,s){if(o=o.containerInfo,Xm=Md,o=vb(o),Ep(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var g=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var C=0,O=-1,V=-1,Z=0,ue=0,ce=o,te=null;t:for(;;){for(var re;ce!==l||g!==0&&ce.nodeType!==3||(O=C+g),ce!==b||d!==0&&ce.nodeType!==3||(V=C+d),ce.nodeType===3&&(C+=ce.nodeValue.length),(re=ce.firstChild)!==null;)te=ce,ce=re;for(;;){if(ce===o)break t;if(te===l&&++Z===g&&(O=C),te===b&&++ue===d&&(V=C),(re=ce.nextSibling)!==null)break;ce=te,te=ce.parentNode}ce=re}l=O===-1||V===-1?null:{start:O,end:V}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wm={focusedElem:o,selectionRange:l},Md=!1,on=s;on!==null;)if(s=on,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,on=o;else for(;on!==null;){switch(s=on,b=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)g=o[l],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,l=s,g=b.memoizedProps,b=b.memoizedState,d=l.stateNode;try{var ye=Ks(l.type,g);o=d.getSnapshotBeforeUpdate(ye,b),d.__reactInternalSnapshotBeforeUpdate=o}catch(we){ot(l,l.return,we)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,l=o.nodeType,l===9)Jm(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Jm(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=s.sibling,o!==null){o.return=s.return,on=o;break}on=s.return}}function sx(o,s,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:vo(o,l),d&4&&Bl(5,l);break;case 1:if(vo(o,l),d&4)if(o=l.stateNode,s===null)try{o.componentDidMount()}catch(C){ot(l,l.return,C)}else{var g=Ks(l.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(g,s,o.__reactInternalSnapshotBeforeUpdate)}catch(C){ot(l,l.return,C)}}d&64&&ex(l),d&512&&Ul(l,l.return);break;case 3:if(vo(o,l),d&64&&(o=l.updateQueue,o!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{Hb(o,s)}catch(C){ot(l,l.return,C)}}break;case 27:s===null&&d&4&&rx(l);case 26:case 5:vo(o,l),s===null&&d&4&&nx(l),d&512&&Ul(l,l.return);break;case 12:vo(o,l);break;case 31:vo(o,l),d&4&&lx(o,l);break;case 13:vo(o,l),d&4&&cx(o,l),d&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=ID.bind(null,l),tN(o,l))));break;case 22:if(d=l.memoizedState!==null||mo,!d){s=s!==null&&s.memoizedState!==null||Ht,g=mo;var b=Ht;mo=d,(Ht=s)&&!b?yo(o,l,(l.subtreeFlags&8772)!==0):vo(o,l),mo=g,Ht=b}break;case 30:break;default:vo(o,l)}}function ux(o){var s=o.alternate;s!==null&&(o.alternate=null,ux(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&gr(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var wt=null,jn=!1;function go(o,s,l){for(l=l.child;l!==null;)ax(o,s,l),l=l.sibling}function ax(o,s,l){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(cr,l)}catch{}switch(l.tag){case 26:Ht||Sr(l,s),go(o,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ht||Sr(l,s);var d=wt,g=jn;cs(l.type)&&(wt=l.stateNode,jn=!1),go(o,s,l),Zl(l.stateNode),wt=d,jn=g;break;case 5:Ht||Sr(l,s);case 6:if(d=wt,g=jn,wt=null,go(o,s,l),wt=d,jn=g,wt!==null)if(jn)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(l.stateNode)}catch(b){ot(l,s,b)}else try{wt.removeChild(l.stateNode)}catch(b){ot(l,s,b)}break;case 18:wt!==null&&(jn?(o=wt,eE(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),xa(o)):eE(wt,l.stateNode));break;case 4:d=wt,g=jn,wt=l.stateNode.containerInfo,jn=!0,go(o,s,l),wt=d,jn=g;break;case 0:case 11:case 14:case 15:is(2,l,s),Ht||is(4,l,s),go(o,s,l);break;case 1:Ht||(Sr(l,s),d=l.stateNode,typeof d.componentWillUnmount=="function"&&tx(l,s,d)),go(o,s,l);break;case 21:go(o,s,l);break;case 22:Ht=(d=Ht)||l.memoizedState!==null,go(o,s,l),Ht=d;break;default:go(o,s,l)}}function lx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{xa(o)}catch(l){ot(s,s.return,l)}}}function cx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{xa(o)}catch(l){ot(s,s.return,l)}}function wD(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new ox),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new ox),s;default:throw Error(i(435,o.tag))}}function dd(o,s){var l=wD(o);s.forEach(function(d){if(!l.has(d)){l.add(d);var g=FD.bind(null,o,d);d.then(g,g)}})}function Pn(o,s){var l=s.deletions;if(l!==null)for(var d=0;d<l.length;d++){var g=l[d],b=o,C=s,O=C;e:for(;O!==null;){switch(O.tag){case 27:if(cs(O.type)){wt=O.stateNode,jn=!1;break e}break;case 5:wt=O.stateNode,jn=!1;break e;case 3:case 4:wt=O.stateNode.containerInfo,jn=!0;break e}O=O.return}if(wt===null)throw Error(i(160));ax(b,C,g),wt=null,jn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)fx(s,o),s=s.sibling}var Hi=null;function fx(o,s){var l=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Pn(s,o),$n(o),d&4&&(is(3,o,o.return),Bl(3,o),is(5,o,o.return));break;case 1:Pn(s,o),$n(o),d&512&&(Ht||l===null||Sr(l,l.return)),d&64&&mo&&(o=o.updateQueue,o!==null&&(d=o.callbacks,d!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var g=Hi;if(Pn(s,o),$n(o),d&512&&(Ht||l===null||Sr(l,l.return)),d&4){var b=l!==null?l.memoizedState:null;if(d=o.memoizedState,l===null)if(d===null)if(o.stateNode===null){e:{d=o.type,l=o.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":b=g.getElementsByTagName("title")[0],(!b||b[pi]||b[Ct]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(d),g.head.insertBefore(b,g.querySelector("head > title"))),vn(b,d,l),b[Ct]=o,bt(b),d=b;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(b=C[O],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(O,1);break t}}b=g.createElement(d),vn(b,d,l),g.head.appendChild(b);break;case"meta":if(C=fE("meta","content",g).get(d+(l.content||""))){for(O=0;O<C.length;O++)if(b=C[O],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(O,1);break t}}b=g.createElement(d),vn(b,d,l),g.head.appendChild(b);break;default:throw Error(i(468,d))}b[Ct]=o,bt(b),d=b}o.stateNode=d}else dE(g,o.type,o.stateNode);else o.stateNode=cE(g,d,o.memoizedProps);else b!==d?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,d===null?dE(g,o.type,o.stateNode):cE(g,d,o.memoizedProps)):d===null&&o.stateNode!==null&&Cm(o,o.memoizedProps,l.memoizedProps)}break;case 27:Pn(s,o),$n(o),d&512&&(Ht||l===null||Sr(l,l.return)),l!==null&&d&4&&Cm(o,o.memoizedProps,l.memoizedProps);break;case 5:if(Pn(s,o),$n(o),d&512&&(Ht||l===null||Sr(l,l.return)),o.flags&32){g=o.stateNode;try{Xn(g,"")}catch(ye){ot(o,o.return,ye)}}d&4&&o.stateNode!=null&&(g=o.memoizedProps,Cm(o,g,l!==null?l.memoizedProps:g)),d&1024&&(Dm=!0);break;case 6:if(Pn(s,o),$n(o),d&4){if(o.stateNode===null)throw Error(i(162));d=o.memoizedProps,l=o.stateNode;try{l.nodeValue=d}catch(ye){ot(o,o.return,ye)}}break;case 3:if(Dd=null,g=Hi,Hi=Ad(s.containerInfo),Pn(s,o),Hi=g,$n(o),d&4&&l!==null&&l.memoizedState.isDehydrated)try{xa(s.containerInfo)}catch(ye){ot(o,o.return,ye)}Dm&&(Dm=!1,dx(o));break;case 4:d=Hi,Hi=Ad(o.stateNode.containerInfo),Pn(s,o),$n(o),Hi=d;break;case 12:Pn(s,o),$n(o);break;case 31:Pn(s,o),$n(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,dd(o,d)));break;case 13:Pn(s,o),$n(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(pd=ct()),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,dd(o,d)));break;case 22:g=o.memoizedState!==null;var V=l!==null&&l.memoizedState!==null,Z=mo,ue=Ht;if(mo=Z||g,Ht=ue||V,Pn(s,o),Ht=ue,mo=Z,$n(o),d&8192)e:for(s=o.stateNode,s._visibility=g?s._visibility&-2:s._visibility|1,g&&(l===null||V||mo||Ht||Js(o)),l=null,s=o;;){if(s.tag===5||s.tag===26){if(l===null){V=l=s;try{if(b=V.stateNode,g)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{O=V.stateNode;var ce=V.memoizedProps.style,te=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;O.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(ye){ot(V,V.return,ye)}}}else if(s.tag===6){if(l===null){V=s;try{V.stateNode.nodeValue=g?"":V.memoizedProps}catch(ye){ot(V,V.return,ye)}}}else if(s.tag===18){if(l===null){V=s;try{var re=V.stateNode;g?tE(re,!0):tE(V.stateNode,!1)}catch(ye){ot(V,V.return,ye)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}d&4&&(d=o.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,dd(o,l))));break;case 19:Pn(s,o),$n(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,dd(o,d)));break;case 30:break;case 21:break;default:Pn(s,o),$n(o)}}function $n(o){var s=o.flags;if(s&2){try{for(var l,d=o.return;d!==null;){if(ix(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var g=l.stateNode,b=Am(o);fd(o,b,g);break;case 5:var C=l.stateNode;l.flags&32&&(Xn(C,""),l.flags&=-33);var O=Am(o);fd(o,O,C);break;case 3:case 4:var V=l.stateNode.containerInfo,Z=Am(o);wm(o,Z,V);break;default:throw Error(i(161))}}catch(ue){ot(o,o.return,ue)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function dx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;dx(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function vo(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)sx(o,s.alternate,s),s=s.sibling}function Js(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:is(4,s,s.return),Js(s);break;case 1:Sr(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&tx(s,s.return,l),Js(s);break;case 27:Zl(s.stateNode);case 26:case 5:Sr(s,s.return),Js(s);break;case 22:s.memoizedState===null&&Js(s);break;case 30:Js(s);break;default:Js(s)}o=o.sibling}}function yo(o,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var d=s.alternate,g=o,b=s,C=b.flags;switch(b.tag){case 0:case 11:case 15:yo(g,b,l),Bl(4,b);break;case 1:if(yo(g,b,l),d=b,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(Z){ot(d,d.return,Z)}if(d=b,g=d.updateQueue,g!==null){var O=d.stateNode;try{var V=g.shared.hiddenCallbacks;if(V!==null)for(g.shared.hiddenCallbacks=null,g=0;g<V.length;g++)zb(V[g],O)}catch(Z){ot(d,d.return,Z)}}l&&C&64&&ex(b),Ul(b,b.return);break;case 27:rx(b);case 26:case 5:yo(g,b,l),l&&d===null&&C&4&&nx(b),Ul(b,b.return);break;case 12:yo(g,b,l);break;case 31:yo(g,b,l),l&&C&4&&lx(g,b);break;case 13:yo(g,b,l),l&&C&4&&cx(g,b);break;case 22:b.memoizedState===null&&yo(g,b,l),Ul(b,b.return);break;case 30:break;default:yo(g,b,l)}s=s.sibling}}function Nm(o,s){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&Dl(l))}function Om(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Dl(o))}function qi(o,s,l,d){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)hx(o,s,l,d),s=s.sibling}function hx(o,s,l,d){var g=s.flags;switch(s.tag){case 0:case 11:case 15:qi(o,s,l,d),g&2048&&Bl(9,s);break;case 1:qi(o,s,l,d);break;case 3:qi(o,s,l,d),g&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Dl(o)));break;case 12:if(g&2048){qi(o,s,l,d),o=s.stateNode;try{var b=s.memoizedProps,C=b.id,O=b.onPostCommit;typeof O=="function"&&O(C,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(V){ot(s,s.return,V)}}else qi(o,s,l,d);break;case 31:qi(o,s,l,d);break;case 13:qi(o,s,l,d);break;case 23:break;case 22:b=s.stateNode,C=s.alternate,s.memoizedState!==null?b._visibility&2?qi(o,s,l,d):zl(o,s):b._visibility&2?qi(o,s,l,d):(b._visibility|=2,la(o,s,l,d,(s.subtreeFlags&10256)!==0||!1)),g&2048&&Nm(C,s);break;case 24:qi(o,s,l,d),g&2048&&Om(s.alternate,s);break;default:qi(o,s,l,d)}}function la(o,s,l,d,g){for(g=g&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var b=o,C=s,O=l,V=d,Z=C.flags;switch(C.tag){case 0:case 11:case 15:la(b,C,O,V,g),Bl(8,C);break;case 23:break;case 22:var ue=C.stateNode;C.memoizedState!==null?ue._visibility&2?la(b,C,O,V,g):zl(b,C):(ue._visibility|=2,la(b,C,O,V,g)),g&&Z&2048&&Nm(C.alternate,C);break;case 24:la(b,C,O,V,g),g&&Z&2048&&Om(C.alternate,C);break;default:la(b,C,O,V,g)}s=s.sibling}}function zl(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=o,d=s,g=d.flags;switch(d.tag){case 22:zl(l,d),g&2048&&Nm(d.alternate,d);break;case 24:zl(l,d),g&2048&&Om(d.alternate,d);break;default:zl(l,d)}s=s.sibling}}var Hl=8192;function ca(o,s,l){if(o.subtreeFlags&Hl)for(o=o.child;o!==null;)px(o,s,l),o=o.sibling}function px(o,s,l){switch(o.tag){case 26:ca(o,s,l),o.flags&Hl&&o.memoizedState!==null&&hN(l,Hi,o.memoizedState,o.memoizedProps);break;case 5:ca(o,s,l);break;case 3:case 4:var d=Hi;Hi=Ad(o.stateNode.containerInfo),ca(o,s,l),Hi=d;break;case 22:o.memoizedState===null&&(d=o.alternate,d!==null&&d.memoizedState!==null?(d=Hl,Hl=16777216,ca(o,s,l),Hl=d):ca(o,s,l));break;default:ca(o,s,l)}}function mx(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function ql(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var d=s[l];on=d,vx(d,o)}mx(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)gx(o),o=o.sibling}function gx(o){switch(o.tag){case 0:case 11:case 15:ql(o),o.flags&2048&&is(9,o,o.return);break;case 3:ql(o);break;case 12:ql(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,hd(o)):ql(o);break;default:ql(o)}}function hd(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var d=s[l];on=d,vx(d,o)}mx(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:is(8,s,s.return),hd(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,hd(s));break;default:hd(s)}o=o.sibling}}function vx(o,s){for(;on!==null;){var l=on;switch(l.tag){case 0:case 11:case 15:is(8,l,s);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:Dl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,on=d;else e:for(l=o;on!==null;){d=on;var g=d.sibling,b=d.return;if(ux(d),d===l){on=null;break e}if(g!==null){g.return=b,on=g;break e}on=b}}}var DD={getCacheForType:function(o){var s=mn(Bt),l=s.data.get(o);return l===void 0&&(l=o(),s.data.set(o,l)),l},cacheSignal:function(){return mn(Bt).controller.signal}},ND=typeof WeakMap=="function"?WeakMap:Map,et=0,ft=null,Ve=null,qe=0,rt=0,ti=null,rs=!1,fa=!1,Rm=!1,bo=0,Rt=0,os=0,eu=0,Mm=0,ni=0,da=0,Gl=null,Vn=null,km=!1,pd=0,yx=0,md=1/0,gd=null,ss=null,Jt=0,us=null,ha=null,xo=0,Lm=0,Im=null,bx=null,Yl=0,Fm=null;function ii(){return(et&2)!==0&&qe!==0?qe&-qe:L.T!==null?Um():Wr()}function xx(){if(ni===0)if((qe&536870912)===0||Ye){var o=Fi;Fi<<=1,(Fi&3932160)===0&&(Fi=262144),ni=o}else ni=536870912;return o=Jn.current,o!==null&&(o.flags|=32),ni}function Bn(o,s,l){(o===ft&&(rt===2||rt===9)||o.cancelPendingCommit!==null)&&(pa(o,0),as(o,qe,ni,!1)),hi(o,l),((et&2)===0||o!==ft)&&(o===ft&&((et&2)===0&&(eu|=l),Rt===4&&as(o,qe,ni,!1)),Tr(o))}function Ex(o,s,l){if((et&6)!==0)throw Error(i(327));var d=!l&&(s&127)===0&&(s&o.expiredLanes)===0||fr(o,s),g=d?MD(o,s):Pm(o,s,!0),b=d;do{if(g===0){fa&&!d&&as(o,s,0,!1);break}else{if(l=o.current.alternate,b&&!OD(l)){g=Pm(o,s,!1),b=!1;continue}if(g===2){if(b=s,o.errorRecoveryDisabledLanes&b)var C=0;else C=o.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){s=C;e:{var O=o;g=Gl;var V=O.current.memoizedState.isDehydrated;if(V&&(pa(O,C).flags|=256),C=Pm(O,C,!1),C!==2){if(Rm&&!V){O.errorRecoveryDisabledLanes|=b,eu|=b,g=4;break e}b=Vn,Vn=g,b!==null&&(Vn===null?Vn=b:Vn.push.apply(Vn,b))}g=C}if(b=!1,g!==2)continue}}if(g===1){pa(o,0),as(o,s,0,!0);break}e:{switch(d=o,b=g,b){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:as(d,s,ni,!rs);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(g=pd+300-ct(),10<g)){if(as(d,s,ni,!rs),Yr(d,0,!0)!==0)break e;xo=s,d.timeoutHandle=Kx(Sx.bind(null,d,l,Vn,gd,km,s,ni,eu,da,rs,b,"Throttled",-0,0),g);break e}Sx(d,l,Vn,gd,km,s,ni,eu,da,rs,b,null,-0,0)}}break}while(!0);Tr(o)}function Sx(o,s,l,d,g,b,C,O,V,Z,ue,ce,te,re){if(o.timeoutHandle=-1,ce=s.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nt},px(s,b,ce);var ye=(b&62914560)===b?pd-ct():(b&4194048)===b?yx-ct():0;if(ye=pN(ce,ye),ye!==null){xo=b,o.cancelPendingCommit=ye(Ox.bind(null,o,s,b,l,d,g,C,O,V,ue,ce,null,te,re)),as(o,b,C,!Z);return}}Ox(o,s,b,l,d,g,C,O,V)}function OD(o){for(var s=o;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var g=l[d],b=g.getSnapshot;g=g.value;try{if(!Zn(b(),g))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function as(o,s,l,d){s&=~Mm,s&=~eu,o.suspendedLanes|=s,o.pingedLanes&=~s,d&&(o.warmLanes|=s),d=o.expirationTimes;for(var g=s;0<g;){var b=31-Wt(g),C=1<<b;d[b]=-1,g&=~C}l!==0&&Of(o,l,s)}function vd(){return(et&6)===0?(Ql(0),!1):!0}function jm(){if(Ve!==null){if(rt===0)var o=Ve.return;else o=Ve,ao=qs=null,Jp(o),ra=null,Ol=0,o=Ve;for(;o!==null;)J3(o.alternate,o),o=o.return;Ve=null}}function pa(o,s){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,WD(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),xo=0,jm(),ft=o,Ve=l=so(o.current,null),qe=s,rt=0,ti=null,rs=!1,fa=fr(o,s),Rm=!1,da=ni=Mm=eu=os=Rt=0,Vn=Gl=null,km=!1,(s&8)!==0&&(s|=s&32);var d=o.entangledLanes;if(d!==0)for(o=o.entanglements,d&=s;0<d;){var g=31-Wt(d),b=1<<g;s|=o[g],d&=~b}return bo=s,Pf(),l}function Tx(o,s){Fe=null,L.H=Pl,s===ia||s===Gf?(s=$b(),rt=3):s===Bp?(s=$b(),rt=4):rt=s===mm?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ti=s,Ve===null&&(Rt=1,sd(o,vi(s,o.current)))}function _x(){var o=Jn.current;return o===null?!0:(qe&4194048)===qe?Ei===null:(qe&62914560)===qe||(qe&536870912)!==0?o===Ei:!1}function Cx(){var o=L.H;return L.H=Pl,o===null?Pl:o}function Ax(){var o=L.A;return L.A=DD,o}function yd(){Rt=4,rs||(qe&4194048)!==qe&&Jn.current!==null||(fa=!0),(os&134217727)===0&&(eu&134217727)===0||ft===null||as(ft,qe,ni,!1)}function Pm(o,s,l){var d=et;et|=2;var g=Cx(),b=Ax();(ft!==o||qe!==s)&&(gd=null,pa(o,s)),s=!1;var C=Rt;e:do try{if(rt!==0&&Ve!==null){var O=Ve,V=ti;switch(rt){case 8:jm(),C=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(s=!0);var Z=rt;if(rt=0,ti=null,ma(o,O,V,Z),l&&fa){C=0;break e}break;default:Z=rt,rt=0,ti=null,ma(o,O,V,Z)}}RD(),C=Rt;break}catch(ue){Tx(o,ue)}while(!0);return s&&o.shellSuspendCounter++,ao=qs=null,et=d,L.H=g,L.A=b,Ve===null&&(ft=null,qe=0,Pf()),C}function RD(){for(;Ve!==null;)wx(Ve)}function MD(o,s){var l=et;et|=2;var d=Cx(),g=Ax();ft!==o||qe!==s?(gd=null,md=ct()+500,pa(o,s)):fa=fr(o,s);e:do try{if(rt!==0&&Ve!==null){s=Ve;var b=ti;t:switch(rt){case 1:rt=0,ti=null,ma(o,s,b,1);break;case 2:case 9:if(jb(b)){rt=0,ti=null,Dx(s);break}s=function(){rt!==2&&rt!==9||ft!==o||(rt=7),Tr(o)},b.then(s,s);break e;case 3:rt=7;break e;case 4:rt=5;break e;case 7:jb(b)?(rt=0,ti=null,Dx(s)):(rt=0,ti=null,ma(o,s,b,7));break;case 5:var C=null;switch(Ve.tag){case 26:C=Ve.memoizedState;case 5:case 27:var O=Ve;if(C?hE(C):O.stateNode.complete){rt=0,ti=null;var V=O.sibling;if(V!==null)Ve=V;else{var Z=O.return;Z!==null?(Ve=Z,bd(Z)):Ve=null}break t}}rt=0,ti=null,ma(o,s,b,5);break;case 6:rt=0,ti=null,ma(o,s,b,6);break;case 8:jm(),Rt=6;break e;default:throw Error(i(462))}}kD();break}catch(ue){Tx(o,ue)}while(!0);return ao=qs=null,L.H=d,L.A=g,et=l,Ve!==null?0:(ft=null,qe=0,Pf(),Rt)}function kD(){for(;Ve!==null&&!_t();)wx(Ve)}function wx(o){var s=Z3(o.alternate,o,bo);o.memoizedProps=o.pendingProps,s===null?bd(o):Ve=s}function Dx(o){var s=o,l=s.alternate;switch(s.tag){case 15:case 0:s=q3(l,s,s.pendingProps,s.type,void 0,qe);break;case 11:s=q3(l,s,s.pendingProps,s.type.render,s.ref,qe);break;case 5:Jp(s);default:J3(l,s),s=Ve=Ab(s,bo),s=Z3(l,s,bo)}o.memoizedProps=o.pendingProps,s===null?bd(o):Ve=s}function ma(o,s,l,d){ao=qs=null,Jp(s),ra=null,Ol=0;var g=s.return;try{if(ED(o,g,s,l,qe)){Rt=1,sd(o,vi(l,o.current)),Ve=null;return}}catch(b){if(g!==null)throw Ve=g,b;Rt=1,sd(o,vi(l,o.current)),Ve=null;return}s.flags&32768?(Ye||d===1?o=!0:fa||(qe&536870912)!==0?o=!1:(rs=o=!0,(d===2||d===9||d===3||d===6)&&(d=Jn.current,d!==null&&d.tag===13&&(d.flags|=16384))),Nx(s,o)):bd(s)}function bd(o){var s=o;do{if((s.flags&32768)!==0){Nx(s,rs);return}o=s.return;var l=_D(s.alternate,s,bo);if(l!==null){Ve=l;return}if(s=s.sibling,s!==null){Ve=s;return}Ve=s=o}while(s!==null);Rt===0&&(Rt=5)}function Nx(o,s){do{var l=CD(o.alternate,o);if(l!==null){l.flags&=32767,Ve=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(o=o.sibling,o!==null)){Ve=o;return}Ve=o=l}while(o!==null);Rt=6,Ve=null}function Ox(o,s,l,d,g,b,C,O,V){o.cancelPendingCommit=null;do xd();while(Jt!==0);if((et&6)!==0)throw Error(i(327));if(s!==null){if(s===o.current)throw Error(i(177));if(b=s.lanes|s.childLanes,b|=Ap,Po(o,l,b,C,O,V),o===ft&&(Ve=ft=null,qe=0),ha=s,us=o,xo=l,Lm=b,Im=g,bx=d,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,jD(Gr,function(){return Ix(),null})):(o.callbackNode=null,o.callbackPriority=0),d=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||d){d=L.T,L.T=null,g=q.p,q.p=2,C=et,et|=4;try{AD(o,s,l)}finally{et=C,q.p=g,L.T=d}}Jt=1,Rx(),Mx(),kx()}}function Rx(){if(Jt===1){Jt=0;var o=us,s=ha,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var d=q.p;q.p=2;var g=et;et|=4;try{fx(s,o);var b=Wm,C=vb(o.containerInfo),O=b.focusedElem,V=b.selectionRange;if(C!==O&&O&&O.ownerDocument&&gb(O.ownerDocument.documentElement,O)){if(V!==null&&Ep(O)){var Z=V.start,ue=V.end;if(ue===void 0&&(ue=Z),"selectionStart"in O)O.selectionStart=Z,O.selectionEnd=Math.min(ue,O.value.length);else{var ce=O.ownerDocument||document,te=ce&&ce.defaultView||window;if(te.getSelection){var re=te.getSelection(),ye=O.textContent.length,we=Math.min(V.start,ye),at=V.end===void 0?we:Math.min(V.end,ye);!re.extend&&we>at&&(C=at,at=we,we=C);var G=mb(O,we),z=mb(O,at);if(G&&z&&(re.rangeCount!==1||re.anchorNode!==G.node||re.anchorOffset!==G.offset||re.focusNode!==z.node||re.focusOffset!==z.offset)){var X=ce.createRange();X.setStart(G.node,G.offset),re.removeAllRanges(),we>at?(re.addRange(X),re.extend(z.node,z.offset)):(X.setEnd(z.node,z.offset),re.addRange(X))}}}}for(ce=[],re=O;re=re.parentNode;)re.nodeType===1&&ce.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<ce.length;O++){var le=ce[O];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Md=!!Xm,Wm=Xm=null}finally{et=g,q.p=d,L.T=l}}o.current=s,Jt=2}}function Mx(){if(Jt===2){Jt=0;var o=us,s=ha,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var d=q.p;q.p=2;var g=et;et|=4;try{sx(o,s.alternate,s)}finally{et=g,q.p=d,L.T=l}}Jt=3}}function kx(){if(Jt===4||Jt===3){Jt=0,Xe();var o=us,s=ha,l=xo,d=bx;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Jt=5:(Jt=0,ha=us=null,Lx(o,o.pendingLanes));var g=o.pendingLanes;if(g===0&&(ss=null),hr(l),s=s.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(cr,s,void 0,(s.current.flags&128)===128)}catch{}if(d!==null){s=L.T,g=q.p,q.p=2,L.T=null;try{for(var b=o.onRecoverableError,C=0;C<d.length;C++){var O=d[C];b(O.value,{componentStack:O.stack})}}finally{L.T=s,q.p=g}}(xo&3)!==0&&xd(),Tr(o),g=o.pendingLanes,(l&261930)!==0&&(g&42)!==0?o===Fm?Yl++:(Yl=0,Fm=o):Yl=0,Ql(0)}}function Lx(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,Dl(s)))}function xd(){return Rx(),Mx(),kx(),Ix()}function Ix(){if(Jt!==5)return!1;var o=us,s=Lm;Lm=0;var l=hr(xo),d=L.T,g=q.p;try{q.p=32>l?32:l,L.T=null,l=Im,Im=null;var b=us,C=xo;if(Jt=0,ha=us=null,xo=0,(et&6)!==0)throw Error(i(331));var O=et;if(et|=4,gx(b.current),hx(b,b.current,C,l),et=O,Ql(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(cr,b)}catch{}return!0}finally{q.p=g,L.T=d,Lx(o,s)}}function Fx(o,s,l){s=vi(l,s),s=pm(o.stateNode,s,2),o=es(o,s,2),o!==null&&(hi(o,2),Tr(o))}function ot(o,s,l){if(o.tag===3)Fx(o,o,l);else for(;s!==null;){if(s.tag===3){Fx(s,o,l);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ss===null||!ss.has(d))){o=vi(l,o),l=j3(2),d=es(s,l,2),d!==null&&(P3(l,d,s,o),hi(d,2),Tr(d));break}}s=s.return}}function $m(o,s,l){var d=o.pingCache;if(d===null){d=o.pingCache=new ND;var g=new Set;d.set(s,g)}else g=d.get(s),g===void 0&&(g=new Set,d.set(s,g));g.has(l)||(Rm=!0,g.add(l),o=LD.bind(null,o,s,l),s.then(o,o))}function LD(o,s,l){var d=o.pingCache;d!==null&&d.delete(s),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,ft===o&&(qe&l)===l&&(Rt===4||Rt===3&&(qe&62914560)===qe&&300>ct()-pd?(et&2)===0&&pa(o,0):Mm|=l,da===qe&&(da=0)),Tr(o)}function jx(o,s){s===0&&(s=Fs()),o=Us(o,s),o!==null&&(hi(o,s),Tr(o))}function ID(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),jx(o,l)}function FD(o,s){var l=0;switch(o.tag){case 31:case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(l=g.retryLane);break;case 19:d=o.stateNode;break;case 22:d=o.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(s),jx(o,l)}function jD(o,s){return De(o,s)}var Ed=null,ga=null,Vm=!1,Sd=!1,Bm=!1,ls=0;function Tr(o){o!==ga&&o.next===null&&(ga===null?Ed=ga=o:ga=ga.next=o),Sd=!0,Vm||(Vm=!0,$D())}function Ql(o,s){if(!Bm&&Sd){Bm=!0;do for(var l=!1,d=Ed;d!==null;){if(o!==0){var g=d.pendingLanes;if(g===0)var b=0;else{var C=d.suspendedLanes,O=d.pingedLanes;b=(1<<31-Wt(42|o)+1)-1,b&=g&~(C&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,Bx(d,b))}else b=qe,b=Yr(d,d===ft?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||fr(d,b)||(l=!0,Bx(d,b));d=d.next}while(l);Bm=!1}}function PD(){Px()}function Px(){Sd=Vm=!1;var o=0;ls!==0&&XD()&&(o=ls);for(var s=ct(),l=null,d=Ed;d!==null;){var g=d.next,b=$x(d,s);b===0?(d.next=null,l===null?Ed=g:l.next=g,g===null&&(ga=l)):(l=d,(o!==0||(b&3)!==0)&&(Sd=!0)),d=g}Jt!==0&&Jt!==5||Ql(o),ls!==0&&(ls=0)}function $x(o,s){for(var l=o.suspendedLanes,d=o.pingedLanes,g=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var C=31-Wt(b),O=1<<C,V=g[C];V===-1?((O&l)===0||(O&d)!==0)&&(g[C]=jo(O,s)):V<=s&&(o.expiredLanes|=O),b&=~O}if(s=ft,l=qe,l=Yr(o,o===s?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d=o.callbackNode,l===0||o===s&&(rt===2||rt===9)||o.cancelPendingCommit!==null)return d!==null&&d!==null&&ke(d),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||fr(o,l)){if(s=l&-l,s===o.callbackPriority)return s;switch(d!==null&&ke(d),hr(l)){case 2:case 8:l=ju;break;case 32:l=Gr;break;case 268435456:l=Is;break;default:l=Gr}return d=Vx.bind(null,o),l=De(l,d),o.callbackPriority=s,o.callbackNode=l,s}return d!==null&&d!==null&&ke(d),o.callbackPriority=2,o.callbackNode=null,2}function Vx(o,s){if(Jt!==0&&Jt!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(xd()&&o.callbackNode!==l)return null;var d=qe;return d=Yr(o,o===ft?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d===0?null:(Ex(o,d,s),$x(o,ct()),o.callbackNode!=null&&o.callbackNode===l?Vx.bind(null,o):null)}function Bx(o,s){if(xd())return null;Ex(o,s,!0)}function $D(){ZD(function(){(et&6)!==0?De(Ls,PD):Px()})}function Um(){if(ls===0){var o=ta;o===0&&(o=Fo,Fo<<=1,(Fo&261888)===0&&(Fo=256)),ls=o}return ls}function Ux(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:It(""+o)}function zx(o,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,o.id&&l.setAttribute("form",o.id),s.parentNode.insertBefore(l,s),o=new FormData(o),l.parentNode.removeChild(l),o}function VD(o,s,l,d,g){if(s==="submit"&&l&&l.stateNode===g){var b=Ux((g[Zt]||null).action),C=d.submitter;C&&(s=(s=C[Zt]||null)?Ux(s.formAction):C.getAttribute("formAction"),s!==null&&(b=s,C=null));var O=new Lf("action","action",null,d,g);o.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(ls!==0){var V=C?zx(g,C):new FormData(g);am(l,{pending:!0,data:V,method:g.method,action:b},null,V)}}else typeof b=="function"&&(O.preventDefault(),V=C?zx(g,C):new FormData(g),am(l,{pending:!0,data:V,method:g.method,action:b},b,V))},currentTarget:g}]})}}for(var zm=0;zm<Cp.length;zm++){var Hm=Cp[zm],BD=Hm.toLowerCase(),UD=Hm[0].toUpperCase()+Hm.slice(1);zi(BD,"on"+UD)}zi(xb,"onAnimationEnd"),zi(Eb,"onAnimationIteration"),zi(Sb,"onAnimationStart"),zi("dblclick","onDoubleClick"),zi("focusin","onFocus"),zi("focusout","onBlur"),zi(rD,"onTransitionRun"),zi(oD,"onTransitionStart"),zi(sD,"onTransitionCancel"),zi(Tb,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),Pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="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(" "),zD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function Hx(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var d=o[l],g=d.event;d=d.listeners;e:{var b=void 0;if(s)for(var C=d.length-1;0<=C;C--){var O=d[C],V=O.instance,Z=O.currentTarget;if(O=O.listener,V!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=Z;try{b(g)}catch(ue){jf(ue)}g.currentTarget=null,b=V}else for(C=0;C<d.length;C++){if(O=d[C],V=O.instance,Z=O.currentTarget,O=O.listener,V!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=Z;try{b(g)}catch(ue){jf(ue)}g.currentTarget=null,b=V}}}}function Be(o,s){var l=s[mr];l===void 0&&(l=s[mr]=new Set);var d=o+"__bubble";l.has(d)||(qx(s,o,2,!1),l.add(d))}function qm(o,s,l){var d=0;s&&(d|=4),qx(l,o,d,s)}var Td="_reactListening"+Math.random().toString(36).slice(2);function Gm(o){if(!o[Td]){o[Td]=!0,Kr.forEach(function(l){l!=="selectionchange"&&(zD.has(l)||qm(l,!1,o),qm(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Td]||(s[Td]=!0,qm("selectionchange",!1,s))}}function qx(o,s,l,d){switch(xE(s)){case 2:var g=vN;break;case 8:g=yN;break;default:g=u1}l=g.bind(null,s,l,o),g=void 0,!dp||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),d?g!==void 0?o.addEventListener(s,l,{capture:!0,passive:g}):o.addEventListener(s,l,!0):g!==void 0?o.addEventListener(s,l,{passive:g}):o.addEventListener(s,l,!1)}function Ym(o,s,l,d,g){var b=d;if((s&1)===0&&(s&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 V=C.tag;if((V===3||V===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;O!==null;){if(C=vr(O),C===null)return;if(V=C.tag,V===5||V===6||V===26||V===27){d=b=C;continue e}O=O.parentNode}}d=d.return}W2(function(){var Z=b,ue=gl(l),ce=[];e:{var te=_b.get(o);if(te!==void 0){var re=Lf,ye=o;switch(o){case"keypress":if(Mf(l)===0)break e;case"keydown":case"keyup":re=F7;break;case"focusin":ye="focus",re=gp;break;case"focusout":ye="blur",re=gp;break;case"beforeblur":case"afterblur":re=gp;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":re=J2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=_7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=$7;break;case xb:case Eb:case Sb:re=w7;break;case Tb:re=B7;break;case"scroll":case"scrollend":re=S7;break;case"wheel":re=z7;break;case"copy":case"cut":case"paste":re=N7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=tb;break;case"toggle":case"beforetoggle":re=q7}var we=(s&4)!==0,at=!we&&(o==="scroll"||o==="scrollend"),G=we?te!==null?te+"Capture":null:te;we=[];for(var z=Z,X;z!==null;){var le=z;if(X=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||X===null||G===null||(le=vl(z,G),le!=null&&we.push(Wl(z,le,X))),at)break;z=z.return}0<we.length&&(te=new re(te,ye,null,l,ue),ce.push({event:te,listeners:we}))}}if((s&7)===0){e:{if(te=o==="mouseover"||o==="pointerover",re=o==="mouseout"||o==="pointerout",te&&l!==Wn&&(ye=l.relatedTarget||l.fromElement)&&(vr(ye)||ye[Gn]))break e;if((re||te)&&(te=ue.window===ue?ue:(te=ue.ownerDocument)?te.defaultView||te.parentWindow:window,re?(ye=l.relatedTarget||l.toElement,re=Z,ye=ye?vr(ye):null,ye!==null&&(at=u(ye),we=ye.tag,ye!==at||we!==5&&we!==27&&we!==6)&&(ye=null)):(re=null,ye=Z),re!==ye)){if(we=J2,le="onMouseLeave",G="onMouseEnter",z="mouse",(o==="pointerout"||o==="pointerover")&&(we=tb,le="onPointerLeave",G="onPointerEnter",z="pointer"),at=re==null?te:mi(re),X=ye==null?te:mi(ye),te=new we(le,z+"leave",re,l,ue),te.target=at,te.relatedTarget=X,le=null,vr(ue)===Z&&(we=new we(G,z+"enter",ye,l,ue),we.target=X,we.relatedTarget=at,le=we),at=le,re&&ye)t:{for(we=HD,G=re,z=ye,X=0,le=G;le;le=we(le))X++;le=0;for(var Se=z;Se;Se=we(Se))le++;for(;0<X-le;)G=we(G),X--;for(;0<le-X;)z=we(z),le--;for(;X--;){if(G===z||z!==null&&G===z.alternate){we=G;break t}G=we(G),z=we(z)}we=null}else we=null;re!==null&&Gx(ce,te,re,we,!1),ye!==null&&at!==null&&Gx(ce,at,ye,we,!0)}}e:{if(te=Z?mi(Z):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ze=lb;else if(ub(te))if(cb)Ze=tD;else{Ze=J7;var Ee=K7}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?Z&&Go(Z.elementType)&&(Ze=lb):Ze=eD;if(Ze&&(Ze=Ze(o,Z))){ab(ce,Ze,l,ue);break e}Ee&&Ee(o,te,Z),o==="focusout"&&Z&&te.type==="number"&&Z.memoizedProps.value!=null&&br(te,"number",te.value)}switch(Ee=Z?mi(Z):window,o){case"focusin":(ub(Ee)||Ee.contentEditable==="true")&&(Yu=Ee,Sp=Z,Cl=null);break;case"focusout":Cl=Sp=Yu=null;break;case"mousedown":Tp=!0;break;case"contextmenu":case"mouseup":case"dragend":Tp=!1,yb(ce,l,ue);break;case"selectionchange":if(iD)break;case"keydown":case"keyup":yb(ce,l,ue)}var je;if(yp)e:{switch(o){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Gu?ob(o,l)&&(Ge="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Ge="onCompositionStart");Ge&&(nb&&l.locale!=="ko"&&(Gu||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Gu&&(je=Z2()):(Yo=ue,hp="value"in Yo?Yo.value:Yo.textContent,Gu=!0)),Ee=_d(Z,Ge),0<Ee.length&&(Ge=new eb(Ge,o,null,l,ue),ce.push({event:Ge,listeners:Ee}),je?Ge.data=je:(je=sb(l),je!==null&&(Ge.data=je)))),(je=Y7?Q7(o,l):X7(o,l))&&(Ge=_d(Z,"onBeforeInput"),0<Ge.length&&(Ee=new eb("onBeforeInput","beforeinput",null,l,ue),ce.push({event:Ee,listeners:Ge}),Ee.data=je)),VD(ce,o,Z,l,ue)}Hx(ce,s)})}function Wl(o,s,l){return{instance:o,listener:s,currentTarget:l}}function _d(o,s){for(var l=s+"Capture",d=[];o!==null;){var g=o,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=vl(o,l),g!=null&&d.unshift(Wl(o,g,b)),g=vl(o,s),g!=null&&d.push(Wl(o,g,b))),o.tag===3)return d;o=o.return}return[]}function HD(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Gx(o,s,l,d,g){for(var b=s._reactName,C=[];l!==null&&l!==d;){var O=l,V=O.alternate,Z=O.stateNode;if(O=O.tag,V!==null&&V===d)break;O!==5&&O!==26&&O!==27||Z===null||(V=Z,g?(Z=vl(l,b),Z!=null&&C.unshift(Wl(l,Z,V))):g||(Z=vl(l,b),Z!=null&&C.push(Wl(l,Z,V)))),l=l.return}C.length!==0&&o.push({event:s,listeners:C})}var qD=/\r\n?/g,GD=/\u0000|\uFFFD/g;function Yx(o){return(typeof o=="string"?o:""+o).replace(qD,`
|
|
10
|
+
`).replace(GD,"")}function Qx(o,s){return s=Yx(s),Yx(o)===s}function ut(o,s,l,d,g,b){switch(l){case"children":typeof d=="string"?s==="body"||s==="textarea"&&d===""||Xn(o,d):(typeof d=="number"||typeof d=="bigint")&&s!=="body"&&Xn(o,""+d);break;case"className":Vi(o,"class",d);break;case"tabIndex":Vi(o,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(o,l,d);break;case"style":ro(o,d,b);break;case"data":if(s!=="object"){Vi(o,"data",d);break}case"src":case"href":if(d===""&&(s!=="a"||l!=="href")){o.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(l);break}d=It(""+d),o.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){o.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 b=="function"&&(l==="formAction"?(s!=="input"&&ut(o,s,"name",g.name,g,null),ut(o,s,"formEncType",g.formEncType,g,null),ut(o,s,"formMethod",g.formMethod,g,null),ut(o,s,"formTarget",g.formTarget,g,null)):(ut(o,s,"encType",g.encType,g,null),ut(o,s,"method",g.method,g,null),ut(o,s,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(l);break}d=It(""+d),o.setAttribute(l,d);break;case"onClick":d!=null&&(o.onclick=Nt);break;case"onScroll":d!=null&&Be("scroll",o);break;case"onScrollEnd":d!=null&&Be("scrollend",o);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));o.innerHTML=l}}break;case"multiple":o.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":o.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"){o.removeAttribute("xlink:href");break}l=It(""+d),o.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"?o.setAttribute(l,""+d):o.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"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":d===!0?o.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(l,d):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?o.setAttribute(l,d):o.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?o.removeAttribute(l):o.setAttribute(l,d);break;case"popover":Be("beforetoggle",o),Be("toggle",o),$i(o,"popover",d);break;case"xlinkActuate":Tn(o,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Tn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Tn(o,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Tn(o,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Tn(o,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Tn(o,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":$i(o,"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=He.get(l)||l,$i(o,l,d))}}function Qm(o,s,l,d,g,b){switch(l){case"style":ro(o,d,b);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));o.innerHTML=l}}break;case"children":typeof d=="string"?Xn(o,d):(typeof d=="number"||typeof d=="bigint")&&Xn(o,""+d);break;case"onScroll":d!=null&&Be("scroll",o);break;case"onScrollEnd":d!=null&&Be("scrollend",o);break;case"onClick":d!=null&&(o.onclick=Nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bu.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),s=l.slice(2,g?l.length-7:void 0),b=o[Zt]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(s,b,g),typeof d=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(s,d,g);break e}l in o?o[l]=d:d===!0?o.setAttribute(l,""):$i(o,l,d)}}}function vn(o,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",o),Be("load",o);var d=!1,g=!1,b;for(b in l)if(l.hasOwnProperty(b)){var C=l[b];if(C!=null)switch(b){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:ut(o,s,b,C,l,null)}}g&&ut(o,s,"srcSet",l.srcSet,l,null),d&&ut(o,s,"src",l.src,l,null);return;case"input":Be("invalid",o);var O=b=C=g=null,V=null,Z=null;for(d in l)if(l.hasOwnProperty(d)){var ue=l[d];if(ue!=null)switch(d){case"name":g=ue;break;case"type":C=ue;break;case"checked":V=ue;break;case"defaultChecked":Z=ue;break;case"value":b=ue;break;case"defaultValue":O=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,s));break;default:ut(o,s,d,ue,l,null)}}no(o,b,O,V,Z,C,g,!1);return;case"select":Be("invalid",o),d=C=b=null;for(g in l)if(l.hasOwnProperty(g)&&(O=l[g],O!=null))switch(g){case"value":b=O;break;case"defaultValue":C=O;break;case"multiple":d=O;default:ut(o,s,g,O,l,null)}s=b,l=C,o.multiple=!!d,s!=null?Ui(o,!!d,s,!1):l!=null&&Ui(o,!!d,l,!0);return;case"textarea":Be("invalid",o),b=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":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:ut(o,s,C,O,l,null)}zu(o,d,g,b);return;case"option":for(V in l)l.hasOwnProperty(V)&&(d=l[V],d!=null)&&(V==="selected"?o.selected=d&&typeof d!="function"&&typeof d!="symbol":ut(o,s,V,d,l,null));return;case"dialog":Be("beforetoggle",o),Be("toggle",o),Be("cancel",o),Be("close",o);break;case"iframe":case"object":Be("load",o);break;case"video":case"audio":for(d=0;d<Xl.length;d++)Be(Xl[d],o);break;case"image":Be("error",o),Be("load",o);break;case"details":Be("toggle",o);break;case"embed":case"source":case"link":Be("error",o),Be("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in l)if(l.hasOwnProperty(Z)&&(d=l[Z],d!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:ut(o,s,Z,d,l,null)}return;default:if(Go(s)){for(ue in l)l.hasOwnProperty(ue)&&(d=l[ue],d!==void 0&&Qm(o,s,ue,d,l,void 0));return}}for(O in l)l.hasOwnProperty(O)&&(d=l[O],d!=null&&ut(o,s,O,d,l,null))}function YD(o,s,l,d){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,C=null,O=null,V=null,Z=null,ue=null;for(re in l){var ce=l[re];if(l.hasOwnProperty(re)&&ce!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":V=ce;default:d.hasOwnProperty(re)||ut(o,s,re,null,d,ce)}}for(var te in d){var re=d[te];if(ce=l[te],d.hasOwnProperty(te)&&(re!=null||ce!=null))switch(te){case"type":b=re;break;case"name":g=re;break;case"checked":Z=re;break;case"defaultChecked":ue=re;break;case"value":C=re;break;case"defaultValue":O=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,s));break;default:re!==ce&&ut(o,s,te,re,d,ce)}}Ho(o,C,O,V,Z,ue,b,g);return;case"select":re=C=O=te=null;for(b in l)if(V=l[b],l.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":re=V;default:d.hasOwnProperty(b)||ut(o,s,b,null,d,V)}for(g in d)if(b=d[g],V=l[g],d.hasOwnProperty(g)&&(b!=null||V!=null))switch(g){case"value":te=b;break;case"defaultValue":O=b;break;case"multiple":C=b;default:b!==V&&ut(o,s,g,b,d,V)}s=O,l=C,d=re,te!=null?Ui(o,!!l,te,!1):!!d!=!!l&&(s!=null?Ui(o,!!l,s,!0):Ui(o,!!l,l?[]:"",!1));return;case"textarea":re=te=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:ut(o,s,O,null,d,g)}for(C in d)if(g=d[C],b=l[C],d.hasOwnProperty(C)&&(g!=null||b!=null))switch(C){case"value":te=g;break;case"defaultValue":re=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==b&&ut(o,s,C,g,d,b)}Uu(o,te,re);return;case"option":for(var ye in l)te=l[ye],l.hasOwnProperty(ye)&&te!=null&&!d.hasOwnProperty(ye)&&(ye==="selected"?o.selected=!1:ut(o,s,ye,null,d,te));for(V in d)te=d[V],re=l[V],d.hasOwnProperty(V)&&te!==re&&(te!=null||re!=null)&&(V==="selected"?o.selected=te&&typeof te!="function"&&typeof te!="symbol":ut(o,s,V,te,d,re));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in l)te=l[we],l.hasOwnProperty(we)&&te!=null&&!d.hasOwnProperty(we)&&ut(o,s,we,null,d,te);for(Z in d)if(te=d[Z],re=l[Z],d.hasOwnProperty(Z)&&te!==re&&(te!=null||re!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,s));break;default:ut(o,s,Z,te,d,re)}return;default:if(Go(s)){for(var at in l)te=l[at],l.hasOwnProperty(at)&&te!==void 0&&!d.hasOwnProperty(at)&&Qm(o,s,at,void 0,d,te);for(ue in d)te=d[ue],re=l[ue],!d.hasOwnProperty(ue)||te===re||te===void 0&&re===void 0||Qm(o,s,ue,te,d,re);return}}for(var G in l)te=l[G],l.hasOwnProperty(G)&&te!=null&&!d.hasOwnProperty(G)&&ut(o,s,G,null,d,te);for(ce in d)te=d[ce],re=l[ce],!d.hasOwnProperty(ce)||te===re||te==null&&re==null||ut(o,s,ce,te,d,re)}function Xx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QD(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var g=l[d],b=g.transferSize,C=g.initiatorType,O=g.duration;if(b&&O&&Xx(C)){for(C=0,O=g.responseEnd,d+=1;d<l.length;d++){var V=l[d],Z=V.startTime;if(Z>O)break;var ue=V.transferSize,ce=V.initiatorType;ue&&Xx(ce)&&(V=V.responseEnd,C+=ue*(V<O?1:(O-Z)/(V-Z)))}if(--d,s+=8*(b+C)/(g.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Xm=null,Wm=null;function Cd(o){return o.nodeType===9?o:o.ownerDocument}function Wx(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zx(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Zm(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Km=null;function XD(){var o=window.event;return o&&o.type==="popstate"?o===Km?!1:(Km=o,!0):(Km=null,!1)}var Kx=typeof setTimeout=="function"?setTimeout:void 0,WD=typeof clearTimeout=="function"?clearTimeout:void 0,Jx=typeof Promise=="function"?Promise:void 0,ZD=typeof queueMicrotask=="function"?queueMicrotask:typeof Jx<"u"?function(o){return Jx.resolve(null).then(o).catch(KD)}:Kx;function KD(o){setTimeout(function(){throw o})}function cs(o){return o==="head"}function eE(o,s){var l=s,d=0;do{var g=l.nextSibling;if(o.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"||l==="/&"){if(d===0){o.removeChild(g),xa(s);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")Zl(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,Zl(l);for(var b=l.firstChild;b;){var C=b.nextSibling,O=b.nodeName;b[pi]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=C}}else l==="body"&&Zl(o.ownerDocument.body);l=g}while(l);xa(s)}function tE(o,s){var l=o;o=0;do{var d=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=d}while(l)}function Jm(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jm(l),gr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function JD(o,s,l,d){for(;o.nodeType===1;){var g=l;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!d&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(d){if(!o[pi])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==g.rel||o.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||o.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||o.getAttribute("title")!==(g.title==null?null:g.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(g.src==null?null:g.src)||o.getAttribute("type")!==(g.type==null?null:g.type)||o.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=Si(o.nextSibling),o===null)break}return null}function eN(o,s,l){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=Si(o.nextSibling),o===null))return null;return o}function nE(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Si(o.nextSibling),o===null))return null;return o}function e1(o){return o.data==="$?"||o.data==="$~"}function t1(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function tN(o,s){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||l.readyState!=="loading")s();else{var d=function(){s(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),o._reactRetry=d}}function Si(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var n1=null;function iE(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(s===0)return Si(o.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}o=o.nextSibling}return null}function rE(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return o;s--}else l!=="/$"&&l!=="/&"||s++}o=o.previousSibling}return null}function oE(o,s,l){switch(s=Cd(l),o){case"html":if(o=s.documentElement,!o)throw Error(i(452));return o;case"head":if(o=s.head,!o)throw Error(i(453));return o;case"body":if(o=s.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function Zl(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);gr(o)}var Ti=new Map,sE=new Set;function Ad(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Eo=q.d;q.d={f:nN,r:iN,D:rN,C:oN,L:sN,m:uN,X:lN,S:aN,M:cN};function nN(){var o=Eo.f(),s=vd();return o||s}function iN(o){var s=yr(o);s!==null&&s.tag===5&&s.type==="form"?T3(s):Eo.r(o)}var va=typeof document>"u"?null:document;function uE(o,s,l){var d=va;if(d&&typeof s=="string"&&s){var g=_n(s);g='link[rel="'+o+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),sE.has(g)||(sE.add(g),o={rel:o,crossOrigin:l,href:s},d.querySelector(g)===null&&(s=d.createElement("link"),vn(s,"link",o),bt(s),d.head.appendChild(s)))}}function rN(o){Eo.D(o),uE("dns-prefetch",o,null)}function oN(o,s){Eo.C(o,s),uE("preconnect",o,s)}function sN(o,s,l){Eo.L(o,s,l);var d=va;if(d&&o&&s){var g='link[rel="preload"][as="'+_n(s)+'"]';s==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+_n(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+_n(l.imageSizes)+'"]')):g+='[href="'+_n(o)+'"]';var b=g;switch(s){case"style":b=ya(o);break;case"script":b=ba(o)}Ti.has(b)||(o=m({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:o,as:s},l),Ti.set(b,o),d.querySelector(g)!==null||s==="style"&&d.querySelector(Kl(b))||s==="script"&&d.querySelector(Jl(b))||(s=d.createElement("link"),vn(s,"link",o),bt(s),d.head.appendChild(s)))}}function uN(o,s){Eo.m(o,s);var l=va;if(l&&o){var d=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+_n(d)+'"][href="'+_n(o)+'"]',b=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=ba(o)}if(!Ti.has(b)&&(o=m({rel:"modulepreload",href:o},s),Ti.set(b,o),l.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Jl(b)))return}d=l.createElement("link"),vn(d,"link",o),bt(d),l.head.appendChild(d)}}}function aN(o,s,l){Eo.S(o,s,l);var d=va;if(d&&o){var g=Yn(d).hoistableStyles,b=ya(o);s=s||"default";var C=g.get(b);if(!C){var O={loading:0,preload:null};if(C=d.querySelector(Kl(b)))O.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":s},l),(l=Ti.get(b))&&i1(o,l);var V=C=d.createElement("link");bt(V),vn(V,"link",o),V._p=new Promise(function(Z,ue){V.onload=Z,V.onerror=ue}),V.addEventListener("load",function(){O.loading|=1}),V.addEventListener("error",function(){O.loading|=2}),O.loading|=4,wd(C,s,d)}C={type:"stylesheet",instance:C,count:1,state:O},g.set(b,C)}}}function lN(o,s){Eo.X(o,s);var l=va;if(l&&o){var d=Yn(l).hoistableScripts,g=ba(o),b=d.get(g);b||(b=l.querySelector(Jl(g)),b||(o=m({src:o,async:!0},s),(s=Ti.get(g))&&r1(o,s),b=l.createElement("script"),bt(b),vn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(g,b))}}function cN(o,s){Eo.M(o,s);var l=va;if(l&&o){var d=Yn(l).hoistableScripts,g=ba(o),b=d.get(g);b||(b=l.querySelector(Jl(g)),b||(o=m({src:o,async:!0,type:"module"},s),(s=Ti.get(g))&&r1(o,s),b=l.createElement("script"),bt(b),vn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(g,b))}}function aE(o,s,l,d){var g=(g=de.current)?Ad(g):null;if(!g)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=ya(l.href),l=Yn(g).hoistableStyles,d=l.get(s),d||(d={type:"style",instance:null,count:0,state:null},l.set(s,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=ya(l.href);var b=Yn(g).hoistableStyles,C=b.get(o);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,C),(b=g.querySelector(Kl(o)))&&!b._p&&(C.instance=b,C.state.loading=5),Ti.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ti.set(o,l),b||fN(g,o,l,C.state))),s&&d===null)throw Error(i(528,""));return C}if(s&&d!==null)throw Error(i(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ba(l),l=Yn(g).hoistableScripts,d=l.get(s),d||(d={type:"script",instance:null,count:0,state:null},l.set(s,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function ya(o){return'href="'+_n(o)+'"'}function Kl(o){return'link[rel="stylesheet"]['+o+"]"}function lE(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function fN(o,s,l,d){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?d.loading=1:(s=o.createElement("link"),d.preload=s,s.addEventListener("load",function(){return d.loading|=1}),s.addEventListener("error",function(){return d.loading|=2}),vn(s,"link",l),bt(s),o.head.appendChild(s))}function ba(o){return'[src="'+_n(o)+'"]'}function Jl(o){return"script[async]"+o}function cE(o,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var d=o.querySelector('style[data-href~="'+_n(l.href)+'"]');if(d)return s.instance=d,bt(d),d;var g=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(o.ownerDocument||o).createElement("style"),bt(d),vn(d,"style",g),wd(d,l.precedence,o),s.instance=d;case"stylesheet":g=ya(l.href);var b=o.querySelector(Kl(g));if(b)return s.state.loading|=4,s.instance=b,bt(b),b;d=lE(l),(g=Ti.get(g))&&i1(d,g),b=(o.ownerDocument||o).createElement("link"),bt(b);var C=b;return C._p=new Promise(function(O,V){C.onload=O,C.onerror=V}),vn(b,"link",d),s.state.loading|=4,wd(b,l.precedence,o),s.instance=b;case"script":return b=ba(l.src),(g=o.querySelector(Jl(b)))?(s.instance=g,bt(g),g):(d=l,(g=Ti.get(b))&&(d=m({},l),r1(d,g)),o=o.ownerDocument||o,g=o.createElement("script"),bt(g),vn(g,"link",d),o.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(d=s.instance,s.state.loading|=4,wd(d,l.precedence,o));return s.instance}function wd(o,s,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,b=g,C=0;C<d.length;C++){var O=d[C];if(O.dataset.precedence===s)b=O;else if(b!==g)break}b?b.parentNode.insertBefore(o,b.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(o,s.firstChild))}function i1(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function r1(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var Dd=null;function fE(o,s,l){if(Dd===null){var d=new Map,g=Dd=new Map;g.set(l,d)}else g=Dd,d=g.get(l),d||(d=new Map,g.set(l,d));if(d.has(o))return d;for(d.set(o,null),l=l.getElementsByTagName(o),g=0;g<l.length;g++){var b=l[g];if(!(b[pi]||b[Ct]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(s)||"";C=o+C;var O=d.get(C);O?O.push(b):d.set(C,[b])}}return d}function dE(o,s,l){o=o.ownerDocument||o,o.head.insertBefore(l,s==="title"?o.querySelector("head > title"):null)}function dN(o,s,l){if(l===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(o=s.disabled,typeof s.precedence=="string"&&o==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function hE(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function hN(o,s,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=ya(d.href),b=s.querySelector(Kl(g));if(b){s=b._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Nd.bind(o),s.then(o,o)),l.state.loading|=4,l.instance=b,bt(b);return}b=s.ownerDocument||s,d=lE(d),(g=Ti.get(g))&&i1(d,g),b=b.createElement("link"),bt(b);var C=b;C._p=new Promise(function(O,V){C.onload=O,C.onerror=V}),vn(b,"link",d),l.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=Nd.bind(o),s.addEventListener("load",l),s.addEventListener("error",l))}}var o1=0;function pN(o,s){return o.stylesheets&&o.count===0&&Rd(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var d=setTimeout(function(){if(o.stylesheets&&Rd(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+s);0<o.imgBytes&&o1===0&&(o1=62500*QD());var g=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Rd(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>o1?50:800)+s);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function Nd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rd(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Od=null;function Rd(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Od=new Map,s.forEach(mN,o),Od=null,Nd.call(o))}function mN(o,s){if(!(s.state.loading&4)){var l=Od.get(o);if(l)var d=l.get(null);else{l=new Map,Od.set(o,l);for(var g=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var C=g[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),d=C)}d&&l.set(null,d)}g=s.instance,C=g.getAttribute("data-precedence"),b=l.get(C)||d,b===d&&l.set(null,g),l.set(C,g),this.count++,d=Nd.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),b?b.parentNode.insertBefore(g,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(g,o.firstChild)),s.state.loading|=4}}var ec={$$typeof:A,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function gN(o,s,l,d,g,b,C,O,V){this.tag=1,this.containerInfo=o,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=dr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dr(0),this.hiddenUpdates=dr(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function pE(o,s,l,d,g,b,C,O,V,Z,ue,ce){return o=new gN(o,s,l,C,V,Z,ue,ce,O),s=1,b===!0&&(s|=24),b=Kn(3,null,null,s),o.current=b,b.stateNode=o,s=Pp(),s.refCount++,o.pooledCache=s,s.refCount++,b.memoizedState={element:d,isDehydrated:l,cache:s},Up(b),o}function mE(o){return o?(o=Wu,o):Wu}function gE(o,s,l,d,g,b){g=mE(g),d.context===null?d.context=g:d.pendingContext=g,d=Jo(s),d.payload={element:l},b=b===void 0?null:b,b!==null&&(d.callback=b),l=es(o,d,s),l!==null&&(Bn(l,o,s),Ml(l,o,s))}function vE(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function s1(o,s){vE(o,s),(o=o.alternate)&&vE(o,s)}function yE(o){if(o.tag===13||o.tag===31){var s=Us(o,67108864);s!==null&&Bn(s,o,67108864),s1(o,67108864)}}function bE(o){if(o.tag===13||o.tag===31){var s=ii();s=$o(s);var l=Us(o,s);l!==null&&Bn(l,o,s),s1(o,s)}}var Md=!0;function vN(o,s,l,d){var g=L.T;L.T=null;var b=q.p;try{q.p=2,u1(o,s,l,d)}finally{q.p=b,L.T=g}}function yN(o,s,l,d){var g=L.T;L.T=null;var b=q.p;try{q.p=8,u1(o,s,l,d)}finally{q.p=b,L.T=g}}function u1(o,s,l,d){if(Md){var g=a1(d);if(g===null)Ym(o,s,d,kd,l),EE(o,d);else if(xN(g,o,s,l,d))d.stopPropagation();else if(EE(o,d),s&4&&-1<bN.indexOf(o)){for(;g!==null;){var b=yr(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=In(b.pendingLanes);if(C!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;C;){var V=1<<31-Wt(C);O.entanglements[1]|=V,C&=~V}Tr(b),(et&6)===0&&(md=ct()+500,Ql(0))}}break;case 31:case 13:O=Us(b,2),O!==null&&Bn(O,b,2),vd(),s1(b,2)}if(b=a1(d),b===null&&Ym(o,s,d,kd,l),b===g)break;g=b}g!==null&&d.stopPropagation()}else Ym(o,s,d,null,l)}}function a1(o){return o=gl(o),l1(o)}var kd=null;function l1(o){if(kd=null,o=vr(o),o!==null){var s=u(o);if(s===null)o=null;else{var l=s.tag;if(l===13){if(o=a(s),o!==null)return o;o=null}else if(l===31){if(o=c(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return kd=o,null}function xE(o){switch(o){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(Ii()){case Ls:return 2;case ju:return 8;case Gr:case ap:return 32;case Is:return 268435456;default:return 32}default:return 32}}var c1=!1,fs=null,ds=null,hs=null,tc=new Map,nc=new Map,ps=[],bN="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 EE(o,s){switch(o){case"focusin":case"focusout":fs=null;break;case"dragenter":case"dragleave":ds=null;break;case"mouseover":case"mouseout":hs=null;break;case"pointerover":case"pointerout":tc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(s.pointerId)}}function ic(o,s,l,d,g,b){return o===null||o.nativeEvent!==b?(o={blockedOn:s,domEventName:l,eventSystemFlags:d,nativeEvent:b,targetContainers:[g]},s!==null&&(s=yr(s),s!==null&&yE(s)),o):(o.eventSystemFlags|=d,s=o.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),o)}function xN(o,s,l,d,g){switch(s){case"focusin":return fs=ic(fs,o,s,l,d,g),!0;case"dragenter":return ds=ic(ds,o,s,l,d,g),!0;case"mouseover":return hs=ic(hs,o,s,l,d,g),!0;case"pointerover":var b=g.pointerId;return tc.set(b,ic(tc.get(b)||null,o,s,l,d,g)),!0;case"gotpointercapture":return b=g.pointerId,nc.set(b,ic(nc.get(b)||null,o,s,l,d,g)),!0}return!1}function SE(o){var s=vr(o.target);if(s!==null){var l=u(s);if(l!==null){if(s=l.tag,s===13){if(s=a(l),s!==null){o.blockedOn=s,Vu(o.priority,function(){bE(l)});return}}else if(s===31){if(s=c(l),s!==null){o.blockedOn=s,Vu(o.priority,function(){bE(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Ld(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=a1(o.nativeEvent);if(l===null){l=o.nativeEvent;var d=new l.constructor(l.type,l);Wn=d,l.target.dispatchEvent(d),Wn=null}else return s=yr(l),s!==null&&yE(s),o.blockedOn=l,!1;s.shift()}return!0}function TE(o,s,l){Ld(o)&&l.delete(s)}function EN(){c1=!1,fs!==null&&Ld(fs)&&(fs=null),ds!==null&&Ld(ds)&&(ds=null),hs!==null&&Ld(hs)&&(hs=null),tc.forEach(TE),nc.forEach(TE)}function Id(o,s){o.blockedOn===s&&(o.blockedOn=null,c1||(c1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EN)))}var Fd=null;function _E(o){Fd!==o&&(Fd=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Fd===o&&(Fd=null);for(var s=0;s<o.length;s+=3){var l=o[s],d=o[s+1],g=o[s+2];if(typeof d!="function"){if(l1(d||l)===null)continue;break}var b=yr(l);b!==null&&(o.splice(s,3),s-=3,am(b,{pending:!0,data:g,method:l.method,action:d},d,g))}}))}function xa(o){function s(V){return Id(V,o)}fs!==null&&Id(fs,o),ds!==null&&Id(ds,o),hs!==null&&Id(hs,o),tc.forEach(s),nc.forEach(s);for(var l=0;l<ps.length;l++){var d=ps[l];d.blockedOn===o&&(d.blockedOn=null)}for(;0<ps.length&&(l=ps[0],l.blockedOn===null);)SE(l),l.blockedOn===null&&ps.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var g=l[d],b=l[d+1],C=g[Zt]||null;if(typeof b=="function")C||_E(l);else if(C){var O=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[Zt]||null)O=C.formAction;else if(l1(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 o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function s(){g!==null&&(g(),g=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),g!==null&&(g(),g=null)}}}function f1(o){this._internalRoot=o}jd.prototype.render=f1.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(i(409));var l=s.current,d=ii();gE(l,d,o,s,null,null)},jd.prototype.unmount=f1.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;gE(o.current,2,null,o,null,null),vd(),s[Gn]=null}};function jd(o){this._internalRoot=o}jd.prototype.unstable_scheduleHydration=function(o){if(o){var s=Wr();o={blockedOn:null,target:o,priority:s};for(var l=0;l<ps.length&&s!==0&&s<ps[l].priority;l++);ps.splice(l,0,o),l===0&&SE(o)}};var AE=t.version;if(AE!=="19.2.4")throw Error(i(527,AE,"19.2.4"));q.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=h(s),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var SN={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pd.isDisabled&&Pd.supportsFiber)try{cr=Pd.inject(SN),Xt=Pd}catch{}}return oc.createRoot=function(o,s){if(!r(o))throw Error(i(299));var l=!1,d="",g=k3,b=L3,C=I3;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(C=s.onRecoverableError)),s=pE(o,1,!1,null,null,l,d,null,g,b,C,CE),o[Gn]=s.current,Gm(o),new f1(s)},oc.hydrateRoot=function(o,s,l){if(!r(o))throw Error(i(299));var d=!1,g="",b=k3,C=L3,O=I3,V=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(O=l.onRecoverableError),l.formState!==void 0&&(V=l.formState)),s=pE(o,1,!0,s,l??null,d,g,V,b,C,O,CE),s.context=mE(null),l=s.current,d=ii(),d=$o(d),g=Jo(d),g.callback=null,es(l,g,d),l=d,s.current.lanes=l,hi(s,l),Tr(s),o[Gn]=s.current,Gm(o),new jd(s)},oc.version="19.2.4",oc}var FE;function MN(){if(FE)return p1.exports;FE=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(),p1.exports=RN(),p1.exports}var yT=MN();const kN=Du(yT);var LN=Object.defineProperty,IN=Object.defineProperties,FN=Object.getOwnPropertyDescriptors,jE=Object.getOwnPropertySymbols,jN=Object.prototype.hasOwnProperty,PN=Object.prototype.propertyIsEnumerable,Ig=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),PE=(e,t,n)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,li=(e,t)=>{for(var n in t||(t={}))jN.call(t,n)&&PE(e,n,t[n]);if(jE)for(var n of jE(t))PN.call(t,n)&&PE(e,n,t[n]);return e},Rc=(e,t)=>IN(e,FN(t)),m0=function(e,t){this[0]=e,this[1]=t},$N=(e,t,n)=>{var i=(a,c,f,h)=>{try{var p=n[a](c),m=(c=p.value)instanceof m0,v=p.done;Promise.resolve(m?c[0]:c).then(y=>m?i(a==="return"?a:"next",c[1]?{done:y.done,value:y.value}:y,f,h):f({value:y,done:v})).catch(y=>i("throw",y,f,h))}catch(y){h(y)}},r=a=>u[a]=c=>new Promise((f,h)=>i(a,c,f,h)),u={};return n=n.apply(e,t),u[Ig("asyncIterator")]=()=>u,r("next"),r("throw"),r("return"),u},VN=(e,t,n)=>(t=e[Ig("asyncIterator")])?t.call(e):(e=e[Ig("iterator")](),t={},n=(i,r)=>(r=e[i])&&(t[i]=u=>new Promise((a,c,f)=>(u=r.call(e,u),f=u.done,Promise.resolve(u.value).then(h=>a({value:h,done:f}),c)))),n("next"),n("return"),t);function $E(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function BN(e){return new Promise((t,n)=>{const i=e.subscribe({next(r){t(r),i.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function bT(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function xT(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function UN(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?.(),i.value}async function VE(e){const t=await e;return xT(t)?UN(t):bT(t)?BN(t):t}const zN="modulepreload",HN=function(e){return"/graphiql/"+e},BE={},Je=function(t,n,i){let r=Promise.resolve();if(n&&n.length>0){let f=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 a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");r=f(n.map(h=>{if(h=HN(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":zN,p||(v.as="script"),v.crossOrigin="",v.href=h,c&&v.setAttribute("nonce",c),document.head.appendChild(v),p)return new Promise((y,x)=>{v.addEventListener("load",y),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return r.then(a=>{for(const c of a||[])c.status==="rejected"&&u(c.reason);return t().catch(u)})};function nt(e,t){if(!!!e)throw new Error(t)}function Ao(e){return typeof e=="object"&&e!==null}function gh(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const qN=/\r\n|[\n\r]/g;function Fg(e,t){let n=0,i=1;for(const r of e.body.matchAll(qN)){if(typeof r.index=="number"||gh(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function GN(e){return ET(e.source,Fg(e.source,e.start))}function ET(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,u=e.locationOffset.line-1,a=t.line+u,c=t.line===1?n:0,f=t.column+c,h=`${e.name}:${a}:${f}
|
|
11
|
+
`,p=i.split(/\r\n|[\n\r]/g),m=p[r];if(m.length>120){const v=Math.floor(f/80),y=f%80,x=[];for(let S=0;S<m.length;S+=80)x.push(m.slice(S,S+80));return h+UE([[`${a} |`,x[0]],...x.slice(1,v+1).map(S=>["|",S]),["|","^".padStart(y)],["|",x[v+1]]])}return h+UE([[`${a-1} |`,p[r-1]],[`${a} |`,m],["|","^".padStart(f)],[`${a+1} |`,p[r+1]]])}function UE(e){const t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
|
|
12
|
+
`)}function YN(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,r,u;const{nodes:a,source:c,positions:f,path:h,originalError:p,extensions:m}=YN(n);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=p??void 0,this.nodes=zE(Array.isArray(a)?a:a?[a]: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||(r=v[0])===null||r===void 0?void 0:r.source),this.positions=f??v?.map(x=>x.start),this.locations=f&&c?f.map(x=>Fg(c,x)):v?.map(x=>Fg(x.source,x.start));const y=Ao(p?.extensions)?p?.extensions:void 0;this.extensions=(u=m??y)!==null&&u!==void 0?u: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+=`
|
|
13
|
+
|
|
14
|
+
`+GN(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
15
|
+
|
|
16
|
+
`+ET(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 tn(e,t,n){return new tt(`Syntax Error: ${n}`,{source:e,positions:[t]})}let QN=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}}},ST=class{constructor(t,n,i,r,u,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=u,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const TT={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},XN=new Set(Object.keys(TT));function jg(e){const t=e?.kind;return typeof t=="string"&&XN.has(t)}var Ai;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Ai||(Ai={}));var Ce;(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",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(Ce||(Ce={}));var Q;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Q||(Q={}));function Pg(e){return e===9||e===32}function Mc(e){return e>=48&&e<=57}function _T(e){return e>=97&&e<=122||e>=65&&e<=90}function dy(e){return _T(e)||e===95}function CT(e){return _T(e)||Mc(e)||e===95}function WN(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;a<e.length;++a){var u;const c=e[a],f=ZN(c);f!==c.length&&(i=(u=i)!==null&&u!==void 0?u:a,r=a,a!==0&&f<n&&(n=f))}return e.map((a,c)=>c===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function ZN(e){let t=0;for(;t<e.length&&Pg(e.charCodeAt(t));)++t;return t}function KN(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,u=i.length>1&&i.slice(1).every(y=>y.length===0||Pg(y.charCodeAt(0))),a=n.endsWith('\\"""'),c=e.endsWith('"')&&!a,f=e.endsWith("\\"),h=c||f,p=!r||e.length>70||h||u||a;let m="";const v=r&&Pg(e.charCodeAt(0));return(p&&!v||u)&&(m+=`
|
|
17
|
+
`),m+=n,(p||h)&&(m+=`
|
|
18
|
+
`),'"""'+m+'"""'}var ae;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(ae||(ae={}));class JN{constructor(t){const n=new ST(ae.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!==ae.EOF)do if(t.next)t=t.next;else{const n=tO(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===ae.COMMENT);return t}}function eO(e){return e===ae.BANG||e===ae.DOLLAR||e===ae.AMP||e===ae.PAREN_L||e===ae.PAREN_R||e===ae.DOT||e===ae.SPREAD||e===ae.COLON||e===ae.EQUALS||e===ae.AT||e===ae.BRACKET_L||e===ae.BRACKET_R||e===ae.BRACE_L||e===ae.PIPE||e===ae.BRACE_R}function Ja(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function vh(e,t){return AT(e.charCodeAt(t))&&wT(e.charCodeAt(t+1))}function AT(e){return e>=55296&&e<=56319}function wT(e){return e>=56320&&e<=57343}function bu(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return ae.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function qt(e,t,n,i,r){const u=e.line,a=1+n-e.lineStart;return new ST(t,n,i,u,a,r)}function tO(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const u=n.charCodeAt(r);switch(u){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return nO(e,r);case 33:return qt(e,ae.BANG,r,r+1);case 36:return qt(e,ae.DOLLAR,r,r+1);case 38:return qt(e,ae.AMP,r,r+1);case 40:return qt(e,ae.PAREN_L,r,r+1);case 41:return qt(e,ae.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return qt(e,ae.SPREAD,r,r+3);break;case 58:return qt(e,ae.COLON,r,r+1);case 61:return qt(e,ae.EQUALS,r,r+1);case 64:return qt(e,ae.AT,r,r+1);case 91:return qt(e,ae.BRACKET_L,r,r+1);case 93:return qt(e,ae.BRACKET_R,r,r+1);case 123:return qt(e,ae.BRACE_L,r,r+1);case 124:return qt(e,ae.PIPE,r,r+1);case 125:return qt(e,ae.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?aO(e,r):rO(e,r)}if(Mc(u)||u===45)return iO(e,r,u);if(dy(u))return lO(e,r);throw tn(e.source,r,u===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Ja(u)||vh(n,r)?`Unexpected character: ${bu(e,r)}.`:`Invalid character: ${bu(e,r)}.`)}return qt(e,ae.EOF,i,i)}function nO(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const u=n.charCodeAt(r);if(u===10||u===13)break;if(Ja(u))++r;else if(vh(n,r))r+=2;else break}return qt(e,ae.COMMENT,t,r,n.slice(t+1,r))}function iO(e,t,n){const i=e.source.body;let r=t,u=n,a=!1;if(u===45&&(u=i.charCodeAt(++r)),u===48){if(u=i.charCodeAt(++r),Mc(u))throw tn(e.source,r,`Invalid number, unexpected digit after 0: ${bu(e,r)}.`)}else r=y1(e,r,u),u=i.charCodeAt(r);if(u===46&&(a=!0,u=i.charCodeAt(++r),r=y1(e,r,u),u=i.charCodeAt(r)),(u===69||u===101)&&(a=!0,u=i.charCodeAt(++r),(u===43||u===45)&&(u=i.charCodeAt(++r)),r=y1(e,r,u),u=i.charCodeAt(r)),u===46||dy(u))throw tn(e.source,r,`Invalid number, expected digit but got: ${bu(e,r)}.`);return qt(e,a?ae.FLOAT:ae.INT,t,r,i.slice(t,r))}function y1(e,t,n){if(!Mc(n))throw tn(e.source,t,`Invalid number, expected digit but got: ${bu(e,t)}.`);const i=e.source.body;let r=t+1;for(;Mc(i.charCodeAt(r));)++r;return r}function rO(e,t){const n=e.source.body,i=n.length;let r=t+1,u=r,a="";for(;r<i;){const c=n.charCodeAt(r);if(c===34)return a+=n.slice(u,r),qt(e,ae.STRING,t,r+1,a);if(c===92){a+=n.slice(u,r);const f=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?oO(e,r):sO(e,r):uO(e,r);a+=f.value,r+=f.size,u=r;continue}if(c===10||c===13)break;if(Ja(c))++r;else if(vh(n,r))r+=2;else throw tn(e.source,r,`Invalid character within String: ${bu(e,r)}.`)}throw tn(e.source,r,"Unterminated string.")}function oO(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const u=n.charCodeAt(t+r++);if(u===125){if(r<5||!Ja(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|fc(u),i<0)break}throw tn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function sO(e,t){const n=e.source.body,i=HE(n,t+2);if(Ja(i))return{value:String.fromCodePoint(i),size:6};if(AT(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const r=HE(n,t+8);if(wT(r))return{value:String.fromCodePoint(i,r),size:12}}throw tn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function HE(e,t){return fc(e.charCodeAt(t))<<12|fc(e.charCodeAt(t+1))<<8|fc(e.charCodeAt(t+2))<<4|fc(e.charCodeAt(t+3))}function fc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function uO(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:`
|
|
19
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw tn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function aO(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,u=t+3,a=u,c="";const f=[];for(;u<i;){const h=n.charCodeAt(u);if(h===34&&n.charCodeAt(u+1)===34&&n.charCodeAt(u+2)===34){c+=n.slice(a,u),f.push(c);const p=qt(e,ae.BLOCK_STRING,t,u+3,WN(f).join(`
|
|
20
|
+
`));return e.line+=f.length-1,e.lineStart=r,p}if(h===92&&n.charCodeAt(u+1)===34&&n.charCodeAt(u+2)===34&&n.charCodeAt(u+3)===34){c+=n.slice(a,u),a=u+1,u+=4;continue}if(h===10||h===13){c+=n.slice(a,u),f.push(c),h===13&&n.charCodeAt(u+1)===10?u+=2:++u,c="",a=u,r=u;continue}if(Ja(h))++u;else if(vh(n,u))u+=2;else throw tn(e.source,u,`Invalid character within String: ${bu(e,u)}.`)}throw tn(e.source,u,"Unterminated string.")}function lO(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const u=n.charCodeAt(r);if(CT(u))++r;else break}return qt(e,ae.NAME,t,r,n.slice(t,r))}const cO=10,DT=2;function xe(e){return yh(e,[])}function yh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return fO(e,t);default:return String(e)}}function fO(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(dO(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:yh(i,n)}else if(Array.isArray(e))return pO(e,n);return hO(e,n)}function dO(e){return typeof e.toJSON=="function"}function hO(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>DT?"["+mO(e)+"]":"{ "+n.map(([r,u])=>r+": "+yh(u,t)).join(", ")+" }"}function pO(e,t){if(e.length===0)return"[]";if(t.length>DT)return"[Array]";const n=Math.min(cO,e.length),i=e.length-n,r=[];for(let u=0;u<n;++u)r.push(yh(e[u],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function mO(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 gO=globalThis.process&&!0,rr=gO?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 r=n.prototype[Symbol.toStringTag],u=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===u){const a=xe(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm.
|
|
21
|
+
|
|
22
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
23
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
24
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
25
|
+
|
|
26
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
27
|
+
|
|
28
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
29
|
+
versions may have different capabilities and behavior. The data from one
|
|
30
|
+
version used in the function from another could produce confusing and
|
|
31
|
+
spurious results.`)}}return!1};class NT{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||nt(!1,`Body must be a string. Received: ${xe(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 vO(e){return rr(e,NT)}function Nu(e,t){const n=new OT(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function yO(e,t){const n=new OT(e,t);n.expectToken(ae.SOF);const i=n.parseValueLiteral(!1);return n.expectToken(ae.EOF),i}class OT{constructor(t,n={}){const{lexer:i,...r}=n;if(i)this._lexer=i;else{const u=vO(t)?t:new NT(t);this._lexer=new JN(u)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(ae.NAME);return this.node(t,{kind:Q.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(ae.SOF,this.parseDefinition,ae.EOF)})}parseDefinition(){if(this.peek(ae.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===ae.BRACE_L)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===ae.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()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(ae.BRACE_L))return this.node(t,{kind:Q.OPERATION_DEFINITION,operation:Ai.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseDescription(),i=this.parseOperationType();let r;return this.peek(ae.NAME)&&(r=this.parseName()),this.node(t,{kind:Q.OPERATION_DEFINITION,operation:i,description:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(ae.NAME);switch(t.value){case"query":return Ai.QUERY;case"mutation":return Ai.MUTATION;case"subscription":return Ai.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(ae.PAREN_L,this.parseVariableDefinition,ae.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ae.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ae.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(ae.DOLLAR),this.node(t,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(ae.BRACE_L,this.parseSelection,ae.BRACE_R)})}parseSelection(){return this.peek(ae.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(ae.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:Q.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ae.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(ae.PAREN_L,n,ae.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(ae.COLON),this.node(n,{kind:Q.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(ae.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(ae.NAME)?this.node(t,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Q.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Q.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Q.FRAGMENT_DEFINITION,description:n,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 ae.BRACKET_L:return this.parseList(t);case ae.BRACE_L:return this.parseObject(t);case ae.INT:return this.advanceLexer(),this.node(n,{kind:Q.INT,value:n.value});case ae.FLOAT:return this.advanceLexer(),this.node(n,{kind:Q.FLOAT,value:n.value});case ae.STRING:case ae.BLOCK_STRING:return this.parseStringLiteral();case ae.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Q.NULL});default:return this.node(n,{kind:Q.ENUM,value:n.value})}case ae.DOLLAR:if(t)if(this.expectToken(ae.DOLLAR),this._lexer.token.kind===ae.NAME){const i=this._lexer.token.value;throw tn(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:Q.STRING,value:t.value,block:t.kind===ae.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(ae.BRACKET_L,n,ae.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(ae.BRACE_L,n,ae.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,i=this.parseName();return this.expectToken(ae.COLON),this.node(n,{kind:Q.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(ae.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(ae.AT),this.node(n,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(ae.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(ae.BRACKET_R),n=this.node(t,{kind:Q.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(ae.BANG)?this.node(t,{kind:Q.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ae.STRING)||this.peek(ae.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(),r=this.many(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);return this.node(t,{kind:Q.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(ae.COLON);const i=this.parseNamedType();return this.node(t,{kind:Q.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:Q.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Q.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:u,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ae.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ae.BRACE_L,this.parseFieldDefinition,ae.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(ae.COLON);const u=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:Q.FIELD_DEFINITION,description:n,name:i,arguments:r,type:u,directives:a})}parseArgumentDefs(){return this.optionalMany(ae.PAREN_L,this.parseInputValueDef,ae.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(ae.COLON);const r=this.parseTypeReference();let u;this.expectOptionalToken(ae.EQUALS)&&(u=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:Q.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:u,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Q.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:u,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),u=this.parseUnionMemberTypes();return this.node(t,{kind:Q.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:u})}parseUnionMemberTypes(){return this.expectOptionalToken(ae.EQUALS)?this.delimitedMany(ae.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),u=this.parseEnumValuesDefinition();return this.node(t,{kind:Q.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:u})}parseEnumValuesDefinition(){return this.optionalMany(ae.BRACE_L,this.parseEnumValueDefinition,ae.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:Q.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw tn(this._lexer.source,this._lexer.token.start,`${$d(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(),r=this.parseConstDirectives(),u=this.parseInputFieldsDefinition();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:u})}parseInputFieldsDefinition(){return this.optionalMany(ae.BRACE_L,this.parseInputValueDef,ae.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===ae.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.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:Q.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(),r=this.parseConstDirectives(),u=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&u.length===0)throw this.unexpected();return this.node(t,{kind:Q.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:u})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),u=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&u.length===0)throw this.unexpected();return this.node(t,{kind:Q.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:u})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(ae.AT);const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:Q.DIRECTIVE_EXTENSION,name:n,directives:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ae.AT);const i=this.parseName(),r=this.parseArgumentDefs(),u=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(t,{kind:Q.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,directives:u,repeatable:a,locations:c})}parseDirectiveLocations(){return this.delimitedMany(ae.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ce,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,n=this.expectOptionalToken(ae.AT),i=this.parseName();let r;!n&&this.expectOptionalToken(ae.DOT)&&(r=this.parseName());let u;return(n||r)&&this.expectOptionalToken(ae.PAREN_L)&&(u=this.parseName(),this.expectToken(ae.COLON),this.expectToken(ae.PAREN_R)),n?u?this.node(t,{kind:Q.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:u}):this.node(t,{kind:Q.DIRECTIVE_COORDINATE,name:i}):r?u?this.node(t,{kind:Q.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:u}):this.node(t,{kind:Q.MEMBER_COORDINATE,name:i,memberName:r}):this.node(t,{kind:Q.TYPE_COORDINATE,name:i})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new QN(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 tn(this._lexer.source,n.start,`Expected ${RT(t)}, found ${$d(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===ae.NAME&&n.value===t)this.advanceLexer();else throw tn(this._lexer.source,n.start,`Expected "${t}", found ${$d(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===ae.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return tn(this._lexer.source,n.start,`Unexpected ${$d(n)}.`)}any(t,n,i){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}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!==ae.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw tn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function $d(e){const t=e.value;return RT(e.kind)+(t!=null?` "${t}"`:"")}function RT(e){return eO(e)?`"${e}"`:e}const bO=5;function xO(e,t){const[n,i]=t?[e,t]:[void 0,e];let r=" Did you mean ";n&&(r+=n+" ");const u=i.map(f=>`"${f}"`);switch(u.length){case 0:return"";case 1:return r+u[0]+"?";case 2:return r+u[0]+" or "+u[1]+"?"}const a=u.slice(0,bO),c=a.pop();return r+a.join(", ")+", or "+c+"?"}function qE(e){return e}function MT(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function uu(e,t,n){const i=Object.create(null);for(const r of e)i[t(r)]=n(r);return i}function bh(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function EO(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),u=t.charCodeAt(i);if(Vd(r)&&Vd(u)){let a=0;do++n,a=a*10+r-$g,r=e.charCodeAt(n);while(Vd(r)&&a>0);let c=0;do++i,c=c*10+u-$g,u=t.charCodeAt(i);while(Vd(u)&&c>0);if(a<c)return-1;if(a>c)return 1}else{if(r<u)return-1;if(r>u)return 1;++n,++i}}return e.length-t.length}const $g=48,SO=57;function Vd(e){return!isNaN(e)&&$g<=e&&e<=SO}function TO(e,t){const n=Object.create(null),i=new _O(e),r=Math.floor(e.length*.4)+1;for(const u of t){const a=i.measure(u,r);a!==void 0&&(n[u]=a)}return Object.keys(n).sort((u,a)=>{const c=n[u]-n[a];return c!==0?c:EO(u,a)})}class _O{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 r=GE(i),u=this._inputArray;if(r.length<u.length){const p=r;r=u,u=p}const a=r.length,c=u.length;if(a-c>n)return;const f=this._rows;for(let p=0;p<=c;p++)f[0][p]=p;for(let p=1;p<=a;p++){const m=f[(p-1)%3],v=f[p%3];let y=v[0]=p;for(let x=1;x<=c;x++){const S=r[p-1]===u[x-1]?0:1;let _=Math.min(m[x]+1,v[x-1]+1,m[x-1]+S);if(p>1&&x>1&&r[p-1]===u[x-2]&&r[p-2]===u[x-1]){const T=f[(p-2)%3][x-2];_=Math.min(_,T+1)}_<y&&(y=_),v[x]=_}if(y>n)return}const h=f[a%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 ki(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 CO(e){return`"${e.replace(AO,wO)}"`}const AO=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function wO(e){return DO[e.charCodeAt(0)]}const DO=["\\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"],Na=Object.freeze({});function er(e,t,n=TT){const i=new Map;for(const T of Object.values(Q))i.set(T,k0(t,T));let r,u=Array.isArray(e),a=[e],c=-1,f=[],h=e,p,m;const v=[],y=[];do{c++;const T=c===a.length,N=T&&f.length!==0;if(T){if(p=y.length===0?void 0:v[v.length-1],h=m,m=y.pop(),N)if(u){h=h.slice();let D=0;for(const[R,M]of f){const F=R-D;M===null?(h.splice(F,1),D++):h[F]=M}}else{h={...h};for(const[D,R]of f)h[D]=R}c=r.index,a=r.keys,f=r.edits,u=r.inArray,r=r.prev}else if(m){if(p=u?c:a[c],h=m[p],h==null)continue;v.push(p)}let A;if(!Array.isArray(h)){var x,S;jg(h)||nt(!1,`Invalid AST Node: ${xe(h)}.`);const D=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(A=D?.call(t,h,p,m,v,y),A===Na)break;if(A===!1){if(!T){v.pop();continue}}else if(A!==void 0&&(f.push([p,A]),!T))if(jg(A))h=A;else{v.pop();continue}}if(A===void 0&&N&&f.push([p,h]),T)v.pop();else{var _;r={inArray:u,index:c,keys:a,edits:f,prev:r},u=Array.isArray(h),a=u?h:(_=n[h.kind])!==null&&_!==void 0?_:[],c=-1,f=[],m&&y.push(m),m=h}}while(r!==void 0);return f.length!==0?f[f.length-1][1]:e}function vJ(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const i of Object.values(Q)){let r=!1;const u=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let f=0;f<e.length;++f){const{enter:h,leave:p}=k0(e[f],i);r||(r=h!=null||p!=null),u[f]=h,a[f]=p}if(!r)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=u[m])===null||p===void 0?void 0:p.apply(e[m],f);if(v===!1)t[m]=h;else if(v===Na)t[m]=Na;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=a[m])===null||p===void 0?void 0:p.apply(e[m],f);if(v===Na)t[m]=Na;else if(v!==void 0&&v!==!1)return v}else t[m]===h&&(t[m]=null)}};n[i]=c}return n}function k0(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 ci(e){return er(e,OO)}const NO=80,OO={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ve(e.definitions,`
|
|
32
|
+
|
|
33
|
+
`)},OperationDefinition:{leave(e){const t=b1(e.variableDefinitions)?Re(`(
|
|
34
|
+
`,ve(e.variableDefinitions,`
|
|
35
|
+
`),`
|
|
36
|
+
)`):Re("(",ve(e.variableDefinitions,", "),")"),n=Re("",e.description,`
|
|
37
|
+
`)+ve([e.operation,ve([e.name,t]),ve(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i,description:r})=>Re("",r,`
|
|
38
|
+
`)+e+": "+t+Re(" = ",n)+Re(" ",ve(i," "))},SelectionSet:{leave:({selections:e})=>Gi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const u=Re("",e,": ")+t;let a=u+Re("(",ve(n,", "),")");return a.length>NO&&(a=u+Re(`(
|
|
39
|
+
`,g0(ve(n,`
|
|
40
|
+
`)),`
|
|
41
|
+
)`)),ve([a,ve(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Re(" ",ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ve(["...",Re("on ",e),ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r,description:u})=>Re("",u,`
|
|
42
|
+
`)+`fragment ${e}${Re("(",ve(n,", "),")")} on ${t} ${Re("",ve(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?KN(e):CO(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Re("(",ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Re("",e,`
|
|
43
|
+
`)+ve(["schema",ve(t," "),Gi(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Re("",e,`
|
|
44
|
+
`)+ve(["scalar",t,ve(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Re("",e,`
|
|
45
|
+
`)+ve(["type",t,Re("implements ",ve(n," & ")),ve(i," "),Gi(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>Re("",e,`
|
|
46
|
+
`)+t+(b1(n)?Re(`(
|
|
47
|
+
`,g0(ve(n,`
|
|
48
|
+
`)),`
|
|
49
|
+
)`):Re("(",ve(n,", "),")"))+": "+i+Re(" ",ve(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>Re("",e,`
|
|
50
|
+
`)+ve([t+": "+n,Re("= ",i),ve(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Re("",e,`
|
|
51
|
+
`)+ve(["interface",t,Re("implements ",ve(n," & ")),ve(i," "),Gi(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>Re("",e,`
|
|
52
|
+
`)+ve(["union",t,ve(n," "),Re("= ",ve(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>Re("",e,`
|
|
53
|
+
`)+ve(["enum",t,ve(n," "),Gi(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Re("",e,`
|
|
54
|
+
`)+ve([t,ve(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>Re("",e,`
|
|
55
|
+
`)+ve(["input",t,ve(n," "),Gi(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:i,repeatable:r,locations:u})=>Re("",e,`
|
|
56
|
+
`)+"directive @"+t+(b1(n)?Re(`(
|
|
57
|
+
`,g0(ve(n,`
|
|
58
|
+
`)),`
|
|
59
|
+
)`):Re("(",ve(n,", "),")"))+Re(" ",ve(i," "))+(r?" repeatable":"")+" on "+ve(u," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ve(["extend schema",ve(e," "),Gi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ve(["extend scalar",e,ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ve(["extend type",e,Re("implements ",ve(t," & ")),ve(n," "),Gi(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ve(["extend interface",e,Re("implements ",ve(t," & ")),ve(n," "),Gi(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ve(["extend union",e,ve(t," "),Re("= ",ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ve(["extend enum",e,ve(t," "),Gi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ve(["extend input",e,ve(t," "),Gi(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>ve(["extend directive @"+e,ve(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>ve([e,Re(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>ve([e,Re(".",t),Re("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>ve(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>ve(["@",e,Re("(",t,":)")])}};function ve(e,t=""){var n;return(n=e?.filter(i=>i).join(t))!==null&&n!==void 0?n:""}function Gi(e){return Re(`{
|
|
60
|
+
`,g0(ve(e,`
|
|
61
|
+
`)),`
|
|
62
|
+
}`)}function Re(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function g0(e){return Re(" ",e.replace(/\n/g,`
|
|
63
|
+
`))}function b1(e){var t;return(t=e?.some(n=>n.includes(`
|
|
64
|
+
`)))!==null&&t!==void 0?t:!1}function Vg(e,t){switch(e.kind){case Q.NULL:return null;case Q.INT:return parseInt(e.value,10);case Q.FLOAT:return parseFloat(e.value);case Q.STRING:case Q.ENUM:case Q.BOOLEAN:return e.value;case Q.LIST:return e.values.map(n=>Vg(n,t));case Q.OBJECT:return uu(e.fields,n=>n.name.value,n=>Vg(n.value,t));case Q.VARIABLE:return t?.[e.name.value]}}function or(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(!CT(e.charCodeAt(t)))throw new tt(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!dy(e.charCodeAt(0)))throw new tt(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function RO(e){if(e==="true"||e==="false"||e==="null")throw new tt(`Enum values cannot be named: ${e}`);return or(e)}function hy(e){return Os(e)||Tt(e)||Dt(e)||Oi(e)||fi(e)||fn(e)||kn(e)||$t(e)}function Os(e){return rr(e,Ou)}function Tt(e){return rr(e,$r)}function MO(e){if(!Tt(e))throw new Error(`Expected ${xe(e)} to be a GraphQL Object type.`);return e}function Dt(e){return rr(e,Fa)}function kO(e){if(!Dt(e))throw new Error(`Expected ${xe(e)} to be a GraphQL Interface type.`);return e}function Oi(e){return rr(e,UT)}function fi(e){return rr(e,el)}function fn(e){return rr(e,vy)}function kn(e){return rr(e,zn)}function $t(e){return rr(e,$e)}function Ci(e){return Os(e)||fi(e)||fn(e)||py(e)&&Ci(e.ofType)}function pu(e){return Os(e)||Tt(e)||Dt(e)||Oi(e)||fi(e)||py(e)&&pu(e.ofType)}function xh(e){return Os(e)||fi(e)}function Ss(e){return Tt(e)||Dt(e)||Oi(e)}function _o(e){return Dt(e)||Oi(e)}function LO(e){if(!_o(e))throw new Error(`Expected ${xe(e)} to be a GraphQL abstract type.`);return e}class zn{constructor(t){hy(t)||nt(!1,`Expected ${xe(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class $e{constructor(t){kT(t)||nt(!1,`Expected ${xe(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 py(e){return kn(e)||$t(e)}function kT(e){return hy(e)&&!$t(e)}function IO(e){if(!kT(e))throw new Error(`Expected ${xe(e)} to be a GraphQL nullable type.`);return e}function LT(e){if(e)return $t(e)?e.ofType:e}function my(e){return Os(e)||Tt(e)||Dt(e)||Oi(e)||fi(e)||fn(e)}function Nn(e){if(e){let t=e;for(;py(t);)t=t.ofType;return t}}function IT(e){return typeof e=="function"?e():e}function FT(e){return typeof e=="function"?e():e}class Ou{constructor(t){var n,i,r,u;const a=(n=t.parseValue)!==null&&n!==void 0?n:qE;this.name=or(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:qE,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:(c,f)=>a(Vg(c,f)),this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(u=t.extensionASTNodes)!==null&&u!==void 0?u:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||nt(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${xe(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 $r{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>PT(t),this._interfaces=()=>jT(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||nt(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${xe(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:VT(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function jT(e){var t;const n=IT((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 PT(e){const t=FT(e.fields);return Ia(t)||nt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),bh(t,(n,i)=>{var r;Ia(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: ${xe(n.resolve)}.`);const u=(r=n.args)!==null&&r!==void 0?r:{};return Ia(u)||nt(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:or(i),description:n.description,type:n.type,args:$T(u),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:ki(n.extensions),astNode:n.astNode}})}function $T(e){return Object.entries(e).map(([t,n])=>({name:or(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ki(n.extensions),astNode:n.astNode}))}function Ia(e){return Ao(e)&&!Array.isArray(e)}function VT(e){return bh(e,t=>({description:t.description,type:t.type,args:BT(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function BT(e){return uu(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function gy(e){return $t(e.type)&&e.defaultValue===void 0}class Fa{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=PT.bind(void 0,t),this._interfaces=jT.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||nt(!1,`${this.name} must provide "resolveType" as a function, but got: ${xe(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:VT(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class UT{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=FO.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||nt(!1,`${this.name} must provide "resolveType" as a function, but got: ${xe(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 FO(e){const t=IT(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 el{constructor(t){var n;this.name=or(t.name),this.description=t.description,this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:YE(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=YE(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=MT(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: ${xe(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const i=xe(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!==Q.ENUM){const r=ci(t);throw new tt(`Enum "${this.name}" cannot represent non-enum value: ${r}.`+Bd(this,r),{nodes:t})}const i=this.getValue(t.value);if(i==null){const r=ci(t);throw new tt(`Value "${r}" does not exist in "${this.name}" enum.`+Bd(this,r),{nodes:t})}return i.value}toConfig(){const t=uu(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(r=>r.name),i=TO(t,n);return xO("the enum value",i)}function YE(e,t){return Ia(t)||nt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,i])=>(Ia(i)||nt(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${xe(i)}.`),{name:RO(n),description:i.description,value:i.value!==void 0?i.value:n,deprecationReason:i.deprecationReason,extensions:ki(i.extensions),astNode:i.astNode}))}class vy{constructor(t){var n,i;this.name=or(t.name),this.description=t.description,this.extensions=ki(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=jO.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=bh(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 jO(e){const t=FT(e.fields);return Ia(t)||nt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),bh(t,(n,i)=>(!("resolve"in n)||nt(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:or(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ki(n.extensions),astNode:n.astNode}))}function PO(e){return $t(e.type)&&e.defaultValue===void 0}function Bg(e,t){return e===t?!0:$t(e)&&$t(t)||kn(e)&&kn(t)?Bg(e.ofType,t.ofType):!1}function v0(e,t,n){return t===n?!0:$t(n)?$t(t)?v0(e,t.ofType,n.ofType):!1:$t(t)?v0(e,t.ofType,n):kn(n)?kn(t)?v0(e,t.ofType,n.ofType):!1:kn(t)?!1:_o(n)&&(Dt(t)||Tt(t))&&e.isSubType(n,t)}function $O(e,t,n){return t===n?!0:_o(t)?_o(n)?e.getPossibleTypes(t).some(i=>e.isSubType(n,i)):e.isSubType(t,n):_o(n)?e.isSubType(n,t):!1}const x1=2147483647,E1=-2147483648,VO=new Ou({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=of(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: ${xe(t)}`);if(n>x1||n<E1)throw new tt("Int cannot represent non 32-bit signed integer value: "+xe(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new tt(`Int cannot represent non-integer value: ${xe(e)}`);if(e>x1||e<E1)throw new tt(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==Q.INT)throw new tt(`Int cannot represent non-integer value: ${ci(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>x1||t<E1)throw new tt(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),zT=new Ou({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=of(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: ${xe(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new tt(`Float cannot represent non numeric value: ${xe(e)}`);return e},parseLiteral(e){if(e.kind!==Q.FLOAT&&e.kind!==Q.INT)throw new tt(`Float cannot represent non numeric value: ${ci(e)}`,e);return parseFloat(e.value)}}),kt=new Ou({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=of(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: ${xe(e)}`)},parseValue(e){if(typeof e!="string")throw new tt(`String cannot represent a non string value: ${xe(e)}`);return e},parseLiteral(e){if(e.kind!==Q.STRING)throw new tt(`String cannot represent a non string value: ${ci(e)}`,{nodes:e});return e.value}}),Yt=new Ou({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=of(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new tt(`Boolean cannot represent a non boolean value: ${xe(t)}`)},parseValue(e){if(typeof e!="boolean")throw new tt(`Boolean cannot represent a non boolean value: ${xe(e)}`);return e},parseLiteral(e){if(e.kind!==Q.BOOLEAN)throw new tt(`Boolean cannot represent a non boolean value: ${ci(e)}`,{nodes:e});return e.value}}),HT=new Ou({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=of(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new tt(`ID cannot represent value: ${xe(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: ${xe(e)}`)},parseLiteral(e){if(e.kind!==Q.STRING&&e.kind!==Q.INT)throw new tt("ID cannot represent a non-string and non-integer value: "+ci(e),{nodes:e});return e.value}}),BO=Object.freeze([kt,VO,zT,Yt,HT]);function of(e){if(Ao(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!Ao(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function qT(e){return rr(e,Ru)}class Ru{constructor(t){var n,i,r;this.name=or(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.deprecationReason=t.deprecationReason,this.extensions=ki(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(i=t.extensionASTNodes)!==null&&i!==void 0?i:[],Array.isArray(t.locations)||nt(!1,`@${t.name} locations must be an Array.`);const u=(r=t.args)!==null&&r!==void 0?r:{};Ao(u)&&!Array.isArray(u)||nt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=$T(u)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:BT(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const UO=new Ru({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ce.FIELD,Ce.FRAGMENT_SPREAD,Ce.INLINE_FRAGMENT],args:{if:{type:new $e(Yt),description:"Included when true."}}}),zO=new Ru({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ce.FIELD,Ce.FRAGMENT_SPREAD,Ce.INLINE_FRAGMENT],args:{if:{type:new $e(Yt),description:"Skipped when true."}}}),HO="No longer supported",GT=new Ru({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ce.FIELD_DEFINITION,Ce.ARGUMENT_DEFINITION,Ce.INPUT_FIELD_DEFINITION,Ce.ENUM_VALUE,Ce.DIRECTIVE_DEFINITION],args:{reason:{type:kt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:HO}}}),qO=new Ru({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ce.SCALAR],args:{url:{type:new $e(kt),description:"The URL that specifies the behavior of this scalar."}}}),GO=new Ru({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ce.INPUT_OBJECT],args:{}}),YO=Object.freeze([UO,zO,GT,qO,GO]);function QO(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Oa(e,t){if($t(t)){const n=Oa(e,t.ofType);return n?.kind===Q.NULL?null:n}if(e===null)return{kind:Q.NULL};if(e===void 0)return null;if(kn(t)){const n=t.ofType;if(QO(e)){const i=[];for(const r of e){const u=Oa(r,n);u!=null&&i.push(u)}return{kind:Q.LIST,values:i}}return Oa(e,n)}if(fn(t)){if(!Ao(e))return null;const n=[];for(const i of Object.values(t.getFields())){const r=Oa(e[i.name],i.type);r&&n.push({kind:Q.OBJECT_FIELD,name:{kind:Q.NAME,value:i.name},value:r})}return{kind:Q.OBJECT,fields:n}}if(xh(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Q.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const i=String(n);return QE.test(i)?{kind:Q.INT,value:i}:{kind:Q.FLOAT,value:i}}if(typeof n=="string")return fi(t)?{kind:Q.ENUM,value:n}:t===HT&&QE.test(n)?{kind:Q.INT,value:n}:{kind:Q.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${xe(n)}.`)}gh(!1,"Unexpected input type: "+xe(t))}const QE=/^-?(?:0|[1-9][0-9]*)$/,yy=new $r({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:kt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new $e(new zn(new $e(Ki))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new $e(Ki),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ki,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ki,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new $e(new zn(new $e(YT))),args:{includeDeprecated:{type:new $e(Yt),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(n=>n.deprecationReason==null)}})}),YT=new $r({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
65
|
+
|
|
66
|
+
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 $e(kt),resolve:e=>e.name},description:{type:kt,resolve:e=>e.description},isRepeatable:{type:new $e(Yt),resolve:e=>e.isRepeatable},locations:{type:new $e(new zn(new $e(QT))),resolve:e=>e.locations},args:{type:new $e(new zn(new $e(Eh))),args:{includeDeprecated:{type:Yt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},isDeprecated:{type:new $e(Yt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:kt,resolve:e=>e.deprecationReason}})}),QT=new el({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:Ce.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ce.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ce.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ce.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ce.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ce.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ce.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ce.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ce.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ce.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ce.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ce.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ce.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ce.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ce.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ce.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ce.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ce.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ce.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:Ce.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),Ki=new $r({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 $e(ZT),resolve(e){if(Os(e))return ht.SCALAR;if(Tt(e))return ht.OBJECT;if(Dt(e))return ht.INTERFACE;if(Oi(e))return ht.UNION;if(fi(e))return ht.ENUM;if(fn(e))return ht.INPUT_OBJECT;if(kn(e))return ht.LIST;if($t(e))return ht.NON_NULL;gh(!1,`Unexpected type: "${xe(e)}".`)}},name:{type:kt,resolve:e=>"name"in e?e.name:void 0},description:{type:kt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:kt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new zn(new $e(XT)),args:{includeDeprecated:{type:Yt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Tt(e)||Dt(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new zn(new $e(Ki)),resolve(e){if(Tt(e)||Dt(e))return e.getInterfaces()}},possibleTypes:{type:new zn(new $e(Ki)),resolve(e,t,n,{schema:i}){if(_o(e))return i.getPossibleTypes(e)}},enumValues:{type:new zn(new $e(WT)),args:{includeDeprecated:{type:Yt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(fi(e)){const n=e.getValues();return t?n:n.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new zn(new $e(Eh)),args:{includeDeprecated:{type:Yt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(fn(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},ofType:{type:Ki,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Yt,resolve:e=>{if(fn(e))return e.isOneOf}}})}),XT=new $r({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 $e(kt),resolve:e=>e.name},description:{type:kt,resolve:e=>e.description},args:{type:new $e(new zn(new $e(Eh))),args:{includeDeprecated:{type:Yt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new $e(Ki),resolve:e=>e.type},isDeprecated:{type:new $e(Yt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:kt,resolve:e=>e.deprecationReason}})}),Eh=new $r({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 $e(kt),resolve:e=>e.name},description:{type:kt,resolve:e=>e.description},type:{type:new $e(Ki),resolve:e=>e.type},defaultValue:{type:kt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=Oa(n,t);return i?ci(i):null}},isDeprecated:{type:new $e(Yt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:kt,resolve:e=>e.deprecationReason}})}),WT=new $r({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 $e(kt),resolve:e=>e.name},description:{type:kt,resolve:e=>e.description},isDeprecated:{type:new $e(Yt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:kt,resolve:e=>e.deprecationReason}})});var ht;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ht||(ht={}));const ZT=new el({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ht.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ht.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ht.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ht.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ht.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ht.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ht.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ht.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),kc={name:"__schema",type:new $e(yy),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},Lc={name:"__type",type:Ki,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new $e(kt),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},Ic={name:"__typename",type:new $e(kt),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},KT=Object.freeze([yy,YT,QT,Ki,XT,Eh,WT,ZT]);function XO(e){return KT.some(({name:t})=>e.name===t)}function Ug(e){return rr(e,JT)}function WO(e){if(!Ug(e))throw new Error(`Expected ${xe(e)} to be a GraphQL schema.`);return e}class JT{constructor(t){var n,i;this.__validationErrors=t.assumeValid===!0?[]:void 0,Ao(t)||nt(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||nt(!1,`"types" must be Array if provided but got: ${xe(t.types)}.`),!t.directives||Array.isArray(t.directives)||nt(!1,`"directives" must be Array if provided but got: ${xe(t.directives)}.`),this.description=t.description,this.extensions=ki(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:YO;const r=new Set(t.types);if(t.types!=null)for(const u of t.types)r.delete(u),Xi(u,r);this._queryType!=null&&Xi(this._queryType,r),this._mutationType!=null&&Xi(this._mutationType,r),this._subscriptionType!=null&&Xi(this._subscriptionType,r);for(const u of this._directives)if(qT(u))for(const a of u.args)Xi(a.type,r);Xi(yy,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const u of r){if(u==null)continue;const a=u.name;if(a||nt(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=u,Dt(u)){for(const c of u.getInterfaces())if(Dt(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.interfaces.push(u)}}else if(Tt(u)){for(const c of u.getInterfaces())if(Dt(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.objects.push(u)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Ai.QUERY:return this.getQueryType();case Ai.MUTATION:return this.getMutationType();case Ai.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Oi(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),Oi(t))for(const r of t.getTypes())i[r.name]=!0;else{const r=this.getImplementations(t);for(const u of r.objects)i[u.name]=!0;for(const u of r.interfaces)i[u.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 Xi(e,t){const n=Nn(e);if(!t.has(n)){if(t.add(n),Oi(n))for(const i of n.getTypes())Xi(i,t);else if(Tt(n)||Dt(n)){for(const i of n.getInterfaces())Xi(i,t);for(const i of Object.values(n.getFields())){Xi(i.type,t);for(const r of i.args)Xi(r.type,t)}}else if(fn(n))for(const i of Object.values(n.getFields()))Xi(i.type,t)}return t}function e_(e){if(WO(e),e.__validationErrors)return e.__validationErrors;const t=new ZO(e);KO(t),JO(t),eR(t);const n=t.getErrors();return e.__validationErrors=n,n}function yJ(e){const t=e_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
67
|
+
|
|
68
|
+
`))}class ZO{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 KO(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!Tt(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${xe(n)}.`,(i=S1(t,Ai.QUERY))!==null&&i!==void 0?i:n.astNode)}const r=t.getMutationType();if(r&&!Tt(r)){var u;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${xe(r)}.`,(u=S1(t,Ai.MUTATION))!==null&&u!==void 0?u:r.astNode)}const a=t.getSubscriptionType();if(a&&!Tt(a)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${xe(a)}.`,(c=S1(t,Ai.SUBSCRIPTION))!==null&&c!==void 0?c:a.astNode)}}function S1(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var r;return(r=i?.operationTypes)!==null&&r!==void 0?r:[]}).find(i=>i.operation===t))===null||n===void 0?void 0:n.type}function JO(e){for(const n of e.schema.getDirectives()){if(!qT(n)){e.reportError(`Expected directive but got: ${xe(n)}.`,n?.astNode);continue}xu(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(xu(e,i),Ci(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${xe(i.type)}.`,i.astNode),gy(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[by(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}function xu(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function eR(e){const t=uR(e),n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!my(i)){e.reportError(`Expected GraphQL named type but got: ${xe(i)}.`,i.astNode);continue}XO(i)||xu(e,i),Tt(i)||Dt(i)?(XE(e,i),WE(e,i)):Oi(i)?iR(e,i):fi(i)?rR(e,i):fn(i)&&(oR(e,i),t(i))}}function XE(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){if(xu(e,a),!pu(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${xe(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(const c of a.args){const f=c.name;if(xu(e,c),!Ci(c.type)){var r;e.reportError(`The type of ${t.name}.${a.name}(${f}:) must be Input Type but got: ${xe(c.type)}.`,(r=c.astNode)===null||r===void 0?void 0:r.type)}if(gy(c)&&c.deprecationReason!=null){var u;e.reportError(`Required argument ${t.name}.${a.name}(${f}:) cannot be deprecated.`,[by(c.astNode),(u=c.astNode)===null||u===void 0?void 0:u.type])}}}}function WE(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!Dt(i)){e.reportError(`Type ${xe(t)} must only implement Interface types, it cannot implement ${xe(i)}.`,xc(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,xc(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,xc(t,i));continue}n[i.name]=!0,nR(e,t,i),tR(e,t,i)}}function tR(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(!v0(e.schema,p.type,f.type)){var r,u;e.reportError(`Interface field ${n.name}.${h} expects type ${xe(f.type)} but ${t.name}.${h} is type ${xe(p.type)}.`,[(r=f.astNode)===null||r===void 0?void 0:r.type,(u=p.astNode)===null||u===void 0?void 0:u.type])}for(const m of f.args){const v=m.name,y=p.args.find(x=>x.name===v);if(!y){e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expected but ${t.name}.${h} does not provide it.`,[m.astNode,p.astNode]);continue}if(!Bg(m.type,y.type)){var a,c;e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expects type ${xe(m.type)} but ${t.name}.${h}(${v}:) is type ${xe(y.type)}.`,[(a=m.astNode)===null||a===void 0?void 0:a.type,(c=y.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)&&gy(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 nR(e,t,n){const i=t.getInterfaces();for(const r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...xc(n,r),...xc(t,n)])}function iR(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 r of n){if(i[r.name]){e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,ZE(t,r.name));continue}i[r.name]=!0,Tt(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${xe(r)}.`,ZE(t,String(r)))}}function rR(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)xu(e,i)}function oR(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 u of n){if(xu(e,u),!Ci(u.type)){var i;e.reportError(`The type of ${t.name}.${u.name} must be Input Type but got: ${xe(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(PO(u)&&u.deprecationReason!=null){var r;e.reportError(`Required input field ${t.name}.${u.name} cannot be deprecated.`,[by(u.astNode),(r=u.astNode)===null||r===void 0?void 0:r.type])}t.isOneOf&&sR(t,u,e)}}function sR(e,t,n){if($t(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 uR(e){const t=Object.create(null),n=[],i=Object.create(null);return r;function r(u){if(t[u.name])return;t[u.name]=!0,i[u.name]=n.length;const a=Object.values(u.getFields());for(const c of a)if($t(c.type)&&fn(c.type.ofType)){const f=c.type.ofType,h=i[f.name];if(n.push(c),h===void 0)r(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[u.name]=void 0}}function xc(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(u=>{var a;return(a=u.interfaces)!==null&&a!==void 0?a:[]}).filter(u=>u.name.value===t.name)}function ZE(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(u=>{var a;return(a=u.types)!==null&&a!==void 0?a:[]}).filter(u=>u.name.value===t)}function by(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===GT.name)}function Fc(e,t){switch(t.kind){case Q.LIST_TYPE:{const n=Fc(e,t.type);return n&&new zn(n)}case Q.NON_NULL_TYPE:{const n=Fc(e,t.type);return n&&new $e(n)}case Q.NAMED_TYPE:return e.getType(t.name.value)}}class t_{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??aR,n&&(Ci(n)&&this._inputTypeStack.push(n),Ss(n)&&this._parentTypeStack.push(n),pu(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case Q.SELECTION_SET:{const r=Nn(this.getType());this._parentTypeStack.push(Ss(r)?r:void 0);break}case Q.FIELD:{const r=this.getParentType();let u,a;r&&(u=this._getFieldDef(n,r,t),u&&(a=u.type)),this._fieldDefStack.push(u),this._typeStack.push(pu(a)?a:void 0);break}case Q.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Q.OPERATION_DEFINITION:{const r=n.getRootType(t.operation);this._typeStack.push(Tt(r)?r:void 0);break}case Q.INLINE_FRAGMENT:case Q.FRAGMENT_DEFINITION:{const r=t.typeCondition,u=r?Fc(n,r):Nn(this.getType());this._typeStack.push(pu(u)?u:void 0);break}case Q.VARIABLE_DEFINITION:{const r=Fc(n,t.type);this._inputTypeStack.push(Ci(r)?r:void 0);break}case Q.ARGUMENT:{var i;let r,u;const a=(i=this.getDirective())!==null&&i!==void 0?i:this.getFieldDef();a&&(r=a.args.find(c=>c.name===t.name.value),r&&(u=r.type)),this._argument=r,this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(Ci(u)?u:void 0);break}case Q.LIST:{const r=LT(this.getInputType()),u=kn(r)?r.ofType:r;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Ci(u)?u:void 0);break}case Q.OBJECT_FIELD:{const r=Nn(this.getInputType());let u,a;fn(r)&&(a=r.getFields()[t.name.value],a&&(u=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push(Ci(u)?u:void 0);break}case Q.ENUM:{const r=Nn(this.getInputType());let u;fi(r)&&(u=r.getValue(t.value)),this._enumValue=u;break}}}leave(t){switch(t.kind){case Q.SELECTION_SET:this._parentTypeStack.pop();break;case Q.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Q.DIRECTIVE:this._directive=null;break;case Q.OPERATION_DEFINITION:case Q.INLINE_FRAGMENT:case Q.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Q.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Q.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.LIST:case Q.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.ENUM:this._enumValue=null;break}}}function aR(e,t,n){const i=n.name.value;if(i===kc.name&&e.getQueryType()===t)return kc;if(i===Lc.name&&e.getQueryType()===t)return Lc;if(i===Ic.name&&Ss(t))return Ic;if(Tt(t)||Dt(t))return t.getFields()[i]}function lR(e,t){return{enter(...n){const i=n[0];e.enter(i);const r=k0(t,i.kind).enter;if(r){const u=r.apply(t,n);return u!==void 0&&(e.leave(i),jg(u)&&e.enter(u)),u}},leave(...n){const i=n[0],r=k0(t,i.kind).leave;let u;return r&&(u=r.apply(t,n)),e.leave(i),u}}}function dc(e,t,n){if(e){if(e.kind===Q.VARIABLE){const i=e.name.value;if(n==null||n[i]===void 0||!n_(n,i))return;const r=n[i];return r===null&&$t(t)?void 0:r}if($t(t))return e.kind===Q.NULL?void 0:dc(e,t.ofType,n);if(e.kind===Q.NULL)return null;if(kn(t)){const i=t.ofType;if(e.kind===Q.LIST){const u=[];for(const a of e.values)if(KE(a,n)){if($t(i))return;u.push(null)}else{const c=dc(a,i,n);if(c===void 0)return;u.push(c)}return u}const r=dc(e,i,n);return r===void 0?void 0:[r]}if(fn(t)){if(e.kind!==Q.OBJECT)return;const i=Object.create(null),r=MT(e.fields,u=>u.name.value);for(const u of Object.values(t.getFields())){const a=r[u.name];if(!a||KE(a.value,n)){if(u.defaultValue!==void 0)i[u.name]=u.defaultValue;else if($t(u.type))return;continue}const c=dc(a.value,u.type,n);if(c===void 0)return;i[u.name]=c}if(t.isOneOf){const u=Object.keys(i);if(u.length!==1||i[u[0]]===null)return}return i}if(xh(t)){let i;try{i=t.parseLiteral(e,n)}catch{return}return i===void 0?void 0:i}gh(!1,"Unexpected input type: "+xe(t))}}function KE(e,t){return e.kind===Q.VARIABLE&&(t==null||t[e.name.value]===void 0||!n_(t,e.name.value))}function n_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cR(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,experimentalDirectiveDeprecation:!1,oneOf:!1,typeDepth:9,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",r=t.directiveIsRepeatable?"isRepeatable":"",u=t.schemaDescription?n:"";function a(p){return t.inputValueDeprecation?p:""}function c(p){return t.experimentalDirectiveDeprecation?p:""}const f=t.oneOf?"isOneOf":"";function h(p,m){if(p<=0)return"";if(p>100)throw new Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");return`
|
|
69
|
+
${m}ofType {
|
|
70
|
+
${m} name
|
|
71
|
+
${m} kind${h(p-1,m+" ")}
|
|
72
|
+
${m}}`}return`
|
|
73
|
+
query IntrospectionQuery {
|
|
74
|
+
__schema {
|
|
75
|
+
${u}
|
|
76
|
+
queryType { name kind }
|
|
77
|
+
mutationType { name kind }
|
|
78
|
+
subscriptionType { name kind }
|
|
79
|
+
types {
|
|
80
|
+
...FullType
|
|
81
|
+
}
|
|
82
|
+
directives${c("(includeDeprecated: true)")} {
|
|
83
|
+
name
|
|
84
|
+
${n}
|
|
85
|
+
${r}
|
|
86
|
+
${c("isDeprecated")}
|
|
87
|
+
${c("deprecationReason")}
|
|
88
|
+
locations
|
|
89
|
+
args${a("(includeDeprecated: true)")} {
|
|
90
|
+
...InputValue
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
fragment FullType on __Type {
|
|
97
|
+
kind
|
|
98
|
+
name
|
|
99
|
+
${n}
|
|
100
|
+
${i}
|
|
101
|
+
${f}
|
|
102
|
+
fields(includeDeprecated: true) {
|
|
103
|
+
name
|
|
104
|
+
${n}
|
|
105
|
+
args${a("(includeDeprecated: true)")} {
|
|
106
|
+
...InputValue
|
|
107
|
+
}
|
|
108
|
+
type {
|
|
109
|
+
...TypeRef
|
|
110
|
+
}
|
|
111
|
+
isDeprecated
|
|
112
|
+
deprecationReason
|
|
113
|
+
}
|
|
114
|
+
inputFields${a("(includeDeprecated: true)")} {
|
|
115
|
+
...InputValue
|
|
116
|
+
}
|
|
117
|
+
interfaces {
|
|
118
|
+
...TypeRef
|
|
119
|
+
}
|
|
120
|
+
enumValues(includeDeprecated: true) {
|
|
121
|
+
name
|
|
122
|
+
${n}
|
|
123
|
+
isDeprecated
|
|
124
|
+
deprecationReason
|
|
125
|
+
}
|
|
126
|
+
possibleTypes {
|
|
127
|
+
...TypeRef
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
fragment InputValue on __InputValue {
|
|
132
|
+
name
|
|
133
|
+
${n}
|
|
134
|
+
type { ...TypeRef }
|
|
135
|
+
defaultValue
|
|
136
|
+
${a("isDeprecated")}
|
|
137
|
+
${a("deprecationReason")}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
fragment TypeRef on __Type {
|
|
141
|
+
kind
|
|
142
|
+
name${h(t.typeDepth," ")}
|
|
143
|
+
}
|
|
144
|
+
`}function fR(e,t){Ao(e)&&Ao(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: ${xe(e)}.`);const n=e.__schema,i=uu(n.types,k=>k.name,k=>v(k));for(const k of[...BO,...KT])i[k.name]&&(i[k.name]=k);const r=n.queryType?p(n.queryType):null,u=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map(B):[];return new JT({description:n.description,query:r,mutation:u,subscription:a,types:Object.values(i),directives:c,assumeValid:void 0});function f(k){if(k.kind===ht.LIST){const $=k.ofType;if(!$)throw new Error("Decorated type deeper than introspection query.");return new zn(f($))}if(k.kind===ht.NON_NULL){const $=k.ofType;if(!$)throw new Error("Decorated type deeper than introspection query.");const H=f($);return new $e(IO(H))}return h(k)}function h(k){const $=k.name;if(!$)throw new Error(`Unknown type reference: ${xe(k)}.`);const H=i[$];if(!H)throw new Error(`Invalid or incomplete schema, unknown type: ${$}. Ensure that a full introspection query is used in order to build a client schema.`);return H}function p(k){return MO(h(k))}function m(k){return kO(h(k))}function v(k){if(k!=null&&k.name!=null&&k.kind!=null)switch(k.kind){case ht.SCALAR:return y(k);case ht.OBJECT:return S(k);case ht.INTERFACE:return _(k);case ht.UNION:return T(k);case ht.ENUM:return N(k);case ht.INPUT_OBJECT:return A(k)}const $=xe(k);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${$}.`)}function y(k){return new Ou({name:k.name,description:k.description,specifiedByURL:k.specifiedByURL})}function x(k){if(k.interfaces===null&&k.kind===ht.INTERFACE)return[];if(!k.interfaces){const $=xe(k);throw new Error(`Introspection result missing interfaces: ${$}.`)}return k.interfaces.map(m)}function S(k){return new $r({name:k.name,description:k.description,interfaces:()=>x(k),fields:()=>D(k)})}function _(k){return new Fa({name:k.name,description:k.description,interfaces:()=>x(k),fields:()=>D(k)})}function T(k){if(!k.possibleTypes){const $=xe(k);throw new Error(`Introspection result missing possibleTypes: ${$}.`)}return new UT({name:k.name,description:k.description,types:()=>k.possibleTypes.map(p)})}function N(k){if(!k.enumValues){const $=xe(k);throw new Error(`Introspection result missing enumValues: ${$}.`)}return new el({name:k.name,description:k.description,values:uu(k.enumValues,$=>$.name,$=>({description:$.description,deprecationReason:$.deprecationReason}))})}function A(k){if(!k.inputFields){const $=xe(k);throw new Error(`Introspection result missing inputFields: ${$}.`)}return new vy({name:k.name,description:k.description,fields:()=>M(k.inputFields),isOneOf:k.isOneOf})}function D(k){if(!k.fields)throw new Error(`Introspection result missing fields: ${xe(k)}.`);return uu(k.fields,$=>$.name,R)}function R(k){const $=f(k.type);if(!pu($)){const H=xe($);throw new Error(`Introspection must provide output type for fields, but received: ${H}.`)}if(!k.args){const H=xe(k);throw new Error(`Introspection result missing field args: ${H}.`)}return{description:k.description,deprecationReason:k.deprecationReason,type:$,args:M(k.args)}}function M(k){return uu(k,$=>$.name,F)}function F(k){const $=f(k.type);if(!Ci($)){const Y=xe($);throw new Error(`Introspection must provide input type for arguments, but received: ${Y}.`)}const H=k.defaultValue!=null?dc(yO(k.defaultValue),$):void 0;return{description:k.description,type:$,defaultValue:H,deprecationReason:k.deprecationReason}}function B(k){if(!k.args){const $=xe(k);throw new Error(`Introspection result missing directive args: ${$}.`)}if(!k.locations){const $=xe(k);throw new Error(`Introspection result missing directive locations: ${$}.`)}return new Ru({name:k.name,description:k.description,isRepeatable:k.isRepeatable,deprecationReason:k.deprecationReason,locations:k.locations.slice(),args:M(k.args)})}}async function dR(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="),r="-";if(~i){let u=i+9,a=n.indexOf(";",u);r=n.slice(u,a>-1?a:void 0).trim().replace(/"/g,"")}return(async function*(u,a,c){let f,h,p,m=new TextDecoder("utf8"),v=u.getReader(),y=!c||!1,x=a.length,S="",_=[];try{let T;e:for(;!(T=await v.read()).done;){let N=m.decode(T.value,{stream:!0});f=S.length,S+=N;let A=N.indexOf(a);for(~A?f+=A:f=S.indexOf(a),_=[];~f;){let D=S.slice(0,f),R=S.slice(f+x);if(h){let M=D.indexOf(`\r
|
|
145
|
+
\r
|
|
146
|
+
`)+4,F=D.lastIndexOf(`\r
|
|
147
|
+
`,M),B=!1,k=D.slice(M,F>-1?void 0:F),$=String(D.slice(0,M)).trim().split(`\r
|
|
148
|
+
`),H={},Y=$.length;for(;p=$[--Y];p=p.split(": "),H[p.shift().toLowerCase()]=p.join(": "));if(p=H["content-type"],p&&~p.indexOf("application/json"))try{k=JSON.parse(k),B=!0}catch{}if(p={headers:H,body:k,json:B},y?yield p:_.push(p),R.slice(0,2)==="--")break e}else a=`\r
|
|
149
|
+
`+a,h=x+=2;S=R,f=S.indexOf(a)}_.length&&(yield _)}}finally{_.length&&(yield _),await v.cancel()}})(e.body,`--${r}`,t)}function hR(e,t,n){const i=(async function*(){yield*e})(),r=i.return.bind(i);if(t&&(i.return=(...u)=>(t(),r(...u))),n){const u=i.throw.bind(i);i.throw=a=>(n(a),u(a))}return i}function JE(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function pR(){let e={type:"running"},t=JE();const n=[];function i(a){e.type==="running"&&(n.push(a),t.resolve(),t=JE())}const r=(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}})(),u=hR(r,()=>{e.type==="running"&&(e={type:"finished"},t.resolve())},a=>{e.type==="running"&&(e={type:"error",error:a},t.resolve())});return{pushValue:i,asyncIterableIterator:u}}const i_=e=>{const{pushValue:t,asyncIterableIterator:n}=pR(),i=e({next:a=>{t(a)},complete:()=>{n.return()},error:a=>{n.throw(a)}}),r=n.return;let u;return n.return=()=>(u===void 0&&(i(),u=r()),u),n};function mR(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in e)}const gR=e=>typeof e=="object"&&e!==null&&"code"in e,vR=(e,t)=>{let n=!1;return er(e,{OperationDefinition(i){var r;t===((r=i.name)==null?void 0:r.value)&&i.operation==="subscription"&&(n=!0)}}),n},yR=(e,t)=>async(n,i)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:li(li({"content-type":"application/json"},e.headers),i?.headers)})).json();async function bR(e,t){let n;try{const{createClient:i}=await Je(async()=>{const{createClient:r}=await import("./index-Ys9k9k-c.js");return{createClient:r}},[]);return n=i({url:e,connectionParams:t}),r_(n)}catch(i){if(gR(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 r_=e=>t=>i_(n=>e.subscribe(t,Rc(li({},n),{error(i){i instanceof CloseEvent?n.error(new Error(`Socket closed with event ${i.code} ${i.reason||""}`.trim())):n.error(i)}}))),xR=e=>t=>{const n=e.request(t);return i_(i=>n.subscribe(i).unsubscribe)},ER=(e,t)=>function(n,i){return $N(this,null,function*(){const r=yield new m0(t(e.url,{method:"POST",body:JSON.stringify(n),headers:li(li({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),i?.headers)}).then(h=>dR(h,{})));if(!mR(r))return yield r.json();try{for(var u=VN(r),a,c,f;a=!(c=yield new m0(u.next())).done;a=!1){const h=c.value;if(h.some(p=>!p.json)){const p=h.map(m=>`Headers::
|
|
150
|
+
${m.headers}
|
|
151
|
+
|
|
152
|
+
Body::
|
|
153
|
+
${m.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
|
|
154
|
+
${p}`)}yield h.map(p=>p.body)}}catch(h){f=[h]}finally{try{a&&(c=u.return)&&(yield new m0(c.call(u)))}finally{if(f)throw f[0]}}})};async function SR(e,t){if(e.wsClient)return r_(e.wsClient);if(e.subscriptionUrl)return bR(e.subscriptionUrl,li(li({},e.wsConnectionParams),t?.headers));const n=e.legacyClient||e.legacyWsClient;if(n)return xR(n)}function TR(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=yR(e,t),i=e.enableIncrementalDelivery?ER(e,t):n;return async(r,u)=>{if(r.operationName==="IntrospectionQuery")return(e.schemaFetcher||n)(r,u);if(u!=null&&u.documentAST&&vR(u.documentAST,r.operationName||void 0)){const a=await SR(e,u);if(!a)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 a(r)}return i(r,u)}}function zg(e){return JSON.stringify(e,null,2)}function _R(e){return Rc(li({},e),{message:e.message,stack:e.stack})}function e6(e){return e instanceof Error?_R(e):e}function L0(e){return Array.isArray(e)?zg({errors:e.map(t=>e6(t))}):zg({errors:[e6(e)]})}function Hg(e){return zg(e)}function CR(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let r;try{r=Nu(t)}catch{return{insertions:i,result:t}}const u=n||AR,a=new t_(e);return er(r,{leave(c){a.leave(c)},enter(c){if(a.enter(c),c.kind==="Field"&&!c.selectionSet){const f=a.getType(),h=o_(NR(f),u);if(h&&c.loc){const p=DR(t,c.loc.start);i.push({index:c.loc.end,string:" "+ci(h).replaceAll(`
|
|
155
|
+
`,`
|
|
156
|
+
`+p)})}}}}),{insertions:i,result:wR(t,i)}}function AR(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))xh(t[i].type)&&n.push(i);return n}function o_(e,t){const n=Nn(e);if(!e||xh(e))return;const i=t(n);if(!(!Array.isArray(i)||i.length===0||!("getFields"in n)))return{kind:Q.SELECTION_SET,selections:i.map(r=>{const u=n.getFields()[r],a=u?u.type:null;return{kind:Q.FIELD,name:{kind:Q.NAME,value:r},selectionSet:o_(a,t)}})}}function wR(e,t){if(t.length===0)return e;let n="",i=0;for(const{index:r,string:u}of t)n+=e.slice(i,r)+u,i=r;return n+=e.slice(i),n}function DR(e,t){let n=t,i=t;for(;n;){const r=e.charCodeAt(n-1);if(r===10||r===13||r===8232||r===8233)break;n--,r!==9&&r!==11&&r!==12&&r!==32&&r!==160&&(i=n)}return e.slice(n,i)}function NR(e){if(e)return e}function OR(e,t){var n;const i=new Map,r=[];for(const u of e)if(u.kind==="Field"){const a=t(u),c=i.get(a);if((n=u.directives)!=null&&n.length){const f=li({},u);r.push(f)}else if(c!=null&&c.selectionSet&&u.selectionSet)c.selectionSet.selections=[...c.selectionSet.selections,...u.selectionSet.selections];else if(!c){const f=li({},u);i.set(a,f),r.push(f)}}else r.push(u);return r}function s_(e,t,n){var i;const r=n?Nn(n).name:null,u=[],a=[];for(let c of t){if(c.kind==="FragmentSpread"){const f=c.name.value;if(!c.directives||c.directives.length===0){if(a.includes(f))continue;a.push(f)}const h=e[c.name.value];if(h){const{typeCondition:p,directives:m,selectionSet:v}=h;c={kind:Q.INLINE_FRAGMENT,typeCondition:p,directives:m,selectionSet:v}}}if(c.kind===Q.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===r){u.push(...s_(e,c.selectionSet.selections,n));continue}}u.push(c)}return u}function RR(e,t){const n=t?new t_(t):null,i=Object.create(null);for(const a of e.definitions)a.kind===Q.FRAGMENT_DEFINITION&&(i[a.name.value]=a);const r={SelectionSet(a){const c=n?n.getParentType():null;let{selections:f}=a;return f=s_(i,f,c),Rc(li({},a),{selections:f})},FragmentDefinition(){return null}},u=er(e,n?lR(n,r):r);return er(u,{SelectionSet(a){let{selections:c}=a;return c=OR(c,f=>f.alias?f.alias.value:f.name.value),Rc(li({},a),{selections:c})},FragmentDefinition(){return null}})}function MR(e,t,n){if(!n||n.length<1)return;const i=n.map(r=>{var u;return(u=r.name)==null?void 0:u.value});if(t&&i.includes(t))return t;if(t&&e){const r=e.map(u=>{var a;return(a=u.name)==null?void 0:a.value}).indexOf(t);if(r!==-1&&r<i.length)return i[r]}return i[0]}function kR(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 LR{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(`${Ud}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${Ud}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${Ud}:${t}`,i=this.storage.getItem(n);return i==="null"||i==="undefined"?(this.storage.removeItem(n),null):i||null}set(t,n){let i=!1,r=null;if(this.storage){const u=`${Ud}:${t}`;if(n)try{this.storage.setItem(u,n)}catch(a){r=a instanceof Error?a:new Error(`${a}`),i=kR(this.storage,a)}else this.storage.removeItem(u)}return{isQuotaError:i,error:r}}clear(){this.storage&&this.storage.clear()}}const Ud="graphiql";class t6{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 r=this.items[n];if(r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const i=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.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 r=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(r!=null&&r.error))this.items=n;else if(r.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const IR=1e5;class FR{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:i,variables:r,headers:u,operationName:a})=>{if(!this.shouldSaveQuery(i,r,u,this.history.fetchRecent()))return;this.history.push({query:i,variables:r,headers:u,operationName:a});const c=this.history.items,f=this.favorite.items;this.queries=c.concat(f)},this.deleteHistory=({query:i,variables:r,headers:u,operationName:a,favorite:c},f=!1)=>{function h(p){const m=p.items.find(v=>v.query===i&&v.variables===r&&v.headers===u&&v.operationName===a);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 t6("queries",this.storage,this.maxHistoryLength),this.favorite=new t6("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,i,r){if(!t)return!1;try{Nu(t)}catch{return!1}return t.length>IR?!1:r?!(JSON.stringify(t)===JSON.stringify(r.query)&&(JSON.stringify(n)===JSON.stringify(r.variables)&&(JSON.stringify(i)===JSON.stringify(r.headers)||i&&!r.headers)||n&&!r.variables)):!0}toggleFavorite({query:t,variables:n,headers:i,operationName:r,label:u,favorite:a}){const c={query:t,variables:n,headers:i,operationName:r,label:u};a?(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:r,label:u,favorite:a},c){const f={query:t,variables:n,headers:i,operationName:r,label:u};a?this.favorite.edit(Rc(li({},f),{favorite:a}),c):this.history.edit(f,c),this.queries=[...this.history.items,...this.favorite.items]}}var T1,n6;function jR(){if(n6)return T1;n6=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=(j,P)=>{for(var ne in P)t(j,ne,{get:P[ne],enumerable:!0})},c=(j,P,ne,I)=>{if(P&&typeof P=="object"||typeof P=="function")for(let U of i(P))!u.call(j,U)&&U!==ne&&t(j,U,{get:()=>P[U],enumerable:!(I=n(P,U))||I.enumerable});return j},f=(j,P,ne)=>(ne=j!=null?e(r(j)):{},c(!j||!j.__esModule?t(ne,"default",{value:j,enumerable:!0}):ne,j)),h=j=>c(t({},"__esModule",{value:!0}),j),p={};a(p,{$dispatcherGuard:()=>B,$makeReadOnly:()=>$,$reset:()=>k,$structuralCheck:()=>q,c:()=>A,clearRenderCounterRegistry:()=>Y,renderCounterRegistry:()=>H,useRenderCounter:()=>J}),T1=h(p);var m=f(rf()),{useRef:v,useEffect:y,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"),N,A=typeof((N=m.__COMPILER_RUNTIME)==null?void 0:N.c)=="function"?m.__COMPILER_RUNTIME.c:function(P){return m.useMemo(()=>{const ne=new Array(P);for(let I=0;I<P;I++)ne[I]=T;return ne[T]=!0,ne},[])},D={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(j=>{D[j]=()=>{throw new Error(`[React] Unexpected React hook call (${j}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var R=null;D.useMemoCache=j=>{if(R==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return R.useMemoCache(j)};function M(j){return _.ReactCurrentDispatcher.current=j,_.ReactCurrentDispatcher.current}var F=[];function B(j){const P=_.ReactCurrentDispatcher.current;if(j===0){if(F.push(P),F.length===1&&(R=P),P===D)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(D)}else if(j===1){const ne=F.pop();if(ne==null)throw new Error("React Compiler internal error: unexpected null in guard stack");F.length===0&&(R=null),M(ne)}else if(j===2)F.push(P),M(R);else if(j===3){const ne=F.pop();if(ne==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M(ne)}else throw new Error("React Compiler internal error: unreachable block"+j)}function k(j){for(let P=0;P<j.length;P++)j[P]=T}function $(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var H=new Map;function Y(){for(const j of H.values())j.forEach(P=>{P.count=0})}function se(j,P){let ne=H.get(j);ne==null&&(ne=new Set,H.set(j,ne)),ne.add(P)}function W(j,P){const ne=H.get(j);ne?.delete(P)}function J(j){const P=v(null);P.current!=null&&(P.current.count+=1),y(()=>{if(P.current==null){const ne={count:0};se(j,ne),P.current=ne}return()=>{P.current!==null&&W(j,P.current)}})}var L=new Set;function q(j,P,ne,I,U,ie){function ee(oe,fe,ge,Ne){const Te=`${I}:${ie} [${U}] ${ne}${ge} changed from ${oe} to ${fe} at depth ${Ne}`;L.has(Te)||(L.add(Te),console.error(Te))}const he=2;function de(oe,fe,ge,Ne){if(!(Ne>he)){if(oe===fe)return;if(typeof oe!=typeof fe)ee(`type ${typeof oe}`,`type ${typeof fe}`,ge,Ne);else if(typeof oe=="object"){const Te=Array.isArray(oe),pt=Array.isArray(fe);if(oe===null&&fe!==null)ee("null",`type ${typeof fe}`,ge,Ne);else if(fe===null)ee(`type ${typeof oe}`,"null",ge,Ne);else if(oe instanceof Map)if(!(fe instanceof Map))ee("Map instance","other value",ge,Ne);else if(oe.size!==fe.size)ee(`Map instance with size ${oe.size}`,`Map instance with size ${fe.size}`,ge,Ne);else for(const[Ae,mt]of oe)fe.has(Ae)?de(mt,fe.get(Ae),`${ge}.get(${Ae})`,Ne+1):ee(`Map instance with key ${Ae}`,`Map instance without key ${Ae}`,ge,Ne);else if(fe instanceof Map)ee("other value","Map instance",ge,Ne);else if(oe instanceof Set)if(!(fe instanceof Set))ee("Set instance","other value",ge,Ne);else if(oe.size!==fe.size)ee(`Set instance with size ${oe.size}`,`Set instance with size ${fe.size}`,ge,Ne);else for(const Ae of fe)oe.has(Ae)||ee(`Set instance without element ${Ae}`,`Set instance with element ${Ae}`,ge,Ne);else if(fe instanceof Set)ee("other value","Set instance",ge,Ne);else if(Te||pt)if(Te!==pt)ee(`type ${Te?"array":"object"}`,`type ${pt?"array":"object"}`,ge,Ne);else if(oe.length!==fe.length)ee(`array with length ${oe.length}`,`array with length ${fe.length}`,ge,Ne);else for(let Ae=0;Ae<oe.length;Ae++)de(oe[Ae],fe[Ae],`${ge}[${Ae}]`,Ne+1);else if(x(oe)||x(fe))x(oe)!==x(fe)?ee(`type ${x(oe)?"React element":"object"}`,`type ${x(fe)?"React element":"object"}`,ge,Ne):oe.type!==fe.type?ee(`React element of type ${oe.type}`,`React element of type ${fe.type}`,ge,Ne):de(oe.props,fe.props,`[props of ${ge}]`,Ne+1);else{for(const Ae in fe)Ae in oe||ee(`object without key ${Ae}`,`object with key ${Ae}`,ge,Ne);for(const Ae in oe)Ae in fe?de(oe[Ae],fe[Ae],`${ge}.${Ae}`,Ne+1):ee(`object with key ${Ae}`,`object without key ${Ae}`,ge,Ne)}}else{if(typeof oe=="function")return;isNaN(oe)||isNaN(fe)?isNaN(oe)!==isNaN(fe)&&ee(`${isNaN(oe)?"NaN":"non-NaN value"}`,`${isNaN(fe)?"NaN":"non-NaN value"}`,ge,Ne):oe!==fe&&ee(oe,fe,ge,Ne)}}}de(j,P,"",0)}return T1}var me=jR();function Eu(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function St(e,t){return PR(t,u_(e.string))}function PR(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return _1(e,i=>!i.isDeprecated);const n=e.map(i=>({proximity:$R(u_(i.label),t),entry:i}));return _1(_1(n,i=>i.proximity<=2),i=>!i.entry.isDeprecated).sort((i,r)=>(i.entry.isDeprecated?1:0)-(r.entry.isDeprecated?1:0)||i.proximity-r.proximity||i.entry.label.length-r.entry.label.length).map(i=>i.entry)}function _1(e,t){const n=e.filter(t);return n.length===0?e:n}function u_(e){return e.toLowerCase().replaceAll(/\W/g,"")}function $R(e,t){let n=VR(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function VR(e,t){let n,i;const r=[],u=e.length,a=t.length;for(n=0;n<=u;n++)r[n]=[n];for(i=1;i<=a;i++)r[0][i]=i;for(n=1;n<=u;n++)for(i=1;i<=a;i++){const c=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+c),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+c))}return r[u][a]}const BR=e=>` {
|
|
157
|
+
$1
|
|
158
|
+
}`,I0=(e,t,n)=>{if(!t)return n??e;const i=Nn(t);return Tt(i)||fn(i)||kn(i)||_o(i)?e+BR():n??e},i6=(e,t,n)=>{if(kn(t)){const i=Nn(t.ofType);return e+`[${I0("",i,"$1")}]`}return I0(e,t,n)},UR=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}`)}) ${I0("",e.type,`
|
|
159
|
+
`)}`};var r6;(function(e){function t(n){return typeof n=="string"}e.is=t})(r6||(r6={}));var qg;(function(e){function t(n){return typeof n=="string"}e.is=t})(qg||(qg={}));var o6;(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})(o6||(o6={}));var F0;(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})(F0||(F0={}));var Wi;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=F0.MAX_VALUE),r===Number.MAX_VALUE&&(r=F0.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return K.objectLiteral(r)&&K.uinteger(r.line)&&K.uinteger(r.character)}e.is=n})(Wi||(Wi={}));var Vt;(function(e){function t(i,r,u,a){if(K.uinteger(i)&&K.uinteger(r)&&K.uinteger(u)&&K.uinteger(a))return{start:Wi.create(i,r),end:Wi.create(u,a)};if(Wi.is(i)&&Wi.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${u}, ${a}]`)}e.create=t;function n(i){let r=i;return K.objectLiteral(r)&&Wi.is(r.start)&&Wi.is(r.end)}e.is=n})(Vt||(Vt={}));var j0;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return K.objectLiteral(r)&&Vt.is(r.range)&&(K.string(r.uri)||K.undefined(r.uri))}e.is=n})(j0||(j0={}));var s6;(function(e){function t(i,r,u,a){return{targetUri:i,targetRange:r,targetSelectionRange:u,originSelectionRange:a}}e.create=t;function n(i){let r=i;return K.objectLiteral(r)&&Vt.is(r.targetRange)&&K.string(r.targetUri)&&Vt.is(r.targetSelectionRange)&&(Vt.is(r.originSelectionRange)||K.undefined(r.originSelectionRange))}e.is=n})(s6||(s6={}));var Gg;(function(e){function t(i,r,u,a){return{red:i,green:r,blue:u,alpha:a}}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&K.numberRange(r.red,0,1)&&K.numberRange(r.green,0,1)&&K.numberRange(r.blue,0,1)&&K.numberRange(r.alpha,0,1)}e.is=n})(Gg||(Gg={}));var u6;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&Vt.is(r.range)&&Gg.is(r.color)}e.is=n})(u6||(u6={}));var a6;(function(e){function t(i,r,u){return{label:i,textEdit:r,additionalTextEdits:u}}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&K.string(r.label)&&(K.undefined(r.textEdit)||Ha.is(r))&&(K.undefined(r.additionalTextEdits)||K.typedArray(r.additionalTextEdits,Ha.is))}e.is=n})(a6||(a6={}));var l6;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(l6||(l6={}));var c6;(function(e){function t(i,r,u,a,c,f){const h={startLine:i,endLine:r};return K.defined(u)&&(h.startCharacter=u),K.defined(a)&&(h.endCharacter=a),K.defined(c)&&(h.kind=c),K.defined(f)&&(h.collapsedText=f),h}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&K.uinteger(r.startLine)&&K.uinteger(r.startLine)&&(K.undefined(r.startCharacter)||K.uinteger(r.startCharacter))&&(K.undefined(r.endCharacter)||K.uinteger(r.endCharacter))&&(K.undefined(r.kind)||K.string(r.kind))}e.is=n})(c6||(c6={}));var Yg;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return K.defined(r)&&j0.is(r.location)&&K.string(r.message)}e.is=n})(Yg||(Yg={}));var f6;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(f6||(f6={}));var d6;(function(e){e.Unnecessary=1,e.Deprecated=2})(d6||(d6={}));var h6;(function(e){function t(n){const i=n;return K.objectLiteral(i)&&K.string(i.href)}e.is=t})(h6||(h6={}));var P0;(function(e){function t(i,r,u,a,c,f){let h={range:i,message:r};return K.defined(u)&&(h.severity=u),K.defined(a)&&(h.code=a),K.defined(c)&&(h.source=c),K.defined(f)&&(h.relatedInformation=f),h}e.create=t;function n(i){var r;let u=i;return K.defined(u)&&Vt.is(u.range)&&K.string(u.message)&&(K.number(u.severity)||K.undefined(u.severity))&&(K.integer(u.code)||K.string(u.code)||K.undefined(u.code))&&(K.undefined(u.codeDescription)||K.string((r=u.codeDescription)===null||r===void 0?void 0:r.href))&&(K.string(u.source)||K.undefined(u.source))&&(K.undefined(u.relatedInformation)||K.typedArray(u.relatedInformation,Yg.is))}e.is=n})(P0||(P0={}));var za;(function(e){function t(i,r,...u){let a={title:i,command:r};return K.defined(u)&&u.length>0&&(a.arguments=u),a}e.create=t;function n(i){let r=i;return K.defined(r)&&K.string(r.title)&&K.string(r.command)}e.is=n})(za||(za={}));var Ha;(function(e){function t(u,a){return{range:u,newText:a}}e.replace=t;function n(u,a){return{range:{start:u,end:u},newText:a}}e.insert=n;function i(u){return{range:u,newText:""}}e.del=i;function r(u){const a=u;return K.objectLiteral(a)&&K.string(a.newText)&&Vt.is(a.range)}e.is=r})(Ha||(Ha={}));var Qg;(function(e){function t(i,r,u){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),u!==void 0&&(a.description=u),a}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&K.string(r.label)&&(K.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(K.string(r.description)||r.description===void 0)}e.is=n})(Qg||(Qg={}));var qa;(function(e){function t(n){const i=n;return K.string(i)}e.is=t})(qa||(qa={}));var p6;(function(e){function t(u,a,c){return{range:u,newText:a,annotationId:c}}e.replace=t;function n(u,a,c){return{range:{start:u,end:u},newText:a,annotationId:c}}e.insert=n;function i(u,a){return{range:u,newText:"",annotationId:a}}e.del=i;function r(u){const a=u;return Ha.is(a)&&(Qg.is(a.annotationId)||qa.is(a.annotationId))}e.is=r})(p6||(p6={}));var Xg;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return K.defined(r)&&ev.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(Xg||(Xg={}));var Wg;(function(e){function t(i,r,u){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),u!==void 0&&(a.annotationId=u),a}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&K.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||K.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||K.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||qa.is(r.annotationId))}e.is=n})(Wg||(Wg={}));var Zg;(function(e){function t(i,r,u,a){let c={kind:"rename",oldUri:i,newUri:r};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(c.options=u),a!==void 0&&(c.annotationId=a),c}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&K.string(r.oldUri)&&K.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||K.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||K.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||qa.is(r.annotationId))}e.is=n})(Zg||(Zg={}));var Kg;(function(e){function t(i,r,u){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),u!==void 0&&(a.annotationId=u),a}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&K.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||K.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||K.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||qa.is(r.annotationId))}e.is=n})(Kg||(Kg={}));var Jg;(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(r=>K.string(r.kind)?Wg.is(r)||Zg.is(r)||Kg.is(r):Xg.is(r)))}e.is=t})(Jg||(Jg={}));var m6;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return K.defined(r)&&K.string(r.uri)}e.is=n})(m6||(m6={}));var g6;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return K.defined(r)&&K.string(r.uri)&&K.integer(r.version)}e.is=n})(g6||(g6={}));var ev;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return K.defined(r)&&K.string(r.uri)&&(r.version===null||K.integer(r.version))}e.is=n})(ev||(ev={}));var v6;(function(e){function t(i,r,u,a){return{uri:i,languageId:r,version:u,text:a}}e.create=t;function n(i){let r=i;return K.defined(r)&&K.string(r.uri)&&K.string(r.languageId)&&K.integer(r.version)&&K.string(r.text)}e.is=n})(v6||(v6={}));var tv;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(tv||(tv={}));var jc;(function(e){function t(n){const i=n;return K.objectLiteral(n)&&tv.is(i.kind)&&K.string(i.value)}e.is=t})(jc||(jc={}));var y6;(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})(y6||(y6={}));var ja;(function(e){e.PlainText=1,e.Snippet=2})(ja||(ja={}));var b6;(function(e){e.Deprecated=1})(b6||(b6={}));var x6;(function(e){function t(i,r,u){return{newText:i,insert:r,replace:u}}e.create=t;function n(i){const r=i;return r&&K.string(r.newText)&&Vt.is(r.insert)&&Vt.is(r.replace)}e.is=n})(x6||(x6={}));var au;(function(e){e.asIs=1,e.adjustIndentation=2})(au||(au={}));var E6;(function(e){function t(n){const i=n;return i&&(K.string(i.detail)||i.detail===void 0)&&(K.string(i.description)||i.description===void 0)}e.is=t})(E6||(E6={}));var S6;(function(e){function t(n){return{label:n}}e.create=t})(S6||(S6={}));var T6;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(T6||(T6={}));var $0;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const r=i;return K.string(r)||K.objectLiteral(r)&&K.string(r.language)&&K.string(r.value)}e.is=n})($0||($0={}));var _6;(function(e){function t(n){let i=n;return!!i&&K.objectLiteral(i)&&(jc.is(i.contents)||$0.is(i.contents)||K.typedArray(i.contents,$0.is))&&(n.range===void 0||Vt.is(n.range))}e.is=t})(_6||(_6={}));var C6;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(C6||(C6={}));var A6;(function(e){function t(n,i,...r){let u={label:n};return K.defined(i)&&(u.documentation=i),K.defined(r)?u.parameters=r:u.parameters=[],u}e.create=t})(A6||(A6={}));var w6;(function(e){e.Text=1,e.Read=2,e.Write=3})(w6||(w6={}));var D6;(function(e){function t(n,i){let r={range:n};return K.number(i)&&(r.kind=i),r}e.create=t})(D6||(D6={}));var N6;(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})(N6||(N6={}));var O6;(function(e){e.Deprecated=1})(O6||(O6={}));var R6;(function(e){function t(n,i,r,u,a){let c={name:n,kind:i,location:{uri:u,range:r}};return a&&(c.containerName=a),c}e.create=t})(R6||(R6={}));var M6;(function(e){function t(n,i,r,u){return u!==void 0?{name:n,kind:i,location:{uri:r,range:u}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(M6||(M6={}));var k6;(function(e){function t(i,r,u,a,c,f){let h={name:i,detail:r,kind:u,range:a,selectionRange:c};return f!==void 0&&(h.children=f),h}e.create=t;function n(i){let r=i;return r&&K.string(r.name)&&K.number(r.kind)&&Vt.is(r.range)&&Vt.is(r.selectionRange)&&(r.detail===void 0||K.string(r.detail))&&(r.deprecated===void 0||K.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(k6||(k6={}));var L6;(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"})(L6||(L6={}));var V0;(function(e){e.Invoked=1,e.Automatic=2})(V0||(V0={}));var I6;(function(e){function t(i,r,u){let a={diagnostics:i};return r!=null&&(a.only=r),u!=null&&(a.triggerKind=u),a}e.create=t;function n(i){let r=i;return K.defined(r)&&K.typedArray(r.diagnostics,P0.is)&&(r.only===void 0||K.typedArray(r.only,K.string))&&(r.triggerKind===void 0||r.triggerKind===V0.Invoked||r.triggerKind===V0.Automatic)}e.is=n})(I6||(I6={}));var F6;(function(e){function t(i,r,u){let a={title:i},c=!0;return typeof r=="string"?(c=!1,a.kind=r):za.is(r)?a.command=r:a.edit=r,c&&u!==void 0&&(a.kind=u),a}e.create=t;function n(i){let r=i;return r&&K.string(r.title)&&(r.diagnostics===void 0||K.typedArray(r.diagnostics,P0.is))&&(r.kind===void 0||K.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||za.is(r.command))&&(r.isPreferred===void 0||K.boolean(r.isPreferred))&&(r.edit===void 0||Jg.is(r.edit))}e.is=n})(F6||(F6={}));var j6;(function(e){function t(i,r){let u={range:i};return K.defined(r)&&(u.data=r),u}e.create=t;function n(i){let r=i;return K.defined(r)&&Vt.is(r.range)&&(K.undefined(r.command)||za.is(r.command))}e.is=n})(j6||(j6={}));var P6;(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return K.defined(r)&&K.uinteger(r.tabSize)&&K.boolean(r.insertSpaces)}e.is=n})(P6||(P6={}));var $6;(function(e){function t(i,r,u){return{range:i,target:r,data:u}}e.create=t;function n(i){let r=i;return K.defined(r)&&Vt.is(r.range)&&(K.undefined(r.target)||K.string(r.target))}e.is=n})($6||($6={}));var V6;(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return K.objectLiteral(r)&&Vt.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(V6||(V6={}));var B6;(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"})(B6||(B6={}));var U6;(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"})(U6||(U6={}));var z6;(function(e){function t(n){const i=n;return K.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})(z6||(z6={}));var H6;(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){const r=i;return r!=null&&Vt.is(r.range)&&K.string(r.text)}e.is=n})(H6||(H6={}));var q6;(function(e){function t(i,r,u){return{range:i,variableName:r,caseSensitiveLookup:u}}e.create=t;function n(i){const r=i;return r!=null&&Vt.is(r.range)&&K.boolean(r.caseSensitiveLookup)&&(K.string(r.variableName)||r.variableName===void 0)}e.is=n})(q6||(q6={}));var G6;(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){const r=i;return r!=null&&Vt.is(r.range)&&(K.string(r.expression)||r.expression===void 0)}e.is=n})(G6||(G6={}));var Y6;(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){const r=i;return K.defined(r)&&Vt.is(i.stoppedLocation)}e.is=n})(Y6||(Y6={}));var nv;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(nv||(nv={}));var iv;(function(e){function t(i){return{value:i}}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&(r.tooltip===void 0||K.string(r.tooltip)||jc.is(r.tooltip))&&(r.location===void 0||j0.is(r.location))&&(r.command===void 0||za.is(r.command))}e.is=n})(iv||(iv={}));var Q6;(function(e){function t(i,r,u){const a={position:i,label:r};return u!==void 0&&(a.kind=u),a}e.create=t;function n(i){const r=i;return K.objectLiteral(r)&&Wi.is(r.position)&&(K.string(r.label)||K.typedArray(r.label,iv.is))&&(r.kind===void 0||nv.is(r.kind))&&r.textEdits===void 0||K.typedArray(r.textEdits,Ha.is)&&(r.tooltip===void 0||K.string(r.tooltip)||jc.is(r.tooltip))&&(r.paddingLeft===void 0||K.boolean(r.paddingLeft))&&(r.paddingRight===void 0||K.boolean(r.paddingRight))}e.is=n})(Q6||(Q6={}));var X6;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(X6||(X6={}));var W6;(function(e){function t(n,i,r,u){return{insertText:n,filterText:i,range:r,command:u}}e.create=t})(W6||(W6={}));var Z6;(function(e){function t(n){return{items:n}}e.create=t})(Z6||(Z6={}));var K6;(function(e){e.Invoked=0,e.Automatic=1})(K6||(K6={}));var J6;(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(J6||(J6={}));var e4;(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(e4||(e4={}));var t4;(function(e){function t(n){const i=n;return K.objectLiteral(i)&&qg.is(i.uri)&&K.string(i.name)}e.is=t})(t4||(t4={}));var n4;(function(e){function t(u,a,c,f){return new zR(u,a,c,f)}e.create=t;function n(u){let a=u;return!!(K.defined(a)&&K.string(a.uri)&&(K.undefined(a.languageId)||K.string(a.languageId))&&K.uinteger(a.lineCount)&&K.func(a.getText)&&K.func(a.positionAt)&&K.func(a.offsetAt))}e.is=n;function i(u,a){let c=u.getText(),f=r(a,(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=u.offsetAt(m.range.start),y=u.offsetAt(m.range.end);if(y<=h)c=c.substring(0,v)+m.newText+c.substring(y,c.length);else throw new Error("Overlapping edit");h=v}return c}e.applyEdits=i;function r(u,a){if(u.length<=1)return u;const c=u.length/2|0,f=u.slice(0,c),h=u.slice(c);r(f,a),r(h,a);let p=0,m=0,v=0;for(;p<f.length&&m<h.length;)a(f[p],h[m])<=0?u[v++]=f[p++]:u[v++]=h[m++];for(;p<f.length;)u[v++]=f[p++];for(;m<h.length;)u[v++]=h[m++];return u}})(n4||(n4={}));class zR{constructor(t,n,i,r){this._uri=t,this._languageId=n,this._version=i,this._content=r,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 r=0;r<n.length;r++){i&&(t.push(r),i=!1);let u=n.charAt(r);i=u==="\r"||u===`
|
|
160
|
+
`,u==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
161
|
+
`&&r++}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,r=n.length;if(r===0)return Wi.create(0,t);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>t?r=a:i=a+1}let u=i-1;return Wi.create(u,t-n[u])}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],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}}var K;(function(e){const t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function i(y){return typeof y>"u"}e.undefined=i;function r(y){return y===!0||y===!1}e.boolean=r;function u(y){return t.call(y)==="[object String]"}e.string=u;function a(y){return t.call(y)==="[object Number]"}e.number=a;function c(y,x,S){return t.call(y)==="[object Number]"&&x<=y&&y<=S}e.numberRange=c;function f(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=f;function h(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=h;function p(y){return t.call(y)==="[object Function]"}e.func=p;function m(y){return y!==null&&typeof y=="object"}e.objectLiteral=m;function v(y,x){return Array.isArray(y)&&y.every(x)}e.typedArray=v})(K||(K={}));class i4{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),r=!1;for(i&&(r=i,this._start=this._pos);i;)this._pos++,i=this._testNextCharacter(n),r=!0;return r},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,i=!0,r=!1)=>{let u=null,a=null;return typeof n=="string"?(a=new RegExp(n,r?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),u=n):n instanceof RegExp&&(a=this._sourceText.slice(this._pos).match(n),u=a?.[0]),a!=null&&(typeof n=="string"||a instanceof Array&&this._sourceText.startsWith(a[0],this._pos))?(i&&(this._start=this._pos,u&&u.length&&(this._pos+=u.length)),a):!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 r=n[0];let u=0;for(;r.length>u;)r.charCodeAt(u)===9?i+=2:i++,u++}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 Pt(e){return{ofRule:e}}function We(e,t){return{ofRule:e,isList:!0,separator:t}}function HR(e,t){const n=e.match;return e.match=i=>{let r=!1;return n&&(r=n(i)),r&&t.every(u=>u.match&&!u.match(i))},e}function C1(e,t){return{style:t,match:n=>n.kind===e}}function Ie(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const qR=e=>e===" "||e===" "||e===","||e===`
|
|
162
|
+
`||e==="\r"||e==="\uFEFF"||e===" ",GR={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:/^#.*/},YR={Document:[We("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Q.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[yn("query"),Pt(gt("def")),Pt("VariableDefinitions"),We("Directive"),"SelectionSet"],Mutation:[yn("mutation"),Pt(gt("def")),Pt("VariableDefinitions"),We("Directive"),"SelectionSet"],Subscription:[yn("subscription"),Pt(gt("def")),Pt("VariableDefinitions"),We("Directive"),"SelectionSet"],VariableDefinitions:[Ie("("),We("VariableDefinition"),Ie(")")],VariableDefinition:["Variable",Ie(":"),"Type",Pt("DefaultValue")],Variable:[Ie("$","variable"),gt("variable")],DefaultValue:[Ie("="),"Value"],SelectionSet:[Ie("{"),We("Selection"),Ie("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[gt("property"),Ie(":"),gt("qualifier"),Pt("Arguments"),We("Directive"),Pt("SelectionSet")],Field:[gt("property"),Pt("Arguments"),We("Directive"),Pt("SelectionSet")],Arguments:[Ie("("),We("Argument"),Ie(")")],Argument:[gt("attribute"),Ie(":"),"Value"],FragmentSpread:[Ie("..."),gt("def"),We("Directive")],InlineFragment:[Ie("..."),Pt("TypeCondition"),We("Directive"),"SelectionSet"],FragmentDefinition:[yn("fragment"),Pt(HR(gt("def"),[yn("on")])),"TypeCondition",We("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:[C1("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[C1("Name","builtin")],NullValue:[C1("Name","keyword")],EnumValue:[gt("string-2")],ListValue:[Ie("["),We("Value"),Ie("]")],ObjectValue:[Ie("{"),We("ObjectField"),Ie("}")],ObjectField:[gt("attribute"),Ie(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[Ie("["),"Type",Ie("]"),Pt(Ie("!"))],NonNullType:["NamedType",Pt(Ie("!"))],NamedType:[QR("atom")],Directive:[Ie("@","meta"),gt("meta"),Pt("Arguments")],DirectiveDef:[yn("directive"),Ie("@","meta"),gt("meta"),Pt("ArgumentsDef"),yn("on"),We("DirectiveLocation",Ie("|"))],InterfaceDef:[yn("interface"),gt("atom"),Pt("Implements"),We("Directive"),Ie("{"),We("FieldDef"),Ie("}")],Implements:[yn("implements"),We("NamedType",Ie("&"))],DirectiveLocation:[gt("string-2")],SchemaDef:[yn("schema"),We("Directive"),Ie("{"),We("OperationTypeDef"),Ie("}")],OperationTypeDef:[gt("keyword"),Ie(":"),gt("atom")],ScalarDef:[yn("scalar"),gt("atom"),We("Directive")],ObjectTypeDef:[yn("type"),gt("atom"),Pt("Implements"),We("Directive"),Ie("{"),We("FieldDef"),Ie("}")],FieldDef:[gt("property"),Pt("ArgumentsDef"),Ie(":"),"Type",We("Directive")],ArgumentsDef:[Ie("("),We("InputValueDef"),Ie(")")],InputValueDef:[gt("attribute"),Ie(":"),"Type",Pt("DefaultValue"),We("Directive")],UnionDef:[yn("union"),gt("atom"),We("Directive"),Ie("="),We("UnionMember",Ie("|"))],UnionMember:["NamedType"],EnumDef:[yn("enum"),gt("atom"),We("Directive"),Ie("{"),We("EnumValueDef"),Ie("}")],EnumValueDef:[gt("string-2"),We("Directive")],InputDef:[yn("input"),gt("atom"),We("Directive"),Ie("{"),We("InputValueDef"),Ie("}")],ExtendDef:[yn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Q.SCHEMA_EXTENSION;case"scalar":return Q.SCALAR_TYPE_EXTENSION;case"type":return Q.OBJECT_TYPE_EXTENSION;case"interface":return Q.INTERFACE_TYPE_EXTENSION;case"union":return Q.UNION_TYPE_EXTENSION;case"enum":return Q.ENUM_TYPE_EXTENSION;case"input":return Q.INPUT_OBJECT_TYPE_EXTENSION}},[Q.SCHEMA_EXTENSION]:["SchemaDef"],[Q.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Q.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Q.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Q.UNION_TYPE_EXTENSION]:["UnionDef"],[Q.ENUM_TYPE_EXTENSION]:["EnumDef"],[Q.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function yn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function gt(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function QR(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 XR(e={eatWhitespace:t=>t.eatWhile(qR),lexRules:GR,parseRules:YR,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return hc(e.parseRules,t,Q.DOCUMENT),t},token(t,n){return WR(t,n,e)}}}function WR(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:u,eatWhitespace:a,editorConfig:c}=n;if(t.rule&&t.rule.length===0?xy(t):t.needsAdvance&&(t.needsAdvance=!1,rv(t,!0)),e.sol()){const p=c?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/p)}if(a(e))return"ws";const f=KR(r,e);if(!f)return e.match(/\S+/)||e.match(/\s/),hc(A1,t,"Invalid"),"invalidchar";if(f.kind==="Comment")return hc(A1,t,"Comment"),"comment";const h=r4({},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?.separator),p){if(p.ofRule&&(p=p.ofRule),typeof p=="string"){hc(u,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"?rv(t,!0):t.needsAdvance=!0,p.style}ZR(t)}return r4(t,h),hc(A1,t,"Invalid"),"invalidchar"}function r4(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e[n[i]]=t[n[i]];return e}const A1={Invalid:[],Comment:[]};function hc(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 xy(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 rv(e,t){var n;if(o4(e)&&e.rule){const i=e.rule[e.step];if(i.separator){const{separator:r}=i;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&r.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)xy(e),e.rule&&(o4(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function o4(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function ZR(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)xy(e);e.rule&&rv(e,!1)}function KR(e,t){const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=t.match(e[n[i]]);if(r&&r instanceof Array)return{kind:n[i],value:r[0]}}}function Sh(e,t){const n=e.split(`
|
|
163
|
+
`),i=XR();let r=i.startState(),u="",a=new i4("");for(let c=0;c<n.length;c++){for(a=new i4(n[c]);!a.eol()&&(u=i.token(a,r),t(a,r,u,c)!=="BREAK"););t(a,r,u,c),r.kind||(r=i.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:r,style:u}}var Co;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(Co||(Co={}));const JR=[Q.SCHEMA_DEFINITION,Q.OPERATION_TYPE_DEFINITION,Q.SCALAR_TYPE_DEFINITION,Q.OBJECT_TYPE_DEFINITION,Q.INTERFACE_TYPE_DEFINITION,Q.UNION_TYPE_DEFINITION,Q.ENUM_TYPE_DEFINITION,Q.INPUT_OBJECT_TYPE_DEFINITION,Q.DIRECTIVE_DEFINITION,Q.SCHEMA_EXTENSION,Q.SCALAR_TYPE_EXTENSION,Q.OBJECT_TYPE_EXTENSION,Q.INTERFACE_TYPE_EXTENSION,Q.UNION_TYPE_EXTENSION,Q.ENUM_TYPE_EXTENSION,Q.INPUT_OBJECT_TYPE_EXTENSION],eM=e=>{let t=Co.UNKNOWN;if(e)try{er(Nu(e),{enter(n){if(n.kind==="Document"){t=Co.EXECUTABLE;return}return JR.includes(n.kind)?(t=Co.TYPE_SYSTEM,Na):!1}})}catch{return t}return t};function tM(e,t){return t?.endsWith(".graphqls")?Co.TYPE_SYSTEM:eM(e)}function nM(e,t,n=0){let i=null,r=null,u=null;const a=Sh(e,(c,f,h,p)=>{if(!(p!==t.line||c.getCurrentPosition()+n<t.character+1))return i=h,r=Object.assign({},f),u=c.current(),"BREAK"});return{start:a.start,end:a.end,string:u||a.string,state:r||a.state,style:i||a.style}}function iM(e,t,n,i,r){const u=i||nM(e,t,1);if(!u)return null;const a=u.state.kind==="Invalid"?u.state.prevState:u.state;if(!a)return null;const c=oM(n,u.state),f=r?.mode||tM(e,r?.uri);return{token:u,state:a,typeInfo:c,mode:f}}function s4(e,t,n){return n===kc.name&&e.getQueryType()===t?kc:n===Lc.name&&e.getQueryType()===t?Lc:n===Ic.name&&Ss(t)?Ic:"getFields"in t?t.getFields()[n]:null}function a_(e,t){const n=[];let i=e;for(;i?.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function rM(e){let t;return a_(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function oM(e,t){let n,i,r,u,a,c,f,h,p,m,v;return a_(t,y=>{var x;switch(y.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:y.type&&(m=e.getType(y.type));break;case pe.FIELD:case pe.ALIASED_FIELD:{!m||!y.name?a=null:(a=p?s4(e,p,y.name):null,m=a?a.type:null);break}case pe.SELECTION_SET:p=Nn(m);break;case pe.DIRECTIVE:r=y.name?e.getDirective(y.name):null;break;case pe.INTERFACE_DEF:y.name&&(f=null,v=new Fa({name:y.name,interfaces:[],fields:{}}));break;case pe.OBJECT_TYPE_DEF:y.name&&(v=null,f=new $r({name:y.name,interfaces:[],fields:{}}));break;case pe.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){case pe.FIELD:i=a&&a.args;break;case pe.DIRECTIVE:i=r&&r.args;break;case pe.ALIASED_FIELD:{const A=(x=y.prevState)===null||x===void 0?void 0:x.name;if(!A){i=null;break}const D=p?s4(e,p,A):null;if(!D){i=null;break}i=D.args;break}default:i=null;break}else i=null;break}case pe.ARGUMENT:if(i){for(let A=0;A<i.length;A++)if(i[A].name===y.name){n=i[A];break}}c=n?.type;break;case pe.VARIABLE_DEFINITION:case pe.VARIABLE:m=c;break;case pe.ENUM_VALUE:const S=Nn(c);u=S instanceof el?S.getValues().find(A=>A.value===y.name):null;break;case pe.LIST_VALUE:const _=LT(c);c=_ instanceof zn?_.ofType:null;break;case pe.OBJECT_VALUE:const T=Nn(c);h=T instanceof vy?T.getFields():null;break;case pe.OBJECT_FIELD:const N=y.name&&h?h[y.name]:null;c=N?.type,a=N,m=a?a.type:null;break;case pe.NAMED_TYPE:y.name&&(m=e.getType(y.name));break}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:u,fieldDef:a,inputType:c,objectFieldDefs:h,parentType:p,type:m,interfaceDef:v,objectTypeDef:f}}const sM={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({},Q),sM);var ze;(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})(ze||(ze={}));const ov={command:"editor.action.triggerSuggest",title:"Suggestions"},uM=e=>{const t=[];if(e)try{er(Nu(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function bJ(e,t,n,i,r,u){var a;const c=Object.assign(Object.assign({},u),{schema:e}),f=iM(t,n,e,i,u);if(!f)return[];const{state:h,typeInfo:p,mode:m,token:v}=f,{kind:y,step:x,prevState:S}=h;if(y===pe.DOCUMENT)return m===Co.TYPE_SYSTEM?aM(v):m===Co.EXECUTABLE?lM(v):cM(v);if(y===pe.EXTEND_DEF)return fM(v);if(((a=S?.prevState)===null||a===void 0?void 0:a.kind)===pe.EXTENSION_DEFINITION&&h.name)return St(v,[]);if(S?.kind===Q.SCALAR_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(Os).map(T=>({label:T.name,kind:ze.Function})));if(S?.kind===Q.OBJECT_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(T=>Tt(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:ze.Function})));if(S?.kind===Q.INTERFACE_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(Dt).map(T=>({label:T.name,kind:ze.Function})));if(S?.kind===Q.UNION_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(Oi).map(T=>({label:T.name,kind:ze.Function})));if(S?.kind===Q.ENUM_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(T=>fi(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:ze.Function})));if(S?.kind===Q.INPUT_OBJECT_TYPE_EXTENSION)return St(v,Object.values(e.getTypeMap()).filter(fn).map(T=>({label:T.name,kind:ze.Function})));if(y===pe.IMPLEMENTS||y===pe.NAMED_TYPE&&S?.kind===pe.IMPLEMENTS)return pM(v,h,e,t,p);if(y===pe.SELECTION_SET||y===pe.FIELD||y===pe.ALIASED_FIELD)return dM(v,p,c);if(y===pe.ARGUMENTS||y===pe.ARGUMENT&&x===0){const{argDefs:T}=p;if(T)return St(v,T.map(N=>{var A;return{label:N.name,insertText:i6(N.name+": ",N.type),insertTextMode:au.adjustIndentation,insertTextFormat:ja.Snippet,command:ov,labelDetails:{detail:" "+String(N.type)},documentation:(A=N.description)!==null&&A!==void 0?A:void 0,kind:ze.Variable,type:N.type}}))}if((y===pe.OBJECT_VALUE||y===pe.OBJECT_FIELD&&x===0)&&p.objectFieldDefs){const T=Eu(p.objectFieldDefs),N=y===pe.OBJECT_VALUE?ze.Value:ze.Field;return St(v,T.map(A=>{var D;return{label:A.name,detail:String(A.type),documentation:(D=A?.description)!==null&&D!==void 0?D:void 0,kind:N,type:A.type,insertText:i6(A.name+": ",A.type),insertTextMode:au.adjustIndentation,insertTextFormat:ja.Snippet,command:ov}}))}if(y===pe.ENUM_VALUE||y===pe.LIST_VALUE&&x===1||y===pe.OBJECT_FIELD&&x===2||y===pe.ARGUMENT&&x===2)return hM(v,p,t,e);if(y===pe.VARIABLE&&x===1){const T=Nn(p.inputType),N=c_(t,e,v);return St(v,N.filter(A=>A.detail===T?.name))}if(y===pe.TYPE_CONDITION&&x===1||y===pe.NAMED_TYPE&&S!=null&&S.kind===pe.TYPE_CONDITION)return mM(v,p,e);if(y===pe.FRAGMENT_SPREAD&&x===1)return gM(v,p,e,t,Array.isArray(r)?r:uM(r));const _=f_(h);return _.kind===pe.FIELD_DEF?St(v,Object.values(e.getTypeMap()).filter(T=>pu(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:ze.Function,insertText:u?.fillLeafsOnComplete?T.name+`
|
|
164
|
+
`:T.name,insertTextMode:au.adjustIndentation}))):_.kind===pe.INPUT_VALUE_DEF&&x===2?St(v,Object.values(e.getTypeMap()).filter(T=>Ci(T)&&!T.name.startsWith("__")).map(T=>({label:T.name,kind:ze.Function,insertText:u?.fillLeafsOnComplete?T.name+`
|
|
165
|
+
$1`:T.name,insertTextMode:au.adjustIndentation,insertTextFormat:ja.Snippet}))):y===pe.VARIABLE_DEFINITION&&x===2||y===pe.LIST_TYPE&&x===1||y===pe.NAMED_TYPE&&S&&(S.kind===pe.VARIABLE_DEFINITION||S.kind===pe.LIST_TYPE||S.kind===pe.NON_NULL_TYPE)?bM(v,e):y===pe.DIRECTIVE?xM(v,h,e):y===pe.DIRECTIVE_DEF?EM(v,h,e):[]}const Ey=[{label:"type",kind:ze.Function},{label:"interface",kind:ze.Function},{label:"union",kind:ze.Function},{label:"input",kind:ze.Function},{label:"scalar",kind:ze.Function},{label:"schema",kind:ze.Function}],l_=[{label:"query",kind:ze.Function},{label:"mutation",kind:ze.Function},{label:"subscription",kind:ze.Function},{label:"fragment",kind:ze.Function},{label:"{",kind:ze.Constructor}];function aM(e){return St(e,[{label:"extend",kind:ze.Function},...Ey])}function lM(e){return St(e,l_)}function cM(e){return St(e,[{label:"extend",kind:ze.Function},...l_,...Ey])}function fM(e){return St(e,Ey)}function dM(e,t,n){var i;if(t.parentType){const{parentType:r}=t;let u=[];return"getFields"in r&&(u=Eu(r.getFields())),Ss(r)&&u.push(Ic),r===((i=n?.schema)===null||i===void 0?void 0:i.getQueryType())&&u.push(kc,Lc),St(e,u.map((a,c)=>{var f;const h={sortText:String(c)+a.name,label:a.name,detail:String(a.type),documentation:(f=a.description)!==null&&f!==void 0?f:void 0,deprecated:!!a.deprecationReason,isDeprecated:!!a.deprecationReason,deprecationReason:a.deprecationReason,kind:ze.Field,labelDetails:{detail:" "+a.type.toString()},type:a.type};return n?.fillLeafsOnComplete&&(h.insertText=UR(a),h.insertText||(h.insertText=I0(a.name,a.type,a.name+(e.state.needsAdvance?"":`
|
|
166
|
+
`))),h.insertText&&(h.insertTextFormat=ja.Snippet,h.insertTextMode=au.adjustIndentation,h.command=ov)),h}))}return[]}function hM(e,t,n,i){const r=Nn(t.inputType),u=c_(n,i,e).filter(a=>a.detail===r?.name);if(r instanceof el){const a=r.getValues();return St(e,a.map(c=>{var f;return{label:c.name,detail:String(r),documentation:(f=c.description)!==null&&f!==void 0?f:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:ze.EnumMember,type:r}}).concat(u))}return r===Yt?St(e,u.concat([{label:"true",detail:String(Yt),documentation:"Not false.",kind:ze.Variable,type:Yt},{label:"false",detail:String(Yt),documentation:"Not true.",kind:ze.Variable,type:Yt}])):u}function pM(e,t,n,i,r){if(t.needsSeparator)return[];const u=n.getTypeMap(),a=Eu(u).filter(Dt),c=a.map(({name:y})=>y),f=new Set;Sh(i,(y,x)=>{var S,_,T,N,A;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(r.interfaceDef){if((_=r.interfaceDef)===null||_===void 0?void 0:_.getInterfaces().find(({name:F})=>F===x.name))return;const R=n.getType(x.name),M=(T=r.interfaceDef)===null||T===void 0?void 0:T.toConfig();r.interfaceDef=new Fa(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new Fa({name:x.name,fields:{}})]}))}else if(r.objectTypeDef){if((N=r.objectTypeDef)===null||N===void 0?void 0:N.getInterfaces().find(({name:F})=>F===x.name))return;const R=n.getType(x.name),M=(A=r.objectTypeDef)===null||A===void 0?void 0:A.toConfig();r.objectTypeDef=new $r(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new Fa({name:x.name,fields:{}})]}))}}});const h=r.interfaceDef||r.objectTypeDef,m=(h?.getInterfaces()||[]).map(({name:y})=>y),v=a.concat([...f].map(y=>({name:y}))).filter(({name:y})=>y!==h?.name&&!m.includes(y));return St(e,v.map(y=>{const x={label:y.name,kind:ze.Interface,type:y};return y?.description&&(x.documentation=y.description),x}))}function mM(e,t,n,i){let r;if(t.parentType)if(_o(t.parentType)){const u=LO(t.parentType),a=n.getPossibleTypes(u),c=Object.create(null);for(const f of a)for(const h of f.getInterfaces())c[h.name]=h;r=a.concat(Eu(c))}else r=[t.parentType];else{const u=n.getTypeMap();r=Eu(u).filter(a=>Ss(a)&&!a.name.startsWith("__"))}return St(e,r.map(u=>{const a=Nn(u);return{label:String(u),documentation:a?.description||"",kind:ze.Field}}))}function gM(e,t,n,i,r){if(!i)return[];const u=n.getTypeMap(),a=rM(e.state),c=yM(i);r&&r.length>0&&c.push(...r);const f=c.filter(h=>u[h.typeCondition.name.value]&&!(a&&a.kind===pe.FRAGMENT_DEFINITION&&a.name===h.name.value)&&Ss(t.parentType)&&Ss(u[h.typeCondition.name.value])&&$O(n,t.parentType,u[h.typeCondition.name.value]));return St(e,f.map(h=>({label:h.name.value,detail:String(u[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:ze.Field,type:u[h.typeCondition.name.value]})))}const vM=(e,t)=>{var n,i,r,u,a,c,f,h,p,m;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((r=(i=e.prevState)===null||i===void 0?void 0:i.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState.prevState;if(((c=(a=(u=e.prevState)===null||u===void 0?void 0:u.prevState)===null||a===void 0?void 0:a.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 c_(e,t,n){let i=null,r;const u=Object.create({});return Sh(e,(a,c)=>{var f;if(c?.kind===pe.VARIABLE&&c.name&&(i=c.name),c?.kind===pe.NAMED_TYPE&&i){const h=vM(c,pe.TYPE);h?.type&&(r=t.getType(h?.type))}if(i&&r&&!u[i]){const h=n.string==="$"||((f=n?.state)===null||f===void 0?void 0:f.kind)==="Variable"?i:"$"+i;u[i]={detail:r.toString(),insertText:h,label:"$"+i,rawInsert:h,type:r,kind:ze.Variable},i=null,r=null}}),Eu(u)}function yM(e){const t=[];return Sh(e,(n,i)=>{i.kind===pe.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:pe.FRAGMENT_DEFINITION,name:{kind:Q.NAME,value:i.name},selectionSet:{kind:pe.SELECTION_SET,selections:[]},typeCondition:{kind:pe.NAMED_TYPE,name:{kind:Q.NAME,value:i.type}}})}),t}function bM(e,t,n){const i=t.getTypeMap(),r=Eu(i).filter(Ci);return St(e,r.map(u=>({label:u.name,documentation:u?.description||"",kind:ze.Variable})))}function xM(e,t,n,i){var r;if(!((r=t.prevState)===null||r===void 0)&&r.kind){const u=n.getDirectives().filter(a=>SM(t.prevState,a));return St(e,u.map(a=>({label:a.name,documentation:a?.description||"",kind:ze.Function})))}return[]}function EM(e,t,n,i){const r=n.getDirectives().find(u=>u.name===t.name);return St(e,r?.args.map(u=>({label:u.name,documentation:u.description||"",kind:ze.Field}))||[])}function SM(e,t){if(!e?.kind)return!1;const{kind:n,prevState:i}=e,{locations:r}=t;switch(n){case pe.QUERY:return r.includes(Ce.QUERY);case pe.MUTATION:return r.includes(Ce.MUTATION);case pe.SUBSCRIPTION:return r.includes(Ce.SUBSCRIPTION);case pe.FIELD:case pe.ALIASED_FIELD:return r.includes(Ce.FIELD);case pe.FRAGMENT_DEFINITION:return r.includes(Ce.FRAGMENT_DEFINITION);case pe.FRAGMENT_SPREAD:return r.includes(Ce.FRAGMENT_SPREAD);case pe.INLINE_FRAGMENT:return r.includes(Ce.INLINE_FRAGMENT);case pe.SCHEMA_DEF:return r.includes(Ce.SCHEMA);case pe.SCALAR_DEF:return r.includes(Ce.SCALAR);case pe.OBJECT_TYPE_DEF:return r.includes(Ce.OBJECT);case pe.FIELD_DEF:return r.includes(Ce.FIELD_DEFINITION);case pe.INTERFACE_DEF:return r.includes(Ce.INTERFACE);case pe.UNION_DEF:return r.includes(Ce.UNION);case pe.ENUM_DEF:return r.includes(Ce.ENUM);case pe.ENUM_VALUE:return r.includes(Ce.ENUM_VALUE);case pe.INPUT_DEF:return r.includes(Ce.INPUT_OBJECT);case pe.INPUT_VALUE_DEF:switch(i?.kind){case pe.ARGUMENTS_DEF:return r.includes(Ce.ARGUMENT_DEFINITION);case pe.INPUT_DEF:return r.includes(Ce.INPUT_FIELD_DEFINITION)}}return!1}function f_(e){return e.prevState&&e.kind&&[pe.NAMED_TYPE,pe.LIST_TYPE,pe.TYPE,pe.NON_NULL_TYPE].includes(e.kind)?f_(e.prevState):e}var sc={exports:{}},u4;function TM(){if(u4)return sc.exports;u4=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 sc.exports=e,sc.exports.default=e,Object.defineProperty(sc.exports,"__esModule",{value:!0}),sc.exports}var _M=TM();const a4=Du(_M),CM=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;er(e,{FragmentDefinition(a){n.set(a.name.value,!0)},FragmentSpread(a){i.has(a.name.value)||i.add(a.name.value)}});const r=new Set;for(const a of i)!n.has(a)&&t.has(a)&&r.add(a4(t.get(a)));const u=[];for(const a of r)er(a,{FragmentSpread(c){!i.has(c.name.value)&&t.get(c.name.value)&&(r.add(a4(t.get(c.name.value))),i.add(c.name.value))}}),n.has(a.name.value)||u.push(a);return u};function AM(e,t){const n=Object.create(null);for(const i of t.definitions)if(i.kind==="OperationDefinition"){const{variableDefinitions:r}=i;if(r)for(const{variable:u,type:a}of r){const c=Fc(e,a);c?n[u.name.value]=c:a.kind===Q.NAMED_TYPE&&a.name.value==="Float"&&(n[u.name.value]=zT)}}return n}function wM(e,t){const n=t?AM(t,e):void 0,i=[];return er(e,{OperationDefinition(r){i.push(r)}}),{variableToType:n,operations:i}}function DM(e,t){if(t)try{const n=Nu(t);return Object.assign(Object.assign({},wM(n,e)),{documentAST:n})}catch{}}var w1,l4;function NM(){return l4||(l4=1,w1=function(t){return typeof t=="object"?t===null:typeof t!="function"}),w1}var D1,c4;function d_(){return c4||(c4=1,D1=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),D1}var N1,f4;function OM(){if(f4)return N1;f4=1;var e=d_();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return N1=function(i){var r,u;return!(t(i)===!1||(r=i.constructor,typeof r!="function")||(u=r.prototype,t(u)===!1)||u.hasOwnProperty("isPrototypeOf")===!1)},N1}var O1,d4;function RM(){if(d4)return O1;d4=1;const{deleteProperty:e}=Reflect,t=NM(),n=OM(),i=y=>typeof y=="object"&&y!==null||typeof y=="function",r=y=>y==="__proto__"||y==="constructor"||y==="prototype",u=y=>{if(!t(y))throw new TypeError("Object keys must be strings or symbols");if(r(y))throw new Error(`Cannot set unsafe key: "${y}"`)},a=y=>Array.isArray(y)?y.flat().map(String).join(","):y,c=(y,x)=>{if(typeof y!="string"||!x)return y;let S=y+";";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=(y,x,S)=>{const _=a(x?c(y,x):y);u(_);const T=v.cache.get(_)||S();return v.cache.set(_,T),T},h=(y,x={})=>{const S=x.separator||".",_=S==="/"?!1:x.preservePaths;if(typeof y=="string"&&_!==!1&&/\//.test(y))return[y];const T=[];let N="";const A=D=>{let R;D.trim()!==""&&Number.isInteger(R=Number(D))?T.push(R):T.push(D)};for(let D=0;D<y.length;D++){const R=y[D];if(R==="\\"){N+=y[++D];continue}if(R===S){A(N),N="";continue}N+=R}return N&&A(N),T},p=(y,x)=>x&&typeof x.split=="function"?x.split(y):typeof y=="symbol"?[y]:Array.isArray(y)?y:f(y,x,()=>h(y,x)),m=(y,x,S,_)=>{if(u(x),S===void 0)e(y,x);else if(_&&_.merge){const T=_.merge==="function"?_.merge:Object.assign;T&&n(y[x])&&n(S)?y[x]=T(y[x],S):y[x]=S}else y[x]=S;return y},v=(y,x,S,_)=>{if(!x||!i(y))return y;const T=p(x,_);let N=y;for(let A=0;A<T.length;A++){const D=T[A],R=T[A+1];if(u(D),R===void 0){m(N,D,S,_);break}if(typeof R=="number"&&!Array.isArray(N[D])){N=N[D]=[];continue}i(N[D])||(N[D]={}),N=N[D]}return y};return v.split=p,v.cache=new Map,v.clear=()=>{v.cache=new Map},O1=v,O1}var MM=RM();const R1=Du(MM);var M1,h4;function kM(){if(h4)return M1;h4=1;const e=d_();M1=function(u,a,c){if(e(c)||(c={default:c}),!r(u))return typeof c.default<"u"?c.default:u;typeof a=="number"&&(a=String(a));const f=Array.isArray(a),h=typeof a=="string",p=c.separator||".",m=c.joinChar||(typeof p=="string"?p:".");if(!h&&!f)return u;if(h&&a in u)return i(a,u,c)?u[a]:c.default;let v=f?a:n(a,p,c),y=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 u){if(!i(S,u,c))return c.default;u=u[S]}else{let _=!1,T=x+1;for(;T<y;)if(S=t([S,v[T++]],m,c),_=S in u){if(!i(S,u,c))return c.default;u=u[S],x=T-1;break}if(!_)return c.default}}while(++x<y&&r(u));return x===y?u:c.default};function t(u,a,c){return typeof c.join=="function"?c.join(u):u[0]+a+u[1]}function n(u,a,c){return typeof c.split=="function"?c.split(u):u.split(a)}function i(u,a,c){return typeof c.isValid=="function"?c.isValid(u,a):!0}function r(u){return e(u)||Array.isArray(u)||typeof u=="function"}return M1}var LM=kM();const IM=Du(LM);function h_(e){const t=E.createContext(null);return t.displayName=e,t}function p_(e){function t(n){var i;const r=E.useContext(e);if(r===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 r}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}const p4=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(y=>y(t,v))}},r=()=>t,c={setState:i,getState:r,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(i,r,c);return c},sf=(e=>e?p4(e):p4),FM=e=>e;function jM(e,t=FM){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 uf=e=>t=>jM(e,t),tl=sf(()=>({storage:null})),PM=e=>{const t=me.c(3),{storage:n,children:i}=e,r=m_($M);let u,a;return t[0]!==n?(u=()=>{tl.setState({storage:new LR(n)})},a=[n],t[0]=n,t[1]=u,t[2]=a):(u=t[1],a=t[2]),E.useEffect(u,a),r?i:null},m_=uf(tl),nl=()=>m_(VM);function $M(e){return!!e.storage}function VM(e){return e.storage}const Sy=typeof navigator<"u"&&navigator.userAgent.includes("Mac"),Th="graphiql",_h="sublime",Ch={[Sy?"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 af(e,t){const n=await Je(()=>import("./codemirror-DI4-4PU5.js").then(i=>i.c),__vite__mapDeps([0,1])).then(i=>typeof i=="function"?i:i.default);return await Promise.all(t?.useCommonAddons===!1?e:[Je(()=>import("./show-hint-BBAeVBOz.js").then(i=>i.s),__vite__mapDeps([2,1])),Je(()=>import("./matchbrackets-BxKfE3W2.js").then(i=>i.m),__vite__mapDeps([3,4,1])),Je(()=>import("./closebrackets-ByoMqinT.js").then(i=>i.c),__vite__mapDeps([5,1])),Je(()=>import("./brace-fold-EB2Pe2oz.js").then(i=>i.b),__vite__mapDeps([6,1])),Je(()=>import("./foldgutter-Jd2oNpfO.js").then(i=>i.f),__vite__mapDeps([7,1])),Je(()=>import("./lint-hJI3JwCA.js").then(i=>i.l),__vite__mapDeps([8,1])),Je(()=>import("./searchcursor-BIsUKLOX.js").then(i=>i.s),__vite__mapDeps([9,10,1])),Je(()=>import("./jump-to-line-C0wBP0hk.js").then(i=>i.j),__vite__mapDeps([11,1,12])),Je(()=>import("./dialog-DBYEq9g4.js").then(i=>i.d),__vite__mapDeps([13,12,1])),Je(()=>import("./sublime-BtlG2qS0.js").then(i=>i.s),__vite__mapDeps([14,1,10,4])),...e]),n}var k1,m4;function BM(){return m4||(m4=1,k1=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(r){e.addRange(r)}),t&&t.focus()}}),k1}var L1,g4;function UM(){if(g4)return L1;g4=1;var e=BM(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function i(u){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return u.replace(/#{\s*key\s*}/g,a)}function r(u,a){var c,f,h,p,m,v,y=!1;a||(a={}),c=a.debug||!1;try{h=e(),p=document.createRange(),m=document.getSelection(),v=document.createElement("span"),v.textContent=u,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(),a.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[a.format]||t.default;window.clipboardData.setData(_,u)}else S.clipboardData.clearData(),S.clipboardData.setData(a.format,u);a.onCopy&&(S.preventDefault(),a.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");y=!0}catch(S){c&&console.error("unable to copy using execCommand: ",S),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",u),a.onCopy&&a.onCopy(window.clipboardData),y=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=i("message"in a?a.message:n),window.prompt(f,u)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),v&&document.body.removeChild(v),h()}return y}return L1=r,L1}var zM=UM();const HM=Du(zM),sv=sf((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:i,onTogglePluginVisibility:r}=t(),u=typeof n=="string",a=n&&i.find(c=>(u?c.title:c)===n)||null;e(({visiblePlugin:c})=>a===c?{visiblePlugin:c}:(r?.(a),{visiblePlugin:a}))}})),qM=e=>{const t=me.c(8),{onTogglePluginVisibility:n,children:i,visiblePlugin:r,plugins:u,referencePlugin:a}=e;let c;t[0]!==u?(c=u===void 0?[]:u,t[0]=u,t[1]=c):c=t[1];const f=c;let h,p;return t[2]!==n||t[3]!==f||t[4]!==a||t[5]!==r?(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)}sv.setState({plugins:f,onTogglePluginVisibility:n,referencePlugin:a}),sv.getState().setVisiblePlugin(r??null)},p=[f,n,a,r],t[2]=n,t[3]=f,t[4]=a,t[5]=r,t[6]=h,t[7]=p):(h=t[6],p=t[7]),E.useEffect(h,p),i},Ah=uf(sv),Ec=sf((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:r,shouldIntrospect:u,headerEditor:a,...c}=t();if(!u)return;const f=n+1;e({requestCounter:f});try{const h=a?.getValue(),p=YM(h);if(!p.isValidJSON){e({fetchError:"Introspection failed as headers are invalid."});return}const m=p.headers?{headers:p.headers}:{},{introspectionQuery:v,introspectionQueryName:y,introspectionQuerySansSubscriptions:x}=GM(c),S=VE(i({query:v,operationName:y},m));if(!$E(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 A=VE(i({query:x,operationName:y},m));if(!$E(A))throw new Error("Fetcher did not return a Promise for introspection.");_=await A}e({isFetching:!1});let T;if(_?.data&&"__schema"in _.data)T=_.data;else{const A=typeof _=="string"?_:Hg(_);e({fetchError:A})}if(f!==t().requestCounter||!T)return;const N=fR(T);e({schema:N}),r?.(N)}catch(h){if(f!==t().requestCounter)return;e({fetchError:L0(h),isFetching:!1})}}})),g_=e=>{const t=me.c(14),{fetcher:n,onSchemaChange:i,dangerouslyAssumeSchemaIsValid:r,children:u,schema:a,inputValueDeprecation:c,introspectionQueryName:f,schemaDescription:h}=e,p=r===void 0?!1:r,m=c===void 0?!1:c,v=f===void 0?"IntrospectionQuery":f,y=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:g_},t[0]=x):x=t[0];const{headerEditor:S}=En(x);let _,T;t[1]!==S?(_=()=>{S&&Ec.setState({headerEditor:S})},T=[S],t[1]=S,t[2]=_,t[3]=T):(_=t[2],T=t[3]),E.useEffect(_,T);let N,A;t[4]!==p||t[5]!==n||t[6]!==m||t[7]!==v||t[8]!==i||t[9]!==a||t[10]!==y?(N=()=>{const R=Ug(a)||a==null?a:void 0,M=!R||p?[]:e_(R);Ec.setState(F=>{const{requestCounter:B}=F;return{fetcher:n,onSchemaChange:i,schema:R,shouldIntrospect:!Ug(a)&&a!==null,inputValueDeprecation:m,introspectionQueryName:v,schemaDescription:y,validationErrors:M,requestCounter:B+1}}),Ec.getState().introspect()},A=[a,p,i,n,m,v,y],t[4]=p,t[5]=n,t[6]=m,t[7]=v,t[8]=i,t[9]=a,t[10]=y,t[11]=N,t[12]=A):(N=t[11],A=t[12]),E.useEffect(N,A);let D;return t[13]===Symbol.for("react.memo_cache_sentinel")?(D=[],t[13]=D):D=t[13],E.useEffect(QM,D),u},Vr=uf(Ec);function GM({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const i=cR({inputValueDeprecation:e,schemaDescription:n}),r=t==="IntrospectionQuery"?i:i.replace("query IntrospectionQuery",`query ${t}`),u=i.replace("subscriptionType { name }","");return{introspectionQueryName:t,introspectionQuery:r,introspectionQuerySansSubscriptions:u}}function YM(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}function QM(){const e=function(n){n.ctrlKey&&n.key==="R"&&Ec.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}const v4={};function XM(e){let t=v4[e];if(t)return t;t=v4[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 Ga(e,t){typeof t!="string"&&(t=Ga.defaultChars);const n=XM(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let u=0,a=i.length;u<a;u+=3){const c=parseInt(i.slice(u+1,u+3),16);if(c<128){r+=n[c];continue}if((c&224)===192&&u+3<a){const f=parseInt(i.slice(u+4,u+6),16);if((f&192)===128){const h=c<<6&1984|f&63;h<128?r+="��":r+=String.fromCharCode(h),u+=3;continue}}if((c&240)===224&&u+6<a){const f=parseInt(i.slice(u+4,u+6),16),h=parseInt(i.slice(u+7,u+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?r+="���":r+=String.fromCharCode(p),u+=6;continue}}if((c&248)===240&&u+9<a){const f=parseInt(i.slice(u+4,u+6),16),h=parseInt(i.slice(u+7,u+9),16),p=parseInt(i.slice(u+10,u+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?r+="����":(m-=65536,r+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),u+=9;continue}}r+="�"}return r})}Ga.defaultChars=";/?:@&=+$,#";Ga.componentChars="";const y4={};function WM(e){let t=y4[e];if(t)return t;t=y4[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 lf(e,t,n){typeof t!="string"&&(n=t,t=lf.defaultChars),typeof n>"u"&&(n=!0);const i=WM(t);let r="";for(let u=0,a=e.length;u<a;u++){const c=e.charCodeAt(u);if(n&&c===37&&u+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(u+1,u+3))){r+=e.slice(u,u+3),u+=2;continue}if(c<128){r+=i[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&u+1<a){const f=e.charCodeAt(u+1);if(f>=56320&&f<=57343){r+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[u])}return r}lf.defaultChars=";/?:@&=+$,-_.!~*'()#";lf.componentChars="-_.!~*'()";function Ty(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 B0(){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 ZM=/^([a-z0-9.+-]+:)/i,KM=/:[0-9]*$/,JM=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ek=["<",">",'"',"`"," ","\r",`
|
|
167
|
+
`," "],tk=["{","}","|","\\","^","`"].concat(ek),nk=["'"].concat(tk),b4=["%","/","?",";","#"].concat(nk),x4=["/","?","#"],ik=255,E4=/^[+a-z0-9A-Z_-]{0,63}$/,rk=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S4={javascript:!0,"javascript:":!0},T4={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _y(e,t){if(e&&e instanceof B0)return e;const n=new B0;return n.parse(e,t),n}B0.prototype.parse=function(e,t){let n,i,r,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const h=JM.exec(u);if(h)return this.pathname=h[1],h[2]&&(this.search=h[2]),this}let a=ZM.exec(u);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,u=u.substr(a.length)),(t||a||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=u.substr(0,2)==="//",r&&!(a&&S4[a])&&(u=u.substr(2),this.slashes=!0)),!S4[a]&&(r||a&&!T4[a])){let h=-1;for(let x=0;x<x4.length;x++)i=u.indexOf(x4[x]),i!==-1&&(h===-1||i<h)&&(h=i);let p,m;h===-1?m=u.lastIndexOf("@"):m=u.lastIndexOf("@",h),m!==-1&&(p=u.slice(0,m),u=u.slice(m+1),this.auth=p),h=-1;for(let x=0;x<b4.length;x++)i=u.indexOf(b4[x]),i!==-1&&(h===-1||i<h)&&(h=i);h===-1&&(h=u.length),u[h-1]===":"&&h--;const v=u.slice(0,h);u=u.slice(h),this.parseHost(v),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const x=this.hostname.split(/\./);for(let S=0,_=x.length;S<_;S++){const T=x[S];if(T&&!T.match(E4)){let N="";for(let A=0,D=T.length;A<D;A++)T.charCodeAt(A)>127?N+="x":N+=T[A];if(!N.match(E4)){const A=x.slice(0,S),D=x.slice(S+1),R=T.match(rk);R&&(A.push(R[1]),D.unshift(R[2])),D.length&&(u=D.join(".")+u),this.hostname=A.join(".");break}}}}this.hostname.length>ik&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const c=u.indexOf("#");c!==-1&&(this.hash=u.substr(c),u=u.slice(0,c));const f=u.indexOf("?");return f!==-1&&(this.search=u.substr(f),u=u.slice(0,f)),u&&(this.pathname=u),T4[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};B0.prototype.parseHost=function(e){let t=KM.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 ok=Object.freeze(Object.defineProperty({__proto__:null,decode:Ga,encode:lf,format:Ty,parse:_y},Symbol.toStringTag,{value:"Module"})),v_=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y_=/[\0-\x1F\x7F-\x9F]/,sk=/[\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]/,Cy=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,b_=/[\$\+<->\^`\|~\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]/,x_=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,uk=Object.freeze(Object.defineProperty({__proto__:null,Any:v_,Cc:y_,Cf:sk,P:Cy,S:b_,Z:x_},Symbol.toStringTag,{value:"Module"})),ak=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))),lk=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var I1;const ck=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]]),fk=(I1=String.fromCodePoint)!==null&&I1!==void 0?I1: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 dk(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ck.get(e))!==null&&t!==void 0?t:e}var an;(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"})(an||(an={}));const hk=32;var xs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xs||(xs={}));function uv(e){return e>=an.ZERO&&e<=an.NINE}function pk(e){return e>=an.UPPER_A&&e<=an.UPPER_F||e>=an.LOWER_A&&e<=an.LOWER_F}function mk(e){return e>=an.UPPER_A&&e<=an.UPPER_Z||e>=an.LOWER_A&&e<=an.LOWER_Z||uv(e)}function gk(e){return e===an.EQUALS||mk(e)}var sn;(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"})(sn||(sn={}));var bs;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(bs||(bs={}));class vk{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=sn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=bs.Strict}startEntity(t){this.decodeMode=t,this.state=sn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case sn.EntityStart:return t.charCodeAt(n)===an.NUM?(this.state=sn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=sn.NamedEntity,this.stateNamedEntity(t,n));case sn.NumericStart:return this.stateNumericStart(t,n);case sn.NumericDecimal:return this.stateNumericDecimal(t,n);case sn.NumericHex:return this.stateNumericHex(t,n);case sn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|hk)===an.LOWER_X?(this.state=sn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=sn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,r){if(n!==i){const u=i-n;this.result=this.result*Math.pow(r,u)+parseInt(t.substr(n,u),r),this.consumed+=u}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(uv(r)||pk(r))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(uv(r))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(r,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===an.SEMI)this.consumed+=1;else if(this.decodeMode===bs.Strict)return 0;return this.emitCodePoint(dk(this.result),this.consumed),this.errors&&(t!==an.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let r=i[this.treeIndex],u=(r&xs.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=yk(i,r,this.treeIndex+Math.max(1,u),a),this.treeIndex<0)return this.result===0||this.decodeMode===bs.Attribute&&(u===0||gk(a))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],u=(r&xs.VALUE_LENGTH)>>14,u!==0){if(a===an.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==bs.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,r=(i[n]&xs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~xs.VALUE_LENGTH:r[t+1],i),n===3&&this.emitCodePoint(r[t+2],i),i}end(){var t;switch(this.state){case sn.NamedEntity:return this.result!==0&&(this.decodeMode!==bs.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case sn.NumericDecimal:return this.emitNumericEntity(0,2);case sn.NumericHex:return this.emitNumericEntity(0,3);case sn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case sn.EntityStart:return 0}}}function E_(e){let t="";const n=new vk(e,i=>t+=fk(i));return function(r,u){let a=0,c=0;for(;(c=r.indexOf("&",c))>=0;){t+=r.slice(a,c),n.startEntity(u);const h=n.write(r,c+1);if(h<0){a=c+n.end();break}a=c+h,c=h===0?a+1:a}const f=t+r.slice(a);return t="",f}}function yk(e,t,n,i){const r=(t&xs.BRANCH_LENGTH)>>7,u=t&xs.JUMP_TABLE;if(r===0)return u!==0&&i===u?n:-1;if(u){const f=i-u;return f<0||f>=r?-1:e[n+f]-1}let a=n,c=a+r-1;for(;a<=c;){const f=a+c>>>1,h=e[f];if(h<i)a=f+1;else if(h>i)c=f-1;else return e[f+r]}return-1}const bk=E_(ak);E_(lk);function S_(e,t=bs.Legacy){return bk(e,t)}function xk(e){return Object.prototype.toString.call(e)}function Ay(e){return xk(e)==="[object String]"}const Ek=Object.prototype.hasOwnProperty;function Sk(e,t){return Ek.call(e,t)}function wh(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 T_(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function wy(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 U0(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 __=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Tk=/&([a-z#][a-z0-9]{1,31});/gi,_k=new RegExp(__.source+"|"+Tk.source,"gi"),Ck=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ak(e,t){if(t.charCodeAt(0)===35&&Ck.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return wy(i)?U0(i):e}const n=S_(e);return n!==e?n:e}function wk(e){return e.indexOf("\\")<0?e:e.replace(__,"$1")}function Ya(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(_k,function(t,n,i){return n||Ak(t,i)})}const Dk=/[&<>"]/,Nk=/[&<>"]/g,Ok={"&":"&","<":"<",">":">",'"':"""};function Rk(e){return Ok[e]}function Ts(e){return Dk.test(e)?e.replace(Nk,Rk):e}const Mk=/[.?*+^$[\]\\(){}|-]/g;function kk(e){return e.replace(Mk,"\\$&")}function yt(e){switch(e){case 9:case 32:return!0}return!1}function Pc(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 $c(e){return Cy.test(e)||b_.test(e)}function Vc(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 Dh(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Lk={mdurl:ok,ucmicro:uk},Ik=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:T_,assign:wh,escapeHtml:Ts,escapeRE:kk,fromCodePoint:U0,has:Sk,isMdAsciiPunct:Vc,isPunctChar:$c,isSpace:yt,isString:Ay,isValidEntityCode:wy,isWhiteSpace:Pc,lib:Lk,normalizeReference:Dh,unescapeAll:Ya,unescapeMd:wk},Symbol.toStringTag,{value:"Module"}));function Fk(e,t,n){let i,r,u,a;const c=e.posMax,f=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(u=e.src.charCodeAt(e.pos),u===93&&(i--,i===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),u===91){if(a===e.pos-1)i++;else if(n)return e.pos=f,-1}}let h=-1;return r&&(h=e.pos),e.pos=f,h}function jk(e,t,n){let i,r=t;const u={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(i=e.charCodeAt(r),i===10||i===60)return u;if(i===62)return u.pos=r+1,u.str=Ya(e.slice(t+1,r)),u.ok=!0,u;if(i===92&&r+1<n){r+=2;continue}r++}return u}let a=0;for(;r<n&&(i=e.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(a++,a>32))return u;if(i===41){if(a===0)break;a--}r++}return t===r||a!==0||(u.str=Ya(e.slice(t,r)),u.pos=r,u.ok=!0),u}function Pk(e,t,n,i){let r,u=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(u>=n)return a;let c=e.charCodeAt(u);if(c!==34&&c!==39&&c!==40)return a;t++,u++,c===40&&(c=41),a.marker=c}for(;u<n;){if(r=e.charCodeAt(u),r===a.marker)return a.pos=u+1,a.str+=Ya(e.slice(t,u)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&u+1<n&&u++,u++}return a.can_continue=!0,a.str+=Ya(e.slice(t,u)),a}const $k=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:jk,parseLinkLabel:Fk,parseLinkTitle:Pk},Symbol.toStringTag,{value:"Module"})),Br={};Br.code_inline=function(e,t,n,i,r){const u=e[t];return"<code"+r.renderAttrs(u)+">"+Ts(u.content)+"</code>"};Br.code_block=function(e,t,n,i,r){const u=e[t];return"<pre"+r.renderAttrs(u)+"><code>"+Ts(e[t].content)+`</code></pre>
|
|
168
|
+
`};Br.fence=function(e,t,n,i,r){const u=e[t],a=u.info?Ya(u.info).trim():"";let c="",f="";if(a){const p=a.split(/(\s+)/g);c=p[0],f=p.slice(2).join("")}let h;if(n.highlight?h=n.highlight(u.content,c,f)||Ts(u.content):h=Ts(u.content),h.indexOf("<pre")===0)return h+`
|
|
169
|
+
`;if(a){const p=u.attrIndex("class"),m=u.attrs?u.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${r.renderAttrs(v)}>${h}</code></pre>
|
|
170
|
+
`}return`<pre><code${r.renderAttrs(u)}>${h}</code></pre>
|
|
171
|
+
`};Br.image=function(e,t,n,i,r){const u=e[t];return u.attrs[u.attrIndex("alt")][1]=r.renderInlineAsText(u.children,n,i),r.renderToken(e,t,n)};Br.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
172
|
+
`:`<br>
|
|
173
|
+
`};Br.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
174
|
+
`:`<br>
|
|
175
|
+
`:`
|
|
176
|
+
`};Br.text=function(e,t){return Ts(e[t].content)};Br.html_block=function(e,t){return e[t].content};Br.html_inline=function(e,t){return e[t].content};function il(){this.rules=wh({},Br)}il.prototype.renderAttrs=function(t){let n,i,r;if(!t.attrs)return"";for(r="",n=0,i=t.attrs.length;n<i;n++)r+=" "+Ts(t.attrs[n][0])+'="'+Ts(t.attrs[n][1])+'"';return r};il.prototype.renderToken=function(t,n,i){const r=t[n];let u="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(u+=`
|
|
177
|
+
`),u+=(r.nesting===-1?"</":"<")+r.tag,u+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(u+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&n+1<t.length)){const c=t[n+1];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===r.tag)&&(a=!1)}return u+=a?`>
|
|
178
|
+
`:">",u};il.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let u=0,a=e.length;u<a;u++){const c=e[u].type;typeof r[c]<"u"?i+=r[c](e,u,t,n,this):i+=this.renderToken(e,u,t)}return i};il.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,u=e.length;r<u;r++)switch(e[r].type){case"text":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":i+=e[r].content;break;case"softbreak":case"hardbreak":i+=`
|
|
179
|
+
`;break}return i};il.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let u=0,a=e.length;u<a;u++){const c=e[u].type;c==="inline"?i+=this.renderInline(e[u].children,t,n):typeof r[c]<"u"?i+=r[c](e,u,t,n,this):i+=this.renderToken(e,u,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),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null};Hn.prototype.before=function(e,t,n,i){const r=this.__find__(e),u=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null};Hn.prototype.after=function(e,t,n,i){const r=this.__find__(e),u=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:u.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 r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].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 r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].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 sr(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}sr.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===t)return i;return-1};sr.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};sr.prototype.attrSet=function(t,n){const i=this.attrIndex(t),r=[t,n];i<0?this.attrPush(r):this.attrs[i]=r};sr.prototype.attrGet=function(t){const n=this.attrIndex(t);let i=null;return n>=0&&(i=this.attrs[n][1]),i};sr.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 C_(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}C_.prototype.Token=sr;const Vk=/\r\n?|\n/g,Bk=/\0/g;function Uk(e){let t;t=e.src.replace(Vk,`
|
|
180
|
+
`),t=t.replace(Bk,"�"),e.src=t}function zk(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 Hk(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function qk(e){return/^<a[>\s]/i.test(e)}function Gk(e){return/^<\/a\s*>/i.test(e)}function Yk(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 r=t[n].children,u=0;for(let a=r.length-1;a>=0;a--){const c=r[a];if(c.type==="link_close"){for(a--;r[a].level!==c.level&&r[a].type!=="link_open";)a--;continue}if(c.type==="html_inline"&&(qk(c.content)&&u>0&&u--,Gk(c.content)&&u++),!(u>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&&a>0&&r[a-1].type==="text_special"&&(h=h.slice(1));for(let y=0;y<h.length;y++){const x=h[y].url,S=e.md.normalizeLink(x);if(!e.md.validateLink(S))continue;let _=h[y].text;h[y].schema?h[y].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,"");const T=h[y].index;if(T>v){const R=new e.Token("text","",0);R.content=f.slice(v,T),R.level=m,p.push(R)}const N=new e.Token("link_open","a",1);N.attrs=[["href",S]],N.level=m++,N.markup="linkify",N.info="auto",p.push(N);const A=new e.Token("text","",0);A.content=_,A.level=m,p.push(A);const D=new e.Token("link_close","a",-1);D.level=--m,D.markup="linkify",D.info="auto",p.push(D),v=h[y].lastIndex}if(v<f.length){const y=new e.Token("text","",0);y.content=f.slice(v),y.level=m,p.push(y)}t[n].children=r=T_(r,a,p)}}}}const A_=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qk=/\((c|tm|r)\)/i,Xk=/\((c|tm|r)\)/ig,Wk={c:"©",r:"®",tm:"™"};function Zk(e,t){return Wk[t.toLowerCase()]}function Kk(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(Xk,Zk)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function Jk(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&A_.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 eL(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Qk.test(e.tokens[t].content)&&Kk(e.tokens[t].children),A_.test(e.tokens[t].content)&&Jk(e.tokens[t].children))}const tL=/['"]/,_4=/['"]/g,C4="’";function zd(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function nL(e,t){let n;const i=[];for(let r=0;r<e.length;r++){const u=e[r],a=e[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=a);n--);if(i.length=n+1,u.type!=="text")continue;let c=u.content,f=0,h=c.length;e:for(;f<h;){_4.lastIndex=f;const p=_4.exec(c);if(!p)break;let m=!0,v=!0;f=p.index+1;const y=p[0]==="'";let x=32;if(p.index-1>=0)x=c.charCodeAt(p.index-1);else for(n=r-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=r+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 _=Vc(x)||$c(String.fromCharCode(x)),T=Vc(S)||$c(String.fromCharCode(S)),N=Pc(x),A=Pc(S);if(A?m=!1:T&&(N||_||(m=!1)),N?v=!1:_&&(A||T||(v=!1)),S===34&&p[0]==='"'&&x>=48&&x<=57&&(v=m=!1),m&&v&&(m=_,v=T),!m&&!v){y&&(u.content=zd(u.content,p.index,C4));continue}if(v)for(n=i.length-1;n>=0;n--){let D=i[n];if(i[n].level<a)break;if(D.single===y&&i[n].level===a){D=i[n];let R,M;y?(R=t.md.options.quotes[2],M=t.md.options.quotes[3]):(R=t.md.options.quotes[0],M=t.md.options.quotes[1]),u.content=zd(u.content,p.index,M),e[D.token].content=zd(e[D.token].content,D.pos,R),f+=M.length-1,D.token===r&&(f+=R.length-1),c=u.content,h=c.length,i.length=n;continue e}}m?i.push({token:r,pos:p.index,single:y,level:a}):v&&y&&(u.content=zd(u.content,p.index,C4))}}}function iL(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!tL.test(e.tokens[t].content)||nL(e.tokens[t].children,e)}function rL(e){let t,n;const i=e.tokens,r=i.length;for(let u=0;u<r;u++){if(i[u].type!=="inline")continue;const a=i[u].children,c=a.length;for(t=0;t<c;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<c;t++)a[t].type==="text"&&t+1<c&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const F1=[["normalize",Uk],["block",zk],["inline",Hk],["linkify",Yk],["replacements",eL],["smartquotes",iL],["text_join",rL]];function Dy(){this.ruler=new Hn;for(let e=0;e<F1.length;e++)this.ruler.push(F1[e][0],F1[e][1])}Dy.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)};Dy.prototype.State=C_;function Ur(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 r=this.src;for(let u=0,a=0,c=0,f=0,h=r.length,p=!1;a<h;a++){const m=r.charCodeAt(a);if(!p)if(yt(m)){c++,m===9?f+=4-f%4:f++;continue}else p=!0;(m===10||a===h-1)&&(m!==10&&a++,this.bMarks.push(u),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,u=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ur.prototype.push=function(e,t,n){const i=new sr(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};Ur.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ur.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Ur.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const i=this.src.charCodeAt(t);if(!yt(i))break}return t};Ur.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!yt(this.src.charCodeAt(--t)))return t+1;return t};Ur.prototype.skipChars=function(t,n){for(let i=this.src.length;t<i&&this.src.charCodeAt(t)===n;t++);return t};Ur.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};Ur.prototype.getLines=function(t,n,i,r){if(t>=n)return"";const u=new Array(n-t);for(let a=0,c=t;c<n;c++,a++){let f=0;const h=this.bMarks[c];let p=h,m;for(c+1<n||r?m=this.eMarks[c]+1:m=this.eMarks[c];p<m&&f<i;){const v=this.src.charCodeAt(p);if(yt(v))v===9?f+=4-(f+this.bsCount[c])%4:f++;else if(p-h<this.tShift[c])f++;else break;p++}f>i?u[a]=new Array(f-i+1).join(" ")+this.src.slice(p,m):u[a]=this.src.slice(p,m)}return u.join("")};Ur.prototype.Token=sr;const oL=65536;function j1(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function A4(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),u=!1,a=0,c="";for(;i<n;)r===124&&(u?(c+=e.substring(a,i-1),a=i):(t.push(c+e.substring(a,i)),c="",a=i+1)),u=r===92,i++,r=e.charCodeAt(i);return t.push(c+e.substring(a)),t}function sL(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let u=e.bMarks[r]+e.tShift[r];if(u>=e.eMarks[r])return!1;const a=e.src.charCodeAt(u++);if(a!==124&&a!==45&&a!==58||u>=e.eMarks[r])return!1;const c=e.src.charCodeAt(u++);if(c!==124&&c!==45&&c!==58&&!yt(c)||a===45&&yt(c))return!1;for(;u<e.eMarks[r];){const D=e.src.charCodeAt(u);if(D!==124&&D!==45&&D!==58&&!yt(D))return!1;u++}let f=j1(e,t+1),h=f.split("|");const p=[];for(let D=0;D<h.length;D++){const R=h[D].trim();if(!R){if(D===0||D===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=j1(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;h=A4(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 y=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 D=0;D<h.length;D++){const R=e.push("th_open","th",1);p[D]&&(R.attrs=[["style","text-align:"+p[D]]]);const M=e.push("inline","",0);M.content=h[D].trim(),M.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let N,A=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let D=!1;for(let M=0,F=y.length;M<F;M++)if(y[M](e,r,n,!0)){D=!0;break}if(D||(f=j1(e,r).trim(),!f)||e.sCount[r]-e.blkIndent>=4||(h=A4(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),A+=m-h.length,A>oL))break;if(r===t+2){const M=e.push("tbody_open","tbody",1);M.map=N=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[r,r+1];for(let M=0;M<m;M++){const F=e.push("td_open","td",1);p[M]&&(F.attrs=[["style","text-align:"+p[M]]]);const B=e.push("inline","",0);B.content=h[M]?h[M].trim():"",B.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return N&&(e.push("tbody_close","tbody",-1),N[1]=r),e.push("table_close","table",-1),S[1]=r,e.parentType=v,e.line=r,!0}function uL(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,r=i;continue}break}e.line=r;const u=e.push("code_block","code",0);return u.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
181
|
+
`,u.map=[t,e.line],!0}function aL(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>u)return!1;const a=e.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let c=r;r=e.skipChars(r,a);let f=r-c;if(f<3)return!1;const h=e.src.slice(c,r),p=e.src.slice(r,u);if(a===96&&p.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let m=t,v=!1;for(;m++,!(m>=n||(r=c=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],r<u&&e.sCount[m]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[m]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-c<f)&&(r=e.skipSpaces(r),!(r<u)))){v=!0;break}f=e.sCount[t],e.line=m+(v?1:0);const y=e.push("fence","code",0);return y.info=p,y.content=e.getLines(t+1,m,f,!0),y.markup=h,y.map=[t,e.line],!0}function lL(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==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 y=!1,x;for(x=t;x<n;x++){const A=e.sCount[x]<e.blkIndent;if(r=e.bMarks[x]+e.tShift[x],u=e.eMarks[x],r>=u)break;if(e.src.charCodeAt(r++)===62&&!A){let R=e.sCount[x]+1,M,F;e.src.charCodeAt(r)===32?(r++,R++,F=!1,M=!0):e.src.charCodeAt(r)===9?(M=!0,(e.bsCount[x]+R)%4===3?(r++,R++,F=!1):F=!0):M=!1;let B=R;for(c.push(e.bMarks[x]),e.bMarks[x]=r;r<u;){const k=e.src.charCodeAt(r);if(yt(k))k===9?B+=4-(B+e.bsCount[x]+(F?1:0))%4:B++;else break;r++}y=r>=u,f.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(M?1:0),h.push(e.sCount[x]),e.sCount[x]=B-R,p.push(e.tShift[x]),e.tShift[x]=r-e.bMarks[x];continue}if(y)break;let D=!1;for(let R=0,M=m.length;R<M;R++)if(m[R](e,x,n,!0)){D=!0;break}if(D){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 N=e.push("blockquote_close","blockquote",-1);N.markup=">",e.lineMax=a,e.parentType=v,T[1]=e.line;for(let A=0;A<p.length;A++)e.bMarks[A+t]=c[A],e.tShift[A+t]=p[A],e.sCount[A+t]=h[A],e.bsCount[A+t]=f[A];return e.blkIndent=S,!0}function cL(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(u++);if(a!==42&&a!==45&&a!==95)return!1;let c=1;for(;u<r;){const h=e.src.charCodeAt(u++);if(h!==a&&!yt(h))return!1;h===a&&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(a)),!0}function w4(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const u=e.src.charCodeAt(i);if(!yt(u))return-1}return i}function D4(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let u=e.src.charCodeAt(r++);if(u<48||u>57)return-1;for(;;){if(r>=i)return-1;if(u=e.src.charCodeAt(r++),u>=48&&u<=57){if(r-n>=10)return-1;continue}if(u===41||u===46)break;return-1}return r<i&&(u=e.src.charCodeAt(r),!yt(u))?-1:r}function fL(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;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 dL(e,t,n,i){let r,u,a,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,y;if((y=D4(e,f))>=0){if(m=!0,a=e.bMarks[f]+e.tShift[f],v=Number(e.src.slice(a,y-1)),p&&v!==1)return!1}else if((y=w4(e,f))>=0)m=!1;else return!1;if(p&&e.skipSpaces(y)>=e.eMarks[f])return!1;if(i)return!0;const x=e.src.charCodeAt(y-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 N=e.md.block.ruler.getRules("list"),A=e.parentType;for(e.parentType="list";f<n;){u=y,r=e.eMarks[f];const D=e.sCount[f]+y-(e.bMarks[f]+e.tShift[f]);let R=D;for(;u<r;){const J=e.src.charCodeAt(u);if(J===9)R+=4-(R+e.bsCount[f])%4;else if(J===32)R++;else break;u++}const M=u;let F;M>=r?F=1:F=R-D,F>4&&(F=1);const B=D+F;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(x);const k=[f,0];c.map=k,m&&(c.info=e.src.slice(a,y-1));const $=e.tight,H=e.tShift[f],Y=e.sCount[f],se=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=B,e.tight=!0,e.tShift[f]=M-e.bMarks[f],e.sCount[f]=R,M>=r&&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]=H,e.sCount[f]=Y,e.tight=$,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(x),f=e.line,k[1]=f,f>=n||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let W=!1;for(let J=0,L=N.length;J<L;J++)if(N[J](e,f,n,!0)){W=!0;break}if(W)break;if(m){if(y=D4(e,f),y<0)break;a=e.bMarks[f]+e.tShift[f]}else if(y=w4(e,f),y<0)break;if(x!==e.src.charCodeAt(y-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=A,h&&fL(e,S),!0}function hL(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function c(N){const A=e.lineMax;if(N>=A||e.isEmpty(N))return null;let D=!1;if(e.sCount[N]-e.blkIndent>3&&(D=!0),e.sCount[N]<0&&(D=!0),!D){const F=e.md.block.ruler.getRules("reference"),B=e.parentType;e.parentType="reference";let k=!1;for(let $=0,H=F.length;$<H;$++)if(F[$](e,N,A,!0)){k=!0;break}if(e.parentType=B,k)return null}const R=e.bMarks[N]+e.tShift[N],M=e.eMarks[N];return e.src.slice(R,M+1)}let f=e.src.slice(r,u+1);u=f.length;let h=-1;for(r=1;r<u;r++){const N=f.charCodeAt(r);if(N===91)return!1;if(N===93){h=r;break}else if(N===10){const A=c(a);A!==null&&(f+=A,u=f.length,a++)}else if(N===92&&(r++,r<u&&f.charCodeAt(r)===10)){const A=c(a);A!==null&&(f+=A,u=f.length,a++)}}if(h<0||f.charCodeAt(h+1)!==58)return!1;for(r=h+2;r<u;r++){const N=f.charCodeAt(r);if(N===10){const A=c(a);A!==null&&(f+=A,u=f.length,a++)}else if(!yt(N))break}const p=e.md.helpers.parseLinkDestination(f,r,u);if(!p.ok)return!1;const m=e.md.normalizeLink(p.str);if(!e.md.validateLink(m))return!1;r=p.pos;const v=r,y=a,x=r;for(;r<u;r++){const N=f.charCodeAt(r);if(N===10){const A=c(a);A!==null&&(f+=A,u=f.length,a++)}else if(!yt(N))break}let S=e.md.helpers.parseLinkTitle(f,r,u);for(;S.can_continue;){const N=c(a);if(N===null)break;f+=N,r=u,u=f.length,a++,S=e.md.helpers.parseLinkTitle(f,r,u,S)}let _;for(r<u&&x!==r&&S.ok?(_=S.str,r=S.pos):(_="",r=v,a=y);r<u;){const N=f.charCodeAt(r);if(!yt(N))break;r++}if(r<u&&f.charCodeAt(r)!==10&&_)for(_="",r=v,a=y;r<u;){const N=f.charCodeAt(r);if(!yt(N))break;r++}if(r<u&&f.charCodeAt(r)!==10)return!1;const T=Dh(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=a),!0):!1}const pL=["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"],mL="[a-zA-Z_:][a-zA-Z0-9:._-]*",gL="[^\"'=<>`\\x00-\\x20]+",vL="'[^']*'",yL='"[^"]*"',bL="(?:"+gL+"|"+vL+"|"+yL+")",xL="(?:\\s+"+mL+"(?:\\s*=\\s*"+bL+")?)",w_="<[A-Za-z][A-Za-z0-9\\-]*"+xL+"*\\s*\\/?>",D_="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",EL="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",SL="<[?][\\s\\S]*?[?]>",TL="<![A-Za-z][^>]*>",_L="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",CL=new RegExp("^(?:"+w_+"|"+D_+"|"+EL+"|"+SL+"|"+TL+"|"+_L+")"),AL=new RegExp("^(?:"+w_+"|"+D_+")"),Ea=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+pL.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(AL.source+"\\s*$"),/^$/,!1]];function wL(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let a=e.src.slice(r,u),c=0;for(;c<Ea.length&&!Ea[c][0].test(a);c++);if(c===Ea.length)return!1;if(i)return Ea[c][2];let f=t+1;if(!Ea[c][1].test(a)){for(;f<n&&!(e.sCount[f]<e.blkIndent);f++)if(r=e.bMarks[f]+e.tShift[f],u=e.eMarks[f],a=e.src.slice(r,u),Ea[c][1].test(a)){a.length!==0&&f++;break}}e.line=f;const h=e.push("html_block","",0);return h.map=[t,f],h.content=e.getLines(t,f,e.blkIndent,!0),!0}function DL(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(a!==35||r>=u)return!1;let c=1;for(a=e.src.charCodeAt(++r);a===35&&r<u&&c<=6;)c++,a=e.src.charCodeAt(++r);if(c>6||r<u&&!yt(a))return!1;if(i)return!0;u=e.skipSpacesBack(u,r);const f=e.skipCharsBack(u,35,r);f>r&&yt(e.src.charCodeAt(f-1))&&(u=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(r,u).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 NL(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let u=0,a,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 y=e.bMarks[c]+e.tShift[c];const x=e.eMarks[c];if(y<x&&(a=e.src.charCodeAt(y),(a===45||a===61)&&(y=e.skipChars(y,a),y=e.skipSpaces(y),y>=x))){u=a===61?1:2;break}}if(e.sCount[c]<0)continue;let v=!1;for(let y=0,x=i.length;y<x;y++)if(i[y](e,c,n,!0)){v=!0;break}if(v)break}if(!u)return!1;const f=e.getLines(t,c,e.blkIndent,!1).trim();e.line=c+1;const h=e.push("heading_open","h"+String(u),1);h.markup=String.fromCharCode(a),h.map=[t,e.line];const p=e.push("inline","",0);p.content=f,p.map=[t,e.line-1],p.children=[];const m=e.push("heading_close","h"+String(u),-1);return m.markup=String.fromCharCode(a),e.parentType=r,!0}function OL(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let u=t+1;for(e.parentType="paragraph";u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)continue;let h=!1;for(let p=0,m=i.length;p<m;p++)if(i[p](e,u,n,!0)){h=!0;break}if(h)break}const a=e.getLines(t,u,e.blkIndent,!1).trim();e.line=u;const c=e.push("paragraph_open","p",1);c.map=[t,e.line];const f=e.push("inline","",0);return f.content=a,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const Hd=[["table",sL,["paragraph","reference"]],["code",uL],["fence",aL,["paragraph","reference","blockquote","list"]],["blockquote",lL,["paragraph","reference","blockquote","list"]],["hr",cL,["paragraph","reference","blockquote","list"]],["list",dL,["paragraph","reference","blockquote"]],["reference",hL],["html_block",wL,["paragraph","reference","blockquote"]],["heading",DL,["paragraph","reference","blockquote"]],["lheading",NL],["paragraph",OL]];function Nh(){this.ruler=new Hn;for(let e=0;e<Hd.length;e++)this.ruler.push(Hd[e][0],Hd[e][1],{alt:(Hd[e][2]||[]).slice()})}Nh.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,u=e.md.options.maxNesting;let a=t,c=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=u){e.line=n;break}const f=e.line;let h=!1;for(let p=0;p<r;p++)if(h=i[p](e,a,n,!1),h){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!h)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),a=e.line,a<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}};Nh.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)};Nh.prototype.State=Ur;function cf(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}cf.prototype.pushPending=function(){const e=new sr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};cf.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new sr(e,t,n);let r=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=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};cf.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<n&&this.src.charCodeAt(u)===i;)u++;const a=u-e,c=u<n?this.src.charCodeAt(u):32,f=Vc(r)||$c(String.fromCharCode(r)),h=Vc(c)||$c(String.fromCharCode(c)),p=Pc(r),m=Pc(c),v=!m&&(!h||p||f),y=!p&&(!f||m||h);return{can_open:v&&(t||!y||f),can_close:y&&(t||!v||h),length:a}};cf.prototype.Token=sr;function RL(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 ML(e,t){let n=e.pos;for(;n<e.posMax&&!RL(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const kL=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function LL(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 r=e.pending.match(kL);if(!r)return!1;const u=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!a)return!1;let c=a.url;if(c.length<=u.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,-u.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-u.length,!0}function IL(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let u=i-1;for(;u>=1&&e.pending.charCodeAt(u-1)===32;)u--;e.pending=e.pending.slice(0,u),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<r&&yt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ny=[];for(let e=0;e<256;e++)Ny.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ny[e.charCodeAt(0)]=1});function FL(e,t){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),!!yt(r));)n++;return e.pos=n,!0}let u=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const c=e.src.charCodeAt(n+1);c>=56320&&c<=57343&&(u+=e.src[n+1],n++)}const a="\\"+u;if(!t){const c=e.push("text_special","",0);r<256&&Ny[r]!==0?c.content=u:c.content=a,c.markup=a,c.info="escape"}return e.pos=n+1,!0}function jL(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const u=e.posMax;for(;n<u&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(r,n),c=a.length;if(e.backticksScanned&&(e.backticks[c]||0)<=r)return t||(e.pending+=a),e.pos+=c,!0;let f=n,h;for(;(h=e.src.indexOf("`",f))!==-1;){for(f=h+1;f<u&&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=a,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+=a),e.pos+=c,!0}function PL(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==126)return!1;const r=e.scanDelims(e.pos,!0);let u=r.length;const a=String.fromCharCode(i);if(u<2)return!1;let c;u%2&&(c=e.push("text","",0),c.content=a,u--);for(let f=0;f<u;f+=2)c=e.push("text","",0),c.content=a+a,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function N4(e,t){let n;const i=[],r=t.length;for(let u=0;u<r;u++){const a=t[u];if(a.marker!==126||a.end===-1)continue;const c=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[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 u=i.pop();let a=u+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,u!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[u],e.tokens[u]=n)}}function $L(e){const t=e.tokens_meta,n=e.tokens_meta.length;N4(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&N4(e,t[i].delimiters)}const N_={tokenize:PL,postProcess:$L};function VL(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==95&&i!==42)return!1;const r=e.scanDelims(e.pos,i===42);for(let u=0;u<r.length;u++){const a=e.push("text","",0);a.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function O4(e,t){const n=t.length;for(let i=n-1;i>=0;i--){const r=t[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const u=t[r.end],a=i>0&&t[i-1].end===r.end+1&&t[i-1].marker===r.marker&&t[i-1].token===r.token-1&&t[r.end+1].token===u.token+1,c=String.fromCharCode(r.marker),f=e.tokens[r.token];f.type=a?"strong_open":"em_open",f.tag=a?"strong":"em",f.nesting=1,f.markup=a?c+c:c,f.content="";const h=e.tokens[u.token];h.type=a?"strong_close":"em_close",h.tag=a?"strong":"em",h.nesting=-1,h.markup=a?c+c:c,h.content="",a&&(e.tokens[t[i-1].token].content="",e.tokens[t[r.end+1].token].content="",i--)}}function BL(e){const t=e.tokens_meta,n=e.tokens_meta.length;O4(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&O4(e,t[i].delimiters)}const O_={tokenize:VL,postProcess:BL};function UL(e,t){let n,i,r,u,a="",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,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let x=y+1;if(x<m&&e.src.charCodeAt(x)===40){for(h=!1,x++;x<m&&(n=e.src.charCodeAt(x),!(!yt(n)&&n!==10));x++);if(x>=m)return!1;if(f=x,r=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?x=r.pos:a="",f=x;x<m&&(n=e.src.charCodeAt(x),!(!yt(n)&&n!==10));x++);if(r=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<m&&f!==x&&r.ok)for(c=r.str,x=r.pos;x<m&&(n=e.src.charCodeAt(x),!(!yt(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=y+1):x=y+1,i||(i=e.src.slice(v,y)),u=e.env.references[Dh(i)],!u)return e.pos=p,!1;a=u.href,c=u.title}if(!t){e.pos=v,e.posMax=y;const S=e.push("link_open","a",1),_=[["href",a]];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 zL(e,t){let n,i,r,u,a,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 y=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(u=x+1,u<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(n=e.src.charCodeAt(u),!(!yt(n)&&n!==10));u++);if(u>=v)return!1;for(h=u,c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),c.ok&&(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?u=c.pos:p=""),h=u;u<v&&(n=e.src.charCodeAt(u),!(!yt(n)&&n!==10));u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&h!==u&&c.ok)for(f=c.str,u=c.pos;u<v&&(n=e.src.charCodeAt(u),!(!yt(n)&&n!==10));u++);else f="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=m,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&e.src.charCodeAt(u)===91?(h=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?r=e.src.slice(h,u++):u=x+1):u=x+1,r||(r=e.src.slice(y,x)),a=e.env.references[Dh(r)],!a)return e.pos=m,!1;p=a.href,f=a.title}if(!t){i=e.src.slice(y,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=u,e.posMax=v,!0}const HL=/^([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])?)*)$/,qL=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function GL(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const u=e.src.slice(i+1,n);if(qL.test(u)){const a=e.md.normalizeLink(u);if(!e.md.validateLink(a))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(u);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=u.length+2,!0}if(HL.test(u)){const a=e.md.normalizeLink("mailto:"+u);if(!e.md.validateLink(a))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(u);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=u.length+2,!0}return!1}function YL(e){return/^<a[>\s]/i.test(e)}function QL(e){return/^<\/a\s*>/i.test(e)}function XL(e){const t=e|32;return t>=97&&t<=122}function WL(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 r=e.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!XL(r))return!1;const u=e.src.slice(i).match(CL);if(!u)return!1;if(!t){const a=e.push("html_inline","",0);a.content=u[0],YL(a.content)&&e.linkLevel++,QL(a.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const ZL=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,KL=/^&([a-z][a-z0-9]{1,31});/i;function JL(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 u=e.src.slice(n).match(ZL);if(u){if(!t){const a=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),c=e.push("text_special","",0);c.content=wy(a)?U0(a):U0(65533),c.markup=u[0],c.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(KL);if(u){const a=S_(u[0]);if(a!==u[0]){if(!t){const c=e.push("text_special","",0);c.content=a,c.markup=u[0],c.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function R4(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const u=[];for(let a=0;a<n;a++){const c=e[a];if(u.push(0),(e[i].marker!==c.marker||r!==c.token-1)&&(i=a),r=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-u[i]-1,p=h;for(;h>f;h-=u[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 y=h>0&&!e[h-1].open?u[h-1]+1:0;u[a]=a-h+y,u[h]=y,c.open=!1,m.end=a,m.close=!1,p=-1,r=-2;break}}}p!==-1&&(t[c.marker][(c.open?3:0)+(c.length||0)%3]=p)}}function eI(e){const t=e.tokens_meta,n=e.tokens_meta.length;R4(e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&R4(t[i].delimiters)}function tI(e){let t,n,i=0;const r=e.tokens,u=e.tokens.length;for(t=n=0;t<u;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,r[t].type==="text"&&t+1<u&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const P1=[["text",ML],["linkify",LL],["newline",IL],["escape",FL],["backticks",jL],["strikethrough",N_.tokenize],["emphasis",O_.tokenize],["link",UL],["image",zL],["autolink",GL],["html_inline",WL],["entity",JL]],$1=[["balance_pairs",eI],["strikethrough",N_.postProcess],["emphasis",O_.postProcess],["fragments_join",tI]];function ff(){this.ruler=new Hn;for(let e=0;e<P1.length;e++)this.ruler.push(P1[e][0],P1[e][1]);this.ruler2=new Hn;for(let e=0;e<$1.length;e++)this.ruler2.push($1[e][0],$1[e][1])}ff.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,u=e.cache;if(typeof u[t]<"u"){e.pos=u[t];return}let a=!1;if(e.level<r){for(let c=0;c<i;c++)if(e.level++,a=n[c](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,u[t]=e.pos};ff.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const u=e.pos;let a=!1;if(e.level<r){for(let c=0;c<n;c++)if(a=t[c](e,!1),a){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ff.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const u=this.ruler2.getRules(""),a=u.length;for(let c=0;c<a;c++)u[c](r)};ff.prototype.State=cf;function nI(e){const t={};e=e||{},t.src_Any=v_.source,t.src_Cc=y_.source,t.src_Z=x_.source,t.src_P=Cy.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 av(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){e[i]=n[i]})}),e}function Oh(e){return Object.prototype.toString.call(e)}function iI(e){return Oh(e)==="[object String]"}function rI(e){return Oh(e)==="[object Object]"}function oI(e){return Oh(e)==="[object RegExp]"}function M4(e){return Oh(e)==="[object Function]"}function sI(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const R_={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function uI(e){return Object.keys(e||{}).reduce(function(t,n){return t||R_.hasOwnProperty(n)},!1)}const aI={"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}}},lI="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]",cI="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function fI(e){e.__index__=-1,e.__text_cache__=""}function dI(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}function k4(){return function(e,t){t.normalize(e)}}function z0(e){const t=e.re=nI(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(lI),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 r=[];e.__compiled__={};function u(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,rI(f)){oI(f.validate)?h.validate=dI(f.validate):M4(f.validate)?h.validate=f.validate:u(c,f),M4(f.normalize)?h.normalize=f.normalize:f.normalize?u(c,f):h.normalize=k4();return}if(iI(f)){r.push(c);return}u(c,f)}),r.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:k4()};const a=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(sI).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),fI(e)}function hI(e,t){const n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function lv(e,t){const n=new hI(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function di(e,t){if(!(this instanceof di))return new di(e,t);t||uI(e)&&(t=e,e={}),this.__opts__=av({},R_,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=av({},aI,e),this.__compiled__={},this.__tlds__=cI,this.__tlds_replaced__=!1,this.re={},z0(this)}di.prototype.add=function(t,n){return this.__schemas__[t]=n,z0(this),this};di.prototype.set=function(t){return this.__opts__=av(this.__opts__,t),this};di.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,i,r,u,a,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(u=this.testSchemaAt(t,n[2],f.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;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&&(a=i.index+i[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=t.indexOf("@"),p>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,c=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=c))),this.__index__>=0};di.prototype.pretest=function(t){return this.re.pretest.test(t)};di.prototype.testSchemaAt=function(t,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,i,this):0};di.prototype.match=function(t){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(lv(this,i)),i=this.__last_index__);let r=i?t.slice(i):t;for(;this.test(r);)n.push(lv(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null};di.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,lv(this,0)):null};di.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(i,r,u){return i!==u[r-1]}).reverse(),z0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,z0(this),this)};di.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};di.prototype.onCompile=function(){};const Pa=2147483647,Dr=36,Oy=1,Bc=26,pI=38,mI=700,M_=72,k_=128,L_="-",gI=/^xn--/,vI=/[^\0-\x7F]/,yI=/[\x2E\u3002\uFF0E\uFF61]/g,bI={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V1=Dr-Oy,Nr=Math.floor,B1=String.fromCharCode;function ys(e){throw new RangeError(bI[e])}function xI(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function I_(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(yI,".");const r=e.split("."),u=xI(r,t).join(".");return i+u}function F_(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const u=e.charCodeAt(n++);(u&64512)==56320?t.push(((r&1023)<<10)+(u&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const EI=e=>String.fromCodePoint(...e),SI=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Dr},L4=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},j_=function(e,t,n){let i=0;for(e=n?Nr(e/mI):e>>1,e+=Nr(e/t);e>V1*Bc>>1;i+=Dr)e=Nr(e/V1);return Nr(i+(V1+1)*e/(e+pI))},P_=function(e){const t=[],n=e.length;let i=0,r=k_,u=M_,a=e.lastIndexOf(L_);a<0&&(a=0);for(let c=0;c<a;++c)e.charCodeAt(c)>=128&&ys("not-basic"),t.push(e.charCodeAt(c));for(let c=a>0?a+1:0;c<n;){const f=i;for(let p=1,m=Dr;;m+=Dr){c>=n&&ys("invalid-input");const v=SI(e.charCodeAt(c++));v>=Dr&&ys("invalid-input"),v>Nr((Pa-i)/p)&&ys("overflow"),i+=v*p;const y=m<=u?Oy:m>=u+Bc?Bc:m-u;if(v<y)break;const x=Dr-y;p>Nr(Pa/x)&&ys("overflow"),p*=x}const h=t.length+1;u=j_(i-f,h,f==0),Nr(i/h)>Pa-r&&ys("overflow"),r+=Nr(i/h),i%=h,t.splice(i++,0,r)}return String.fromCodePoint(...t)},$_=function(e){const t=[];e=F_(e);const n=e.length;let i=k_,r=0,u=M_;for(const f of e)f<128&&t.push(B1(f));const a=t.length;let c=a;for(a&&t.push(L_);c<n;){let f=Pa;for(const p of e)p>=i&&p<f&&(f=p);const h=c+1;f-i>Nr((Pa-r)/h)&&ys("overflow"),r+=(f-i)*h,i=f;for(const p of e)if(p<i&&++r>Pa&&ys("overflow"),p===i){let m=r;for(let v=Dr;;v+=Dr){const y=v<=u?Oy:v>=u+Bc?Bc:v-u;if(m<y)break;const x=m-y,S=Dr-y;t.push(B1(L4(y+x%S,0))),m=Nr(x/S)}t.push(B1(L4(m,0))),u=j_(r,h,c===a),r=0,++c}++r,++i}return t.join("")},TI=function(e){return I_(e,function(t){return gI.test(t)?P_(t.slice(4).toLowerCase()):t})},_I=function(e){return I_(e,function(t){return vI.test(t)?"xn--"+$_(t):t})},V_={version:"2.3.1",ucs2:{decode:F_,encode:EI},decode:P_,encode:$_,toASCII:_I,toUnicode:TI},CI={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},AI={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"]}}},wI={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"]}}},DI={default:CI,zero:AI,commonmark:wI},NI=/^(vbscript|javascript|file|data):/,OI=/^data:image\/(gif|png|jpeg|webp);/;function RI(e){const t=e.trim().toLowerCase();return NI.test(t)?OI.test(t):!0}const B_=["http:","https:","mailto:"];function MI(e){const t=_y(e,!0);if(t.hostname&&(!t.protocol||B_.indexOf(t.protocol)>=0))try{t.hostname=V_.toASCII(t.hostname)}catch{}return lf(Ty(t))}function kI(e){const t=_y(e,!0);if(t.hostname&&(!t.protocol||B_.indexOf(t.protocol)>=0))try{t.hostname=V_.toUnicode(t.hostname)}catch{}return Ga(Ty(t),Ga.defaultChars+"%")}function Ri(e,t){if(!(this instanceof Ri))return new Ri(e,t);t||Ay(e)||(t=e||{},e="default"),this.inline=new ff,this.block=new Nh,this.core=new Dy,this.renderer=new il,this.linkify=new di,this.validateLink=RI,this.normalizeLink=MI,this.normalizeLinkText=kI,this.utils=Ik,this.helpers=wh({},$k),this.options={},this.configure(e),t&&this.set(t)}Ri.prototype.set=function(e){return wh(this.options,e),this};Ri.prototype.configure=function(e){const t=this;if(Ay(e)){const n=e;if(e=DI[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};Ri.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ri.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ri.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ri.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};Ri.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ri.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Ri.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const H0=new Ri({breaks:!1,linkify:!0});function LI(e,t,{schema:n,setSchemaReference:i},r,u){af([],{useCommonAddons:!1}).then(c=>{let f,h,p,m,v,y,x,S,_;c.on(t,"select",(T,N)=>{if(!f){const A=N.parentNode;f=document.createElement("div"),f.className="CodeMirror-hint-information",A.append(f);const D=document.createElement("header");D.className="CodeMirror-hint-information-header",f.append(D),h=document.createElement("span"),h.className="CodeMirror-hint-information-field-name",D.append(h),p=document.createElement("span"),p.className="CodeMirror-hint-information-type-name-pill",D.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",a),p.append(v),y=document.createElement("span"),p.append(y),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,F=parseInt(window.getComputedStyle(f).maxHeight.replace(/px$/,""),10)||0,B=()=>{f&&(f.style.paddingTop=A.scrollTop+M+"px",f.style.maxHeight=A.scrollTop+F+"px")};A.addEventListener("scroll",B);let k;A.addEventListener("DOMNodeRemoved",k=$=>{$.target===A&&(A.removeEventListener("scroll",B),A.removeEventListener("DOMNodeRemoved",k),f?.removeEventListener("click",a),f=null,h=null,p=null,m=null,v=null,y=null,x=null,S=null,_=null,k=null)})}if(h&&(h.textContent=T.text),p&&m&&v&&y)if(T.type){p.style.display="inline";const A=D=>{$t(D)?(y.textContent="!"+y.textContent,A(D.ofType)):kn(D)?(m.textContent+="[",y.textContent="]"+y.textContent,A(D.ofType)):v.textContent=D.name};m.textContent="",y.textContent="",A(T.type)}else m.textContent="",v.textContent="",y.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 a(c){const f=r?.referencePlugin;if(!n||!f||!(c.currentTarget instanceof HTMLElement))return;const h=c.currentTarget.textContent||"",p=n.getType(h);p&&(r.setVisiblePlugin(f),i({kind:"Type",type:p}),u?.(p))}}function Qa(e,t){let n;return function(...i){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...i)},e)}}function qd(e,t){const n=me.c(4);let i,r;n[0]!==e||n[1]!==t?(i=()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},r=[e,t],n[0]=e,n[1]=t,n[2]=i,n[3]=r):(i=n[2],r=n[3]),E.useEffect(i,r)}function Rh(e,t,n){const i=me.c(5);let r,u;i[0]!==e||i[1]!==t||i[2]!==n?(r=()=>{e?.setOption(t,n)},u=[e,t,n],i[0]=e,i[1]=t,i[2]=n,i[3]=r,i[4]=u):(r=i[3],u=i[4]),E.useEffect(r,u)}function U_(e,t,n,i,r){const u=me.c(9);let a;u[0]!==r?(a={nonNull:!0,caller:r},u[0]=r,u[1]=a):a=u[1];const{updateActiveTabValues:c}=En(a);let f,h;u[2]!==t||u[3]!==e||u[4]!==n||u[5]!==i||u[6]!==c?(f=()=>{if(!e)return;const{storage:p}=tl.getState(),m=Qa(500,x=>{n!==null&&p.set(n,x)}),v=Qa(100,x=>{c({[i]:x})}),y=(x,S)=>{if(!S)return;const _=x.getValue();m(_),v(_),t?.(_)};return e.on("change",y),()=>e.off("change",y)},h=[t,e,n,i,c],u[2]=t,u[3]=e,u[4]=n,u[5]=i,u[6]=c,u[7]=f,u[8]=h):(f=u[7],h=u[8]),E.useEffect(f,h)}function z_(e,t){const n=me.c(7),{schema:i,setSchemaReference:r}=Vr(),u=Ah();let a,c;n[0]!==t||n[1]!==e||n[2]!==u||n[3]!==i||n[4]!==r?(a=()=>{if(!e)return;const f=(h,p)=>{LI(h,p,{schema:i,setSchemaReference:r},u,v=>{t?.({kind:"Type",type:v,schema:i||void 0})})};return e.on("hasCompletion",f),()=>e.off("hasCompletion",f)},c=[t,e,u,i,r],n[0]=t,n[1]=e,n[2]=u,n[3]=i,n[4]=r,n[5]=a,n[6]=c):(a=n[5],c=n[6]),E.useEffect(a,c)}function Or(e,t,n){const i=me.c(5);let r,u;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(e){for(const a of t)e.removeKeyMap(a);if(n){const a={};for(const c of t)a[c]=()=>n();e.addKeyMap(a)}}},u=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=u):(r=i[3],u=i[4]),E.useEffect(r,u)}const II=Ry,FI=df,jI=hf,PI=H_;function Ry(e){const t=me.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:r}=n,u=i||II;let a;t[2]!==u?(a={nonNull:!0,caller:u},t[2]=u,t[3]=a):a=t[3];const{queryEditor:c}=En(a);let f;return t[4]!==r||t[5]!==c?(f=()=>{if(!c)return;const h=c.getValue();HM(h),r?.(h)},t[4]=r,t[5]=c,t[6]=f):f=t[6],f}function df(e){const t=me.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,r=i||FI;let u;t[2]!==r?(u={nonNull:!0,caller:r},t[2]=r,t[3]=u):u=t[3];const{queryEditor:a}=En(u),{schema:c}=Vr();let f;return t[4]!==a||t[5]!==c?(f=()=>{const h=a?.documentAST,p=a?.getValue();!h||!p||a.setValue(ci(RR(h,c)))},t[4]=a,t[5]=c,t[6]=f):f=t[6],f}function $I(e){return ci(Nu(e))}function hf(e){const t=me.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:r}=n,u=r===void 0?$I:r,a=i||jI;let c;t[2]!==a?(c={nonNull:!0,caller:a},t[2]=a,t[3]=c):c=t[3];const{queryEditor:f,headerEditor:h,variableEditor:p}=En(c);let m;return t[4]!==h||t[5]!==u||t[6]!==f||t[7]!==p?(m=async()=>{if(p){const v=p.getValue();try{const y=JSON.stringify(JSON.parse(v),null,2);y!==v&&p.setValue(y)}catch{}}if(h){const v=h.getValue();try{const y=JSON.stringify(JSON.parse(v),null,2);y!==v&&h.setValue(y)}catch{}}if(f){const v=f.getValue();try{const y=await u(v);y!==v&&f.setValue(y)}catch{}}},t[4]=h,t[5]=u,t[6]=f,t[7]=p,t[8]=m):m=t[8],m}function H_(e){const t=me.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:r}=n,{schema:u}=Vr(),a=r||PI;let c;t[2]!==a?(c={nonNull:!0,caller:a},t[2]=a,t[3]=c):c=t[3];const{queryEditor:f}=En(c);let h;return t[4]!==i||t[5]!==f||t[6]!==u?(h=()=>{if(!f)return;const p=f.getValue(),{insertions:m,result:v}=CR(u,p,i);return m&&m.length>0&&f.operation(()=>{const y=f.getCursor(),x=f.indexFromPos(y);f.setValue(v||"");let S;S=0;const _=m.map(N=>{const{index:A,string:D}=N;return S=S+D.length,f.markText(f.posFromIndex(A+S),f.posFromIndex(A+S),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const N of _)N.clear()},7e3);let T=x;for(const{index:N,string:A}of m)N<x&&(T=T+A.length);f.setCursor(f.posFromIndex(T))}),v},t[4]=i,t[5]=f,t[6]=u,t[7]=h):h=t[7],h}function VI(){return af([Je(()=>import("./javascript-BpcBZqdo.js").then(e=>e.j),__vite__mapDeps([15,1]))])}const Gd=q_;function q_(e,t){const n=me.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:u,onEdit:a,readOnly:c}=i,f=r===void 0?Th:r,h=u===void 0?_h:u,p=c===void 0?!1:c,m=t||Gd;let v;n[2]!==m?(v={nonNull:!0,caller:m},n[2]=m,n[3]=v):v=n[3];const{initialHeaders:y,headerEditor:x,setHeaderEditor:S,shouldPersistHeaders:_}=En(v),T=rl(),N=t||Gd;let A;n[4]!==N?(A={caller:N},n[4]=N,n[5]=A):A=n[5];const D=df(A),R=t||Gd;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const F=hf(M),B=E.useRef(null);let k,$;n[8]!==f||n[9]!==y||n[10]!==p||n[11]!==S?(k=()=>{let W;return W=!0,VI().then(J=>{if(!W)return;const L=B.current;if(!L)return;const q=J(L,{value:y,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:Ch});q.addKeyMap({"Cmd-Space"(){q.showHint({completeSingle:!1,container:L})},"Ctrl-Space"(){q.showHint({completeSingle:!1,container:L})},"Alt-Space"(){q.showHint({completeSingle:!1,container:L})},"Shift-Space"(){q.showHint({completeSingle:!1,container:L})}}),q.on("keyup",BI),S(q)}),()=>{W=!1}},$=[f,y,p,S],n[8]=f,n[9]=y,n[10]=p,n[11]=S,n[12]=k,n[13]=$):(k=n[12],$=n[13]),E.useEffect(k,$),Rh(x,"keyMap",h),U_(x,a,_?y0:null,"headers",Gd);let H;n[14]===Symbol.for("react.memo_cache_sentinel")?(H=["Cmd-Enter","Ctrl-Enter"],n[14]=H):H=n[14],Or(x,H,T?.run);let Y;n[15]===Symbol.for("react.memo_cache_sentinel")?(Y=["Shift-Ctrl-P"],n[15]=Y):Y=n[15],Or(x,Y,F);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],Or(x,se,D),B}function BI(e,t){const{code:n,key:i,shiftKey:r}=t,u=n.startsWith("Key"),a=!r&&n.startsWith("Digit");(u||a||i==="_"||i==='"')&&e.execCommand("autocomplete")}const y0="headers",UI=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),zI=new RegExp("["+UI.join("")+"]","g");function HI(e){return e.replace(zI," ")}function qI(){return af([Je(()=>import("./comment-D59pNPCf.js").then(e=>e.c),__vite__mapDeps([16,1])),Je(()=>import("./search-z1HtMMX7.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),Je(()=>import("./hint-CpMoR3It.js"),__vite__mapDeps([18,0,1,2,19])),Je(()=>import("./lint-6HS258n4.js"),__vite__mapDeps([20,0,1,19])),Je(()=>import("./info-DzkKLAOh.js"),__vite__mapDeps([21,0,1,22,23,24])),Je(()=>import("./jump-CSZttLu_.js"),__vite__mapDeps([25,0,1,22,23])),Je(()=>import("./mode-3antXsbc.js"),__vite__mapDeps([26,0,1,27]))])}const Yd=G_;function GI(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function YI(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 QI(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function XI(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function G_(e,t){const n=me.c(40);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:u,onClickReference:a,onCopyQuery:c,onEdit:f,onPrettifyQuery:h,readOnly:p}=i,m=r===void 0?Th:r,v=u===void 0?_h:u,y=p===void 0?!1:p,{schema:x,setSchemaReference:S}=Vr(),_=t||Yd;let T;n[2]!==_?(T={nonNull:!0,caller:_},n[2]=_,n[3]=T):T=n[3];const{externalFragments:N,initialQuery:A,queryEditor:D,setOperationName:R,setQueryEditor:M,validationRules:F,variableEditor:B,updateActiveTabValues:k}=En(T),$=rl(),H=nl(),Y=Ah(),se=t||Yd;let W;n[4]!==c||n[5]!==se?(W={caller:se,onCopyQuery:c},n[4]=c,n[5]=se,n[6]=W):W=n[6];const J=Ry(W),L=t||Yd;let q;n[7]!==L?(q={caller:L},n[7]=L,n[8]=q):q=n[8];const j=df(q),P=t||Yd;let ne;n[9]!==h||n[10]!==P?(ne={caller:P,onPrettifyQuery:h},n[9]=h,n[10]=P,n[11]=ne):ne=n[11];const I=hf(ne),U=E.useRef(null),ie=E.useRef(void 0),ee=E.useRef(JI);let he,de;n[12]!==a||n[13]!==Y||n[14]!==S?(he=()=>{ee.current=_e=>{const Pe=Y?.referencePlugin;Pe&&(Y.setVisiblePlugin(Pe),S(_e),a?.(_e))}},de=[a,Y,S],n[12]=a,n[13]=Y,n[14]=S,n[15]=he,n[16]=de):(he=n[15],de=n[16]),E.useEffect(he,de);let oe,fe;n[17]!==m||n[18]!==A||n[19]!==y||n[20]!==M?(oe=()=>{let _e;return _e=!0,qI().then(Pe=>{if(!_e)return;ie.current=Pe;const De=U.current;if(!De)return;const ke=Pe(De,{value:A,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:m,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:y?"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:Co.EXECUTABLE}},info:{schema:void 0,renderDescription:KI,onClick(ct){ee.current(ct)}},jump:{schema:void 0,onClick(ct){ee.current(ct)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Ch,"Cmd-S"(){},"Ctrl-S"(){}}}),_t=function(){ke.showHint({completeSingle:!0,container:De})};ke.addKeyMap({"Cmd-Space":_t,"Ctrl-Space":_t,"Alt-Space":_t,"Shift-Space":_t,"Shift-Alt-Space":_t}),ke.on("keyup",ZI);let Xe;Xe=!1,ke.on("startCompletion",()=>{Xe=!0}),ke.on("endCompletion",()=>{Xe=!1}),ke.on("keydown",(ct,Ii)=>{Ii.key==="Escape"&&Xe&&Ii.stopPropagation()}),ke.on("beforeChange",WI),ke.documentAST=null,ke.operationName=null,ke.operations=null,ke.variableToType=null,M(ke)}),()=>{_e=!1}},fe=[m,A,y,M],n[17]=m,n[18]=A,n[19]=y,n[20]=M,n[21]=oe,n[22]=fe):(oe=n[21],fe=n[22]),E.useEffect(oe,fe),Rh(D,"keyMap",v);let ge,Ne;n[23]!==f||n[24]!==D||n[25]!==x||n[26]!==R||n[27]!==H||n[28]!==k||n[29]!==B?(ge=()=>{if(!D)return;const _e=function(ke){var _t;const Xe=DM(x,ke.getValue()),ct=MR(ke.operations??void 0,ke.operationName??void 0,Xe?.operations);return ke.documentAST=Xe?.documentAST??null,ke.operationName=ct??null,ke.operations=Xe?.operations??null,B&&(GI(B,Xe),(_t=ie.current)==null||_t.signal(B,"change",B)),Xe?{...Xe,operationName:ct}:null},Pe=Qa(100,De=>{const ke=De.getValue();H.set(Y_,ke);const _t=De.operationName,Xe=_e(De);Xe?.operationName!==void 0&&H.set(rF,Xe.operationName),f?.(ke,Xe?.documentAST),Xe?.operationName&&_t!==Xe.operationName&&R(Xe.operationName),k({query:ke,operationName:Xe?.operationName??null})});return _e(D),D.on("change",Pe),()=>D.off("change",Pe)},Ne=[f,D,x,R,H,B,k],n[23]=f,n[24]=D,n[25]=x,n[26]=R,n[27]=H,n[28]=k,n[29]=B,n[30]=ge,n[31]=Ne):(ge=n[30],Ne=n[31]),E.useEffect(ge,Ne),eF(D,x??null,ie),tF(D,F??null,ie),nF(D,N,ie),z_(D,a);const Te=$?.run;let pt;n[32]!==D||n[33]!==Te||n[34]!==R?(pt=()=>{var _e;if(!Te||!D||!D.operations||!D.hasFocus()){Te?.();return}const Pe=D.indexFromPos(D.getCursor());let De;for(const ke of D.operations)ke.loc&&ke.loc.start<=Pe&&ke.loc.end>=Pe&&(De=(_e=ke.name)==null?void 0:_e.value);De&&De!==D.operationName&&R(De),Te()},n[32]=D,n[33]=Te,n[34]=R,n[35]=pt):pt=n[35];const Ae=pt;let mt;n[36]===Symbol.for("react.memo_cache_sentinel")?(mt=["Cmd-Enter","Ctrl-Enter"],n[36]=mt):mt=n[36],Or(D,mt,Ae);let dn;n[37]===Symbol.for("react.memo_cache_sentinel")?(dn=["Shift-Ctrl-C"],n[37]=dn):dn=n[37],Or(D,dn,J);let hn;n[38]===Symbol.for("react.memo_cache_sentinel")?(hn=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=hn):hn=n[38],Or(D,hn,I);let Sn;return n[39]===Symbol.for("react.memo_cache_sentinel")?(Sn=["Shift-Ctrl-M"],n[39]=Sn):Sn=n[39],Or(D,Sn,j),U}function WI(e,t){var n;if(t.origin==="paste"){const i=t.text.map(HI);(n=t.update)==null||n.call(t,t.from,t.to,i)}}function ZI(e,t){iF.test(t.key)&&e.execCommand("autocomplete")}function KI(e){return H0.render(e)}function JI(){}function eF(e,t,n){const i=me.c(5);let r,u;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(!e)return;const a=e.options.lint.schema!==t;YI(e,t),a&&n.current&&n.current.signal(e,"change",e)},u=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=u):(r=i[3],u=i[4]),E.useEffect(r,u)}function tF(e,t,n){const i=me.c(5);let r,u;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(!e)return;const a=e.options.lint.validationRules!==t;QI(e,t),a&&n.current&&n.current.signal(e,"change",e)},u=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=u):(r=i[3],u=i[4]),E.useEffect(r,u)}function nF(e,t,n){const i=me.c(7);let r;i[0]!==t?(r=[...t.values()],i[0]=t,i[1]=r):r=i[1];const u=r;let a,c;i[2]!==n||i[3]!==e||i[4]!==u?(a=()=>{if(!e)return;const f=e.options.lint.externalFragments!==u;XI(e,u),f&&n.current&&n.current.signal(e,"change",e)},c=[e,u,n],i[2]=n,i[3]=e,i[4]=u,i[5]=a,i[6]=c):(a=i[5],c=i[6]),E.useEffect(a,c)}const iF=/^[a-zA-Z0-9_@(]$/,Y_="query",rF="operationName";function oF({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:i,query:r,variables:u,shouldPersistHeaders:a}){const{storage:c}=tl.getState(),f=c.get(Uc);try{if(!f)throw new Error("Storage for tabs is empty");const h=JSON.parse(f),p=a?n:void 0;if(sF(h)){const m=q0({query:r,variables:u,headers:p});let v=-1;for(let y=0;y<h.tabs.length;y++){const x=h.tabs[y];x.hash=q0({query:x.query,variables:x.variables,headers:x.headers}),x.hash===m&&(v=y)}if(v>=0)h.activeTabIndex=v;else{const y=r?My(r):null;h.tabs.push({id:Z_(),hash:m,title:y||ky,query:r,variables:u,headers:n,operationName:y,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:r??e,variables:u,headers:n??t}]).map(X_)}}}function sF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&aF(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(uF)}function uF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&I4(e,"id")&&I4(e,"title")&&uc(e,"query")&&uc(e,"variables")&&uc(e,"headers")&&uc(e,"operationName")&&uc(e,"response")}function aF(e,t){return t in e&&typeof e[t]=="number"}function I4(e,t){return t in e&&typeof e[t]=="string"}function uc(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function lF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i}){return E.useCallback(r=>{const u=e?.getValue()??null,a=t?.getValue()??null,c=n?.getValue()??null,f=e?.operationName??null,h=i?.getValue()??null;return W_(r,{query:u,variables:a,headers:c,response:h,operationName:f})},[e,t,n,i])}function Q_(e,t=!1){return JSON.stringify(e,(n,i)=>n==="hash"||n==="response"||!t&&n==="headers"?null:i)}function cF({shouldPersistHeaders:e}){return E.useCallback(t=>{const{storage:n}=tl.getState();Qa(500,r=>{n.set(Uc,r)})(Q_(t,e))},[e])}function fF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i,defaultHeaders:r}){return E.useCallback(({query:u,variables:a,headers:c,response:f})=>{e?.setValue(u??""),t?.setValue(a??""),n?.setValue(c??r??""),i?.setValue(f??"")},[n,e,i,t,r])}function X_({query:e=null,variables:t=null,headers:n=null}={}){const i=e?My(e):null;return{id:Z_(),hash:q0({query:e,variables:t,headers:n}),title:i||ky,query:e,variables:t,headers:n,operationName:i,response:null}}function W_(e,t){return{...e,tabs:e.tabs.map((n,i)=>{if(i!==e.activeTabIndex)return n;const r={...n,...t};return{...r,hash:q0(r),title:r.operationName||(r.query?My(r.query):void 0)||ky}})}}function Z_(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function q0(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function My(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return n?.[2]??null}function dF(){const{storage:e}=tl.getState(),t=e.get(Uc);if(t){const n=JSON.parse(t);e.set(Uc,JSON.stringify(n,(i,r)=>i==="headers"?null:r))}}const ky="<untitled>",Uc="tabState";function hF(){return af([Je(()=>import("./hint-XtQOonBB.js"),__vite__mapDeps([28,0,1,23])),Je(()=>import("./lint-BqA8lDxr.js"),__vite__mapDeps([29,0,1])),Je(()=>import("./mode-CTGBiqzT.js"),__vite__mapDeps([30,0,1,27]))])}const Qd=K_;function K_(e,t){const n=me.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:u,onClickReference:a,onEdit:c,readOnly:f}=i,h=r===void 0?Th:r,p=u===void 0?_h:u,m=f===void 0?!1:f,v=t||Qd;let y;n[2]!==v?(y={nonNull:!0,caller:v},n[2]=v,n[3]=y):y=n[3];const{initialVariables:x,variableEditor:S,setVariableEditor:_}=En(y),T=rl(),N=t||Qd;let A;n[4]!==N?(A={caller:N},n[4]=N,n[5]=A):A=n[5];const D=df(A),R=t||Qd;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const F=hf(M),B=E.useRef(null);let k,$;n[8]!==h||n[9]!==x||n[10]!==m||n[11]!==_?(k=()=>{let W;return W=!0,hF().then(J=>{if(!W)return;const L=B.current;if(!L)return;const q=J(L,{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:L,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ch});q.addKeyMap({"Cmd-Space"(){q.showHint({completeSingle:!1,container:L})},"Ctrl-Space"(){q.showHint({completeSingle:!1,container:L})},"Alt-Space"(){q.showHint({completeSingle:!1,container:L})},"Shift-Space"(){q.showHint({completeSingle:!1,container:L})}}),q.on("keyup",pF),_(q)}),()=>{W=!1}},$=[h,x,m,_],n[8]=h,n[9]=x,n[10]=m,n[11]=_,n[12]=k,n[13]=$):(k=n[12],$=n[13]),E.useEffect(k,$),Rh(S,"keyMap",p),U_(S,c,J_,"variables",Qd),z_(S,a);let H;n[14]===Symbol.for("react.memo_cache_sentinel")?(H=["Cmd-Enter","Ctrl-Enter"],n[14]=H):H=n[14],Or(S,H,T?.run);let Y;n[15]===Symbol.for("react.memo_cache_sentinel")?(Y=["Shift-Ctrl-P"],n[15]=Y):Y=n[15],Or(S,Y,F);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],Or(S,se,D),B}function pF(e,t){const{code:n,key:i,shiftKey:r}=t,u=n.startsWith("Key"),a=!r&&n.startsWith("Digit");(u||a||i==="_"||i==='"')&&e.execCommand("autocomplete")}const J_="variables",F4=`# Welcome to GraphiQL
|
|
182
|
+
#
|
|
183
|
+
# GraphiQL is an in-browser tool for writing, validating, and
|
|
184
|
+
# testing GraphQL queries.
|
|
185
|
+
#
|
|
186
|
+
# Type queries into this side of the screen, and you will see intelligent
|
|
187
|
+
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
188
|
+
# validation errors highlighted within the text.
|
|
189
|
+
#
|
|
190
|
+
# GraphQL queries typically start with a "{" character. Lines that start
|
|
191
|
+
# with a # are ignored.
|
|
192
|
+
#
|
|
193
|
+
# An example GraphQL query might look like:
|
|
194
|
+
#
|
|
195
|
+
# {
|
|
196
|
+
# field(arg: "value") {
|
|
197
|
+
# subField
|
|
198
|
+
# }
|
|
199
|
+
# }
|
|
200
|
+
#
|
|
201
|
+
# Keyboard shortcuts:
|
|
202
|
+
#
|
|
203
|
+
# Prettify query: Shift-Ctrl-P (or press the prettify button)
|
|
204
|
+
#
|
|
205
|
+
# Merge fragments: Shift-Ctrl-M (or press the merge button)
|
|
206
|
+
#
|
|
207
|
+
# Run Query: Ctrl-Enter (or press the play button)
|
|
208
|
+
#
|
|
209
|
+
# Auto Complete: Ctrl-Space (or just start typing)
|
|
210
|
+
#
|
|
211
|
+
|
|
212
|
+
`,eC=h_("EditorContext"),mF=e=>{const t=me.c(88),n=nl(),[i,r]=E.useState(null),[u,a]=E.useState(null),[c,f]=E.useState(null),[h,p]=E.useState(null);let m;t[0]!==e.shouldPersistHeaders||t[1]!==n?(m=()=>{const _e=n.get(U1)!==null;return e.shouldPersistHeaders!==!1&&_e?n.get(U1)==="true":!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=m):m=t[2];const[v,y]=E.useState(m);qd(i,e.headers),qd(u,e.query),qd(c,e.response),qd(h,e.variables);let x;t[3]!==v?(x={shouldPersistHeaders:v},t[3]=v,t[4]=x):x=t[4];const S=cF(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 _e=e.query??n.get(Y_)??null,Pe=e.variables??n.get(J_)??null,De=e.headers??n.get(y0)??null,ke=e.response??"",_t=oF({query:_e,variables:Pe,headers:De,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||F4,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:v});return S(_t),{query:_e??(_t.activeTabIndex===0?_t.tabs[0].query:null)??"",variables:Pe??"",headers:De??e.defaultHeaders??"",response:ke,tabState:_t}},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(_),[N,A]=E.useState(T.tabState);let D;t[16]!==i||t[17]!==n||t[18]!==N?(D=_e=>{if(_e){n.set(y0,i?.getValue()??"");const Pe=Q_(N,!0);n.set(Uc,Pe)}else n.set(y0,""),dF();y(_e),n.set(U1,_e.toString())},t[16]=i,t[17]=n,t[18]=N,t[19]=D):D=t[19];const R=D,M=E.useRef(void 0);let F,B;t[20]!==e.shouldPersistHeaders||t[21]!==R?(F=()=>{const _e=!!e.shouldPersistHeaders;M?.current!==_e&&(R(_e),M.current=_e)},B=[e.shouldPersistHeaders,R],t[20]=e.shouldPersistHeaders,t[21]=R,t[22]=F,t[23]=B):(F=t[22],B=t[23]),E.useEffect(F,B);let k;t[24]!==i||t[25]!==u||t[26]!==c||t[27]!==h?(k={queryEditor:u,variableEditor:h,headerEditor:i,responseEditor:c},t[24]=i,t[25]=u,t[26]=c,t[27]=h,t[28]=k):k=t[28];const $=lF(k),{onTabChange:H,defaultHeaders:Y,defaultQuery:se,children:W}=e;let J;t[29]!==Y||t[30]!==i||t[31]!==u||t[32]!==c||t[33]!==h?(J={queryEditor:u,variableEditor:h,headerEditor:i,responseEditor:c,defaultHeaders:Y},t[29]=Y,t[30]=i,t[31]=u,t[32]=c,t[33]=h,t[34]=J):J=t[34];const L=fF(J);let q;t[35]!==Y||t[36]!==se||t[37]!==H||t[38]!==L||t[39]!==S||t[40]!==$?(q=()=>{A(_e=>{const Pe=$(_e),De={tabs:[...Pe.tabs,X_({headers:Y,query:se??F4})],activeTabIndex:Pe.tabs.length};return S(De),L(De.tabs[De.activeTabIndex]),H?.(De),De})},t[35]=Y,t[36]=se,t[37]=H,t[38]=L,t[39]=S,t[40]=$,t[41]=q):q=t[41];const j=q;let P;t[42]!==H||t[43]!==L||t[44]!==S?(P=_e=>{A(Pe=>{const De={...Pe,activeTabIndex:_e};return S(De),L(De.tabs[De.activeTabIndex]),H?.(De),De})},t[42]=H,t[43]=L,t[44]=S,t[45]=P):P=t[45];const ne=P;let I;t[46]!==H||t[47]!==L||t[48]!==S?(I=_e=>{A(Pe=>{const De=Pe.tabs[Pe.activeTabIndex],ke={tabs:_e,activeTabIndex:_e.indexOf(De)};return S(ke),L(ke.tabs[ke.activeTabIndex]),H?.(ke),ke})},t[46]=H,t[47]=L,t[48]=S,t[49]=I):I=t[49];const U=I;let ie;t[50]!==H||t[51]!==L||t[52]!==S?(ie=_e=>{A(Pe=>{const De={tabs:Pe.tabs.filter((ke,_t)=>_e!==_t),activeTabIndex:Math.max(Pe.activeTabIndex-1,0)};return S(De),L(De.tabs[De.activeTabIndex]),H?.(De),De})},t[50]=H,t[51]=L,t[52]=S,t[53]=ie):ie=t[53];const ee=ie;let he;t[54]!==H||t[55]!==S?(he=_e=>{A(Pe=>{const De=W_(Pe,_e);return S(De),H?.(De),De})},t[54]=H,t[55]=S,t[56]=he):he=t[56];const de=he,{onEditOperationName:oe}=e;let fe;t[57]!==oe||t[58]!==u||t[59]!==de?(fe=_e=>{u&&(gF(u,_e),de({operationName:_e}),oe?.(_e))},t[57]=oe,t[58]=u,t[59]=de,t[60]=fe):fe=t[60];const ge=fe;let Ne,Te;if(t[61]!==e.externalFragments){if(Te=new Map,Array.isArray(e.externalFragments))for(const _e of e.externalFragments)Te.set(_e.name.value,_e);else if(typeof e.externalFragments=="string")er(Nu(e.externalFragments,{}),{FragmentDefinition(_e){Te.set(_e.name.value,_e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=Te}else Te=t[62];Ne=Te;const pt=Ne;let Ae;t[63]!==e.validationRules?(Ae=e.validationRules||[],t[63]=e.validationRules,t[64]=Ae):Ae=t[64];const mt=Ae;let dn;t[65]!==j||t[66]!==ne||t[67]!==ee||t[68]!==pt||t[69]!==i||t[70]!==T.headers||t[71]!==T.query||t[72]!==T.response||t[73]!==T.variables||t[74]!==U||t[75]!==u||t[76]!==c||t[77]!==ge||t[78]!==R||t[79]!==v||t[80]!==N||t[81]!==de||t[82]!==mt||t[83]!==h?(dn={...N,addTab:j,changeTab:ne,moveTab:U,closeTab:ee,updateActiveTabValues:de,headerEditor:i,queryEditor:u,responseEditor:c,variableEditor:h,setHeaderEditor:r,setQueryEditor:a,setResponseEditor:f,setVariableEditor:p,setOperationName:ge,initialQuery:T.query,initialVariables:T.variables,initialHeaders:T.headers,initialResponse:T.response,externalFragments:pt,validationRules:mt,shouldPersistHeaders:v,setShouldPersistHeaders:R},t[65]=j,t[66]=ne,t[67]=ee,t[68]=pt,t[69]=i,t[70]=T.headers,t[71]=T.query,t[72]=T.response,t[73]=T.variables,t[74]=U,t[75]=u,t[76]=c,t[77]=ge,t[78]=R,t[79]=v,t[80]=N,t[81]=de,t[82]=mt,t[83]=h,t[84]=dn):dn=t[84];const hn=dn;let Sn;return t[85]!==W||t[86]!==hn?(Sn=w.jsx(eC.Provider,{value:hn,children:W}),t[85]=W,t[86]=hn,t[87]=Sn):Sn=t[87],Sn};function gF(e,t){e.operationName=t}const En=p_(eC),U1="shouldPersistHeaders",tC=h_("ExecutionContext"),cv=e=>{const t=me.c(26),{fetcher:n,getDefaultFieldNames:i,children:r,operationName:u}=e;if(typeof n!="function")throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:cv},t[0]=a):a=t[0];const{externalFragments:c,headerEditor:f,queryEditor:h,responseEditor:p,variableEditor:m,updateActiveTabValues:v}=En(a);let y;t[1]!==i?(y={getDefaultFieldNames:i,caller:cv},t[1]=i,t[2]=y):y=t[2];const x=H_(y),[S,_]=E.useState(!1),[T,N]=E.useState(null),A=E.useRef(0);let D;t[3]!==T?(D=()=>{T?.unsubscribe(),_(!1),N(null)},t[3]=T,t[4]=D):D=t[4];const R=D;let M;t[5]!==x||t[6]!==c||t[7]!==n||t[8]!==f||t[9]!==u||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=ie=>{p.setValue(ie),v({response:ie})};A.current=A.current+1;const W=A.current;let J=x()||h.getValue();const L=m?.getValue();let q;try{q=j4({json:L,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(ie){const ee=ie;se(ee instanceof Error?ee.message:`${ee}`);return}const j=f?.getValue();let P;try{P=j4({json:j,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(ie){const ee=ie;se(ee instanceof Error?ee.message:`${ee}`);return}if(c){const ie=h.documentAST?CM(h.documentAST,c):[];ie.length>0&&(J=J+(`
|
|
213
|
+
`+ie.map(yF).join(`
|
|
214
|
+
`)))}se(""),_(!0);const ne=u??h.operationName??void 0,I=P??void 0,U=h.documentAST??void 0;try{const ie={},ee=oe=>{if(W!==A.current)return;let fe=Array.isArray(oe)?oe:!1;if(!fe&&typeof oe=="object"&&oe!==null&&"hasNext"in oe&&(fe=[oe]),fe){for(const ge of fe)nC(ie,ge);_(!1),se(Hg(ie))}else{const ge=Hg(oe);_(!1),se(ge)}},de=await n({query:J,variables:q,operationName:ne},{headers:I,documentAST:U});bT(de)?N(de.subscribe({next(oe){ee(oe)},error(oe){_(!1),oe&&se(L0(oe)),N(null)},complete(){_(!1),N(null)}})):xT(de)?(N({unsubscribe:()=>{var oe,fe;return(fe=(oe=de[Symbol.asyncIterator]()).return)==null?void 0:fe.call(oe)}}),await vF(ee,de),_(!1),N(null)):ee(de)}catch(ie){const ee=ie;_(!1),se(L0(ee)),N(null)}},t[5]=x,t[6]=c,t[7]=n,t[8]=f,t[9]=u,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 F=M,B=!!T,k=u??null;let $;t[17]!==S||t[18]!==F||t[19]!==R||t[20]!==B||t[21]!==k?($={isFetching:S,isSubscribed:B,operationName:k,run:F,stop:R},t[17]=S,t[18]=F,t[19]=R,t[20]=B,t[21]=k,t[22]=$):$=t[22];const H=$;let Y;return t[23]!==r||t[24]!==H?(Y=w.jsx(tC.Provider,{value:H,children:r}),t[23]=r,t[24]=H,t[25]=Y):Y=t[25],Y};async function vF(e,t){for await(const n of t)e(n)}const rl=p_(tC);function j4({json:e,errorMessageParse:t,errorMessageType:n}){let i;try{i=e&&e.trim()!==""?JSON.parse(e):void 0}catch(u){throw new Error(`${t}: ${u instanceof Error?u.message:u}.`)}const r=typeof i=="object"&&i!==null&&!Array.isArray(i);if(i!==void 0&&!r)throw new Error(n);return i}const ac=new WeakMap;function nC(e,t){var n,i,r;let u=["data",...t.path??[]];for(const f of[e,t])if(f.pending){let h=ac.get(e);h===void 0&&(h=new Map,ac.set(e,h));for(const{id:p,path:m}of f.pending)h.set(p,["data",...m])}const{items:a}=t;if(a){const{id:f}=t;if(f){if(u=(n=ac.get(e))==null?void 0:n.get(f),u===void 0)throw new Error("Invalid incremental delivery format.");IM(e,u.join(".")).push(...a)}else{u=["data",...t.path??[]];for(const h of a)R1(e,u.join("."),h),u[u.length-1]++}}const{data:c}=t;if(c){const{id:f}=t;if(f){if(u=(i=ac.get(e))==null?void 0:i.get(f),u===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:h}=t;h!==void 0&&(u=[...u,...h])}R1(e,u.join("."),c,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&R1(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const f of t.incremental)nC(e,f);if(t.completed)for(const{id:f,errors:h}of t.completed)(r=ac.get(e))==null||r.delete(f),h&&(e.errors||(e.errors=[]),e.errors.push(...h))}function yF(e){return ci(e)}const bF=e=>{const t=me.c(45),{children:n,dangerouslyAssumeSchemaIsValid:i,defaultQuery:r,defaultHeaders:u,defaultTabs:a,externalFragments:c,fetcher:f,getDefaultFieldNames:h,headers:p,inputValueDeprecation:m,introspectionQueryName:v,onEditOperationName:y,onSchemaChange:x,onTabChange:S,onTogglePluginVisibility:_,operationName:T,plugins:N,referencePlugin:A,query:D,response:R,schema:M,schemaDescription:F,shouldPersistHeaders:B,storage:k,validationRules:$,variables:H,visiblePlugin:Y}=e;let se;t[0]!==u||t[1]!==r||t[2]!==a||t[3]!==c||t[4]!==p||t[5]!==y||t[6]!==S||t[7]!==D||t[8]!==R||t[9]!==B||t[10]!==$||t[11]!==H?(se={defaultQuery:r,defaultHeaders:u,defaultTabs:a,externalFragments:c,headers:p,onEditOperationName:y,onTabChange:S,query:D,response:R,shouldPersistHeaders:B,validationRules:$,variables:H},t[0]=u,t[1]=r,t[2]=a,t[3]=c,t[4]=p,t[5]=y,t[6]=S,t[7]=D,t[8]=R,t[9]=B,t[10]=$,t[11]=H,t[12]=se):se=t[12];const W=se;let J;t[13]!==i||t[14]!==f||t[15]!==m||t[16]!==v||t[17]!==x||t[18]!==M||t[19]!==F?(J={dangerouslyAssumeSchemaIsValid:i,fetcher:f,inputValueDeprecation:m,introspectionQueryName:v,onSchemaChange:x,schema:M,schemaDescription:F},t[13]=i,t[14]=f,t[15]=m,t[16]=v,t[17]=x,t[18]=M,t[19]=F,t[20]=J):J=t[20];const L=J;let q;t[21]!==f||t[22]!==h||t[23]!==T?(q={getDefaultFieldNames:h,fetcher:f,operationName:T},t[21]=f,t[22]=h,t[23]=T,t[24]=q):q=t[24];const j=q;let P;t[25]!==_||t[26]!==N||t[27]!==A||t[28]!==Y?(P={onTogglePluginVisibility:_,plugins:N,visiblePlugin:Y,referencePlugin:A},t[25]=_,t[26]=N,t[27]=A,t[28]=Y,t[29]=P):P=t[29];const ne=P;let I;t[30]!==n||t[31]!==ne?(I=w.jsx(qM,{...ne,children:n}),t[30]=n,t[31]=ne,t[32]=I):I=t[32];let U;t[33]!==j||t[34]!==I?(U=w.jsx(cv,{...j,children:I}),t[33]=j,t[34]=I,t[35]=U):U=t[35];let ie;t[36]!==L||t[37]!==U?(ie=w.jsx(g_,{...L,children:U}),t[36]=L,t[37]=U,t[38]=ie):ie=t[38];let ee;t[39]!==W||t[40]!==ie?(ee=w.jsx(mF,{...W,children:ie}),t[39]=W,t[40]=ie,t[41]=ee):ee=t[41];let he;return t[42]!==k||t[43]!==ee?(he=w.jsx(PM,{storage:k,children:ee}),t[42]=k,t[43]=ee,t[44]=he):he=t[44],he};function xF(e){const t=me.c(11),n=e===void 0?null:e,i=nl();let r;t[0]!==n||t[1]!==i?(r=()=>{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]=r):r=t[2];const[u,a]=E.useState(r);let c,f;t[3]!==u?(c=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),u&&document.body.classList.add(`graphiql-${u}`)},f=[u],t[3]=u,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||""),a(v)},t[6]=i,t[7]=h):h=t[7];const p=h;let m;return t[8]!==p||t[9]!==u?(m={theme:u,setTheme:p},t[8]=p,t[9]=u,t[10]=m):m=t[10],m}const z1="theme",EF=({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"})),SF=({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})),TF=({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})),_F=({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})),CF=({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"})),AF=({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})),wF=({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})),DF=({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"})),NF=({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})),OF=({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"})),RF=({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"})),MF=({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})),kF=({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"})),LF=({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"})),IF=({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})),FF=({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"})),jF=({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"})),PF=({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})),$F=({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})),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:"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"})),BF=({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"})),UF=({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"})),zF=({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"})),HF=({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})),qF=({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"})),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",fill:"currentColor",stroke:"currentColor"})),QF=({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})),XF=({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"})),WF=({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"})),ZF=({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"})),KF=it(EF),JF=it(SF),ej=it(TF),tj=it(_F),Ly=it(CF),nj=it(AF),ij=it(wF),rj=it(DF),oj=it(NF),sj=it(OF),uj=it(RF),aj=it(MF),lj=it(kF),cj=it(LF),fj=it(IF),dj=it(FF),hj=it(jF),pj=it(PF),mj=it($F),gj=it(VF),vj=it(BF),yj=it(UF),bj=it(zF),xj=it(HF),Ej=it(qF),Sj=it(GF),Tj=it(YF),_j=it(QF),Cj=it(XF),Aj=it(WF),Xd=it(ZF);function it(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=i=>{const r=me.c(2);let u;return r[0]!==i?(u=w.jsx(e,{title:t,...i}),r[0]=i,r[1]=u):u=r[1],u};return n.displayName=e.name,n}function iC(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=iC(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function dt(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=iC(e))&&(i&&(i+=" "),i+=t);return i}const fv=e=>{const t=me.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 r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:fv},t[3]=r):r=t[3];const{headerEditor:u}=En(r),a=q_(n,fv);let c,f;t[4]!==u||t[5]!==i?(c=()=>{i||u?.refresh()},f=[u,i],t[4]=u,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=dt("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==a||t[11]!==p?(m=w.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=m):m=t[12],m},wj=e=>{var t;const n=me.c(14);let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:null,height:null},n[0]=i):i=n[0];const[r,u]=E.useState(i),[a,c]=E.useState(null),f=E.useRef(null),h=(t=rC(e.token))==null?void 0:t.href;let p,m;n[1]!==h?(p=()=>{if(f.current){if(!h){u({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]!==r.height||n[5]!==r.width||n[6]!==a?(v=r.width!==null&&r.height!==null?w.jsxs("div",{children:[r.width,"x",r.height,a===null?null:" "+a]}):null,n[4]=r.height,n[5]=r.width,n[6]=a,n[7]=v):v=n[7];const y=v;let x;n[8]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{var T,N;u({width:((T=f.current)==null?void 0:T.naturalWidth)??null,height:((N=f.current)==null?void 0:N.naturalHeight)??null})},n[8]=x):x=n[8];let S;n[9]!==h?(S=w.jsx("img",{onLoad:x,ref:f,src:h}),n[9]=h,n[10]=S):S=n[10];let _;return n[11]!==y||n[12]!==S?(_=w.jsxs("div",{children:[S,y]}),n[11]=y,n[12]=S,n[13]=_):_=n[13],_},P4=Object.assign(wj,{shouldRender(e){const t=rC(e);return t?Dj(t):!1}});function rC(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 Dj(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}const oC=e=>{const t=me.c(2),n=G_(e,oC);let i;return t[0]!==n?(i=w.jsx("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=i):i=t[1],i};function Nj(){return af([Je(()=>import("./foldgutter-Jd2oNpfO.js").then(e=>e.f),__vite__mapDeps([7,1])),Je(()=>import("./brace-fold-EB2Pe2oz.js").then(e=>e.b),__vite__mapDeps([6,1])),Je(()=>import("./dialog-DBYEq9g4.js").then(e=>e.d),__vite__mapDeps([13,12,1])),Je(()=>import("./search-z1HtMMX7.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),Je(()=>import("./searchcursor-BIsUKLOX.js").then(e=>e.s),__vite__mapDeps([9,10,1])),Je(()=>import("./jump-to-line-C0wBP0hk.js").then(e=>e.j),__vite__mapDeps([11,1,12])),Je(()=>import("./sublime-BtlG2qS0.js").then(e=>e.s),__vite__mapDeps([14,1,10,4])),Je(()=>import("./mode-DSj0x7Ut.js"),__vite__mapDeps([31,0,1,27])),Je(()=>import("./info-addon-qIHJ_wS-.js"),__vite__mapDeps([24,0,1]))],{useCommonAddons:!1})}const Oj=sC;function sC(e,t){const n=me.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{responseTooltip:r,editorTheme:u,keyMap:a}=i,c=u===void 0?Th:u,f=a===void 0?_h:a,{fetchError:h,validationErrors:p}=Vr(),m=t||Oj;let v;n[2]!==m?(v={nonNull:!0,caller:m},n[2]=m,n[3]=v):v=n[3];const{initialResponse:y,responseEditor:x,setResponseEditor:S}=En(v),_=E.useRef(null),T=E.useRef(r);let N,A;n[4]!==r?(N=()=>{T.current=r},A=[r],n[4]=r,n[5]=N,n[6]=A):(N=n[5],A=n[6]),E.useEffect(N,A);let D,R;n[7]!==c||n[8]!==y||n[9]!==S?(D=()=>{let B;return B=!0,Nj().then(k=>{if(!B)return;const $=document.createElement("div"),H=yT.createRoot($);k.registerHelper("info","graphql-results",(W,J,L,q)=>{const j=T.current,P=[j&&w.jsx(j,{pos:q,token:W}),P4.shouldRender(W)&&w.jsx(P4,{token:W},"image-preview")].filter(Rj);if(P.length)return H.render(P),$;H.unmount()});const Y=_.current;if(!Y)return;const se=k(Y,{value:y,lineWrapping:!0,readOnly:!0,theme:c,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Ch});S(se)}),()=>{B=!1}},R=[c,y,S],n[7]=c,n[8]=y,n[9]=S,n[10]=D,n[11]=R):(D=n[10],R=n[11]),E.useEffect(D,R),Rh(x,"keyMap",f);let M,F;return n[12]!==h||n[13]!==x||n[14]!==p?(M=()=>{h&&x?.setValue(h),p.length&&x?.setValue(L0(p))},F=[x,h,p],n[12]=h,n[13]=x,n[14]=p,n[15]=M,n[16]=F):(M=n[15],F=n[16]),E.useEffect(M,F),_}function Rj(e){return!!e}const uC=e=>{const t=me.c(2),n=sC(e,uC);let i;return t[0]!==n?(i=w.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},dv=e=>{const t=me.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 r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:dv},t[3]=r):r=t[3];const{variableEditor:u}=En(r),a=K_(n,dv);let c,f;t[4]!==i||t[5]!==u?(c=()=>{i||u?.refresh()},f=[u,i],t[4]=i,t[5]=u,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=dt("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==a||t[11]!==p?(m=w.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=m):m=t[12],m};function H1(e){const t=me.c(31),{defaultSizeRelation:n,direction:i,initiallyHidden:r,onHiddenElementChange:u,sizeThresholdFirst:a,sizeThresholdSecond:c,storageKey:f}=e,h=n===void 0?1:n,p=a===void 0?100:a,m=c===void 0?100:c,v=nl();let y;t[0]!==v||t[1]!==f?(y=Qa(500,J=>{f&&v.set(f,J)}),t[0]=v,t[1]=f,t[2]=y):y=t[2];const x=y;let S;t[3]!==r||t[4]!==v||t[5]!==f?(S=()=>{const J=f&&v.get(f);return J===Wd||r==="first"?"first":J===Zd||r==="second"?"second":null},t[3]=r,t[4]=v,t[5]=f,t[6]=S):S=t[6];const[_,T]=E.useState(S);let N;t[7]!==_||t[8]!==u?(N=J=>{J!==_&&(T(J),u?.(J))},t[7]=_,t[8]=u,t[9]=N):N=t[9];const A=N,D=E.useRef(null),R=E.useRef(null),M=E.useRef(null),F=E.useRef(`${h}`);let B;t[10]!==v||t[11]!==f?(B=()=>{const J=f&&v.get(f)||F.current;D.current&&(D.current.style.flex=J===Wd||J===Zd?F.current:J),M.current&&(M.current.style.flex="1")},t[10]=v,t[11]=f,t[12]=B):B=t[12];let k;t[13]!==i||t[14]!==v||t[15]!==f?(k=[i,v,f],t[13]=i,t[14]=v,t[15]=f,t[16]=k):k=t[16],E.useEffect(B,k);let $,H;t[17]!==_||t[18]!==v||t[19]!==f?(H=()=>{const J=q=>{const j=q==="first"?D.current:M.current;if(j&&(j.style.left="-1000px",j.style.position="absolute",j.style.opacity="0",j.style.height="500px",j.style.width="500px",D.current)){const P=parseFloat(D.current.style.flex);(!Number.isFinite(P)||P<1)&&(D.current.style.flex="1")}},L=q=>{const j=q==="first"?D.current:M.current;if(j&&(j.style.width="",j.style.height="",j.style.opacity="",j.style.position="",j.style.left="",f)){const P=v.get(f);D.current&&P!==Wd&&P!==Zd&&(D.current.style.flex=P||F.current)}};_==="first"?J("first"):L("first"),_==="second"?J("second"):L("second")},$=[_,v,f],t[17]=_,t[18]=v,t[19]=f,t[20]=$,t[21]=H):($=t[20],H=t[21]),E.useEffect(H,$);let Y,se;t[22]!==i||t[23]!==A||t[24]!==p||t[25]!==m||t[26]!==x?(Y=()=>{if(!R.current||!D.current||!M.current)return;const J=R.current,L=D.current,q=L.parentElement,j=i==="horizontal"?"clientX":"clientY",P=i==="horizontal"?"left":"top",ne=i==="horizontal"?"right":"bottom",I=i==="horizontal"?"clientWidth":"clientHeight",U=function(he){if(!(he.target===he.currentTarget))return;he.preventDefault();const oe=he[j]-J.getBoundingClientRect()[P],fe=function(Te){if(Te.buttons===0)return ge();const pt=Te[j]-q.getBoundingClientRect()[P]-oe,Ae=q.getBoundingClientRect()[ne]-Te[j]+oe-J[I];if(pt<p)A("first"),x(Wd);else if(Ae<m)A("second"),x(Zd);else{A(null);const mt=`${pt/Ae}`;L.style.flex=mt,x(mt)}};function ge(){document.removeEventListener("mousemove",fe),document.removeEventListener("mouseup",ge)}document.addEventListener("mousemove",fe),document.addEventListener("mouseup",ge)};J.addEventListener("mousedown",U);const ie=function(){D.current&&(D.current.style.flex=F.current),x(F.current),A(null)};return J.addEventListener("dblclick",ie),()=>{J.removeEventListener("mousedown",U),J.removeEventListener("dblclick",ie)}},se=[i,A,p,m,x],t[22]=i,t[23]=A,t[24]=p,t[25]=m,t[26]=x,t[27]=Y,t[28]=se):(Y=t[27],se=t[28]),E.useEffect(Y,se);let W;return t[29]!==_?(W={dragBarRef:R,hiddenElement:_,firstRef:D,setHiddenElement:T,secondRef:M},t[29]=_,t[30]=W):W=t[30],W}const Wd="hide-first",Zd="hide-second",nn=E.forwardRef((e,t)=>{const n=me.c(6);let i;n[0]!==e.className?(i=dt("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=w.jsx("button",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});nn.displayName="UnStyledButton";const Zi=E.forwardRef((e,t)=>{const n=me.c(7);let i;n[0]!==e.className||n[1]!==e.state?(i=dt("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 r;return n[3]!==e||n[4]!==t||n[5]!==i?(r=w.jsx("button",{...e,ref:t,className:i}),n[3]=e,n[4]=t,n[5]=i,n[6]=r):r=n[6],r});Zi.displayName="Button";const hv=E.forwardRef((e,t)=>{const n=me.c(6);let i;n[0]!==e.className?(i=dt("graphiql-button-group",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=w.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});hv.displayName="ButtonGroup";function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function $4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mh(...e){return t=>{let n=!1;const i=e.map(r=>{const u=$4(r,t);return!n&&typeof u=="function"&&(n=!0),u});if(n)return()=>{for(let r=0;r<i.length;r++){const u=i[r];typeof u=="function"?u():$4(e[r],null)}}}}function rn(...e){return E.useCallback(Mh(...e),e)}function Mj(e,t){const n=E.createContext(t),i=u=>{const{children:a,...c}=u,f=E.useMemo(()=>c,Object.values(c));return w.jsx(n.Provider,{value:f,children:a})};i.displayName=e+"Provider";function r(u){const a=E.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[i,r]}function Mu(e,t=[]){let n=[];function i(u,a){const c=E.createContext(a),f=n.length;n=[...n,a];const h=m=>{const{scope:v,children:y,...x}=m,S=v?.[e]?.[f]||c,_=E.useMemo(()=>x,Object.values(x));return w.jsx(S.Provider,{value:_,children:y})};h.displayName=u+"Provider";function p(m,v){const y=v?.[e]?.[f]||c,x=E.useContext(y);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${u}\``)}return[h,p]}const r=()=>{const u=n.map(a=>E.createContext(a));return function(c){const f=c?.[e]||u;return E.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return r.scopeName=e,[i,kj(r,...t)]}function kj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(u){const a=i.reduce((c,{useScope:f,scopeName:h})=>{const m=f(u)[`__scope${h}`];return{...c,...m}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var _s=globalThis?.document?E.useLayoutEffect:()=>{},Lj=fy[" useId ".trim().toString()]||(()=>{}),Ij=0;function mu(e){const[t,n]=E.useState(Lj());return _s(()=>{n(i=>i??String(Ij++))},[e]),e||(t?`radix-${t}`:"")}var Fj=fy[" useInsertionEffect ".trim().toString()]||_s;function kh({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,u,a]=jj({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:r;{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=>{if(c){const m=Pj(p)?p(e):p;m!==e&&a.current?.(m)}else u(p)},[c,e,u,a]);return[f,h]}function jj({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),r=E.useRef(n),u=E.useRef(t);return Fj(()=>{u.current=t},[t]),E.useEffect(()=>{r.current!==n&&(u.current?.(n),r.current=n)},[n,r]),[n,i,u]}function Pj(e){return typeof e=="function"}var xn=vT();const $j=Du(xn);function zc(e){const t=Vj(e),n=E.forwardRef((i,r)=>{const{children:u,...a}=i,c=E.Children.toArray(u),f=c.find(Uj);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 w.jsx(t,{...a,ref:r,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return w.jsx(t,{...a,ref:r,children:u})});return n.displayName=`${e}.Slot`,n}function Vj(e){const t=E.forwardRef((n,i)=>{const{children:r,...u}=n;if(E.isValidElement(r)){const a=Hj(r),c=zj(u,r.props);return r.type!==E.Fragment&&(c.ref=i?Mh(i,a):a),E.cloneElement(r,c)}return E.Children.count(r)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aC=Symbol("radix.slottable");function Bj(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=aC,t}function Uj(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aC}function zj(e,t){const n={...t};for(const i in t){const r=e[i],u=t[i];/^on[A-Z]/.test(i)?r&&u?n[i]=(...c)=>{const f=u(...c);return r(...c),f}:r&&(n[i]=r):i==="style"?n[i]={...r,...u}:i==="className"&&(n[i]=[r,u].filter(Boolean).join(" "))}return{...e,...n}}function Hj(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Lt=qj.reduce((e,t)=>{const n=zc(`Primitive.${t}`),i=E.forwardRef((r,u)=>{const{asChild:a,...c}=r,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(f,{...c,ref:u})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function lC(e,t){e&&xn.flushSync(()=>e.dispatchEvent(t))}function wo(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function Gj(e,t=globalThis?.document){const n=wo(e);E.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var Yj="DismissableLayer",pv="dismissableLayer.update",Qj="dismissableLayer.pointerDownOutside",Xj="dismissableLayer.focusOutside",V4,cC=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lh=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:u,onInteractOutside:a,onDismiss:c,...f}=e,h=E.useContext(cC),[p,m]=E.useState(null),v=p?.ownerDocument??globalThis?.document,[,y]=E.useState({}),x=rn(t,F=>m(F)),S=Array.from(h.layers),[_]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(_),N=p?S.indexOf(p):-1,A=h.layersWithOutsidePointerEventsDisabled.size>0,D=N>=T,R=Kj(F=>{const B=F.target,k=[...h.branches].some($=>$.contains(B));!D||k||(r?.(F),a?.(F),F.defaultPrevented||c?.())},v),M=Jj(F=>{const B=F.target;[...h.branches].some($=>$.contains(B))||(u?.(F),a?.(F),F.defaultPrevented||c?.())},v);return Gj(F=>{N===h.layers.size-1&&(i?.(F),!F.defaultPrevented&&c&&(F.preventDefault(),c()))},v),E.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(V4=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),B4(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=V4)}},[p,v,n,h]),E.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),B4())},[p,h]),E.useEffect(()=>{const F=()=>y({});return document.addEventListener(pv,F),()=>document.removeEventListener(pv,F)},[]),w.jsx(Lt.div,{...f,ref:x,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,R.onPointerDownCapture)})});Lh.displayName=Yj;var Wj="DismissableLayerBranch",Zj=E.forwardRef((e,t)=>{const n=E.useContext(cC),i=E.useRef(null),r=rn(t,i);return E.useEffect(()=>{const u=i.current;if(u)return n.branches.add(u),()=>{n.branches.delete(u)}},[n.branches]),w.jsx(Lt.div,{...e,ref:r})});Zj.displayName=Wj;function Kj(e,t=globalThis?.document){const n=wo(e),i=E.useRef(!1),r=E.useRef(()=>{});return E.useEffect(()=>{const u=c=>{if(c.target&&!i.current){let f=function(){fC(Qj,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",u),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Jj(e,t=globalThis?.document){const n=wo(e),i=E.useRef(!1);return E.useEffect(()=>{const r=u=>{u.target&&!i.current&&fC(Xj,n,{originalEvent:u},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function B4(){const e=new CustomEvent(pv);document.dispatchEvent(e)}function fC(e,t,n,{discrete:i}){const r=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?lC(r,u):r.dispatchEvent(u)}var q1="focusScope.autoFocusOnMount",G1="focusScope.autoFocusOnUnmount",U4={bubbles:!1,cancelable:!0},eP="FocusScope",Iy=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:u,...a}=e,[c,f]=E.useState(null),h=wo(r),p=wo(u),m=E.useRef(null),v=rn(t,S=>f(S)),y=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let S=function(A){if(y.paused||!c)return;const D=A.target;c.contains(D)?m.current=D:gs(m.current,{select:!0})},_=function(A){if(y.paused||!c)return;const D=A.relatedTarget;D!==null&&(c.contains(D)||gs(m.current,{select:!0}))},T=function(A){if(document.activeElement===document.body)for(const R of A)R.removedNodes.length>0&&gs(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",_);const N=new MutationObserver(T);return c&&N.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",_),N.disconnect()}}},[i,c,y.paused]),E.useEffect(()=>{if(c){H4.add(y);const S=document.activeElement;if(!c.contains(S)){const T=new CustomEvent(q1,U4);c.addEventListener(q1,h),c.dispatchEvent(T),T.defaultPrevented||(tP(sP(dC(c)),{select:!0}),document.activeElement===S&&gs(c))}return()=>{c.removeEventListener(q1,h),setTimeout(()=>{const T=new CustomEvent(G1,U4);c.addEventListener(G1,p),c.dispatchEvent(T),T.defaultPrevented||gs(S??document.body,{select:!0}),c.removeEventListener(G1,p),H4.remove(y)},0)}}},[c,h,p,y]);const x=E.useCallback(S=>{if(!n&&!i||y.paused)return;const _=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(_&&T){const N=S.currentTarget,[A,D]=nP(N);A&&D?!S.shiftKey&&T===D?(S.preventDefault(),n&&gs(A,{select:!0})):S.shiftKey&&T===A&&(S.preventDefault(),n&&gs(D,{select:!0})):T===N&&S.preventDefault()}},[n,i,y.paused]);return w.jsx(Lt.div,{tabIndex:-1,...a,ref:v,onKeyDown:x})});Iy.displayName=eP;function tP(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(gs(i,{select:t}),document.activeElement!==n)return}function nP(e){const t=dC(e),n=z4(t,e),i=z4(t.reverse(),e);return[n,i]}function dC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z4(e,t){for(const n of e)if(!iP(n,{upTo:t}))return n}function iP(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 rP(e){return e instanceof HTMLInputElement&&"select"in e}function gs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rP(e)&&t&&e.select()}}var H4=oP();function oP(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=q4(e,t),e.unshift(t)},remove(t){e=q4(e,t),e[0]?.resume()}}}function q4(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function sP(e){return e.filter(t=>t.tagName!=="A")}var uP="Portal",Ih=E.forwardRef((e,t)=>{const{container:n,...i}=e,[r,u]=E.useState(!1);_s(()=>u(!0),[]);const a=n||r&&globalThis?.document?.body;return a?$j.createPortal(w.jsx(Lt.div,{...i,ref:t}),a):null});Ih.displayName=uP;function aP(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var zr=e=>{const{present:t,children:n}=e,i=lP(t),r=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),u=rn(i.ref,cP(r));return typeof n=="function"||i.isPresent?E.cloneElement(r,{ref:u}):null};zr.displayName="Presence";function lP(e){const[t,n]=E.useState(),i=E.useRef(null),r=E.useRef(e),u=E.useRef("none"),a=e?"mounted":"unmounted",[c,f]=aP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=Kd(i.current);u.current=c==="mounted"?h:"none"},[c]),_s(()=>{const h=i.current,p=r.current;if(p!==e){const v=u.current,y=Kd(h);e?f("MOUNT"):y==="none"||h?.display==="none"?f("UNMOUNT"):f(p&&v!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),_s(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,m=y=>{const S=Kd(i.current).includes(CSS.escape(y.animationName));if(y.target===t&&S&&(f("ANIMATION_END"),!r.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},v=y=>{y.target===t&&(u.current=Kd(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 Kd(e){return e?.animationName||"none"}function cP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Y1=0;function hC(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??G4()),document.body.insertAdjacentElement("beforeend",e[1]??G4()),Y1++,()=>{Y1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Y1--}},[])}function G4(){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 wr=function(){return wr=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},wr.apply(this,arguments)};function pC(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 r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function fP(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,u;i<r;i++)(u||!(i in t))&&(u||(u=Array.prototype.slice.call(t,0,i)),u[i]=t[i]);return e.concat(u||Array.prototype.slice.call(t))}var b0="right-scroll-bar-position",x0="width-before-scroll-bar",dP="with-scroll-bars-hidden",hP="--removed-body-scroll-bar-size";function Q1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pP(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var mP=typeof window<"u"?E.useLayoutEffect:E.useEffect,Y4=new WeakMap;function gP(e,t){var n=pP(null,function(i){return e.forEach(function(r){return Q1(r,i)})});return mP(function(){var i=Y4.get(n);if(i){var r=new Set(i),u=new Set(e),a=n.current;r.forEach(function(c){u.has(c)||Q1(c,null)}),u.forEach(function(c){r.has(c)||Q1(c,a)})}Y4.set(n,e)},[e]),n}function vP(e){return e}function yP(e,t){t===void 0&&(t=vP);var n=[],i=!1,r={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(u){var a=t(u,i);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(u){for(i=!0;n.length;){var a=n;n=[],a.forEach(u)}n={push:function(c){return u(c)},filter:function(){return n}}},assignMedium:function(u){i=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(u),a=n}var f=function(){var p=a;a=[],p.forEach(u)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){a.push(p),h()},filter:function(p){return a=a.filter(p),n}}}};return r}function bP(e){e===void 0&&(e={});var t=yP(null);return t.options=wr({async:!0,ssr:!1},e),t}var mC=function(e){var t=e.sideCar,n=pC(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,wr({},n))};mC.isSideCarExport=!0;function xP(e,t){return e.useMedium(t),mC}var gC=bP(),X1=function(){},Fh=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:X1,onWheelCapture:X1,onTouchMoveCapture:X1}),r=i[0],u=i[1],a=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,y=e.noRelative,x=e.noIsolation,S=e.inert,_=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,A=e.gapMode,D=pC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,M=gP([n,t]),F=wr(wr({},D),r);return E.createElement(E.Fragment,null,p&&E.createElement(R,{sideCar:gC,removeScrollBar:h,shards:m,noRelative:y,noIsolation:x,inert:S,setCallbacks:u,allowPinchZoom:!!_,lockRef:n,gapMode:A}),a?E.cloneElement(E.Children.only(c),wr(wr({},F),{ref:M})):E.createElement(N,wr({},F,{className:f,ref:M}),c))});Fh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fh.classNames={fullWidth:x0,zeroRight:b0};var EP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=EP();return t&&e.setAttribute("nonce",t),e}function TP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _P(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=SP())&&(TP(t,n),_P(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},AP=function(){var e=CP();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vC=function(){var e=AP(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},wP={left:0,top:0,right:0,gap:0},W1=function(e){return parseInt(e||"",10)||0},DP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[W1(n),W1(i),W1(r)]},NP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wP;var t=DP(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])}},OP=vC(),$a="data-scroll-locked",RP=function(e,t,n,i){var r=e.left,u=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
215
|
+
.`.concat(dP,` {
|
|
216
|
+
overflow: hidden `).concat(i,`;
|
|
217
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
218
|
+
}
|
|
219
|
+
body[`).concat($a,`] {
|
|
220
|
+
overflow: hidden `).concat(i,`;
|
|
221
|
+
overscroll-behavior: contain;
|
|
222
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
223
|
+
padding-left: `.concat(r,`px;
|
|
224
|
+
padding-top: `).concat(u,`px;
|
|
225
|
+
padding-right: `).concat(a,`px;
|
|
226
|
+
margin-left:0;
|
|
227
|
+
margin-top:0;
|
|
228
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
229
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.`).concat(b0,` {
|
|
233
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.`).concat(x0,` {
|
|
237
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.`).concat(b0," .").concat(b0,` {
|
|
241
|
+
right: 0 `).concat(i,`;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.`).concat(x0," .").concat(x0,` {
|
|
245
|
+
margin-right: 0 `).concat(i,`;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
body[`).concat($a,`] {
|
|
249
|
+
`).concat(hP,": ").concat(c,`px;
|
|
250
|
+
}
|
|
251
|
+
`)},Q4=function(){var e=parseInt(document.body.getAttribute($a)||"0",10);return isFinite(e)?e:0},MP=function(){E.useEffect(function(){return document.body.setAttribute($a,(Q4()+1).toString()),function(){var e=Q4()-1;e<=0?document.body.removeAttribute($a):document.body.setAttribute($a,e.toString())}},[])},kP=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;MP();var u=E.useMemo(function(){return NP(r)},[r]);return E.createElement(OP,{styles:RP(u,!t,r,n?"":"!important")})},mv=!1;if(typeof window<"u")try{var Jd=Object.defineProperty({},"passive",{get:function(){return mv=!0,!0}});window.addEventListener("test",Jd,Jd),window.removeEventListener("test",Jd,Jd)}catch{mv=!1}var Sa=mv?{passive:!1}:!1,LP=function(e){return e.tagName==="TEXTAREA"},yC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!LP(e)&&n[t]==="visible")},IP=function(e){return yC(e,"overflowY")},FP=function(e){return yC(e,"overflowX")},X4=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=bC(e,i);if(r){var u=xC(e,i),a=u[1],c=u[2];if(a>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},jP=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},PP=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},bC=function(e,t){return e==="v"?IP(t):FP(t)},xC=function(e,t){return e==="v"?jP(t):PP(t)},$P=function(e,t){return e==="h"&&t==="rtl"?-1:1},VP=function(e,t,n,i,r){var u=$P(e,window.getComputedStyle(t).direction),a=u*i,c=n.target,f=t.contains(c),h=!1,p=a>0,m=0,v=0;do{if(!c)break;var y=xC(e,c),x=y[0],S=y[1],_=y[2],T=S-_-u*x;(x||T)&&bC(e,c)&&(m+=T,v+=x);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}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},e0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W4=function(e){return[e.deltaX,e.deltaY]},Z4=function(e){return e&&"current"in e?e.current:e},BP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},UP=function(e){return`
|
|
252
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
253
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
254
|
+
`)},zP=0,Ta=[];function HP(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),r=E.useState(zP++)[0],u=E.useState(vC)[0],a=E.useRef(e);E.useEffect(function(){a.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var S=fP([e.lockRef.current],(e.shards||[]).map(Z4),!0).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[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!a.current.allowPinchZoom;var T=e0(S),N=n.current,A="deltaX"in S?S.deltaX:N[0]-T[0],D="deltaY"in S?S.deltaY:N[1]-T[1],R,M=S.target,F=Math.abs(A)>Math.abs(D)?"h":"v";if("touches"in S&&F==="h"&&M.type==="range")return!1;var B=window.getSelection(),k=B&&B.anchorNode,$=k?k===M||k.contains(M):!1;if($)return!1;var H=X4(F,M);if(!H)return!0;if(H?R=F:(R=F==="v"?"h":"v",H=X4(F,M)),!H)return!1;if(!i.current&&"changedTouches"in S&&(A||D)&&(i.current=R),!R)return!0;var Y=i.current||R;return VP(Y,_,S,Y==="h"?A:D)},[]),f=E.useCallback(function(S){var _=S;if(!(!Ta.length||Ta[Ta.length-1]!==u)){var T="deltaY"in _?W4(_):e0(_),N=t.current.filter(function(R){return R.name===_.type&&(R.target===_.target||_.target===R.shadowParent)&&BP(R.delta,T)})[0];if(N&&N.should){_.cancelable&&_.preventDefault();return}if(!N){var A=(a.current.shards||[]).map(Z4).filter(Boolean).filter(function(R){return R.contains(_.target)}),D=A.length>0?c(_,A[0]):!a.current.noIsolation;D&&_.cancelable&&_.preventDefault()}}},[]),h=E.useCallback(function(S,_,T,N){var A={name:S,delta:_,target:T,should:N,shadowParent:qP(T)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(D){return D!==A})},1)},[]),p=E.useCallback(function(S){n.current=e0(S),i.current=void 0},[]),m=E.useCallback(function(S){h(S.type,W4(S),S.target,c(S,e.lockRef.current))},[]),v=E.useCallback(function(S){h(S.type,e0(S),S.target,c(S,e.lockRef.current))},[]);E.useEffect(function(){return Ta.push(u),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Sa),document.addEventListener("touchmove",f,Sa),document.addEventListener("touchstart",p,Sa),function(){Ta=Ta.filter(function(S){return S!==u}),document.removeEventListener("wheel",f,Sa),document.removeEventListener("touchmove",f,Sa),document.removeEventListener("touchstart",p,Sa)}},[]);var y=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(u,{styles:UP(r)}):null,y?E.createElement(kP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GP=xP(gC,HP);var Fy=E.forwardRef(function(e,t){return E.createElement(Fh,wr({},e,{ref:t,sideCar:GP}))});Fy.classNames=Fh.classNames;var YP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_a=new WeakMap,t0=new WeakMap,n0={},Z1=0,EC=function(e){return e&&(e.host||EC(e.parentNode))},QP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=EC(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})},XP=function(e,t,n,i){var r=QP(t,Array.isArray(e)?e:[e]);n0[n]||(n0[n]=new WeakMap);var u=n0[n],a=[],c=new Set,f=new Set(r),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};r.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 y=v.getAttribute(i),x=y!==null&&y!=="false",S=(_a.get(v)||0)+1,_=(u.get(v)||0)+1;_a.set(v,S),u.set(v,_),a.push(v),S===1&&x&&t0.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(),Z1++,function(){a.forEach(function(m){var v=_a.get(m)-1,y=u.get(m)-1;_a.set(m,v),u.set(m,y),v||(t0.has(m)||m.removeAttribute(i),t0.delete(m)),y||m.removeAttribute(n)}),Z1--,Z1||(_a=new WeakMap,_a=new WeakMap,t0=new WeakMap,n0={})}},SC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=YP(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),XP(i,r,n,"aria-hidden")):function(){return null}},jh="Dialog",[TC]=Mu(jh),[WP,ur]=TC(jh),_C=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:u,modal:a=!0}=e,c=E.useRef(null),f=E.useRef(null),[h,p]=kh({prop:i,defaultProp:r??!1,onChange:u,caller:jh});return w.jsx(WP,{scope:t,triggerRef:c,contentRef:f,contentId:mu(),titleId:mu(),descriptionId:mu(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};_C.displayName=jh;var CC="DialogTrigger",AC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=ur(CC,n),u=rn(t,r.triggerRef);return w.jsx(Lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$y(r.open),...i,ref:u,onClick:Me(e.onClick,r.onOpenToggle)})});AC.displayName=CC;var jy="DialogPortal",[ZP,wC]=TC(jy,{forceMount:void 0}),DC=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,u=ur(jy,t);return w.jsx(ZP,{scope:t,forceMount:n,children:E.Children.map(i,a=>w.jsx(zr,{present:n||u.open,children:w.jsx(Ih,{asChild:!0,container:r,children:a})}))})};DC.displayName=jy;var G0="DialogOverlay",NC=E.forwardRef((e,t)=>{const n=wC(G0,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,u=ur(G0,e.__scopeDialog);return u.modal?w.jsx(zr,{present:i||u.open,children:w.jsx(JP,{...r,ref:t})}):null});NC.displayName=G0;var KP=zc("DialogOverlay.RemoveScroll"),JP=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=ur(G0,n);return w.jsx(Fy,{as:KP,allowPinchZoom:!0,shards:[r.contentRef],children:w.jsx(Lt.div,{"data-state":$y(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Su="DialogContent",OC=E.forwardRef((e,t)=>{const n=wC(Su,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,u=ur(Su,e.__scopeDialog);return w.jsx(zr,{present:i||u.open,children:u.modal?w.jsx(e$,{...r,ref:t}):w.jsx(t$,{...r,ref:t})})});OC.displayName=Su;var e$=E.forwardRef((e,t)=>{const n=ur(Su,e.__scopeDialog),i=E.useRef(null),r=rn(t,n.contentRef,i);return E.useEffect(()=>{const u=i.current;if(u)return SC(u)},[]),w.jsx(RC,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,u=>{u.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,u=>{const a=u.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&u.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,u=>u.preventDefault())})}),t$=E.forwardRef((e,t)=>{const n=ur(Su,e.__scopeDialog),i=E.useRef(!1),r=E.useRef(!1);return w.jsx(RC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(i.current||n.triggerRef.current?.focus(),u.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:u=>{e.onInteractOutside?.(u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=u.target;n.triggerRef.current?.contains(a)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&r.current&&u.preventDefault()}})}),RC=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:u,...a}=e,c=ur(Su,n),f=E.useRef(null),h=rn(t,f);return hC(),w.jsxs(w.Fragment,{children:[w.jsx(Iy,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:u,children:w.jsx(Lh,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":$y(c.open),...a,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(n$,{titleId:c.titleId}),w.jsx(r$,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Py="DialogTitle",MC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=ur(Py,n);return w.jsx(Lt.h2,{id:r.titleId,...i,ref:t})});MC.displayName=Py;var kC="DialogDescription",LC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=ur(kC,n);return w.jsx(Lt.p,{id:r.descriptionId,...i,ref:t})});LC.displayName=kC;var IC="DialogClose",FC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=ur(IC,n);return w.jsx(Lt.button,{type:"button",...i,ref:t,onClick:Me(e.onClick,()=>r.onOpenChange(!1))})});FC.displayName=IC;function $y(e){return e?"open":"closed"}var jC="DialogTitleWarning",[xJ,PC]=Mj(jC,{contentName:Su,titleName:Py,docsSlug:"dialog"}),n$=({titleId:e})=>{const t=PC(jC),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
255
|
+
|
|
256
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
257
|
+
|
|
258
|
+
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},i$="DialogDescriptionWarning",r$=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PC(i$).contentName}}.`;return E.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},o$=_C,s$=AC,u$=DC,a$=NC,l$=OC,c$=MC,f$=LC,d$=FC,h$=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"}),p$="VisuallyHidden",$C=E.forwardRef((e,t)=>w.jsx(Lt.span,{...e,ref:t,style:{...h$,...e.style}}));$C.displayName=p$;var VC=$C;const BC=E.forwardRef((e,t)=>{const n=me.c(8);let i;n[0]!==e.className?(i=dt("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r,u;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=w.jsx(VC,{children:"Close dialog"}),u=w.jsx(Ly,{}),n[2]=r,n[3]=u):(r=n[2],u=n[3]);let a;return n[4]!==e||n[5]!==t||n[6]!==i?(a=w.jsx(d$,{asChild:!0,children:w.jsxs(nn,{...e,ref:t,type:"button",className:i,children:[r,u]})}),n[4]=e,n[5]=t,n[6]=i,n[7]=a):a=n[7],a});BC.displayName="Dialog.Close";const m$=e=>{const t=me.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 r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=w.jsx(a$,{className:"graphiql-dialog-overlay"}),t[3]=r):r=t[3];let u;t[4]!==n?(u=w.jsxs(u$,{children:[r,w.jsx(l$,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=u):u=t[5];let a;return t[6]!==i||t[7]!==u?(a=w.jsx(o$,{...i,children:u}),t[6]=i,t[7]=u,t[8]=a):a=t[8],a},Ca=Object.assign(m$,{Close:BC,Title:c$,Trigger:s$,Description:f$});function UC(e){const t=e+"CollectionProvider",[n,i]=Mu(t),[r,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=S=>{const{scope:_,children:T}=S,N=Oe.useRef(null),A=Oe.useRef(new Map).current;return w.jsx(r,{scope:_,itemMap:A,collectionRef:N,children:T})};a.displayName=t;const c=e+"CollectionSlot",f=zc(c),h=Oe.forwardRef((S,_)=>{const{scope:T,children:N}=S,A=u(c,T),D=rn(_,A.collectionRef);return w.jsx(f,{ref:D,children:N})});h.displayName=c;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=zc(p),y=Oe.forwardRef((S,_)=>{const{scope:T,children:N,...A}=S,D=Oe.useRef(null),R=rn(_,D),M=u(p,T);return Oe.useEffect(()=>(M.itemMap.set(D,{ref:D,...A}),()=>{M.itemMap.delete(D)})),w.jsx(v,{[m]:"",ref:R,children:N})});y.displayName=p;function x(S){const _=u(e+"CollectionConsumer",S);return Oe.useCallback(()=>{const N=_.collectionRef.current;if(!N)return[];const A=Array.from(N.querySelectorAll(`[${m}]`));return Array.from(_.itemMap.values()).sort((M,F)=>A.indexOf(M.ref.current)-A.indexOf(F.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:a,Slot:h,ItemSlot:y},x,i]}var g$=E.createContext(void 0);function zC(e){const t=E.useContext(g$);return e||t||"ltr"}const v$=["top","right","bottom","left"],Cs=Math.min,ri=Math.max,Y0=Math.round,i0=Math.floor,Mr=e=>({x:e,y:e}),y$={left:"right",right:"left",bottom:"top",top:"bottom"};function gv(e,t,n){return ri(e,Cs(t,n))}function Do(e,t){return typeof e=="function"?e(t):e}function No(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function Vy(e){return e==="x"?"y":"x"}function By(e){return e==="y"?"height":"width"}function Rr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Uy(e){return Vy(Rr(e))}function b$(e,t,n){n===void 0&&(n=!1);const i=ol(e),r=Uy(e),u=By(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=Q0(a)),[a,Q0(a)]}function x$(e){const t=Q0(e);return[vv(e),t,vv(t)]}function vv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const K4=["left","right"],J4=["right","left"],E$=["top","bottom"],S$=["bottom","top"];function T$(e,t,n){switch(e){case"top":case"bottom":return n?t?J4:K4:t?K4:J4;case"left":case"right":return t?E$:S$;default:return[]}}function _$(e,t,n,i){const r=ol(e);let u=T$(No(e),n==="start",i);return r&&(u=u.map(a=>a+"-"+r),t&&(u=u.concat(u.map(vv)))),u}function Q0(e){const t=No(e);return y$[t]+e.slice(t.length)}function C$(e){return{top:0,right:0,bottom:0,left:0,...e}}function HC(e){return typeof e!="number"?C$(e):{top:e,right:e,bottom:e,left:e}}function X0(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function e5(e,t,n){let{reference:i,floating:r}=e;const u=Rr(t),a=Uy(t),c=By(a),f=No(t),h=u==="y",p=i.x+i.width/2-r.width/2,m=i.y+i.height/2-r.height/2,v=i[c]/2-r[c]/2;let y;switch(f){case"top":y={x:p,y:i.y-r.height};break;case"bottom":y={x:p,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:m};break;case"left":y={x:i.x-r.width,y:m};break;default:y={x:i.x,y:i.y}}switch(ol(t)){case"start":y[a]-=v*(n&&h?-1:1);break;case"end":y[a]+=v*(n&&h?-1:1);break}return y}async function A$(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:u,rects:a,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:y=0}=Do(t,e),x=HC(y),_=c[v?m==="floating"?"reference":"floating":m],T=X0(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(_)))==null||n?_:_.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:f})),N=m==="floating"?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(c.floating)),D=await(u.isElement==null?void 0:u.isElement(A))?await(u.getScale==null?void 0:u.getScale(A))||{x:1,y:1}:{x:1,y:1},R=X0(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:A,strategy:f}):N);return{top:(T.top-R.top+x.top)/D.y,bottom:(R.bottom-T.bottom+x.bottom)/D.y,left:(T.left-R.left+x.left)/D.x,right:(R.right-T.right+x.right)/D.x}}const w$=50,D$=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:u=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:A$},f=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:m}=e5(h,i,f),v=i,y=0;const x={};for(let S=0;S<u.length;S++){const _=u[S];if(!_)continue;const{name:T,fn:N}=_,{x:A,y:D,data:R,reset:M}=await N({x:p,y:m,initialPlacement:i,placement:v,strategy:r,middlewareData:x,rects:h,platform:c,elements:{reference:e,floating:t}});p=A??p,m=D??m,x[T]={...x[T],...R},M&&y<w$&&(y++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(h=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:p,y:m}=e5(h,v,f)),S=-1)}return{x:p,y:m,placement:v,strategy:r,middlewareData:x}},N$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:u,platform:a,elements:c,middlewareData:f}=t,{element:h,padding:p=0}=Do(e,t)||{};if(h==null)return{};const m=HC(p),v={x:n,y:i},y=Uy(r),x=By(y),S=await a.getDimensions(h),_=y==="y",T=_?"top":"left",N=_?"bottom":"right",A=_?"clientHeight":"clientWidth",D=u.reference[x]+u.reference[y]-v[y]-u.floating[x],R=v[y]-u.reference[y],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h));let F=M?M[A]:0;(!F||!await(a.isElement==null?void 0:a.isElement(M)))&&(F=c.floating[A]||u.floating[x]);const B=D/2-R/2,k=F/2-S[x]/2-1,$=Cs(m[T],k),H=Cs(m[N],k),Y=$,se=F-S[x]-H,W=F/2-S[x]/2+B,J=gv(Y,W,se),L=!f.arrow&&ol(r)!=null&&W!==J&&u.reference[x]/2-(W<Y?$:H)-S[x]/2<0,q=L?W<Y?W-Y:W-se:0;return{[y]:v[y]+q,data:{[y]:J,centerOffset:W-J-q,...L&&{alignmentOffset:q}},reset:L}}}),O$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:u,rects:a,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,..._}=Do(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const T=No(r),N=Rr(c),A=No(c)===c,D=await(f.isRTL==null?void 0:f.isRTL(h.floating)),R=v||(A||!S?[Q0(c)]:x$(c)),M=x!=="none";!v&&M&&R.push(..._$(c,S,x,D));const F=[c,...R],B=await f.detectOverflow(t,_),k=[];let $=((i=u.flip)==null?void 0:i.overflows)||[];if(p&&k.push(B[T]),m){const W=b$(r,a,D);k.push(B[W[0]],B[W[1]])}if($=[...$,{placement:r,overflows:k}],!k.every(W=>W<=0)){var H,Y;const W=(((H=u.flip)==null?void 0:H.index)||0)+1,J=F[W];if(J&&(!(m==="alignment"?N!==Rr(J):!1)||$.every(j=>Rr(j.placement)===N?j.overflows[0]>0:!0)))return{data:{index:W,overflows:$},reset:{placement:J}};let L=(Y=$.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:Y.placement;if(!L)switch(y){case"bestFit":{var se;const q=(se=$.filter(j=>{if(M){const P=Rr(j.placement);return P===N||P==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(P=>P>0).reduce((P,ne)=>P+ne,0)]).sort((j,P)=>j[1]-P[1])[0])==null?void 0:se[0];q&&(L=q);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function t5(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function n5(e){return v$.some(t=>e[t]>=0)}const R$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:r="referenceHidden",...u}=Do(e,t);switch(r){case"referenceHidden":{const a=await i.detectOverflow(t,{...u,elementContext:"reference"}),c=t5(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:n5(c)}}}case"escaped":{const a=await i.detectOverflow(t,{...u,altBoundary:!0}),c=t5(a,n.floating);return{data:{escapedOffsets:c,escaped:n5(c)}}}default:return{}}}}},qC=new Set(["left","top"]);async function M$(e,t){const{placement:n,platform:i,elements:r}=e,u=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=No(n),c=ol(n),f=Rr(n)==="y",h=qC.has(a)?-1:1,p=u&&f?-1:1,m=Do(t,e);let{mainAxis:v,crossAxis:y,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"&&(y=c==="end"?x*-1:x),f?{x:y*p,y:v*h}:{x:v*h,y:y*p}}const k$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:u,placement:a,middlewareData:c}=t,f=await M$(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:u+f.y,data:{...f,placement:a}}}}},L$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r,platform:u}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:N,y:A}=T;return{x:N,y:A}}},...h}=Do(e,t),p={x:n,y:i},m=await u.detectOverflow(t,h),v=Rr(No(r)),y=Vy(v);let x=p[y],S=p[v];if(a){const T=y==="y"?"top":"left",N=y==="y"?"bottom":"right",A=x+m[T],D=x-m[N];x=gv(A,x,D)}if(c){const T=v==="y"?"top":"left",N=v==="y"?"bottom":"right",A=S+m[T],D=S-m[N];S=gv(A,S,D)}const _=f.fn({...t,[y]:x,[v]:S});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[y]:a,[v]:c}}}}}},I$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:u,middlewareData:a}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=Do(e,t),p={x:n,y:i},m=Rr(r),v=Vy(m);let y=p[v],x=p[m];const S=Do(c,t),_=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const A=v==="y"?"height":"width",D=u.reference[v]-u.floating[A]+_.mainAxis,R=u.reference[v]+u.reference[A]-_.mainAxis;y<D?y=D:y>R&&(y=R)}if(h){var T,N;const A=v==="y"?"width":"height",D=qC.has(No(r)),R=u.reference[m]-u.floating[A]+(D&&((T=a.offset)==null?void 0:T[m])||0)+(D?0:_.crossAxis),M=u.reference[m]+u.reference[A]+(D?0:((N=a.offset)==null?void 0:N[m])||0)-(D?_.crossAxis:0);x<R?x=R:x>M&&(x=M)}return{[v]:y,[m]:x}}}},F$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:u,platform:a,elements:c}=t,{apply:f=()=>{},...h}=Do(e,t),p=await a.detectOverflow(t,h),m=No(r),v=ol(r),y=Rr(r)==="y",{width:x,height:S}=u.floating;let _,T;m==="top"||m==="bottom"?(_=m,T=v===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(T=m,_=v==="end"?"top":"bottom");const N=S-p.top-p.bottom,A=x-p.left-p.right,D=Cs(S-p[_],N),R=Cs(x-p[T],A),M=!t.middlewareData.shift;let F=D,B=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=A),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(F=N),M&&!v){const $=ri(p.left,0),H=ri(p.right,0),Y=ri(p.top,0),se=ri(p.bottom,0);y?B=x-2*($!==0||H!==0?$+H:ri(p.left,p.right)):F=S-2*(Y!==0||se!==0?Y+se:ri(p.top,p.bottom))}await f({...t,availableWidth:B,availableHeight:F});const k=await a.getDimensions(c.floating);return x!==k.width||S!==k.height?{reset:{rects:!0}}:{}}}};function Ph(){return typeof window<"u"}function sl(e){return GC(e)?(e.nodeName||"").toLowerCase():"#document"}function si(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hr(e){var t;return(t=(GC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GC(e){return Ph()?e instanceof Node||e instanceof si(e).Node:!1}function tr(e){return Ph()?e instanceof Element||e instanceof si(e).Element:!1}function Ro(e){return Ph()?e instanceof HTMLElement||e instanceof si(e).HTMLElement:!1}function i5(e){return!Ph()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof si(e).ShadowRoot}function pf(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&r!=="inline"&&r!=="contents"}function j$(e){return/^(table|td|th)$/.test(sl(e))}function $h(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const P$=/transform|translate|scale|rotate|perspective|filter/,$$=/paint|layout|strict|content/,tu=e=>!!e&&e!=="none";let K1;function zy(e){const t=tr(e)?nr(e):e;return tu(t.transform)||tu(t.translate)||tu(t.scale)||tu(t.rotate)||tu(t.perspective)||!Hy()&&(tu(t.backdropFilter)||tu(t.filter))||P$.test(t.willChange||"")||$$.test(t.contain||"")}function V$(e){let t=As(e);for(;Ro(t)&&!Xa(t);){if(zy(t))return t;if($h(t))return null;t=As(t)}return null}function Hy(){return K1==null&&(K1=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),K1}function Xa(e){return/^(html|body|#document)$/.test(sl(e))}function nr(e){return si(e).getComputedStyle(e)}function Vh(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function As(e){if(sl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||i5(e)&&e.host||Hr(e);return i5(t)?t.host:t}function YC(e){const t=As(e);return Xa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ro(t)&&pf(t)?t:YC(t)}function Hc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=YC(e),u=r===((i=e.ownerDocument)==null?void 0:i.body),a=si(r);if(u){const c=yv(a);return t.concat(a,a.visualViewport||[],pf(r)?r:[],c&&n?Hc(c):[])}else return t.concat(r,Hc(r,[],n))}function yv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QC(e){const t=nr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Ro(e),u=r?e.offsetWidth:n,a=r?e.offsetHeight:i,c=Y0(n)!==u||Y0(i)!==a;return c&&(n=u,i=a),{width:n,height:i,$:c}}function qy(e){return tr(e)?e:e.contextElement}function Va(e){const t=qy(e);if(!Ro(t))return Mr(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:u}=QC(t);let a=(u?Y0(n.width):n.width)/i,c=(u?Y0(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const B$=Mr(0);function XC(e){const t=si(e);return!Hy()||!t.visualViewport?B$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function U$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==si(e)?!1:t}function Tu(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),u=qy(e);let a=Mr(1);t&&(i?tr(i)&&(a=Va(i)):a=Va(e));const c=U$(u,n,i)?XC(u):Mr(0);let f=(r.left+c.x)/a.x,h=(r.top+c.y)/a.y,p=r.width/a.x,m=r.height/a.y;if(u){const v=si(u),y=i&&tr(i)?si(i):i;let x=v,S=yv(x);for(;S&&i&&y!==x;){const _=Va(S),T=S.getBoundingClientRect(),N=nr(S),A=T.left+(S.clientLeft+parseFloat(N.paddingLeft))*_.x,D=T.top+(S.clientTop+parseFloat(N.paddingTop))*_.y;f*=_.x,h*=_.y,p*=_.x,m*=_.y,f+=A,h+=D,x=si(S),S=yv(x)}}return X0({width:p,height:m,x:f,y:h})}function Bh(e,t){const n=Vh(e).scrollLeft;return t?t.left+n:Tu(Hr(e)).left+n}function WC(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Bh(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function z$(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const u=r==="fixed",a=Hr(i),c=t?$h(t.floating):!1;if(i===a||c&&u)return n;let f={scrollLeft:0,scrollTop:0},h=Mr(1);const p=Mr(0),m=Ro(i);if((m||!m&&!u)&&((sl(i)!=="body"||pf(a))&&(f=Vh(i)),m)){const y=Tu(i);h=Va(i),p.x=y.x+i.clientLeft,p.y=y.y+i.clientTop}const v=a&&!m&&!u?WC(a,f):Mr(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 H$(e){return Array.from(e.getClientRects())}function q$(e){const t=Hr(e),n=Vh(e),i=e.ownerDocument.body,r=ri(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),u=ri(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Bh(e);const c=-n.scrollTop;return nr(i).direction==="rtl"&&(a+=ri(t.clientWidth,i.clientWidth)-r),{width:r,height:u,x:a,y:c}}const r5=25;function G$(e,t){const n=si(e),i=Hr(e),r=n.visualViewport;let u=i.clientWidth,a=i.clientHeight,c=0,f=0;if(r){u=r.width,a=r.height;const p=Hy();(!p||p&&t==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}const h=Bh(i);if(h<=0){const p=i.ownerDocument,m=p.body,v=getComputedStyle(m),y=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(i.clientWidth-m.clientWidth-y);x<=r5&&(u-=x)}else h<=r5&&(u+=h);return{width:u,height:a,x:c,y:f}}function Y$(e,t){const n=Tu(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,u=Ro(e)?Va(e):Mr(1),a=e.clientWidth*u.x,c=e.clientHeight*u.y,f=r*u.x,h=i*u.y;return{width:a,height:c,x:f,y:h}}function o5(e,t,n){let i;if(t==="viewport")i=G$(e,n);else if(t==="document")i=q$(Hr(e));else if(tr(t))i=Y$(t,n);else{const r=XC(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return X0(i)}function ZC(e,t){const n=As(e);return n===t||!tr(n)||Xa(n)?!1:nr(n).position==="fixed"||ZC(n,t)}function Q$(e,t){const n=t.get(e);if(n)return n;let i=Hc(e,[],!1).filter(c=>tr(c)&&sl(c)!=="body"),r=null;const u=nr(e).position==="fixed";let a=u?As(e):e;for(;tr(a)&&!Xa(a);){const c=nr(a),f=zy(a);!f&&c.position==="fixed"&&(r=null),(u?!f&&!r:!f&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||pf(a)&&!f&&ZC(e,a))?i=i.filter(p=>p!==a):r=c,a=As(a)}return t.set(e,i),i}function X$(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?$h(t)?[]:Q$(t,this._c):[].concat(n),i],c=o5(t,a[0],r);let f=c.top,h=c.right,p=c.bottom,m=c.left;for(let v=1;v<a.length;v++){const y=o5(t,a[v],r);f=ri(y.top,f),h=Cs(y.right,h),p=Cs(y.bottom,p),m=ri(y.left,m)}return{width:h-m,height:p-f,x:m,y:f}}function W$(e){const{width:t,height:n}=QC(e);return{width:t,height:n}}function Z$(e,t,n){const i=Ro(t),r=Hr(t),u=n==="fixed",a=Tu(e,!0,u,t);let c={scrollLeft:0,scrollTop:0};const f=Mr(0);function h(){f.x=Bh(r)}if(i||!i&&!u)if((sl(t)!=="body"||pf(r))&&(c=Vh(t)),i){const y=Tu(t,!0,u,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else r&&h();u&&!i&&r&&h();const p=r&&!i&&!u?WC(r,c):Mr(0),m=a.left+c.scrollLeft-f.x-p.x,v=a.top+c.scrollTop-f.y-p.y;return{x:m,y:v,width:a.width,height:a.height}}function J1(e){return nr(e).position==="static"}function s5(e,t){if(!Ro(e)||nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hr(e)===n&&(n=n.ownerDocument.body),n}function KC(e,t){const n=si(e);if($h(e))return n;if(!Ro(e)){let r=As(e);for(;r&&!Xa(r);){if(tr(r)&&!J1(r))return r;r=As(r)}return n}let i=s5(e,t);for(;i&&j$(i)&&J1(i);)i=s5(i,t);return i&&Xa(i)&&J1(i)&&!zy(i)?n:i||V$(e)||n}const K$=async function(e){const t=this.getOffsetParent||KC,n=this.getDimensions,i=await n(e.floating);return{reference:Z$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function J$(e){return nr(e).direction==="rtl"}const eV={convertOffsetParentRelativeRectToViewportRelativeRect:z$,getDocumentElement:Hr,getClippingRect:X$,getOffsetParent:KC,getElementRects:K$,getClientRects:H$,getDimensions:W$,getScale:Va,isElement:tr,isRTL:J$};function JC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tV(e,t){let n=null,i;const r=Hr(e);function u(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),u();const h=e.getBoundingClientRect(),{left:p,top:m,width:v,height:y}=h;if(c||t(),!v||!y)return;const x=i0(m),S=i0(r.clientWidth-(p+v)),_=i0(r.clientHeight-(m+y)),T=i0(p),A={rootMargin:-x+"px "+-S+"px "+-_+"px "+-T+"px",threshold:ri(0,Cs(1,f))||1};let D=!0;function R(M){const F=M[0].intersectionRatio;if(F!==f){if(!D)return a();F?a(!1,F):i=setTimeout(()=>{a(!1,1e-7)},1e3)}F===1&&!JC(h,e.getBoundingClientRect())&&a(),D=!1}try{n=new IntersectionObserver(R,{...A,root:r.ownerDocument})}catch{n=new IntersectionObserver(R,A)}n.observe(e)}return a(!0),u}function nV(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:u=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=qy(e),p=r||u?[...h?Hc(h):[],...t?Hc(t):[]]:[];p.forEach(T=>{r&&T.addEventListener("scroll",n,{passive:!0}),u&&T.addEventListener("resize",n)});const m=h&&c?tV(h,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),h&&!f&&y.observe(h),t&&y.observe(t));let x,S=f?Tu(e):null;f&&_();function _(){const T=Tu(e);S&&!JC(S,T)&&n(),S=T,x=requestAnimationFrame(_)}return n(),()=>{var T;p.forEach(N=>{r&&N.removeEventListener("scroll",n),u&&N.removeEventListener("resize",n)}),m?.(),(T=y)==null||T.disconnect(),y=null,f&&cancelAnimationFrame(x)}}const iV=k$,rV=L$,oV=O$,sV=F$,uV=R$,u5=N$,aV=I$,lV=(e,t,n)=>{const i=new Map,r={platform:eV,...n},u={...r.platform,_c:i};return D$(e,t,{...r,platform:u})};var cV=typeof document<"u",fV=function(){},E0=cV?E.useLayoutEffect:fV;function W0(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,r;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(!W0(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const u=r[i];if(!(u==="_owner"&&e.$$typeof)&&!W0(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}function e8(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a5(e,t){const n=e8(e);return Math.round(t*n)/n}function eg(e){const t=E.useRef(e);return E0(()=>{t.current=e}),t}function dV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:u,floating:a}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[p,m]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=E.useState(i);W0(v,i)||y(i);const[x,S]=E.useState(null),[_,T]=E.useState(null),N=E.useCallback(j=>{j!==M.current&&(M.current=j,S(j))},[]),A=E.useCallback(j=>{j!==F.current&&(F.current=j,T(j))},[]),D=u||x,R=a||_,M=E.useRef(null),F=E.useRef(null),B=E.useRef(p),k=f!=null,$=eg(f),H=eg(r),Y=eg(h),se=E.useCallback(()=>{if(!M.current||!F.current)return;const j={placement:t,strategy:n,middleware:v};H.current&&(j.platform=H.current),lV(M.current,F.current,j).then(P=>{const ne={...P,isPositioned:Y.current!==!1};W.current&&!W0(B.current,ne)&&(B.current=ne,xn.flushSync(()=>{m(ne)}))})},[v,t,n,H,Y]);E0(()=>{h===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,m(j=>({...j,isPositioned:!1})))},[h]);const W=E.useRef(!1);E0(()=>(W.current=!0,()=>{W.current=!1}),[]),E0(()=>{if(D&&(M.current=D),R&&(F.current=R),D&&R){if($.current)return $.current(D,R,se);se()}},[D,R,se,$,k]);const J=E.useMemo(()=>({reference:M,floating:F,setReference:N,setFloating:A}),[N,A]),L=E.useMemo(()=>({reference:D,floating:R}),[D,R]),q=E.useMemo(()=>{const j={position:n,left:0,top:0};if(!L.floating)return j;const P=a5(L.floating,p.x),ne=a5(L.floating,p.y);return c?{...j,transform:"translate("+P+"px, "+ne+"px)",...e8(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:ne}},[n,c,L.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:se,refs:J,elements:L,floatingStyles:q}),[p,se,J,L,q])}const hV=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?u5({element:i.current,padding:r}).fn(n):{}:i?u5({element:i,padding:r}).fn(n):{}}}},pV=(e,t)=>{const n=iV(e);return{name:n.name,fn:n.fn,options:[e,t]}},mV=(e,t)=>{const n=rV(e);return{name:n.name,fn:n.fn,options:[e,t]}},gV=(e,t)=>({fn:aV(e).fn,options:[e,t]}),vV=(e,t)=>{const n=oV(e);return{name:n.name,fn:n.fn,options:[e,t]}},yV=(e,t)=>{const n=sV(e);return{name:n.name,fn:n.fn,options:[e,t]}},bV=(e,t)=>{const n=uV(e);return{name:n.name,fn:n.fn,options:[e,t]}},xV=(e,t)=>{const n=hV(e);return{name:n.name,fn:n.fn,options:[e,t]}};var EV="Arrow",t8=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...u}=e;return w.jsx(Lt.svg,{...u,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});t8.displayName=EV;var SV=t8;function TV(e){const[t,n]=E.useState(void 0);return _s(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const u=r[0];let a,c;if("borderBoxSize"in u){const f=u.borderBoxSize,h=Array.isArray(f)?f[0]:f;a=h.inlineSize,c=h.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var Gy="Popper",[n8,Uh]=Mu(Gy),[_V,i8]=n8(Gy),r8=e=>{const{__scopePopper:t,children:n}=e,[i,r]=E.useState(null);return w.jsx(_V,{scope:t,anchor:i,onAnchorChange:r,children:n})};r8.displayName=Gy;var o8="PopperAnchor",s8=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,u=i8(o8,n),a=E.useRef(null),c=rn(t,a),f=E.useRef(null);return E.useEffect(()=>{const h=f.current;f.current=i?.current||a.current,h!==f.current&&u.onAnchorChange(f.current)}),i?null:w.jsx(Lt.div,{...r,ref:c})});s8.displayName=o8;var Yy="PopperContent",[CV,AV]=n8(Yy),u8=E.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:u="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:x,...S}=e,_=i8(Yy,n),[T,N]=E.useState(null),A=rn(t,oe=>N(oe)),[D,R]=E.useState(null),M=TV(D),F=M?.width??0,B=M?.height??0,k=i+(u!=="center"?"-"+u:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(h)?h:[h],Y=H.length>0,se={padding:$,boundary:H.filter(DV),altBoundary:Y},{refs:W,floatingStyles:J,placement:L,isPositioned:q,middlewareData:j}=dV({strategy:"fixed",placement:k,whileElementsMounted:(...oe)=>nV(...oe,{animationFrame:y==="always"}),elements:{reference:_.anchor},middleware:[pV({mainAxis:r+B,alignmentAxis:a}),f&&mV({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?gV():void 0,...se}),f&&vV({...se}),yV({...se,apply:({elements:oe,rects:fe,availableWidth:ge,availableHeight:Ne})=>{const{width:Te,height:pt}=fe.reference,Ae=oe.floating.style;Ae.setProperty("--radix-popper-available-width",`${ge}px`),Ae.setProperty("--radix-popper-available-height",`${Ne}px`),Ae.setProperty("--radix-popper-anchor-width",`${Te}px`),Ae.setProperty("--radix-popper-anchor-height",`${pt}px`)}}),D&&xV({element:D,padding:c}),NV({arrowWidth:F,arrowHeight:B}),v&&bV({strategy:"referenceHidden",...se})]}),[P,ne]=c8(L),I=wo(x);_s(()=>{q&&I?.()},[q,I]);const U=j.arrow?.x,ie=j.arrow?.y,ee=j.arrow?.centerOffset!==0,[he,de]=E.useState();return _s(()=>{T&&de(window.getComputedStyle(T).zIndex)},[T]),w.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(CV,{scope:n,placedSide:P,onArrowChange:R,arrowX:U,arrowY:ie,shouldHideArrow:ee,children:w.jsx(Lt.div,{"data-side":P,"data-align":ne,...S,ref:A,style:{...S.style,animation:q?void 0:"none"}})})})});u8.displayName=Yy;var a8="PopperArrow",wV={top:"bottom",right:"left",bottom:"top",left:"right"},l8=E.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,u=AV(a8,i),a=wV[u.placedSide];return w.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:w.jsx(SV,{...r,ref:n,style:{...r.style,display:"block"}})})});l8.displayName=a8;function DV(e){return e!==null}var NV=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,f=a?0:e.arrowHeight,[h,p]=c8(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(r.arrow?.x??0)+c/2,y=(r.arrow?.y??0)+f/2;let x="",S="";return h==="bottom"?(x=a?m:`${v}px`,S=`${-f}px`):h==="top"?(x=a?m:`${v}px`,S=`${i.floating.height+f}px`):h==="right"?(x=`${-f}px`,S=a?m:`${y}px`):h==="left"&&(x=`${i.floating.width+f}px`,S=a?m:`${y}px`),{data:{x,y:S}}}});function c8(e){const[t,n="center"]=e.split("-");return[t,n]}var f8=r8,d8=s8,h8=u8,p8=l8,tg="rovingFocusGroup.onEntryFocus",OV={bubbles:!1,cancelable:!0},mf="RovingFocusGroup",[bv,m8,RV]=UC(mf),[MV,g8]=Mu(mf,[RV]),[kV,LV]=MV(mf),v8=E.forwardRef((e,t)=>w.jsx(bv.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(bv.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(IV,{...e,ref:t})})}));v8.displayName=mf;var IV=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:r=!1,dir:u,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...m}=e,v=E.useRef(null),y=rn(t,v),x=zC(u),[S,_]=kh({prop:a,defaultProp:c??null,onChange:f,caller:mf}),[T,N]=E.useState(!1),A=wo(h),D=m8(n),R=E.useRef(!1),[M,F]=E.useState(0);return E.useEffect(()=>{const B=v.current;if(B)return B.addEventListener(tg,A),()=>B.removeEventListener(tg,A)},[A]),w.jsx(kV,{scope:n,orientation:i,dir:x,loop:r,currentTabStopId:S,onItemFocus:E.useCallback(B=>_(B),[_]),onItemShiftTab:E.useCallback(()=>N(!0),[]),onFocusableItemAdd:E.useCallback(()=>F(B=>B+1),[]),onFocusableItemRemove:E.useCallback(()=>F(B=>B-1),[]),children:w.jsx(Lt.div,{tabIndex:T||M===0?-1:0,"data-orientation":i,...m,ref:y,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{R.current=!0}),onFocus:Me(e.onFocus,B=>{const k=!R.current;if(B.target===B.currentTarget&&k&&!T){const $=new CustomEvent(tg,OV);if(B.currentTarget.dispatchEvent($),!$.defaultPrevented){const H=D().filter(L=>L.focusable),Y=H.find(L=>L.active),se=H.find(L=>L.id===S),J=[Y,se,...H].filter(Boolean).map(L=>L.ref.current);x8(J,p)}}R.current=!1}),onBlur:Me(e.onBlur,()=>N(!1))})})}),y8="RovingFocusGroupItem",b8=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:r=!1,tabStopId:u,children:a,...c}=e,f=mu(),h=u||f,p=LV(y8,n),m=p.currentTabStopId===h,v=m8(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:S}=p;return E.useEffect(()=>{if(i)return y(),()=>x()},[i,y,x]),w.jsx(bv.ItemSlot,{scope:n,id:h,focusable:i,active:r,children:w.jsx(Lt.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:Me(e.onMouseDown,_=>{i?p.onItemFocus(h):_.preventDefault()}),onFocus:Me(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Me(e.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){p.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const T=PV(_,p.orientation,p.dir);if(T!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let A=v().filter(D=>D.focusable).map(D=>D.ref.current);if(T==="last")A.reverse();else if(T==="prev"||T==="next"){T==="prev"&&A.reverse();const D=A.indexOf(_.currentTarget);A=p.loop?$V(A,D+1):A.slice(D+1)}setTimeout(()=>x8(A))}}),children:typeof a=="function"?a({isCurrentTabStop:m,hasTabStop:S!=null}):a})})});b8.displayName=y8;var FV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function PV(e,t,n){const i=jV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return FV[i]}function x8(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function $V(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var VV=v8,BV=b8,xv=["Enter"," "],UV=["ArrowDown","PageUp","Home"],E8=["ArrowUp","PageDown","End"],zV=[...UV,...E8],HV={ltr:[...xv,"ArrowRight"],rtl:[...xv,"ArrowLeft"]},qV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gf="Menu",[qc,GV,YV]=UC(gf),[ku,S8]=Mu(gf,[YV,Uh,g8]),zh=Uh(),T8=g8(),[QV,Lu]=ku(gf),[XV,vf]=ku(gf),_8=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:r,onOpenChange:u,modal:a=!0}=e,c=zh(t),[f,h]=E.useState(null),p=E.useRef(!1),m=wo(u),v=zC(r);return E.useEffect(()=>{const y=()=>{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",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),w.jsx(f8,{...c,children:w.jsx(QV,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:h,children:w.jsx(XV,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:v,modal:a,children:i})})})};_8.displayName=gf;var WV="MenuAnchor",Qy=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=zh(n);return w.jsx(d8,{...r,...i,ref:t})});Qy.displayName=WV;var Xy="MenuPortal",[ZV,C8]=ku(Xy,{forceMount:void 0}),A8=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:r}=e,u=Lu(Xy,t);return w.jsx(ZV,{scope:t,forceMount:n,children:w.jsx(zr,{present:n||u.open,children:w.jsx(Ih,{asChild:!0,container:r,children:i})})})};A8.displayName=Xy;var Di="MenuContent",[KV,Wy]=ku(Di),w8=E.forwardRef((e,t)=>{const n=C8(Di,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,u=Lu(Di,e.__scopeMenu),a=vf(Di,e.__scopeMenu);return w.jsx(qc.Provider,{scope:e.__scopeMenu,children:w.jsx(zr,{present:i||u.open,children:w.jsx(qc.Slot,{scope:e.__scopeMenu,children:a.modal?w.jsx(JV,{...r,ref:t}):w.jsx(eB,{...r,ref:t})})})})}),JV=E.forwardRef((e,t)=>{const n=Lu(Di,e.__scopeMenu),i=E.useRef(null),r=rn(t,i);return E.useEffect(()=>{const u=i.current;if(u)return SC(u)},[]),w.jsx(Zy,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Me(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eB=E.forwardRef((e,t)=>{const n=Lu(Di,e.__scopeMenu);return w.jsx(Zy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tB=zc("MenuContent.ScrollLock"),Zy=E.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:y,disableOutsideScroll:x,...S}=e,_=Lu(Di,n),T=vf(Di,n),N=zh(n),A=T8(n),D=GV(n),[R,M]=E.useState(null),F=E.useRef(null),B=rn(t,F,_.onContentChange),k=E.useRef(0),$=E.useRef(""),H=E.useRef(0),Y=E.useRef(null),se=E.useRef("right"),W=E.useRef(0),J=x?Fy:E.Fragment,L=x?{as:tB,allowPinchZoom:!0}:void 0,q=P=>{const ne=$.current+P,I=D().filter(oe=>!oe.disabled),U=document.activeElement,ie=I.find(oe=>oe.ref.current===U)?.textValue,ee=I.map(oe=>oe.textValue),he=hB(ee,ne,ie),de=I.find(oe=>oe.textValue===he)?.ref.current;(function oe(fe){$.current=fe,window.clearTimeout(k.current),fe!==""&&(k.current=window.setTimeout(()=>oe(""),1e3))})(ne),de&&setTimeout(()=>de.focus())};E.useEffect(()=>()=>window.clearTimeout(k.current),[]),hC();const j=E.useCallback(P=>se.current===Y.current?.side&&mB(P,Y.current?.area),[]);return w.jsx(KV,{scope:n,searchRef:$,onItemEnter:E.useCallback(P=>{j(P)&&P.preventDefault()},[j]),onItemLeave:E.useCallback(P=>{j(P)||(F.current?.focus(),M(null))},[j]),onTriggerLeave:E.useCallback(P=>{j(P)&&P.preventDefault()},[j]),pointerGraceTimerRef:H,onPointerGraceIntentChange:E.useCallback(P=>{Y.current=P},[]),children:w.jsx(J,{...L,children:w.jsx(Iy,{asChild:!0,trapped:r,onMountAutoFocus:Me(u,P=>{P.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:w.jsx(Lh,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:y,children:w.jsx(VV,{asChild:!0,...A,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:R,onCurrentTabStopIdChange:M,onEntryFocus:Me(f,P=>{T.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(h8,{role:"menu","aria-orientation":"vertical","data-state":z8(_.open),"data-radix-menu-content":"",dir:T.dir,...N,...S,ref:B,style:{outline:"none",...S.style},onKeyDown:Me(S.onKeyDown,P=>{const I=P.target.closest("[data-radix-menu-content]")===P.currentTarget,U=P.ctrlKey||P.altKey||P.metaKey,ie=P.key.length===1;I&&(P.key==="Tab"&&P.preventDefault(),!U&&ie&&q(P.key));const ee=F.current;if(P.target!==ee||!zV.includes(P.key))return;P.preventDefault();const de=D().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);E8.includes(P.key)&&de.reverse(),fB(de)}),onBlur:Me(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(k.current),$.current="")}),onPointerMove:Me(e.onPointerMove,Gc(P=>{const ne=P.target,I=W.current!==P.clientX;if(P.currentTarget.contains(ne)&&I){const U=P.clientX>W.current?"right":"left";se.current=U,W.current=P.clientX}}))})})})})})})});w8.displayName=Di;var nB="MenuGroup",Ky=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return w.jsx(Lt.div,{role:"group",...i,ref:t})});Ky.displayName=nB;var iB="MenuLabel",D8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return w.jsx(Lt.div,{...i,ref:t})});D8.displayName=iB;var Z0="MenuItem",l5="menu.itemSelect",Hh=E.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...r}=e,u=E.useRef(null),a=vf(Z0,e.__scopeMenu),c=Wy(Z0,e.__scopeMenu),f=rn(t,u),h=E.useRef(!1),p=()=>{const m=u.current;if(!n&&m){const v=new CustomEvent(l5,{bubbles:!0,cancelable:!0});m.addEventListener(l5,y=>i?.(y),{once:!0}),lC(m,v),v.defaultPrevented?h.current=!1:a.onClose()}};return w.jsx(N8,{...r,ref:f,disabled:n,onClick:Me(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),h.current=!0},onPointerUp:Me(e.onPointerUp,m=>{h.current||m.currentTarget?.click()}),onKeyDown:Me(e.onKeyDown,m=>{const v=c.searchRef.current!=="";n||v&&m.key===" "||xv.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Hh.displayName=Z0;var N8=E.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:r,...u}=e,a=Wy(Z0,n),c=T8(n),f=E.useRef(null),h=rn(t,f),[p,m]=E.useState(!1),[v,y]=E.useState("");return E.useEffect(()=>{const x=f.current;x&&y((x.textContent??"").trim())},[u.children]),w.jsx(qc.ItemSlot,{scope:n,disabled:i,textValue:r??v,children:w.jsx(BV,{asChild:!0,...c,focusable:!i,children:w.jsx(Lt.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:h,onPointerMove:Me(e.onPointerMove,Gc(x=>{i?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Me(e.onPointerLeave,Gc(x=>a.onItemLeave(x))),onFocus:Me(e.onFocus,()=>m(!0)),onBlur:Me(e.onBlur,()=>m(!1))})})})}),rB="MenuCheckboxItem",O8=E.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...r}=e;return w.jsx(I8,{scope:e.__scopeMenu,checked:n,children:w.jsx(Hh,{role:"menuitemcheckbox","aria-checked":K0(n)?"mixed":n,...r,ref:t,"data-state":e2(n),onSelect:Me(r.onSelect,()=>i?.(K0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});O8.displayName=rB;var R8="MenuRadioGroup",[oB,sB]=ku(R8,{value:void 0,onValueChange:()=>{}}),M8=E.forwardRef((e,t)=>{const{value:n,onValueChange:i,...r}=e,u=wo(i);return w.jsx(oB,{scope:e.__scopeMenu,value:n,onValueChange:u,children:w.jsx(Ky,{...r,ref:t})})});M8.displayName=R8;var k8="MenuRadioItem",L8=E.forwardRef((e,t)=>{const{value:n,...i}=e,r=sB(k8,e.__scopeMenu),u=n===r.value;return w.jsx(I8,{scope:e.__scopeMenu,checked:u,children:w.jsx(Hh,{role:"menuitemradio","aria-checked":u,...i,ref:t,"data-state":e2(u),onSelect:Me(i.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});L8.displayName=k8;var Jy="MenuItemIndicator",[I8,uB]=ku(Jy,{checked:!1}),F8=E.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...r}=e,u=uB(Jy,n);return w.jsx(zr,{present:i||K0(u.checked)||u.checked===!0,children:w.jsx(Lt.span,{...r,ref:t,"data-state":e2(u.checked)})})});F8.displayName=Jy;var aB="MenuSeparator",j8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return w.jsx(Lt.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});j8.displayName=aB;var lB="MenuArrow",P8=E.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=zh(n);return w.jsx(p8,{...r,...i,ref:t})});P8.displayName=lB;var cB="MenuSub",[EJ,$8]=ku(cB),pc="MenuSubTrigger",V8=E.forwardRef((e,t)=>{const n=Lu(pc,e.__scopeMenu),i=vf(pc,e.__scopeMenu),r=$8(pc,e.__scopeMenu),u=Wy(pc,e.__scopeMenu),a=E.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,h={__scopeMenu:e.__scopeMenu},p=E.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return E.useEffect(()=>p,[p]),E.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),f(null)}},[c,f]),w.jsx(Qy,{asChild:!0,...h,children:w.jsx(N8,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":z8(n.open),...e,ref:Mh(t,r.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Me(e.onPointerMove,Gc(m=>{u.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(u.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Me(e.onPointerLeave,Gc(m=>{p();const v=n.content?.getBoundingClientRect();if(v){const y=n.content?.dataset.side,x=y==="right",S=x?-5:5,_=v[x?"left":"right"],T=v[x?"right":"left"];u.onPointerGraceIntentChange({area:[{x:m.clientX+S,y:m.clientY},{x:_,y:v.top},{x:T,y:v.top},{x:T,y:v.bottom},{x:_,y:v.bottom}],side:y}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(m),m.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:Me(e.onKeyDown,m=>{const v=u.searchRef.current!=="";e.disabled||v&&m.key===" "||HV[i.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})});V8.displayName=pc;var B8="MenuSubContent",U8=E.forwardRef((e,t)=>{const n=C8(Di,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,u=Lu(Di,e.__scopeMenu),a=vf(Di,e.__scopeMenu),c=$8(B8,e.__scopeMenu),f=E.useRef(null),h=rn(t,f);return w.jsx(qc.Provider,{scope:e.__scopeMenu,children:w.jsx(zr,{present:i||u.open,children:w.jsx(qc.Slot,{scope:e.__scopeMenu,children:w.jsx(Zy,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:h,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{a.isUsingKeyboardRef.current&&f.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Me(e.onFocusOutside,p=>{p.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:Me(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:Me(e.onKeyDown,p=>{const m=p.currentTarget.contains(p.target),v=qV[a.dir].includes(p.key);m&&v&&(u.onOpenChange(!1),c.trigger?.focus(),p.preventDefault())})})})})})});U8.displayName=B8;function z8(e){return e?"open":"closed"}function K0(e){return e==="indeterminate"}function e2(e){return K0(e)?"indeterminate":e?"checked":"unchecked"}function fB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function dB(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function hB(e,t,n){const r=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,u=n?e.indexOf(n):-1;let a=dB(e,Math.max(u,0));r.length===1&&(a=a.filter(h=>h!==n));const f=a.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return f!==n?f:void 0}function pB(e,t){const{x:n,y:i}=e;let r=!1;for(let u=0,a=t.length-1;u<t.length;a=u++){const c=t[u],f=t[a],h=c.x,p=c.y,m=f.x,v=f.y;p>i!=v>i&&n<(m-h)*(i-p)/(v-p)+h&&(r=!r)}return r}function mB(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pB(n,t)}function Gc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gB=_8,vB=Qy,yB=A8,bB=w8,xB=Ky,EB=D8,SB=Hh,TB=O8,_B=M8,CB=L8,AB=F8,wB=j8,DB=P8,NB=V8,OB=U8,qh="DropdownMenu",[RB]=Mu(qh,[S8]),Ln=S8(),[MB,H8]=RB(qh),q8=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:r,defaultOpen:u,onOpenChange:a,modal:c=!0}=e,f=Ln(t),h=E.useRef(null),[p,m]=kh({prop:r,defaultProp:u??!1,onChange:a,caller:qh});return w.jsx(MB,{scope:t,triggerId:mu(),triggerRef:h,contentId:mu(),open:p,onOpenChange:m,onOpenToggle:E.useCallback(()=>m(v=>!v),[m]),modal:c,children:w.jsx(gB,{...f,open:p,onOpenChange:m,dir:i,modal:c,children:n})})};q8.displayName=qh;var G8="DropdownMenuTrigger",Y8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...r}=e,u=H8(G8,n),a=Ln(n);return w.jsx(vB,{asChild:!0,...a,children:w.jsx(Lt.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:Mh(t,u.triggerRef),onPointerDown:Me(e.onPointerDown,c=>{!i&&c.button===0&&c.ctrlKey===!1&&(u.onOpenToggle(),u.open||c.preventDefault())}),onKeyDown:Me(e.onKeyDown,c=>{i||(["Enter"," "].includes(c.key)&&u.onOpenToggle(),c.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Y8.displayName=G8;var kB="DropdownMenuPortal",Q8=e=>{const{__scopeDropdownMenu:t,...n}=e,i=Ln(t);return w.jsx(yB,{...i,...n})};Q8.displayName=kB;var X8="DropdownMenuContent",W8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=H8(X8,n),u=Ln(n),a=E.useRef(!1);return w.jsx(bB,{id:r.contentId,"aria-labelledby":r.triggerId,...u,...i,ref:t,onCloseAutoFocus:Me(e.onCloseAutoFocus,c=>{a.current||r.triggerRef.current?.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:Me(e.onInteractOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!r.modal||p)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});W8.displayName=X8;var LB="DropdownMenuGroup",IB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(xB,{...r,...i,ref:t})});IB.displayName=LB;var FB="DropdownMenuLabel",jB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(EB,{...r,...i,ref:t})});jB.displayName=FB;var PB="DropdownMenuItem",Z8=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(SB,{...r,...i,ref:t})});Z8.displayName=PB;var $B="DropdownMenuCheckboxItem",VB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(TB,{...r,...i,ref:t})});VB.displayName=$B;var BB="DropdownMenuRadioGroup",UB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(_B,{...r,...i,ref:t})});UB.displayName=BB;var zB="DropdownMenuRadioItem",HB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(CB,{...r,...i,ref:t})});HB.displayName=zB;var qB="DropdownMenuItemIndicator",GB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(AB,{...r,...i,ref:t})});GB.displayName=qB;var YB="DropdownMenuSeparator",QB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(wB,{...r,...i,ref:t})});QB.displayName=YB;var XB="DropdownMenuArrow",WB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(DB,{...r,...i,ref:t})});WB.displayName=XB;var ZB="DropdownMenuSubTrigger",KB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(NB,{...r,...i,ref:t})});KB.displayName=ZB;var JB="DropdownMenuSubContent",eU=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Ln(n);return w.jsx(OB,{...r,...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)"}})});eU.displayName=JB;var tU=q8,nU=Y8,iU=Q8,rU=W8,oU=Z8;const K8=E.forwardRef((e,t)=>{const n=me.c(6);let i;n[0]!==e.className?(i=dt("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=w.jsx(nU,{asChild:!0,children:w.jsx("button",{...e,ref:t,className:i})}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});K8.displayName="DropdownMenuButton";const sU=e=>{const t=me.c(14);let n,i,r,u,a;t[0]!==e?({children:n,align:u,sideOffset:a,className:i,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=u,t[5]=a):(n=t[1],i=t[2],r=t[3],u=t[4],a=t[5]);const c=u===void 0?"start":u,f=a===void 0?5:a;let h;t[6]!==i?(h=dt("graphiql-dropdown-content",i),t[6]=i,t[7]=h):h=t[7];let p;return t[8]!==c||t[9]!==n||t[10]!==r||t[11]!==f||t[12]!==h?(p=w.jsx(iU,{children:w.jsx(rU,{align:c,sideOffset:f,className:h,...r,children:n})}),t[8]=c,t[9]=n,t[10]=r,t[11]=f,t[12]=h,t[13]=p):p=t[13],p},uU=e=>{const t=me.c(10);let n,i,r;t[0]!==e?({className:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r):(n=t[1],i=t[2],r=t[3]);let u;t[4]!==i?(u=dt("graphiql-dropdown-item",i),t[4]=i,t[5]=u):u=t[5];let a;return t[6]!==n||t[7]!==r||t[8]!==u?(a=w.jsx(oU,{className:u,...r,children:n}),t[6]=n,t[7]=r,t[8]=u,t[9]=a):a=t[9],a},r0=Object.assign(tU,{Button:K8,Item:uU,Content:sU}),Fr=E.forwardRef((e,t)=>{const n=me.c(18);let i,r,u,a;n[0]!==e?({children:i,onlyShowFirstChild:r,type:a,...u}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=u,n[4]=a):(i=n[1],r=n[2],u=n[3],a=n[4]);const c=`graphiql-markdown-${a}`,f=r&&"graphiql-markdown-preview";let h;n[5]!==u.className||n[6]!==c||n[7]!==f?(h=dt(c,f,u.className),n[5]=u.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]!==u||n[14]!==t||n[15]!==h||n[16]!==m?(v=w.jsx("div",{...u,ref:t,className:h,dangerouslySetInnerHTML:m}),n[13]=u,n[14]=t,n[15]=h,n[16]=m,n[17]=v):v=n[17],v});Fr.displayName="MarkdownContent";const t2=E.forwardRef((e,t)=>{const n=me.c(6);let i;n[0]!==e.className?(i=dt("graphiql-spinner",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=w.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});t2.displayName="Spinner";const J8=E.createContext({});function yf(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const aU=typeof window<"u",eA=aU?E.useLayoutEffect:E.useEffect,n2=E.createContext(null);function i2(e,t){e.indexOf(t)===-1&&e.push(t)}function J0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function lU([...e],t,n){const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const r=n<0?e.length+n:n,[u]=e.splice(t,1);e.splice(r,0,u)}return e}const jr=(e,t,n)=>n>t?t:n<e?e:n;let r2=()=>{};const ws={},tA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nA(e){return typeof e=="object"&&e!==null}const iA=e=>/^0[^.\s]+$/u.test(e);function rA(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ni=e=>e,cU=(e,t)=>n=>t(e(n)),bf=(...e)=>e.reduce(cU),Yc=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class o2{constructor(){this.subscriptions=[]}add(t){return i2(this.subscriptions,t),()=>J0(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let u=0;u<r;u++){const a=this.subscriptions[u];a&&a(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ui=e=>e*1e3,wi=e=>e/1e3;function oA(e,t){return t?e*(1e3/t):0}const sA=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fU=1e-7,dU=12;function hU(e,t,n,i,r){let u,a,c=0;do a=t+(n-t)/2,u=sA(a,i,r)-e,u>0?n=a:t=a;while(Math.abs(u)>fU&&++c<dU);return a}function xf(e,t,n,i){if(e===t&&n===i)return Ni;const r=u=>hU(u,0,1,e,n);return u=>u===0||u===1?u:sA(r(u),t,i)}const uA=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aA=e=>t=>1-e(1-t),lA=xf(.33,1.53,.69,.99),s2=aA(lA),cA=uA(s2),fA=e=>e>=1?1:(e*=2)<1?.5*s2(e):.5*(2-Math.pow(2,-10*(e-1))),u2=e=>1-Math.sin(Math.acos(e)),dA=aA(u2),hA=uA(u2),pU=xf(.42,0,1,1),mU=xf(0,0,.58,1),pA=xf(.42,0,.58,1),gU=e=>Array.isArray(e)&&typeof e[0]!="number",mA=e=>Array.isArray(e)&&typeof e[0]=="number",vU={linear:Ni,easeIn:pU,easeInOut:pA,easeOut:mU,circIn:u2,circInOut:hA,circOut:dA,backIn:s2,backInOut:cA,backOut:lA,anticipate:fA},yU=e=>typeof e=="string",c5=e=>{if(mA(e)){r2(e.length===4);const[t,n,i,r]=e;return xf(t,n,i,r)}else if(yU(e))return vU[e];return e},o0=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bU(e,t){let n=new Set,i=new Set,r=!1,u=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(p){a.has(p)&&(h.schedule(p),e()),p(c)}const h={schedule:(p,m=!1,v=!1)=>{const x=v&&r?n:i;return m&&a.add(p),x.add(p),p},cancel:p=>{i.delete(p),a.delete(p)},process:p=>{if(c=p,r){u=!0;return}r=!0;const m=n;n=i,i=m,n.forEach(f),n.clear(),r=!1,u&&(u=!1,h.process(p))}};return h}const xU=40;function gA(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,a=o0.reduce((A,D)=>(A[D]=bU(u),A),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:p,update:m,preRender:v,render:y,postRender:x}=a,S=()=>{const A=ws.useManualTiming,D=A?r.timestamp:performance.now();n=!1,A||(r.delta=i?1e3/60:Math.max(Math.min(D-r.timestamp,xU),1)),r.timestamp=D,r.isProcessing=!0,c.process(r),f.process(r),h.process(r),p.process(r),m.process(r),v.process(r),y.process(r),x.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(S))},_=()=>{n=!0,i=!0,r.isProcessing||e(S)};return{schedule:o0.reduce((A,D)=>{const R=a[D];return A[D]=(M,F=!1,B=!1)=>(n||_(),R.schedule(M,F,B)),A},{}),cancel:A=>{for(let D=0;D<o0.length;D++)a[o0[D]].cancel(A)},state:r,steps:a}}const{schedule:lt,cancel:Oo,state:bn,steps:ng}=gA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ni,!0);let S0;function EU(){S0=void 0}const On={now:()=>(S0===void 0&&On.set(bn.isProcessing||ws.useManualTiming?bn.timestamp:performance.now()),S0),set:e=>{S0=e,queueMicrotask(EU)}},vA=e=>t=>typeof t=="string"&&t.startsWith(e),yA=vA("--"),SU=vA("var(--"),a2=e=>SU(e)?TU.test(e.split("/*")[0].trim()):!1,TU=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function f5(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ul={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qc={...ul,transform:e=>jr(0,1,e)},s0={...ul,default:1},Sc=e=>Math.round(e*1e5)/1e5,l2=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _U(e){return e==null}const CU=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,c2=(e,t)=>n=>!!(typeof n=="string"&&CU.test(n)&&n.startsWith(e)||t&&!_U(n)&&Object.prototype.hasOwnProperty.call(n,t)),bA=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,u,a,c]=i.match(l2);return{[e]:parseFloat(r),[t]:parseFloat(u),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},AU=e=>jr(0,255,e),ig={...ul,transform:e=>Math.round(AU(e))},lu={test:c2("rgb","red"),parse:bA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ig.transform(e)+", "+ig.transform(t)+", "+ig.transform(n)+", "+Sc(Qc.transform(i))+")"};function wU(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Ev={test:c2("#"),parse:wU,transform:lu.transform},Ef=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vs=Ef("deg"),kr=Ef("%"),be=Ef("px"),DU=Ef("vh"),NU=Ef("vw"),d5={...kr,parse:e=>kr.parse(e)/100,transform:e=>kr.transform(e*100)},Ra={test:c2("hsl","hue"),parse:bA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+kr.transform(Sc(t))+", "+kr.transform(Sc(n))+", "+Sc(Qc.transform(i))+")"},Gt={test:e=>lu.test(e)||Ev.test(e)||Ra.test(e),parse:e=>lu.test(e)?lu.parse(e):Ra.test(e)?Ra.parse(e):Ev.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?lu.transform(e):Ra.transform(e),getAnimatableNone:e=>{const t=Gt.parse(e);return t.alpha=0,Gt.transform(t)}},OU=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function RU(e){return isNaN(e)&&typeof e=="string"&&(e.match(l2)?.length||0)+(e.match(OU)?.length||0)>0}const xA="number",EA="color",MU="var",kU="var(",h5="${}",LU=/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 Wa(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let u=0;const c=t.replace(LU,f=>(Gt.test(f)?(i.color.push(u),r.push(EA),n.push(Gt.parse(f))):f.startsWith(kU)?(i.var.push(u),r.push(MU),n.push(f)):(i.number.push(u),r.push(xA),n.push(parseFloat(f))),++u,h5)).split(h5);return{values:n,split:c,indexes:i,types:r}}function IU(e){return Wa(e).values}function SA({split:e,types:t}){const n=e.length;return i=>{let r="";for(let u=0;u<n;u++)if(r+=e[u],i[u]!==void 0){const a=t[u];a===xA?r+=Sc(i[u]):a===EA?r+=Gt.transform(i[u]):r+=i[u]}return r}}function FU(e){return SA(Wa(e))}const jU=e=>typeof e=="number"?0:Gt.test(e)?Gt.getAnimatableNone(e):e,PU=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:jU(e);function $U(e){const t=Wa(e);return SA(t)(t.values.map((i,r)=>PU(i,t.split[r])))}const Ji={test:RU,parse:IU,createTransformer:FU,getAnimatableNone:$U};function rg(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 VU({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,u=0,a=0;if(!t)r=u=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;r=rg(f,c,e+1/3),u=rg(f,c,e),a=rg(f,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(u*255),blue:Math.round(a*255),alpha:i}}function eh(e,t){return n=>n>0?t:e}const vt=(e,t,n)=>e+(t-e)*n,og=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},BU=[Ev,lu,Ra],UU=e=>BU.find(t=>t.test(e));function p5(e){const t=UU(e);if(!t)return!1;let n=t.parse(e);return t===Ra&&(n=VU(n)),n}const m5=(e,t)=>{const n=p5(e),i=p5(t);if(!n||!i)return eh(e,t);const r={...n};return u=>(r.red=og(n.red,i.red,u),r.green=og(n.green,i.green,u),r.blue=og(n.blue,i.blue,u),r.alpha=vt(n.alpha,i.alpha,u),lu.transform(r))},Sv=new Set(["none","hidden"]);function zU(e,t){return Sv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function HU(e,t){return n=>vt(e,t,n)}function f2(e){return typeof e=="number"?HU:typeof e=="string"?a2(e)?eh:Gt.test(e)?m5:YU:Array.isArray(e)?TA:typeof e=="object"?Gt.test(e)?m5:qU:eh}function TA(e,t){const n=[...e],i=n.length,r=e.map((u,a)=>f2(u)(u,t[a]));return u=>{for(let a=0;a<i;a++)n[a]=r[a](u);return n}}function qU(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=f2(e[r])(e[r],t[r]));return r=>{for(const u in i)n[u]=i[u](r);return n}}function GU(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const u=t.types[r],a=e.indexes[u][i[u]],c=e.values[a]??0;n[r]=c,i[u]++}return n}const YU=(e,t)=>{const n=Ji.createTransformer(t),i=Wa(e),r=Wa(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Sv.has(e)&&!r.values.length||Sv.has(t)&&!i.values.length?zU(e,t):bf(TA(GU(i,r),r.values),n):eh(e,t)};function _A(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?vt(e,t,n):f2(e)(e,t)}const QU=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Oo(t),now:()=>bn.isProcessing?bn.timestamp:On.now()}},CA=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let u=0;u<r;u++)i+=Math.round(e(u/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},th=2e4;function d2(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<th;)t+=n,i=e.next(t);return t>=th?1/0:t}function XU(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(d2(i),th);return{type:"keyframes",ease:u=>i.next(r*u).value/t,duration:wi(r)}}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};function Tv(e,t){return e*Math.sqrt(1-t*t)}const WU=12;function ZU(e,t,n){let i=n;for(let r=1;r<WU;r++)i=i-e(i)/t(i);return i}const sg=.001;function KU({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:i=Mt.mass}){let r,u,a=1-t;a=jr(Mt.minDamping,Mt.maxDamping,a),e=jr(Mt.minDuration,Mt.maxDuration,wi(e)),a<1?(r=h=>{const p=h*a,m=p*e,v=p-n,y=Tv(h,a),x=Math.exp(-m);return sg-v/y*x},u=h=>{const m=h*a*e,v=m*n+n,y=Math.pow(a,2)*Math.pow(h,2)*e,x=Math.exp(-m),S=Tv(Math.pow(h,2),a);return(-r(h)+sg>0?-1:1)*((v-y)*x)/S}):(r=h=>{const p=Math.exp(-h*e),m=(h-n)*e+1;return-sg+p*m},u=h=>{const p=Math.exp(-h*e),m=(n-h)*(e*e);return p*m});const c=5/e,f=ZU(r,u,c);if(e=ui(e),isNaN(f))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:a*2*Math.sqrt(i*h),duration:e}}}const JU=["duration","bounce"],ez=["stiffness","damping","mass"];function g5(e,t){return t.some(n=>e[n]!==void 0)}function tz(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!g5(e,ez)&&g5(e,JU))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,u=2*jr(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Mt.mass,stiffness:r,damping:u}}else{const n=KU({...e,velocity:0});t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function nh(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const u=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:u},{stiffness:f,damping:h,mass:p,duration:m,velocity:v,isResolvedFromDuration:y}=tz({...n,velocity:-wi(n.velocity||0)}),x=v||0,S=h/(2*Math.sqrt(f*p)),_=a-u,T=wi(Math.sqrt(f/p)),N=Math.abs(_)<5;i||(i=N?Mt.restSpeed.granular:Mt.restSpeed.default),r||(r=N?Mt.restDelta.granular:Mt.restDelta.default);let A,D,R,M,F,B;if(S<1)R=Tv(T,S),M=(x+S*T*_)/R,A=$=>{const H=Math.exp(-S*T*$);return a-H*(M*Math.sin(R*$)+_*Math.cos(R*$))},F=S*T*M+_*R,B=S*T*_-M*R,D=$=>Math.exp(-S*T*$)*(F*Math.sin(R*$)+B*Math.cos(R*$));else if(S===1){A=H=>a-Math.exp(-T*H)*(_+(x+T*_)*H);const $=x+T*_;D=H=>Math.exp(-T*H)*(T*$*H-x)}else{const $=T*Math.sqrt(S*S-1);A=W=>{const J=Math.exp(-S*T*W),L=Math.min($*W,300);return a-J*((x+S*T*_)*Math.sinh(L)+$*_*Math.cosh(L))/$};const H=(x+S*T*_)/$,Y=S*T*H-_*$,se=S*T*_-H*$;D=W=>{const J=Math.exp(-S*T*W),L=Math.min($*W,300);return J*(Y*Math.sinh(L)+se*Math.cosh(L))}}const k={calculatedDuration:y&&m||null,velocity:$=>ui(D($)),next:$=>{if(!y&&S<1){const Y=Math.exp(-S*T*$),se=Math.sin(R*$),W=Math.cos(R*$),J=a-Y*(M*se+_*W),L=ui(Y*(F*se+B*W));return c.done=Math.abs(L)<=i&&Math.abs(a-J)<=r,c.value=c.done?a:J,c}const H=A($);if(y)c.done=$>=m;else{const Y=ui(D($));c.done=Math.abs(Y)<=i&&Math.abs(a-H)<=r}return c.value=c.done?a:H,c},toString:()=>{const $=Math.min(d2(k),th),H=CA(Y=>k.next($*Y).value,$,30);return $+"ms "+H},toTransition:()=>{}};return k}nh.applyToOptions=e=>{const t=XU(e,100,nh);return e.ease=t.ease,e.duration=ui(t.duration),e.type="keyframes",e};const nz=5;function AA(e,t,n){const i=Math.max(t-nz,0);return oA(n-e(i),t-i)}function _v({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:u=500,modifyTarget:a,min:c,max:f,restDelta:h=.5,restSpeed:p}){const m=e[0],v={done:!1,value:m},y=B=>c!==void 0&&B<c||f!==void 0&&B>f,x=B=>c===void 0?f:f===void 0||Math.abs(c-B)<Math.abs(f-B)?c:f;let S=n*t;const _=m+S,T=a===void 0?_:a(_);T!==_&&(S=T-m);const N=B=>-S*Math.exp(-B/i),A=B=>T+N(B),D=B=>{const k=N(B),$=A(B);v.done=Math.abs(k)<=h,v.value=v.done?T:$};let R,M;const F=B=>{y(v.value)&&(R=B,M=nh({keyframes:[v.value,x(v.value)],velocity:AA(A,B,v.value),damping:r,stiffness:u,restDelta:h,restSpeed:p}))};return F(0),{calculatedDuration:null,next:B=>{let k=!1;return!M&&R===void 0&&(k=!0,D(B),F(B)),R!==void 0&&B>=R?M.next(B-R):(!k&&D(B),v)}}}function iz(e,t,n){const i=[],r=n||ws.mix||_A,u=e.length-1;for(let a=0;a<u;a++){let c=r(e[a],e[a+1]);if(t){const f=Array.isArray(t)?t[a]||Ni:t;c=bf(f,c)}i.push(c)}return i}function wA(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const u=e.length;if(r2(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=iz(t,i,r),f=c.length,h=p=>{if(a&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const v=Yc(e[m],e[m+1],p);return c[m](v)};return n?p=>h(jr(e[0],e[u-1],p)):h}function rz(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Yc(0,t,i);e.push(vt(n,1,r))}}function oz(e){const t=[0];return rz(t,e.length-1),t}function sz(e,t){return e.map(n=>n*t)}function uz(e,t){return e.map(()=>t||pA).splice(0,e.length-1)}function Tc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=gU(i)?i.map(c5):c5(i),u={done:!1,value:t[0]},a=sz(n&&n.length===t.length?n:oz(t),e),c=wA(a,t,{ease:Array.isArray(r)?r:uz(t,r)});return{calculatedDuration:e,next:f=>(u.value=c(f),u.done=f>=e,u)}}const az=e=>e!==null;function Gh(e,{repeat:t,repeatType:n="loop"},i,r=1){const u=e.filter(az),c=r<0||t&&n!=="loop"&&t%2===1?0:u.length-1;return!c||i===void 0?u[c]:i}const lz={decay:_v,inertia:_v,tween:Tc,keyframes:Tc,spring:nh};function DA(e){typeof e.type=="string"&&(e.type=lz[e.type])}class h2{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 cz=e=>e/100;class ih extends h2{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==On.now()&&this.tick(On.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;DA(t);const{type:n=Tc,repeat:i=0,repeatDelay:r=0,repeatType:u,velocity:a=0}=t;let{keyframes:c}=t;const f=n||Tc;f!==Tc&&typeof c[0]!="number"&&(this.mixKeyframes=bf(cz,_A(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});u==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=d2(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+r,this.totalDuration=this.resolvedDuration*(i+1)-r,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:r,mixKeyframes:u,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:p,repeat:m,repeatType:v,repeatDelay:y,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-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-h*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?T<0:T>r;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let A=this.currentTime,D=i;if(m){const B=Math.min(this.currentTime,r)/c;let k=Math.floor(B),$=B%1;!$&&B>=1&&($=1),$===1&&k--,k=Math.min(k,m+1),k%2&&(v==="reverse"?($=1-$,y&&($-=y/c)):v==="mirror"&&(D=a)),A=jr(0,1,$)*c}let R;N?(this.delayState.value=p[0],R=this.delayState):R=D.next(A),u&&!N&&(R.value=u(R.value));let{done:M}=R;!N&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return F&&x!==_v&&(R.value=Gh(p,this.options,_,this.speed)),S&&S(R.value),F&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return wi(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wi(t)}get time(){return wi(this.currentTime)}set time(t){t=ui(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return AA(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(On.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=wi(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=QU,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();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(On.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function fz(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const cu=e=>e*180/Math.PI,Cv=e=>{const t=cu(Math.atan2(e[1],e[0]));return Av(t)},dz={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cv,rotateZ:Cv,skewX:e=>cu(Math.atan(e[1])),skewY:e=>cu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Av=e=>(e=e%360,e<0&&(e+=360),e),v5=Cv,y5=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),b5=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),hz={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:y5,scaleY:b5,scale:e=>(y5(e)+b5(e))/2,rotateX:e=>Av(cu(Math.atan2(e[6],e[5]))),rotateY:e=>Av(cu(Math.atan2(-e[2],e[0]))),rotateZ:v5,rotate:v5,skewX:e=>cu(Math.atan(e[4])),skewY:e=>cu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wv(e){return e.includes("scale")?1:0}function Dv(e,t){if(!e||e==="none")return wv(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=hz,r=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=dz,r=c}if(!r)return wv(t);const u=i[t],a=r[1].split(",").map(mz);return typeof u=="function"?u(a):a[u]}const pz=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Dv(n,t)};function mz(e){return parseFloat(e.trim())}const al=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ll=new Set(al),x5=e=>e===ul||e===be,gz=new Set(["x","y","z"]),vz=al.filter(e=>!gz.has(e));function yz(e){const t=[];return vz.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Es={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const r=e.max-e.min;return i==="border-box"?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const r=e.max-e.min;return i==="border-box"?r:r-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})=>Dv(t,"x"),y:(e,{transform:t})=>Dv(t,"y")};Es.translateX=Es.x;Es.translateY=Es.y;const gu=new Set;let Nv=!1,Ov=!1,Rv=!1;function NA(){if(Ov){const e=Array.from(gu).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=yz(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([u,a])=>{i.getValue(u)?.set(a)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Ov=!1,Nv=!1,gu.forEach(e=>e.complete(Rv)),gu.clear()}function OA(){gu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ov=!0)})}function bz(){Rv=!0,OA(),NA(),Rv=!1}class p2{constructor(t,n,i,r,u,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=u,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(gu.add(this),Nv||(Nv=!0,lt.read(OA),lt.resolveKeyframes(NA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;if(t[0]===null){const u=r?.get(),a=t[t.length-1];if(u!==void 0)t[0]=u;else if(i&&n){const c=i.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),r&&u===void 0&&r.set(t[0])}fz(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),gu.delete(this)}cancel(){this.state==="scheduled"&&(gu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xz=e=>e.startsWith("--");function RA(e,t,n){xz(t)?e.style.setProperty(t,n):e.style[t]=n}const Ez={};function MA(e,t){const n=rA(e);return()=>Ez[t]??n()}const Sz=MA(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kA=MA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mc=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,E5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function LA(e,t){if(e)return typeof e=="function"?kA()?CA(e,t):"ease-out":mA(e)?mc(e):Array.isArray(e)?e.map(n=>LA(n,t)||E5.easeOut):E5[e]}function Tz(e,t,n,{delay:i=0,duration:r=300,repeat:u=0,repeatType:a="loop",ease:c="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const m=LA(c,r);Array.isArray(m)&&(p.easing=m);const v={delay:i,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:u+1,direction:a==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(p,v)}function IA(e){return typeof e=="function"&&"applyToOptions"in e}function _z({type:e,...t}){return IA(e)&&kA()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class FA extends h2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:r,pseudoElement:u,allowFlatten:a=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!u,this.allowFlatten=a,this.options=t,r2(typeof t.type!="string");const h=_z(t);this.animation=Tz(n,i,r,h,u),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const p=Gh(r,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(p),RA(n,i,p),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}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(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return wi(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wi(t)}get time(){return wi(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ui(t),n&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Sz()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),Ni):r(this)}}const jA={anticipate:fA,backInOut:cA,circInOut:hA};function Cz(e){return e in jA}function Az(e){typeof e.ease=="string"&&Cz(e.ease)&&(e.ease=jA[e.ease])}const ug=10;class wz extends FA{constructor(t){Az(t),DA(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:r,element:u,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new ih({...a,autoplay:!1}),f=Math.max(ug,On.now()-this.startTime),h=jr(0,ug,f-ug),p=c.sample(f).value,{name:m}=this.options;u&&m&&RA(u,m,p),n.setWithVelocity(c.sample(Math.max(0,f-h)).value,p,h),c.stop()}}const S5=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ji.test(e)||e==="0")&&!e.startsWith("url("));function Dz(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 Nz(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],a=S5(r,t),c=S5(u,t);return!a||!c?!1:Dz(e)||(n==="spring"||IA(n))&&i}function Mv(e){e.duration=0,e.type="keyframes"}const PA=new Set(["opacity","clipPath","filter","transform"]),Oz=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Rz(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Oz.test(e[t]))return!0;return!1}const Mz=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),kz=rA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Lz(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:u,type:a,keyframes:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return kz()&&n&&(PA.has(n)||Mz.has(n)&&Rz(c))&&(n!=="transform"||!p)&&!h&&!i&&r!=="mirror"&&u!==0&&a!=="inertia"}const Iz=40;class Fz extends h2{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:a="loop",keyframes:c,name:f,motionValue:h,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=On.now();const v={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:u,repeatType:a,name:f,motionValue:h,element:p,...m},y=p?.KeyframeResolver||p2;this.keyframeResolver=new y(c,(x,S,_)=>this.onKeyframesResolved(x,S,v,!_),f,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,i,r){this.keyframeResolver=void 0;const{name:u,type:a,velocity:c,delay:f,isHandoff:h,onUpdate:p}=i;this.resolvedAt=On.now();let m=!0;Nz(t,u,a,c)||(m=!1,(ws.instantAnimations||!f)&&p?.(Gh(t,i,n)),t[0]=t[t.length-1],Mv(i),i.repeat=0);const y={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Iz?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},x=m&&!h&&Lz(y),S=y.motionValue?.owner?.current;let _;if(x)try{_=new wz({...y,element:S})}catch{_=new ih(y)}else _=new ih(y);_.finished.then(()=>{this.notifyFinished()}).catch(Ni),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),bz()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function $A(e,t,n,i=0,r=1){const u=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),a=e.size,c=(a-1)*i;return typeof n=="function"?n(u,a):r===1?u*i:c-u*i}const jz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pz(e){const t=jz.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function VA(e,t,n=1){const[i,r]=Pz(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const a=u.trim();return tA(a)?parseFloat(a):a}return a2(r)?VA(r,t,n+1):r}const $z={type:"spring",stiffness:500,damping:25,restSpeed:10},Vz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bz={type:"keyframes",duration:.8},Uz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zz=(e,{keyframes:t})=>t.length>2?Bz:ll.has(e)?e.startsWith("scale")?Vz(t[1]):$z:Uz;function BA(e,t){if(e?.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function m2(e,t){const n=e?.[t]??e?.default??e;return n!==e?BA(n,e):n}const Hz=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function qz(e){for(const t in e)if(!Hz.has(t))return!0;return!1}const g2=(e,t,n,i={},r,u)=>a=>{const c=m2(i,e)||{},f=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-ui(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:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:u?void 0:r};qz(c)||Object.assign(p,zz(e,p)),p.duration&&(p.duration=ui(p.duration)),p.repeatDelay&&(p.repeatDelay=ui(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Mv(p),p.delay===0&&(m=!0)),(ws.instantAnimations||ws.skipAnimations||r?.shouldSkipAnimations)&&(m=!0,Mv(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!u&&t.get()!==void 0){const v=Gh(p.keyframes,c);if(v!==void 0){lt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return c.isSync?new ih(p):new Fz(p)};function T5(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function v2(e,t,n,i){if(typeof t=="function"){const[r,u]=T5(i);t=t(n!==void 0?n:e.custom,r,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,u]=T5(i);t=t(n!==void 0?n:e.custom,r,u)}return t}function vu(e,t,n){const i=e.getProps();return v2(i,t,n!==void 0?n:i.custom,e)}const UA=new Set(["width","height","top","left","right","bottom",...al]),_5=30,Gz=e=>!isNaN(parseFloat(e)),_c={current:void 0};class Yz{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const r=On.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gz(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 o2);const i=this.events[t].add(n);return t==="change"?()=>{i(),lt.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(){this.events.change?.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 _c.current&&_c.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_5);return oA(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _u(e,t){return new Yz(e,t)}const kv=e=>Array.isArray(e);function Qz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_u(n))}function Xz(e){return kv(e)?e[e.length-1]||0:e}function Wz(e,t){const n=vu(e,t);let{transitionEnd:i={},transition:r={},...u}=n||{};u={...u,...i};for(const a in u){const c=Xz(u[a]);Qz(e,a,c)}}const cn=e=>!!(e&&e.getVelocity);function Zz(e){return!!(cn(e)&&e.add)}function Lv(e,t){const n=e.getValue("willChange");if(Zz(n))return n.add(t);if(!n&&ws.WillChange){const i=new ws.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function y2(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Kz="framerAppearId",zA="data-"+y2(Kz);function HA(e){return e.props[zA]}function Jz({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function qA(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:u,transitionEnd:a,...c}=t;const f=e.getDefaultTransition();u=u?BA(u,f):f;const h=u?.reduceMotion;i&&(u=i);const p=[],m=r&&e.animationState&&e.animationState.getState()[r];for(const v in c){const y=e.getValue(v,e.latestValues[v]??null),x=c[v];if(x===void 0||m&&Jz(m,v))continue;const S={delay:n,...m2(u||{},v)},_=y.get();if(_!==void 0&&!y.isAnimating()&&!Array.isArray(x)&&x===_&&!S.velocity){lt.update(()=>y.set(x));continue}let T=!1;if(window.MotionHandoffAnimation){const D=HA(e);if(D){const R=window.MotionHandoffAnimation(D,v,lt);R!==null&&(S.startTime=R,T=!0)}}Lv(e,v);const N=h??e.shouldReduceMotion;y.start(g2(v,y,x,N&&UA.has(v)?{type:!1}:S,e,T));const A=y.animation;A&&p.push(A)}if(a){const v=()=>lt.update(()=>{a&&Wz(e,a)});p.length?Promise.all(p).then(v):v()}return p}function Iv(e,t,n={}){const i=vu(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const u=i?()=>Promise.all(qA(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:m}=r;return eH(e,t,f,h,p,m,n)}:()=>Promise.resolve(),{when:c}=r;if(c){const[f,h]=c==="beforeChildren"?[u,a]:[a,u];return f().then(()=>h())}else return Promise.all([u(),a(n.delay)])}function eH(e,t,n=0,i=0,r=0,u=1,a){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(Iv(f,t,{...a,delay:n+(typeof i=="function"?0:i)+$A(e.variantChildren,f,i,r,u)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function tH(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(u=>Iv(e,u,n));i=Promise.all(r)}else if(typeof t=="string")i=Iv(e,t,n);else{const r=typeof t=="function"?vu(e,t,n.custom):t;i=Promise.all(qA(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const nH={test:e=>e==="auto",parse:e=>e},GA=e=>t=>t.test(e),YA=[ul,be,kr,vs,NU,DU,nH],C5=e=>YA.find(GA(e));function iH(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||iA(e):!0}const rH=new Set(["brightness","contrast","saturate","opacity"]);function oH(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(l2)||[];if(!i)return e;const r=n.replace(i,"");let u=rH.has(t)?1:0;return i!==n&&(u*=100),t+"("+u+r+")"}const sH=/\b([a-z-]*)\(.*?\)/gu,Fv={...Ji,getAnimatableNone:e=>{const t=e.match(sH);return t?t.map(oH).join(" "):e}},jv={...Ji,getAnimatableNone:e=>{const t=Ji.parse(e);return Ji.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},A5={...ul,transform:Math.round},uH={rotate:vs,rotateX:vs,rotateY:vs,rotateZ:vs,scale:s0,scaleX:s0,scaleY:s0,scaleZ:s0,skew:vs,skewX:vs,skewY:vs,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Qc,originX:d5,originY:d5,originZ:be},b2={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,inset:be,insetBlock:be,insetBlockStart:be,insetBlockEnd:be,insetInline:be,insetInlineStart:be,insetInlineEnd:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,paddingBlock:be,paddingBlockStart:be,paddingBlockEnd:be,paddingInline:be,paddingInlineStart:be,paddingInlineEnd:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,marginBlock:be,marginBlockStart:be,marginBlockEnd:be,marginInline:be,marginInlineStart:be,marginInlineEnd:be,fontSize:be,backgroundPositionX:be,backgroundPositionY:be,...uH,zIndex:A5,fillOpacity:Qc,strokeOpacity:Qc,numOctaves:A5},aH={...b2,color:Gt,backgroundColor:Gt,outlineColor:Gt,fill:Gt,stroke:Gt,borderColor:Gt,borderTopColor:Gt,borderRightColor:Gt,borderBottomColor:Gt,borderLeftColor:Gt,filter:Fv,WebkitFilter:Fv,mask:jv,WebkitMask:jv},QA=e=>aH[e],lH=new Set([Fv,jv]);function XA(e,t){let n=QA(e);return lH.has(n)||(n=Ji),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cH=new Set(["auto","none","0"]);function fH(e,t,n){let i=0,r;for(;i<e.length&&!r;){const u=e[i];typeof u=="string"&&!cH.has(u)&&Wa(u).values.length&&(r=e[i]),i++}if(r&&n)for(const u of t)e[u]=XA(n,r)}class dH extends p2{constructor(t,n,i,r,u){super(t,n,i,r,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),a2(m))){const v=VA(m,n.current);v!==void 0&&(t[p]=v),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!UA.has(i)||t.length!==2)return;const[r,u]=t,a=C5(r),c=C5(u),f=f5(r),h=f5(u);if(f!==h&&Es[i]){this.needsMeasurement=!0;return}if(a!==c)if(x5(a)&&x5(c))for(let p=0;p<t.length;p++){const m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else Es[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||iH(t[r]))&&i.push(r);i.length&&fH(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=Es[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const u=i.length-1,a=i[u];i[u]=Es[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,f])=>{t.getValue(c).set(f)}),this.resolveNoneKeyframes()}}function WA(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(i=>i!=null)}const ZA=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function hH(e){return nA(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:x2}=gA(queueMicrotask,!1),Qi={x:!1,y:!1};function KA(){return Qi.x||Qi.y}function pH(e){return e==="x"||e==="y"?Qi[e]?null:(Qi[e]=!0,()=>{Qi[e]=!1}):Qi.x||Qi.y?null:(Qi.x=Qi.y=!0,()=>{Qi.x=Qi.y=!1})}function JA(e,t){const n=WA(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function mH(e){return!(e.pointerType==="touch"||KA())}function gH(e,t,n={}){const[i,r,u]=JA(e,n);return i.forEach(a=>{let c=!1,f=!1,h;const p=()=>{a.removeEventListener("pointerleave",x)},m=_=>{h&&(h(_),h=void 0),p()},v=_=>{c=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,m(_))},y=()=>{c=!0,window.addEventListener("pointerup",v,r),window.addEventListener("pointercancel",v,r)},x=_=>{if(_.pointerType!=="touch"){if(c){f=!0;return}m(_)}},S=_=>{if(!mH(_))return;f=!1;const T=t(a,_);typeof T=="function"&&(h=T,a.addEventListener("pointerleave",x,r))};a.addEventListener("pointerenter",S,r),a.addEventListener("pointerdown",y,r)}),u}const ew=(e,t)=>t?e===t?!0:ew(e,t.parentElement):!1,E2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yH(e){return vH.has(e.tagName)||e.isContentEditable===!0}const bH=new Set(["INPUT","SELECT","TEXTAREA"]);function xH(e){return bH.has(e.tagName)||e.isContentEditable===!0}const T0=new WeakSet;function w5(e){return t=>{t.key==="Enter"&&e(t)}}function ag(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const EH=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=w5(()=>{if(T0.has(n))return;ag(n,"down");const r=w5(()=>{ag(n,"up")}),u=()=>ag(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",u,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function D5(e){return E2(e)&&!KA()}const N5=new WeakSet;function SH(e,t,n={}){const[i,r,u]=JA(e,n),a=c=>{const f=c.currentTarget;if(!D5(c)||N5.has(c))return;T0.add(f),n.stopPropagation&&N5.add(c);const h=t(f,c),p=(y,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),T0.has(f)&&T0.delete(f),D5(y)&&typeof h=="function"&&h(y,{success:x})},m=y=>{p(y,f===window||f===document||n.useGlobalTarget||ew(f,y.target))},v=y=>{p(y,!1)};window.addEventListener("pointerup",m,r),window.addEventListener("pointercancel",v,r)};return i.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,r),hH(c)&&(c.addEventListener("focus",h=>EH(h,r)),!yH(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),u}function S2(e){return nA(e)&&"ownerSVGElement"in e}const _0=new WeakMap;let C0;const tw=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:S2(i)&&"getBBox"in i?i.getBBox()[t]:i[n],TH=tw("inline","width","offsetWidth"),_H=tw("block","height","offsetHeight");function CH({target:e,borderBoxSize:t}){_0.get(e)?.forEach(n=>{n(e,{get width(){return TH(e,t)},get height(){return _H(e,t)}})})}function AH(e){e.forEach(CH)}function wH(){typeof ResizeObserver>"u"||(C0=new ResizeObserver(AH))}function DH(e,t){C0||wH();const n=WA(e);return n.forEach(i=>{let r=_0.get(i);r||(r=new Set,_0.set(i,r)),r.add(t),C0?.observe(i)}),()=>{n.forEach(i=>{const r=_0.get(i);r?.delete(t),r?.size||C0?.unobserve(i)})}}const A0=new Set;let Ma;function NH(){Ma=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};A0.forEach(t=>t(e))},window.addEventListener("resize",Ma)}function OH(e){return A0.add(e),Ma||NH(),()=>{A0.delete(e),!A0.size&&typeof Ma=="function"&&(window.removeEventListener("resize",Ma),Ma=void 0)}}function O5(e,t){return typeof e=="function"?OH(e):DH(e,t)}function RH(e){return S2(e)&&e.tagName==="svg"}function MH(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],r=e[1+n],u=e[2+n],a=e[3+n],c=wA(r,u,a);return t?c(i):c}const kH=[...YA,Gt,Ji],LH=e=>kH.find(GA(e)),R5=()=>({translate:0,scale:1,origin:0,originPoint:0}),ka=()=>({x:R5(),y:R5()}),M5=()=>({min:0,max:0}),en=()=>({x:M5(),y:M5()}),IH=new WeakMap;function Yh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xc(e){return typeof e=="string"||Array.isArray(e)}const T2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_2=["initial",...T2];function Qh(e){return Yh(e.animate)||_2.some(t=>Xc(e[t]))}function nw(e){return!!(Qh(e)||e.variants)}function FH(e,t,n){for(const i in t){const r=t[i],u=n[i];if(cn(r))e.addValue(i,r);else if(cn(u))e.addValue(i,_u(r,{owner:e}));else if(u!==r)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(i);e.addValue(i,_u(a!==void 0?a:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Pv={current:null},iw={current:!1},jH=typeof window<"u";function PH(){if(iw.current=!0,!!jH)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pv.current=e.matches;e.addEventListener("change",t),t()}else Pv.current=!1}const k5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let rh={};function rw(e){rh=e}function $H(){return rh}class VH{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,skipAnimations:u,blockInitialAnimation:a,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=p2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,lt.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=u,this.options=f,this.blockInitialAnimation=!!a,this.isControllingVariants=Qh(n),this.isVariantNode=nw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in v){const x=v[y];h[y]!==void 0&&cn(x)&&x.set(h[y])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,IH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(iw.current||PH(),this.shouldReduceMotion=Pv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Oo(this.notifyUpdate),Oo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}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){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&PA.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:c,times:f,ease:h,duration:p}=n.accelerate,m=new FA({element:this.current,name:t,keyframes:c,times:f,ease:h,duration:ui(p)}),v=a(m);this.valueSubscriptions.set(t,()=>{v(),m.cancel()});return}const i=ll.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&<.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),u&&u(),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 rh){const n=rh[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}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<k5.length;i++){const r=k5[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const u="on"+r,a=t[u];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=FH(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=_u(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"&&(tA(i)||iA(i))?i=parseFloat(i):!LH(i)&&Ji.test(n)&&(i=XA(t,n)),this.setBaseTarget(t,cn(i)?i.get():i)),cn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const u=v2(this.props,n,this.presenceContext?.custom);u&&(i=u[t])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!cn(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new o2),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){x2.render(this.render)}}class ow extends VH{constructor(){super(...arguments),this.KeyframeResolver=dH}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const i=t.style;return i?i[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;cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Rs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function sw({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function BH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UH(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 lg(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!lg(e)||!lg(t)||!lg(n)}function ru(e){return $v(e)||uw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uw(e){return L5(e.x)||L5(e.y)}function L5(e){return e&&e!=="0%"}function oh(e,t,n){const i=e-n,r=t*i;return n+r}function I5(e,t,n,i,r){return r!==void 0&&(e=oh(e,r,i)),oh(e,n,i)+t}function Vv(e,t=0,n=1,i,r){e.min=I5(e.min,t,n,i,r),e.max=I5(e.max,t,n,i,r)}function aw(e,{x:t,y:n}){Vv(e.x,t.translate,t.scale,t.originPoint),Vv(e.y,n.translate,n.scale,n.originPoint)}const F5=.999999999999,j5=1.0000000000001;function zH(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let u,a;for(let c=0;c<r;c++){u=n[c],a=u.projectionDelta;const{visualElement:f}=u.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(Ar(e.x,-u.scroll.offset.x),Ar(e.y,-u.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,aw(e,a)),i&&ru(u.latestValues)&&w0(e,u.latestValues,u.layout?.layoutBox))}t.x<j5&&t.x>F5&&(t.x=1),t.y<j5&&t.y>F5&&(t.y=1)}function Ar(e,t){e.min+=t,e.max+=t}function P5(e,t,n,i,r=.5){const u=vt(e.min,e.max,r);Vv(e,t,n,u,i)}function $5(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function w0(e,t,n){const i=n??e;P5(e.x,$5(t.x,i.x),t.scaleX,t.scale,t.originX),P5(e.y,$5(t.y,i.y),t.scaleY,t.scale,t.originY)}function lw(e,t){return sw(UH(e.getBoundingClientRect(),t))}function HH(e,t,n){const i=lw(e,n),{scroll:r}=t;return r&&(Ar(i.x,r.offset.x),Ar(i.y,r.offset.y)),i}const qH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GH=al.length;function YH(e,t,n){let i="",r=!0;for(let u=0;u<GH;u++){const a=al[u],c=e[a];if(c===void 0)continue;let f=!0;if(typeof c=="number")f=c===(a.startsWith("scale")?1:0);else{const h=parseFloat(c);f=a.startsWith("scale")?h===1:h===0}if(!f||n){const h=ZA(c,b2[a]);if(!f){r=!1;const p=qH[a]||a;i+=`${p}(${h}) `}n&&(t[a]=h)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function C2(e,t,n){const{style:i,vars:r,transformOrigin:u}=e;let a=!1,c=!1;for(const f in t){const h=t[f];if(ll.has(f)){a=!0;continue}else if(yA(f)){r[f]=h;continue}else{const p=ZA(h,b2[f]);f.startsWith("origin")?(c=!0,u[f]=p):i[f]=p}}if(t.transform||(a||n?i.transform=YH(t,e.transform,n):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:p=0}=u;i.transformOrigin=`${f} ${h} ${p}`}}function cw(e,{style:t,vars:n},i,r){const u=e.style;let a;for(a in t)u[a]=t[a];r?.applyProjectionStyles(u,i);for(a in n)u.setProperty(a,n[a])}function V5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const n=V5(e,t.target.x),i=V5(e,t.target.y);return`${n}% ${i}%`}},QH={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ji.parse(e);if(r.length>5)return i;const u=Ji.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=f;const h=vt(c,f,.5);return typeof r[2+a]=="number"&&(r[2+a]/=h),typeof r[3+a]=="number"&&(r[3+a]/=h),u(r)}},Bv={borderRadius:{...lc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lc,borderTopRightRadius:lc,borderBottomLeftRadius:lc,borderBottomRightRadius:lc,boxShadow:QH};function fw(e,{layout:t,layoutId:n}){return ll.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bv[e]||e==="opacity")}function A2(e,t,n){const i=e.style,r=t?.style,u={};if(!i)return u;for(const a in i)(cn(i[a])||r&&cn(r[a])||fw(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(u[a]=i[a]);return u}function XH(e){return window.getComputedStyle(e)}class WH extends ow{constructor(){super(...arguments),this.type="html",this.renderInstance=cw}readValueFromInstance(t,n){if(ll.has(n))return this.projection?.isProjecting?wv(n):pz(t,n);{const i=XH(t),r=(yA(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lw(t,n)}build(t,n,i){C2(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return A2(t,n,i)}}const ZH={offset:"stroke-dashoffset",array:"stroke-dasharray"},KH={offset:"strokeDashoffset",array:"strokeDasharray"};function JH(e,t,n=1,i=0,r=!0){e.pathLength=1;const u=r?ZH:KH;e[u.offset]=`${-i}`,e[u.array]=`${t} ${n}`}const eq=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dw(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:u=1,pathOffset:a=0,...c},f,h,p){if(C2(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?.transformBox??"fill-box",delete m.transformBox);for(const y of eq)m[y]!==void 0&&(v[y]=m[y],delete m[y]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),i!==void 0&&(m.scale=i),r!==void 0&&JH(m,r,u,a,!1)}const hw=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"]),pw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tq(e,t,n,i){cw(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(hw.has(r)?r:y2(r),t.attrs[r])}function mw(e,t,n){const i=A2(e,t,n);for(const r in e)if(cn(e[r])||cn(t[r])){const u=al.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[u]=e[r]}return i}class nq extends ow{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ll.has(n)){const i=QA(n);return i&&i.default||0}return n=hw.has(n)?n:y2(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return mw(t,n,i)}build(t,n,i){dw(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,r){tq(t,n,i,r)}mount(t){this.isSVGTag=pw(t.tagName),super.mount(t)}}const iq=_2.length;function gw(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?gw(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<iq;n++){const i=_2[n],r=e.props[i];(Xc(r)||r===!1)&&(t[i]=r)}return t}function vw(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 rq=[...T2].reverse(),oq=T2.length;function sq(e){return t=>Promise.all(t.map(({animation:n,options:i})=>tH(e,n,i)))}function uq(e){let t=sq(e),n=B5(),i=!0,r=!1;const u=h=>(p,m)=>{const v=vu(e,m,h==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:y,transitionEnd:x,...S}=v;p={...p,...S,...x}}return p};function a(h){t=h(e)}function c(h){const{props:p}=e,m=gw(e.parent)||{},v=[],y=new Set;let x={},S=1/0;for(let T=0;T<oq;T++){const N=rq[T],A=n[N],D=p[N]!==void 0?p[N]:m[N],R=Xc(D),M=N===h?A.isActive:null;M===!1&&(S=T);let F=D===m[N]&&D!==p[N]&&R;if(F&&(i||r)&&e.manuallyAnimateOnMount&&(F=!1),A.protectedKeys={...x},!A.isActive&&M===null||!D&&!A.prevProp||Yh(D)||typeof D=="boolean")continue;if(N==="exit"&&A.isActive&&M!==!0){A.prevResolvedValues&&(x={...x,...A.prevResolvedValues});continue}const B=aq(A.prevProp,D);let k=B||N===h&&A.isActive&&!F&&R||T>S&&R,$=!1;const H=Array.isArray(D)?D:[D];let Y=H.reduce(u(N),{});M===!1&&(Y={});const{prevResolvedValues:se={}}=A,W={...se,...Y},J=j=>{k=!0,y.has(j)&&($=!0,y.delete(j)),A.needsAnimating[j]=!0;const P=e.getValue(j);P&&(P.liveStyle=!1)};for(const j in W){const P=Y[j],ne=se[j];if(x.hasOwnProperty(j))continue;let I=!1;kv(P)&&kv(ne)?I=!vw(P,ne):I=P!==ne,I?P!=null?J(j):y.add(j):P!==void 0&&y.has(j)?J(j):A.protectedKeys[j]=!0}A.prevProp=D,A.prevResolvedValues=Y,A.isActive&&(x={...x,...Y}),(i||r)&&e.blockInitialAnimation&&(k=!1);const L=F&&B;k&&(!L||$)&&v.push(...H.map(j=>{const P={type:N};if(typeof j=="string"&&(i||r)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:ne}=e,I=vu(ne,j);if(ne.enteringChildren&&I){const{delayChildren:U}=I.transition||{};P.delay=$A(ne.enteringChildren,e,U)}}return{animation:j,options:P}}))}if(y.size){const T={};if(typeof p.initial!="boolean"){const N=vu(e,Array.isArray(p.initial)?p.initial[0]:p.initial);N&&N.transition&&(T.transition=N.transition)}y.forEach(N=>{const A=e.getBaseTarget(N),D=e.getValue(N);D&&(D.liveStyle=!0),T[N]=A??null}),v.push({animation:T})}let _=!!v.length;return i&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(_=!1),i=!1,r=!1,_?t(v):Promise.resolve()}function f(h,p){if(n[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(h,p)),n[h].isActive=p;const m=c(h);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:c,setActive:f,setAnimateFunction:a,getState:()=>n,reset:()=>{n=B5(),r=!0}}}function aq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vw(t,e):!1}function nu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function B5(){return{animate:nu(!0),whileInView:nu(),whileHover:nu(),whileTap:nu(),whileDrag:nu(),whileFocus:nu(),exit:nu()}}function Uv(e,t){e.min=t.min,e.max=t.max}function Yi(e,t){Uv(e.x,t.x),Uv(e.y,t.y)}function U5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const yw=1e-4,lq=1-yw,cq=1+yw,bw=.01,fq=0-bw,dq=0+bw;function Rn(e){return e.max-e.min}function hq(e,t,n){return Math.abs(e-t)<=n}function z5(e,t,n,i=.5){e.origin=i,e.originPoint=vt(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=vt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lq&&e.scale<=cq||isNaN(e.scale))&&(e.scale=1),(e.translate>=fq&&e.translate<=dq||isNaN(e.translate))&&(e.translate=0)}function Cc(e,t,n,i){z5(e.x,t.x,n.x,i?i.originX:void 0),z5(e.y,t.y,n.y,i?i.originY:void 0)}function H5(e,t,n,i=0){const r=i?vt(n.min,n.max,i):n.min;e.min=r+t.min,e.max=e.min+Rn(t)}function pq(e,t,n,i){H5(e.x,t.x,n.x,i?.x),H5(e.y,t.y,n.y,i?.y)}function q5(e,t,n,i=0){const r=i?vt(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+Rn(t)}function sh(e,t,n,i){q5(e.x,t.x,n.x,i?.x),q5(e.y,t.y,n.y,i?.y)}function G5(e,t,n,i,r){return e-=t,e=oh(e,1/n,i),r!==void 0&&(e=oh(e,1/r,i)),e}function mq(e,t=0,n=1,i=.5,r,u=e,a=e){if(kr.test(t)&&(t=parseFloat(t),t=vt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=vt(u.min,u.max,i);e===u&&(c-=t),e.min=G5(e.min,t,n,c,r),e.max=G5(e.max,t,n,c,r)}function Y5(e,t,[n,i,r],u,a){mq(e,t[n],t[i],t[r],t.scale,u,a)}const gq=["x","scaleX","originX"],vq=["y","scaleY","originY"];function Q5(e,t,n,i){Y5(e.x,t,gq,n?n.x:void 0,i?i.x:void 0),Y5(e.y,t,vq,n?n.y:void 0,i?i.y:void 0)}function X5(e){return e.translate===0&&e.scale===1}function xw(e){return X5(e.x)&&X5(e.y)}function W5(e,t){return e.min===t.min&&e.max===t.max}function yq(e,t){return W5(e.x,t.x)&&W5(e.y,t.y)}function Z5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ew(e,t){return Z5(e.x,t.x)&&Z5(e.y,t.y)}function K5(e){return Rn(e.x)/Rn(e.y)}function J5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Cr(e){return[e("x"),e("y")]}function bq(e,t,n){let i="";const r=e.x.translate/t.x,u=e.y.translate/t.y,a=n?.z||0;if((r||u||a)&&(i=`translate3d(${r}px, ${u}px, ${a}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:y,skewY:x}=n;h&&(i=`perspective(${h}px) ${i}`),p&&(i+=`rotate(${p}deg) `),m&&(i+=`rotateX(${m}deg) `),v&&(i+=`rotateY(${v}deg) `),y&&(i+=`skewX(${y}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 Sw=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],xq=Sw.length,eS=e=>typeof e=="string"?parseFloat(e):e,tS=e=>typeof e=="number"||be.test(e);function Eq(e,t,n,i,r,u){r?(e.opacity=vt(0,n.opacity??1,Sq(i)),e.opacityExit=vt(t.opacity??1,0,Tq(i))):u&&(e.opacity=vt(t.opacity??1,n.opacity??1,i));for(let a=0;a<xq;a++){const c=Sw[a];let f=nS(t,c),h=nS(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||tS(f)===tS(h)?(e[c]=Math.max(vt(eS(f),eS(h),i),0),(kr.test(h)||kr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=vt(t.rotate||0,n.rotate||0,i))}function nS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Sq=Tw(0,.5,dA),Tq=Tw(.5,.95,Ni);function Tw(e,t,n){return i=>i<e?0:i>t?1:n(Yc(e,t,i))}function _q(e,t,n){const i=cn(e)?e:_u(e);return i.start(g2("",i,t,n)),i.animation}function Wc(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Cq=(e,t)=>e.depth-t.depth;class Aq{constructor(){this.children=[],this.isDirty=!1}add(t){i2(this.children,t),this.isDirty=!0}remove(t){J0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Cq),this.isDirty=!1,this.children.forEach(t)}}function wq(e,t){const n=On.now(),i=({timestamp:r})=>{const u=r-n;u>=t&&(Oo(i),e(u-t))};return lt.setup(i,!0),()=>Oo(i)}function D0(e){return cn(e)?e.get():e}class Dq{constructor(){this.members=[]}add(t){i2(this.members,t);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===t||i===this.lead||i===this.prevLead)continue;const r=i.instance;(!r||r.isConnected===!1)&&!i.snapshot&&(J0(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(J0(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){for(let n=this.members.indexOf(t)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:u}=t.options;(r===void 0||r!==u)&&(t.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const N0={hasAnimatedSinceResize:!0,hasEverUpdated:!1},cg=["","X","Y","Z"],Nq=1e3;let Oq=0;function fg(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function _w(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=HA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(r||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&_w(i)}function Cw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(a={},c=t?.()){this.id=Oq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kq),this.nodes.forEach($q),this.nodes.forEach(Vq),this.nodes.forEach(Lq)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 Aq)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new o2),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=S2(a)&&!RH(a),this.instance=a;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let p,m=0;const v=()=>this.root.updateBlockedByResize=!1;lt.read(()=>{m=window.innerWidth}),e(a,()=>{const y=window.innerWidth;y!==m&&(m=y,this.root.updateBlockedByResize=!0,p&&p(),p=wq(v,250),N0.hasAnimatedSinceResize&&(N0.hasAnimatedSinceResize=!1,this.nodes.forEach(oS)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||qq,{onLayoutAnimationStart:S,onLayoutAnimationComplete:_}=h.getProps(),T=!this.targetLayout||!Ew(this.targetLayout,y),N=!m&&v;if(this.options.layoutRoot||this.resumeFrom||N||m&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...m2(x,"layout"),onPlay:S,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(p,N)}else m||oS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Oo(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(Bq),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_w(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,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!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(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(Fq),this.nodes.forEach(iS);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rS);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jq),this.nodes.forEach(Pq),this.nodes.forEach(Rq),this.nodes.forEach(Mq)):this.nodes.forEach(rS),this.clearAllSnapshots();const c=On.now();bn.delta=jr(0,1e3/60,c-bn.timestamp),bn.timestamp=c,bn.isProcessing=!0,ng.update.process(bn),ng.preRender.process(bn),ng.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,x2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Iq),this.sharedNodes.forEach(Uq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lt.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 a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=en()),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!xw(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;a&&this.instance&&(c||ru(this.latestValues)||p)&&(r(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),Gq(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return en();const c=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Yq))){const{scroll:h}=this.root;h&&(Ar(c.x,h.offset.x),Ar(c.y,h.offset.y))}return c}removeElementScroll(a){const c=en();if(Yi(c,a),this.scroll?.wasRoot)return c;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:p,options:m}=h;h!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&Yi(c,a),Ar(c.x,p.offset.x),Ar(c.y,p.offset.y))}return c}applyTransform(a,c=!1,f){const h=f||en();Yi(h,a);for(let p=0;p<this.path.length;p++){const m=this.path[p];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Ar(h.x,-m.scroll.offset.x),Ar(h.y,-m.scroll.offset.y)),ru(m.latestValues)&&w0(h,m.latestValues,m.layout?.layoutBox)}return ru(this.latestValues)&&w0(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(a){const c=en();Yi(c,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!ru(h.latestValues))continue;let p;h.instance&&($v(h.latestValues)&&h.updateSnapshot(),p=en(),Yi(p,h.measurePageBox())),Q5(c,h.latestValues,h.snapshot?.layoutBox,p)}return ru(this.latestValues)&&Q5(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){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(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=bn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pq(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Yi(this.target,this.layout.layoutBox),aw(this.target,this.targetDelta)):Yi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||uw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,c,f){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),sh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),Yi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),c=!!this.resumingFrom||this!==a;let f=!0;if((this.isProjectionDirty||this.parent?.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;Yi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;zH(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=en());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(U5(this.prevProjectionDelta.x,this.projectionDelta.x),U5(this.prevProjectionDelta.y,this.projectionDelta.y)),Cc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!J5(this.projectionDelta.x,this.prevProjectionDelta.x)||!J5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ka(),this.projectionDelta=ka(),this.projectionDeltaWithTransform=ka()}setAnimationOrigin(a,c=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},m=ka();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=en(),y=f?f.source:void 0,x=this.layout?this.layout.source:void 0,S=y!==x,_=this.getStack(),T=!_||_.members.length<=1,N=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(Hq));this.animationProgress=0;let A;this.mixTargetDelta=D=>{const R=D/1e3;sS(m.x,a.x,R),sS(m.y,a.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sh(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zq(this.relativeTarget,this.relativeTargetOrigin,v,R),A&&yq(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=en()),Yi(A,this.relativeTarget)),S&&(this.animationValues=p,Eq(p,h,this.latestValues,R,N,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Oo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{N0.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_u(0)),this.motionValue.jump(0,!1),this.currentAnimation=_q(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nq),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:p}=a;if(!(!c||!f||!h)){if(this!==a&&this.layout&&h&&Aw(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||en();const m=Rn(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+m;const v=Rn(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+v}Yi(c,f),w0(c,p),Cc(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Dq),this.sharedNodes.get(a).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 a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&fg("z",a,h,this.animationValues);for(let p=0;p<cg.length;p++)fg(`rotate${cg[p]}`,a,h,this.animationValues),fg(`skew${cg[p]}`,a,h,this.animationValues);a.render();for(const p in h)a.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);a.scheduleRender()}applyProjectionStyles(a,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=D0(c?.pointerEvents)||"",a.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=D0(c?.pointerEvents)||""),this.hasProjected&&!ru(this.latestValues)&&(a.transform=f?f({},""):"none",this.hasProjected=!1);return}a.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let m=bq(this.projectionDeltaWithTransform,this.treeScale,p);f&&(m=f(p,m)),a.transform=m;const{x:v,y}=this.projectionDelta;a.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,h.animationValues?a.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:a.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Bv){if(p[x]===void 0)continue;const{correct:S,applyTo:_,isCSSVariable:T}=Bv[x],N=m==="none"?p[x]:S(p[x],h);if(_){const A=_.length;for(let D=0;D<A;D++)a[_[D]]=N}else T?this.options.visualElement.renderState.vars[x]=N:a[x]=N}this.options.layoutId&&(a.pointerEvents=h===this?D0(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(iS),this.root.sharedNodes.clear()}}}function Rq(e){e.updateLayout()}function Mq(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,u=t.source!==e.layout.source;if(r==="size")Cr(p=>{const m=u?t.measuredBox[p]:t.layoutBox[p],v=Rn(m);m.min=n[p].min,m.max=m.min+v});else if(r==="x"||r==="y"){const p=r==="x"?"y":"x";Uv(u?t.measuredBox[p]:t.layoutBox[p],n[p])}else Aw(r,t.layoutBox,n)&&Cr(p=>{const m=u?t.measuredBox[p]:t.layoutBox[p],v=Rn(n[p]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const a=ka();Cc(a,n,t.layoutBox);const c=ka();u?Cc(c,e.applyTransform(i,!0),t.measuredBox):Cc(c,n,t.layoutBox);const f=!xw(a);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const y=e.options.layoutAnchor||void 0,x=en();sh(x,t.layoutBox,m.layoutBox,y);const S=en();sh(S,n,v.layoutBox,y),Ew(x,S)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function kq(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 Lq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Iq(e){e.clearSnapshot()}function iS(e){e.clearMeasurements()}function Fq(e){e.isLayoutDirty=!0,e.updateLayout()}function rS(e){e.isLayoutDirty=!1}function jq(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Pq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $q(e){e.resolveTargetDelta()}function Vq(e){e.calcProjection()}function Bq(e){e.resetSkewAndRotation()}function Uq(e){e.removeLeadSnapshot()}function sS(e,t,n){e.translate=vt(t.translate,0,n),e.scale=vt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uS(e,t,n,i){e.min=vt(t.min,n.min,i),e.max=vt(t.max,n.max,i)}function zq(e,t,n,i){uS(e.x,t.x,n.x,i),uS(e.y,t.y,n.y,i)}function Hq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qq={duration:.45,ease:[.4,0,.1,1]},aS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lS=aS("applewebkit/")&&!aS("chrome/")?Math.round:Ni;function cS(e){e.min=lS(e.min),e.max=lS(e.max)}function Gq(e){cS(e.x),cS(e.y)}function Aw(e,t,n){return e==="position"||e==="preserve-aspect"&&!hq(K5(t),K5(n),.2)}function Yq(e){return e!==e.root&&e.scroll?.wasRoot}const Qq=Cw({attachResizeListener:(e,t)=>Wc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),dg={current:void 0},ww=Cw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dg.current){const e=new Qq({});e.mount(window),e.setOptions({layoutScroll:!0}),dg.current=e}return dg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),w2=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Xq(e=!0){const t=E.useContext(n2);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,u=E.useId();E.useEffect(()=>{if(e)return r(u)},[e]);const a=E.useCallback(()=>e&&i&&i(u),[u,i,e]);return!n&&i?[!1,a]:[!0]}const Dw=E.createContext({strict:!1}),fS={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"]};let dS=!1;function Wq(){if(dS)return;const e={};for(const t in fS)e[t]={isEnabled:n=>fS[t].some(i=>!!n[i])};rw(e),dS=!0}function Nw(){return Wq(),$H()}function Zq(e){const t=Nw();for(const n in e)t[n]={...t[n],...e[n]};rw(t)}const Kq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function uh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Kq.has(e)}let Ow=e=>!uh(e);function Jq(e){typeof e=="function"&&(Ow=t=>t.startsWith("on")?!uh(t):e(t))}try{Jq(require("@emotion/is-prop-valid").default)}catch{}function eG(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||cn(e[r])||(Ow(r)||n===!0&&uh(r)||!t&&!uh(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}const Xh=E.createContext({});function tG(e,t){if(Qh(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Xc(n)?n:void 0,animate:Xc(i)?i:void 0}}return e.inherit!==!1?t:{}}function nG(e){const{initial:t,animate:n}=tG(e,E.useContext(Xh));return E.useMemo(()=>({initial:t,animate:n}),[hS(t),hS(n)])}function hS(e){return Array.isArray(e)?e.join(" "):e}const D2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rw(e,t,n){for(const i in t)!cn(t[i])&&!fw(i,n)&&(e[i]=t[i])}function iG({transformTemplate:e},t){return E.useMemo(()=>{const n=D2();return C2(n,t,e),Object.assign({},n.vars,n.style)},[t])}function rG(e,t){const n=e.style||{},i={};return Rw(i,n,e),Object.assign(i,iG(e,t)),i}function oG(e,t){const n={},i=rG(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 Mw=()=>({...D2(),attrs:{}});function sG(e,t,n,i){const r=E.useMemo(()=>{const u=Mw();return dw(u,t,pw(i),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};Rw(u,e.style,e),r.style={...u,...r.style}}return r}const uG=["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 N2(e){return typeof e!="string"||e.includes("-")?!1:!!(uG.indexOf(e)>-1||/[A-Z]/u.test(e))}function aG(e,t,n,{latestValues:i},r,u=!1,a){const f=(a??N2(e)?sG:oG)(t,i,r,e),h=eG(t,typeof e=="string",u),p=e!==E.Fragment?{...h,...f,ref:n}:{},{children:m}=t,v=E.useMemo(()=>cn(m)?m.get():m,[m]);return E.createElement(e,{...p,children:v})}function lG({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:cG(n,i,r,e),renderState:t()}}function cG(e,t,n,i){const r={},u=i(e,{});for(const v in u)r[v]=D0(u[v]);let{initial:a,animate:c}=e;const f=Qh(e),h=nw(e);t&&h&&!f&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const m=p?c:a;if(m&&typeof m!="boolean"&&!Yh(m)){const v=Array.isArray(m)?m:[m];for(let y=0;y<v.length;y++){const x=v2(e,v[y]);if(x){const{transitionEnd:S,transition:_,...T}=x;for(const N in T){let A=T[N];if(Array.isArray(A)){const D=p?A.length-1:0;A=A[D]}A!==null&&(r[N]=A)}for(const N in S)r[N]=S[N]}}}return r}const kw=e=>(t,n)=>{const i=E.useContext(Xh),r=E.useContext(n2),u=()=>lG(e,t,i,r);return n?u():yf(u)},fG=kw({scrapeMotionValuesFromProps:A2,createRenderState:D2}),dG=kw({scrapeMotionValuesFromProps:mw,createRenderState:Mw}),hG=Symbol.for("motionComponentSymbol");function pG(e,t,n){const i=E.useRef(n);E.useInsertionEffect(()=>{i.current=n});const r=E.useRef(null);return E.useCallback(u=>{u&&e.onMount?.(u);const a=i.current;if(typeof a=="function")if(u){const c=a(u);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(u);else a&&(a.current=u);t&&(u?t.mount(u):t.unmount())},[t])}const Lw=E.createContext({});function wa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mG(e,t,n,i,r,u){const{visualElement:a}=E.useContext(Xh),c=E.useContext(Dw),f=E.useContext(n2),h=E.useContext(w2),p=h.reducedMotion,m=h.skipAnimations,v=E.useRef(null),y=E.useRef(!1);i=i||c.renderer,!v.current&&i&&(v.current=i(e,{visualState:t,parent:a,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:u}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,S=E.useContext(Lw);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&gG(v.current,n,r,S);const _=E.useRef(!1);E.useInsertionEffect(()=>{x&&_.current&&x.update(n,f)});const T=n[zA],N=E.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return eA(()=>{y.current=!0,x&&(_.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),N.current&&x.animationState&&x.animationState.animateChanges())}),E.useEffect(()=>{x&&(!N.current&&x.animationState&&x.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),N.current=!1),x.enteringChildren=void 0)}),x}function gG(e,t,n,i){const{layoutId:r,layout:u,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Iw(e.parent)),e.projection.setOptions({layoutId:r,layout:u,alwaysMeasureLayout:!!a||c&&wa(c),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:f,layoutRoot:h,layoutAnchor:p})}function Iw(e){if(e)return e.options.allowProjection!==!1?e.projection:Iw(e.parent)}function hg(e,{forwardMotionProps:t=!1,type:n}={},i,r){i&&Zq(i);const u=n?n==="svg":N2(e),a=u?dG:fG;function c(h,p){let m;const v={...E.useContext(w2),...h,layoutId:vG(h)},{isStatic:y}=v,x=nG(h),S=a(h,y);if(!y&&typeof window<"u"){yG();const _=bG(v);m=_.MeasureLayout,x.visualElement=mG(e,S,v,r,_.ProjectionNode,u)}return w.jsxs(Xh.Provider,{value:x,children:[m&&x.visualElement?w.jsx(m,{visualElement:x.visualElement,...v}):null,aG(e,h,pG(S,x.visualElement,p),S,y,t,u)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=E.forwardRef(c);return f[hG]=e,f}function vG({layoutId:e}){const t=E.useContext(J8).id;return t&&e!==void 0?t+"-"+e:e}function yG(e,t){E.useContext(Dw).strict}function bG(e){const t=Nw(),{drag:n,layout:i}=t;if(!n&&!i)return{};const r={...n,...i};return{MeasureLayout:n?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function xG(e,t){if(typeof Proxy>"u")return hg;const n=new Map,i=(u,a)=>hg(u,a,e,t),r=(u,a)=>i(u,a);return new Proxy(r,{get:(u,a)=>a==="create"?i:(n.has(a)||n.set(a,hg(a,void 0,e,t)),n.get(a))})}const EG=(e,t)=>t.isSVG??N2(e)?new nq(t):new WH(t,{allowProjection:e!==E.Fragment});class SG extends Rs{constructor(t){super(t),t.animationState||(t.animationState=uq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yh(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(){this.node.animationState.reset(),this.unmountControls?.()}}let TG=0;class _G extends Rs{constructor(){super(...arguments),this.id=TG++,this.isExitComplete=!1}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;if(t&&i===!1){if(this.isExitComplete){const{initial:u,custom:a}=this.node.getProps();if(typeof u=="string"){const c=vu(this.node,u,a);if(c){const{transition:f,transitionEnd:h,...p}=c;for(const m in p)this.node.getValue(m)?.jump(p[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const CG={animation:{Feature:SG},exit:{Feature:_G}};function Sf(e){return{point:{x:e.pageX,y:e.pageY}}}const AG=e=>t=>E2(t)&&e(t,Sf(t));function Ac(e,t,n,i){return Wc(e,t,AG(n),i)}const Fw=({current:e})=>e?e.ownerDocument.defaultView:null,pS=(e,t)=>Math.abs(e-t);function wG(e,t){const n=pS(e.x,t.x),i=pS(e.y,t.y);return Math.sqrt(n**2+i**2)}const mS=new Set(["auto","scroll"]);class jw{constructor(t,n,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:u=!1,distanceThreshold:a=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=u0(this.lastRawMoveEventInfo,this.transformPagePoint));const y=pg(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,S=wG(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!S)return;const{point:_}=y,{timestamp:T}=bn;this.history.push({..._,timestamp:T});const{onStart:N,onMove:A}=this.handlers;x||(N&&N(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=u0(x,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:S,onSessionEnd:_,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=pg(y.type==="pointercancel"?this.lastMoveEventInfo:u0(x,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,N),_&&_(y,N)},!E2(t))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=a,this.contextWindow=r||window;const f=Sf(t),h=u0(f,this.transformPagePoint),{point:p}=h,{timestamp:m}=bn;this.history=[{...p,timestamp:m}];const{onSessionStart:v}=n;v&&v(t,pg(h,this.history)),this.removeListeners=bf(Ac(this.contextWindow,"pointermove",this.handlePointerMove),Ac(this.contextWindow,"pointerup",this.handlePointerUp),Ac(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const i=getComputedStyle(n);(mS.has(i.overflowX)||mS.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},u={x:r.x-n.x,y:r.y-n.y};u.x===0&&u.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(t,r),lt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Oo(this.updatePoint)}}function u0(e,t){return t?{point:t(e.point)}:e}function gS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pg({point:e},t){return{point:e,delta:gS(e,Pw(t)),offset:gS(e,DG(t)),velocity:NG(t,.1)}}function DG(e){return e[0]}function Pw(e){return e[e.length-1]}function NG(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=Pw(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>ui(t)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>ui(t)*2&&(i=e[1]);const u=wi(r.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const a={x:(r.x-i.x)/u,y:(r.y-i.y)/u};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function OG(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?vt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?vt(n,e,i.max):Math.min(e,n)),e}function vS(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 RG(e,{top:t,left:n,bottom:i,right:r}){return{x:vS(e.x,n,r),y:vS(e.y,t,i)}}function yS(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 MG(e,t){return{x:yS(e.x,t.x),y:yS(e.y,t.y)}}function kG(e,t){let n=.5;const i=Rn(e),r=Rn(t);return r>i?n=Yc(t.min,t.max-i,e.min):i>r&&(n=Yc(e.min,e.max-r,t.min)),jr(0,1,n)}function LG(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 zv=.35;function IG(e=zv){return e===!1?e=0:e===!0&&(e=zv),{x:bS(e,"left","right"),y:bS(e,"top","bottom")}}function bS(e,t,n){return{min:xS(e,t),max:xS(e,n)}}function xS(e,t){return typeof e=="number"?e:e[t]||0}const FG=new WeakMap;class jG{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=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=m=>{n&&this.snapToCursor(Sf(m).point),this.stopAnimation()},a=(m,v)=>{const{drag:y,dragPropagation:x,onDragStart:S}=this.getProps();if(y&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pH(y),!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),Cr(T=>{let N=this.getAxisMotionValue(T).get()||0;if(kr.test(N)){const{projection:A}=this.visualElement;if(A&&A.layout){const D=A.layout.layoutBox[T];D&&(N=Rn(D)*(parseFloat(N)/100))}}this.originPoint[T]=N}),S&<.update(()=>S(m,v),!1,!0),Lv(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:y,dragDirectionLock:x,onDirectionLock:S,onDrag:_}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:T}=v;if(x&&this.currentDirection===null){this.currentDirection=$G(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),_&<.update(()=>_(m,v),!1,!0)},f=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new jw(t,{onSessionStart:u,onStart:a,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:Fw(this.visualElement),element:this.visualElement.current})}stop(t,n){const i=t||this.latestPointerEvent,r=n||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!r||!i)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&<.postRender(()=>c(i,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!a0(t,r,this.currentDirection))return;const u=this.getAxisMotionValue(t);let a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=OG(a,this.constraints[t],this.elastic[t])),u.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&wa(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=RG(i.layoutBox,t):this.constraints=!1,this.elastic=IG(n),r!==this.constraints&&!wa(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&Cr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=LG(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wa(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const u=HH(i,r.root,this.visualElement.getTransformPagePoint());let a=MG(r.layout.layoutBox,u);if(n){const c=n(BH(a));this.hasMutatedConstraints=!!c,c&&(a=sw(c))}return a}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:u,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Cr(p=>{if(!a0(p,n,this.currentDirection))return;let m=f&&f[p]||{};(a===!0||a===p)&&(m={min:0,max:0});const v=r?200:1e6,y=r?40:1e7,x={type:"inertia",velocity:i?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...u,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Lv(this.visualElement,t),i.start(g2(t,i,0,n,this.visualElement,!1))}stopAnimation(){Cr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Cr(n=>{const{drag:i}=this.getProps();if(!a0(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,u=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n],f=u.get()||0;u.set(t[n]-vt(a,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!wa(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Cr(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();r[a]=kG({min:f,max:f},this.constraints[a])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),Cr(a=>{if(!a0(a,t,null))return;const c=this.getAxisMotionValue(a),{min:f,max:h}=this.constraints[a];c.set(vt(f,h,r[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;FG.set(this.visualElement,this);const t=this.visualElement.current,n=Ac(t,"pointerdown",h=>{const{drag:p,dragListener:m=!0}=this.getProps(),v=h.target,y=v!==t&&xH(v);p&&m&&!y&&this.start(h)});let i;const r=()=>{const{dragConstraints:h}=this.getProps();wa(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),i||(i=PG(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,a=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),lt.read(r);const c=Wc(window,"resize",()=>this.scalePositionWithinConstraints()),f=u.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(Cr(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=h[m].translate,v.set(v.get()+h[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),a(),f&&f(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:u=!1,dragElastic:a=zv,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:u,dragElastic:a,dragMomentum:c}}}function ES(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function PG(e,t,n){const i=O5(e,ES(n)),r=O5(t,ES(n));return()=>{i(),r()}}function a0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $G(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class VG extends Rs{constructor(t){super(t),this.removeGroupControls=Ni,this.removeListeners=Ni,this.controls=new jG(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ni}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const mg=e=>(t,n)=>{e&<.update(()=>e(t,n),!1,!0)};class BG extends Rs{constructor(){super(...arguments),this.removePointerDownListener=Ni}onPointerDown(t){this.session=new jw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:mg(t),onStart:mg(n),onMove:mg(i),onEnd:(u,a)=>{delete this.session,r&<.postRender(()=>r(u,a))}}}mount(){this.removePointerDownListener=Ac(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let gg=!1;class UG extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:u}=t;u&&(n.group&&n.group.add(u),i&&i.register&&r&&i.register(u),gg&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),N0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:u}=this.props,{projection:a}=i;return a&&(a.isPresent=u,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),gg=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==u?a.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?a.promote():a.relegate()||lt.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),x2.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;gg=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $w(e){const[t,n]=Xq(),i=E.useContext(J8);return w.jsx(UG,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(Lw),isPresent:t,safeToRemove:n})}const zG={pan:{Feature:BG},drag:{Feature:VG,ProjectionNode:ww,MeasureLayout:$w}};function SS(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,u=i[r];u&<.postRender(()=>u(t,Sf(t)))}class HG extends Rs{mount(){const{current:t}=this.node;t&&(this.unmount=gH(t,(n,i)=>(SS(this.node,i,"Start"),r=>SS(this.node,r,"End"))))}unmount(){}}class qG extends Rs{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=bf(Wc(this.node.current,"focus",()=>this.onFocus()),Wc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function TS(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 r="onTap"+(n==="End"?"":n),u=i[r];u&<.postRender(()=>u(t,Sf(t)))}class GG extends Rs{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=SH(t,(r,u)=>(TS(this.node,u,"Start"),(a,{success:c})=>TS(this.node,a,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const Hv=new WeakMap,vg=new WeakMap,YG=e=>{const t=Hv.get(e.target);t&&t(e)},QG=e=>{e.forEach(YG)};function XG({root:e,...t}){const n=e||document;vg.has(n)||vg.set(n,{});const i=vg.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(QG,{root:e,...t})),i[r]}function WG(e,t,n){const i=XG(t);return Hv.set(e,n),i.observe(e),()=>{Hv.delete(e),i.unobserve(e)}}const ZG={some:0,all:1};class KG extends Rs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:u}=t,a={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:ZG[r]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,u&&!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)};this.stopObserver=WG(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JG(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function JG({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eY={inView:{Feature:KG},tap:{Feature:GG},focus:{Feature:qG},hover:{Feature:HG}},tY={layout:{ProjectionNode:ww,MeasureLayout:$w}},nY={...CG,...eY,...zG,...tY},Vw=xG(nY,EG);function Bw(e){const t=yf(()=>_u(e)),{isStatic:n}=E.useContext(w2);if(n){const[,i]=E.useState(e);E.useEffect(()=>t.on("change",i),[])}return t}function Uw(e,t){const n=Bw(t()),i=()=>n.set(t());return i(),eA(()=>{const r=()=>lt.preRender(i,!1,!0),u=e.map(a=>a.on("change",r));return()=>{u.forEach(a=>a()),Oo(i)}}),n}function iY(e){_c.current=[],e();const t=Uw(_c.current,e);return _c.current=void 0,t}function rY(e,t,n,i){if(typeof e=="function")return iY(e);const u=typeof t=="function"?t:MH(t,n,i),a=Array.isArray(e)?_S(e,u):_S([e],([f])=>u(f)),c=Array.isArray(e)?void 0:e.accelerate;return c&&!c.isTransformed&&typeof t!="function"&&Array.isArray(n)&&i?.clamp!==!1&&(a.accelerate={...c,times:t,keyframes:n,isTransformed:!0}),a}function _S(e,t){const n=yf(()=>[]);return Uw(e,()=>{n.length=0;const i=e.length;for(let r=0;r<i;r++)n[r]=e[r].get();return t(n)})}const zw=E.createContext(null);function oY(e,t,n,i){if(!i)return e;const r=e.findIndex(p=>p.value===t);if(r===-1)return e;const u=i>0?1:-1,a=e[r+u];if(!a)return e;const c=e[r],f=a.layout,h=vt(f.min,f.max,.5);return u===1&&c.layout.max+n>h||u===-1&&c.layout.min+n<h?lU(e,r,r+u):e}function sY({children:e,as:t="ul",axis:n="y",onReorder:i,values:r,...u},a){const c=yf(()=>Vw[t]),f=[],h=E.useRef(!1),p=E.useRef(null),m={axis:n,groupRef:p,registerItem:(x,S)=>{const _=f.findIndex(T=>x===T.value);_!==-1?f[_].layout=S[n]:f.push({value:x,layout:S[n]}),f.sort(aY)},updateOrder:(x,S,_)=>{if(h.current)return;const T=oY(f,x,S,_);if(f!==T){h.current=!0;const N=[...r];for(let A=0;A<T.length;A++)if(f[A].value!==T[A].value){const D=r.indexOf(f[A].value),R=r.indexOf(T[A].value);D!==-1&&R!==-1&&([N[D],N[R]]=[N[R],N[D]]);break}i(N)}}};E.useEffect(()=>{h.current=!1});const v=x=>{p.current=x,typeof a=="function"?a(x):a&&(a.current=x)},y={overflowAnchor:"none",...u.style};return w.jsx(c,{...u,style:y,ref:v,ignoreStrict:!0,children:w.jsx(zw.Provider,{value:m,children:e})})}const uY=E.forwardRef(sY);function aY(e,t){return e.layout.min-t.layout.min}const l0=50,CS=25,lY=new Set(["auto","scroll"]),wc=new WeakMap,Dc=new WeakMap;let gc=null;function cY(){if(gc){const e=qv(gc,"y");e&&(Dc.delete(e),wc.delete(e));const t=qv(gc,"x");t&&t!==e&&(Dc.delete(t),wc.delete(t)),gc=null}}function fY(e,t){const n=getComputedStyle(e),i=t==="x"?n.overflowX:n.overflowY,r=e===document.body||e===document.documentElement;return lY.has(i)||r}function qv(e,t){let n=e?.parentElement;for(;n;){if(fY(n,t))return n;n=n.parentElement}return null}function dY(e,t,n){const i=t.getBoundingClientRect(),r=n==="x"?Math.max(0,i.left):Math.max(0,i.top),u=n==="x"?Math.min(window.innerWidth,i.right):Math.min(window.innerHeight,i.bottom),a=e-r,c=u-e;if(a<l0){const f=1-a/l0;return{amount:-CS*f*f,edge:"start"}}else if(c<l0){const f=1-c/l0;return{amount:CS*f*f,edge:"end"}}return{amount:0,edge:null}}function hY(e,t,n,i){if(!e)return;gc=e;const r=qv(e,n);if(!r)return;const u=t-(n==="x"?window.scrollX:window.scrollY),{amount:a,edge:c}=dY(u,r,n);if(c===null){Dc.delete(r),wc.delete(r);return}const f=Dc.get(r),h=r===document.body||r===document.documentElement;if(f!==c){if(!(c==="start"&&i<0||c==="end"&&i>0))return;Dc.set(r,c);const m=n==="x"?r.scrollWidth-(h?window.innerWidth:r.clientWidth):r.scrollHeight-(h?window.innerHeight:r.clientHeight);wc.set(r,m)}if(a>0){const p=wc.get(r);if((n==="x"?h?window.scrollX:r.scrollLeft:h?window.scrollY:r.scrollTop)>=p)return}n==="x"?h?window.scrollBy({left:a}):r.scrollLeft+=a:h?window.scrollBy({top:a}):r.scrollTop+=a}function AS(e,t=0){return cn(e)?e:Bw(t)}function pY({children:e,style:t={},value:n,as:i="li",onDrag:r,onDragEnd:u,layout:a=!0,...c},f){const h=yf(()=>Vw[i]),p=E.useContext(zw),m={x:AS(t.x),y:AS(t.y)},v=rY([m.x,m.y],([T,N])=>T||N?1:"unset"),{axis:y,registerItem:x,updateOrder:S,groupRef:_}=p;return w.jsx(h,{drag:y,...c,dragSnapToOrigin:!0,style:{...t,x:m.x,y:m.y,zIndex:v},layout:a,onDrag:(T,N)=>{const{velocity:A,point:D}=N,R=m[y].get();S(n,R,A[y]),hY(_.current,D[y],y,A[y]),r&&r(T,N)},onDragEnd:(T,N)=>{cY(),u&&u(T,N)},onLayoutMeasure:T=>{x(n,T)},ref:f,ignoreStrict:!0,children:e})}const mY=E.forwardRef(pY),Hw=E.forwardRef((e,t)=>{const n=me.c(16);let i,r,u,a,c;n[0]!==e?({isActive:u,value:c,children:i,className:r,...a}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=u,n[4]=a,n[5]=c):(i=n[1],r=n[2],u=n[3],a=n[4],c=n[5]);const f=u&&"graphiql-tab-active";let h;n[6]!==r||n[7]!==f?(h=dt("graphiql-tab",f,r),n[6]=r,n[7]=f,n[8]=h):h=n[8];let p;return n[9]!==i||n[10]!==u||n[11]!==a||n[12]!==t||n[13]!==h||n[14]!==c?(p=w.jsx(mY,{...a,ref:t,value:c,"aria-selected":u,role:"tab",className:h,children:i}),n[9]=i,n[10]=u,n[11]=a,n[12]=t,n[13]=h,n[14]=c,n[15]=p):p=n[15],p});Hw.displayName="Tab";const qw=E.forwardRef((e,t)=>{const n=me.c(11);let i,r,u;n[0]!==e?({children:i,className:r,...u}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=u):(i=n[1],r=n[2],u=n[3]);let a;n[4]!==r?(a=dt("graphiql-tab-button",r),n[4]=r,n[5]=a):a=n[5];let c;return n[6]!==i||n[7]!==u||n[8]!==t||n[9]!==a?(c=w.jsx(nn,{...u,ref:t,type:"button",className:a,children:i}),n[6]=i,n[7]=u,n[8]=t,n[9]=a,n[10]=c):c=n[10],c});qw.displayName="Tab.Button";const Gw=E.forwardRef((e,t)=>{const n=me.c(7);let i;n[0]!==e.className?(i=dt("graphiql-tab-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=w.jsx(Ly,{}),n[2]=r):r=n[2];let u;return n[3]!==e||n[4]!==t||n[5]!==i?(u=w.jsx(nn,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:i,children:r}),n[3]=e,n[4]=t,n[5]=i,n[6]=u):u=n[6],u});Gw.displayName="Tab.Close";const yg=Object.assign(Hw,{Button:qw,Close:Gw}),Yw=E.forwardRef((e,t)=>{const n=me.c(15);let i,r,u,a,c;n[0]!==e?({values:c,onReorder:u,children:i,className:r,...a}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=u,n[4]=a,n[5]=c):(i=n[1],r=n[2],u=n[3],a=n[4],c=n[5]);let f;n[6]!==r?(f=dt("graphiql-tabs",r),n[6]=r,n[7]=f):f=n[7];let h;return n[8]!==i||n[9]!==u||n[10]!==a||n[11]!==t||n[12]!==f||n[13]!==c?(h=w.jsx(uY,{...a,ref:t,values:c,onReorder:u,axis:"x",role:"tablist",className:f,children:i}),n[8]=i,n[9]=u,n[10]=a,n[11]=t,n[12]=f,n[13]=c,n[14]=h):h=n[14],h});Yw.displayName="Tabs";var[Wh]=Mu("Tooltip",[Uh]),Zh=Uh(),Qw="TooltipProvider",gY=700,Gv="tooltip.open",[vY,O2]=Wh(Qw),Xw=e=>{const{__scopeTooltip:t,delayDuration:n=gY,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:u}=e,a=E.useRef(!0),c=E.useRef(!1),f=E.useRef(0);return E.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),w.jsx(vY,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(f.current),a.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>a.current=!0,i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:E.useCallback(h=>{c.current=h},[]),disableHoverableContent:r,children:u})};Xw.displayName=Qw;var Zc="Tooltip",[yY,Tf]=Wh(Zc),Ww=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:u,disableHoverableContent:a,delayDuration:c}=e,f=O2(Zc,e.__scopeTooltip),h=Zh(t),[p,m]=E.useState(null),v=mu(),y=E.useRef(0),x=a??f.disableHoverableContent,S=c??f.delayDuration,_=E.useRef(!1),[T,N]=kh({prop:i,defaultProp:r??!1,onChange:F=>{F?(f.onOpen(),document.dispatchEvent(new CustomEvent(Gv))):f.onClose(),u?.(F)},caller:Zc}),A=E.useMemo(()=>T?_.current?"delayed-open":"instant-open":"closed",[T]),D=E.useCallback(()=>{window.clearTimeout(y.current),y.current=0,_.current=!1,N(!0)},[N]),R=E.useCallback(()=>{window.clearTimeout(y.current),y.current=0,N(!1)},[N]),M=E.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{_.current=!0,N(!0),y.current=0},S)},[S,N]);return E.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),w.jsx(f8,{...h,children:w.jsx(yY,{scope:t,contentId:v,open:T,stateAttribute:A,trigger:p,onTriggerChange:m,onTriggerEnter:E.useCallback(()=>{f.isOpenDelayedRef.current?M():D()},[f.isOpenDelayedRef,M,D]),onTriggerLeave:E.useCallback(()=>{x?R():(window.clearTimeout(y.current),y.current=0)},[R,x]),onOpen:D,onClose:R,disableHoverableContent:x,children:n})})};Ww.displayName=Zc;var Yv="TooltipTrigger",Zw=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Tf(Yv,n),u=O2(Yv,n),a=Zh(n),c=E.useRef(null),f=rn(t,c,r.onTriggerChange),h=E.useRef(!1),p=E.useRef(!1),m=E.useCallback(()=>h.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),w.jsx(d8,{asChild:!0,...a,children:w.jsx(Lt.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:f,onPointerMove:Me(e.onPointerMove,v=>{v.pointerType!=="touch"&&!p.current&&!u.isPointerInTransitRef.current&&(r.onTriggerEnter(),p.current=!0)}),onPointerLeave:Me(e.onPointerLeave,()=>{r.onTriggerLeave(),p.current=!1}),onPointerDown:Me(e.onPointerDown,()=>{r.open&&r.onClose(),h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Me(e.onFocus,()=>{h.current||r.onOpen()}),onBlur:Me(e.onBlur,r.onClose),onClick:Me(e.onClick,r.onClose)})})});Zw.displayName=Yv;var R2="TooltipPortal",[bY,xY]=Wh(R2,{forceMount:void 0}),Kw=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:r}=e,u=Tf(R2,t);return w.jsx(bY,{scope:t,forceMount:n,children:w.jsx(zr,{present:n||u.open,children:w.jsx(Ih,{asChild:!0,container:r,children:i})})})};Kw.displayName=R2;var Za="TooltipContent",Jw=E.forwardRef((e,t)=>{const n=xY(Za,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...u}=e,a=Tf(Za,e.__scopeTooltip);return w.jsx(zr,{present:i||a.open,children:a.disableHoverableContent?w.jsx(e9,{side:r,...u,ref:t}):w.jsx(EY,{side:r,...u,ref:t})})}),EY=E.forwardRef((e,t)=>{const n=Tf(Za,e.__scopeTooltip),i=O2(Za,e.__scopeTooltip),r=E.useRef(null),u=rn(t,r),[a,c]=E.useState(null),{trigger:f,onClose:h}=n,p=r.current,{onPointerInTransitChange:m}=i,v=E.useCallback(()=>{c(null),m(!1)},[m]),y=E.useCallback((x,S)=>{const _=x.currentTarget,T={x:x.clientX,y:x.clientY},N=AY(T,_.getBoundingClientRect()),A=wY(T,N),D=DY(S.getBoundingClientRect()),R=OY([...A,...D]);c(R),m(!0)},[m]);return E.useEffect(()=>()=>v(),[v]),E.useEffect(()=>{if(f&&p){const x=_=>y(_,p),S=_=>y(_,f);return f.addEventListener("pointerleave",x),p.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",S)}}},[f,p,y,v]),E.useEffect(()=>{if(a){const x=S=>{const _=S.target,T={x:S.clientX,y:S.clientY},N=f?.contains(_)||p?.contains(_),A=!NY(T,a);N?v():A&&(v(),h())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[f,p,a,h,v]),w.jsx(e9,{...e,ref:u})}),[SY,TY]=Wh(Zc,{isInside:!1}),_Y=Bj("TooltipContent"),e9=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:u,onPointerDownOutside:a,...c}=e,f=Tf(Za,n),h=Zh(n),{onClose:p}=f;return E.useEffect(()=>(document.addEventListener(Gv,p),()=>document.removeEventListener(Gv,p)),[p]),E.useEffect(()=>{if(f.trigger){const m=v=>{v.target?.contains(f.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,p]),w.jsx(Lh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:w.jsxs(h8,{"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:[w.jsx(_Y,{children:i}),w.jsx(SY,{scope:n,isInside:!0,children:w.jsx(VC,{id:f.contentId,role:"tooltip",children:r||i})})]})})});Jw.displayName=Za;var t9="TooltipArrow",CY=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Zh(n);return TY(t9,n).isInside?null:w.jsx(p8,{...r,...i,ref:t})});CY.displayName=t9;function AY(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),u=Math.abs(t.left-e.x);switch(Math.min(n,i,r,u)){case u:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function wY(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 DY(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function NY(e,t){const{x:n,y:i}=e;let r=!1;for(let u=0,a=t.length-1;u<t.length;a=u++){const c=t[u],f=t[a],h=c.x,p=c.y,m=f.x,v=f.y;p>i!=v>i&&n<(m-h)*(i-p)/(v-p)+h&&(r=!r)}return r}function OY(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),RY(t)}function RY(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const r=e[i];for(;t.length>=2;){const u=t[t.length-1],a=t[t.length-2];if((u.x-a.x)*(r.y-a.y)>=(u.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const u=n[n.length-1],a=n[n.length-2];if((u.x-a.x)*(r.y-a.y)>=(u.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}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 MY=Xw,kY=Ww,LY=Zw,IY=Kw,FY=Jw;const jY=e=>{const t=me.c(10),{children:n,align:i,side:r,sideOffset:u,label:a}=e,c=i===void 0?"start":i,f=r===void 0?"bottom":r,h=u===void 0?5:u;let p;t[0]!==n?(p=w.jsx(LY,{asChild:!0,children:n}),t[0]=n,t[1]=p):p=t[1];let m;t[2]!==c||t[3]!==a||t[4]!==f||t[5]!==h?(m=w.jsx(IY,{children:w.jsx(FY,{className:"graphiql-tooltip",align:c,side:f,sideOffset:h,children:a})}),t[2]=c,t[3]=a,t[4]=f,t[5]=h,t[6]=m):m=t[6];let v;return t[7]!==p||t[8]!==m?(v=w.jsxs(kY,{children:[p,m]}),t[7]=p,t[8]=m,t[9]=v):v=t[9],v},Un=Object.assign(jY,{Provider:MY}),O0=E.forwardRef((e,t)=>{const n=me.c(19);let i,r,u;n[0]!==e?({label:i,onClick:r,...u}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=u):(i=n[1],r=n[2],u=n[3]);const[a,c]=E.useState(null);let f;n[4]!==r?(f=_=>{try{r&&r(_),c(null)}catch(T){const N=T;c(N instanceof Error?N:new Error(`Toolbar button click failed: ${N}`))}},n[4]=r,n[5]=f):f=n[5];const h=f,p=a&&"error";let m;n[6]!==u.className||n[7]!==p?(m=dt("graphiql-toolbar-button",p,u.className),n[6]=u.className,n[7]=p,n[8]=m):m=n[8];const v=a?a.message:i,y=a?"true":u["aria-invalid"];let x;n[9]!==h||n[10]!==u||n[11]!==t||n[12]!==m||n[13]!==v||n[14]!==y?(x=w.jsx(nn,{...u,ref:t,type:"button",className:m,onClick:h,"aria-label":v,"aria-invalid":y}),n[9]=h,n[10]=u,n[11]=t,n[12]=m,n[13]=v,n[14]=y,n[15]=x):x=n[15];let S;return n[16]!==i||n[17]!==x?(S=w.jsx(Un,{label:i,children:x}),n[16]=i,n[17]=x,n[18]=S):S=n[18],S});O0.displayName="ToolbarButton";const Qv=()=>{const e=me.c(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:Qv},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:i}=En(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:Qv},e[1]=r):r=e[1];const{isFetching:u,isSubscribed:a,operationName:c,run:f,stop:h}=rl(r);let p;e[2]!==n?.operations?(p=n?.operations||[],e[2]=n?.operations,e[3]=p):p=e[3];const m=p,v=m.length>1&&typeof c!="string",y=u||a,x=`${y?"Stop":"Execute"} query (Ctrl-Enter)`;let S;e[4]!==y?(S=y?w.jsx(Cj,{}):w.jsx(vj,{}),e[4]=y,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 N;return e[9]!==T||e[10]!==v||e[11]!==y||e[12]!==x||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==i||e[17]!==h?(N=v&&!y?w.jsxs(r0,{children:[w.jsx(Un,{label:x,children:w.jsx(r0.Button,{...T})}),w.jsx(r0.Content,{children:m.map((A,D)=>{const R=A.name?A.name.value:`<Unnamed ${A.operation}>`;return w.jsx(r0.Item,{onSelect:()=>{var M;const F=(M=A.name)==null?void 0:M.value;n&&F&&F!==n.operationName&&i(F),f()},children:R},`${R}-${D}`)})})]}):w.jsx(Un,{label:x,children:w.jsx("button",{...T,onClick:()=>{y?h():f()}})}),e[9]=T,e[10]=v,e[11]=y,e[12]=x,e[13]=m,e[14]=n,e[15]=f,e[16]=i,e[17]=h,e[18]=N):N=e[18],N},Xv=sf((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:i}=t();i.updateHistory(n),e({})},editLabel(n,i){const{historyStorage:r}=t();r.editLabel(n,i),e({})},toggleFavorite(n){const{historyStorage:i}=t();i.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,i){const{historyStorage:r}=t();r.deleteHistory(n,i),e({})}}})),PY=e=>{const t=me.c(12),{maxHistoryLength:n,children:i}=e,r=n===void 0?20:n;let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0},t[0]=u):u=t[0];const{isFetching:a}=rl(u);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={nonNull:!0},t[1]=c):c=t[1];const{tabs:f,activeTabIndex:h}=En(c),p=f[h],m=nl();let v;t[2]!==r||t[3]!==m?(v=new FR(m,r),t[2]=r,t[3]=m,t[4]=v):v=t[4];const y=v;let x,S;t[5]!==y?(x=()=>{Xv.setState({historyStorage:y})},S=[y],t[5]=y,t[6]=x,t[7]=S):(x=t[6],S=t[7]),E.useEffect(x,S);let _,T;return t[8]!==p||t[9]!==a?(_=()=>{if(!a)return;const{addToHistory:N}=Xv.getState().actions;N({query:p.query??void 0,variables:p.variables??void 0,headers:p.headers??void 0,operationName:p.operationName??void 0})},T=[a,p],t[8]=p,t[9]=a,t[10]=_,t[11]=T):(_=t[10],T=t[11]),E.useEffect(_,T),i},n9=uf(Xv),$Y=()=>n9(VY),i9=()=>n9(BY);function VY(e){return e.historyStorage.queries}function BY(e){return e.actions}function UY(e,t){for(const n of e)t(n,!0)}const zY=()=>{const e=me.c(13),t=$Y(),{deleteFromHistory:n}=i9();let i;i=t.slice().map(qY).reverse();const r=i.filter(GY);r.length&&(i=i.filter(YY));const[u,a]=E.useState(null);let c,f;e[0]!==u?(c=()=>{u&&setTimeout(()=>{a(null)},2e3)},f=[u],e[0]=u,e[1]=c,e[2]=f):(c=e[1],f=e[2]),E.useEffect(c,f);const h=()=>{try{UY(i,n),a("success")}catch{a("error")}},p=!!r.length,m=!!i.length,v="History",y="graphiql-history",x=(u||m)&&w.jsx(Zi,{type:"button",state:u||void 0,disabled:!i.length,onClick:h,children:{success:"Cleared",error:"Failed to Clear"}[u]||"Clear"});let S;e[3]!==x?(S=w.jsxs("div",{className:"graphiql-history-header",children:["History",x]}),e[3]=x,e[4]=S):S=e[4];const _=p&&w.jsx("ul",{className:"graphiql-history-items",children:r.map(QY)});let T;e[5]!==p||e[6]!==m?(T=p&&m&&w.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=p,e[6]=m,e[7]=T):T=e[7];const N=m&&w.jsx("ul",{className:"graphiql-history-items",children:i.map(XY)});let A;return e[8]!==S||e[9]!==_||e[10]!==T||e[11]!==N?(A=w.jsxs("section",{"aria-label":v,className:y,children:[S,_,T,N]}),e[8]=S,e[9]=_,e[10]=T,e[11]=N,e[12]=A):A=e[12],A},M2=e=>{const t=me.c(39),{editLabel:n,toggleFavorite:i,deleteFromHistory:r,setActive:u}=i9();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:M2},t[0]=a):a=t[0];const{headerEditor:c,queryEditor:f,variableEditor:h}=En(a),p=E.useRef(null),m=E.useRef(null),[v,y]=E.useState(!1);let x,S;t[1]!==v?(x=()=>{var j;v&&((j=p.current)==null||j.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||HY(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 N;t[8]!==n||t[9]!==e.item?(N=()=>{var j;y(!1);const{index:P,...ne}=e.item;n({...ne,label:(j=p.current)==null?void 0:j.value},P)},t[8]=n,t[9]=e.item,t[10]=N):N=t[10];const A=N;let D;t[11]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{y(!1)},t[11]=D):D=t[11];const R=D;let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=j=>{j.stopPropagation(),y(!0)},t[12]=M):M=t[12];const F=M;let B;t[13]!==c||t[14]!==e.item||t[15]!==f||t[16]!==u||t[17]!==h?(B=()=>{const{query:j,variables:P,headers:ne}=e.item;f?.setValue(j??""),h?.setValue(P??""),c?.setValue(ne??""),u(e.item)},t[13]=c,t[14]=e.item,t[15]=f,t[16]=u,t[17]=h,t[18]=B):B=t[18];const k=B;let $;t[19]!==r||t[20]!==e.item?($=j=>{j.stopPropagation(),r(e.item)},t[19]=r,t[20]=e.item,t[21]=$):$=t[21];const H=$;let Y;t[22]!==e.item||t[23]!==i?(Y=j=>{j.stopPropagation(),i(e.item)},t[22]=e.item,t[23]=i,t[24]=Y):Y=t[24];const se=Y,W=v&&"editable";let J;t[25]!==W?(J=dt("graphiql-history-item",W),t[25]=W,t[26]=J):J=t[26];let L;t[27]!==T||t[28]!==n||t[29]!==H||t[30]!==k||t[31]!==A||t[32]!==se||t[33]!==v||t[34]!==e.item?(L=v?w.jsxs(w.Fragment,{children:[w.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:j=>{j.key==="Esc"?y(!1):j.key==="Enter"&&(y(!1),n({...e.item,label:j.currentTarget.value}))},placeholder:"Type a label"}),w.jsx(nn,{type:"button",ref:m,onClick:A,children:"Save"}),w.jsx(nn,{type:"button",ref:m,onClick:R,children:w.jsx(Ly,{})})]}):w.jsxs(w.Fragment,{children:[w.jsx(Un,{label:"Set active",children:w.jsx(nn,{type:"button",className:"graphiql-history-item-label",onClick:k,"aria-label":"Set active",children:T})}),w.jsx(Un,{label:"Edit label",children:w.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:F,"aria-label":"Edit label",children:w.jsx(gj,{"aria-hidden":"true"})})}),w.jsx(Un,{label:e.item.favorite?"Remove favorite":"Add favorite",children:w.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:se,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?w.jsx(Tj,{"aria-hidden":"true"}):w.jsx(_j,{"aria-hidden":"true"})})}),w.jsx(Un,{label:"Delete from history",children:w.jsx(nn,{type:"button",className:"graphiql-history-item-action",onClick:H,"aria-label":"Delete from history",children:w.jsx(Aj,{"aria-hidden":"true"})})})]}),t[27]=T,t[28]=n,t[29]=H,t[30]=k,t[31]=A,t[32]=se,t[33]=v,t[34]=e.item,t[35]=L):L=t[35];let q;return t[36]!==J||t[37]!==L?(q=w.jsx("li",{className:J,children:L}),t[36]=J,t[37]=L,t[38]=q):q=t[38],q};function HY(e){return e?.split(`
|
|
259
|
+
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function qY(e,t){return{...e,index:t}}function GY(e){return e.favorite}function YY(e){return!e.favorite}function QY(e){return w.jsx(M2,{item:e},e.index)}function XY(e){return w.jsx(M2,{item:e},e.index)}const WY={title:"History",icon:fj,content:zY},c0=[{name:"Docs"}],Wv=sf((e,t)=>({explorerNavStack:c0,actions:{push(n){e(i=>{const r=i.explorerNavStack;return{explorerNavStack:r.at(-1).def===n.def?r:[...r,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:c0}})},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 r=i.explorerNavStack;if(r.length===1)return i;const u=[...c0];let a=null;for(const c of r)if(c!==c0[0])if(c.def)if(my(c.def)){const f=n.getType(c.def.name);if(f)u.push({name:c.name,def:f}),a=f;else break}else{if(a===null)break;if(Tt(a)||fn(a)){const f=a.getFields()[c.name];if(f)u.push({name:c.name,def:f});else break}else{if(Os(a)||fi(a)||Dt(a)||Oi(a))break;{const f=a;if(f.args.some(h=>h.name===c.name))u.push({name:c.name,def:f});else break}}}else a=null,u.push(c);return{explorerNavStack:u}})}}})),ZY=e=>{const t=me.c(7),{children:n}=e,{schema:i,validationErrors:r,schemaReference:u}=Vr();let a,c;t[0]!==u?(a=()=>{const{resolveSchemaReferenceToNavItem:p}=Wv.getState().actions;p(u)},c=[u],t[0]=u,t[1]=a,t[2]=c):(a=t[1],c=t[2]),E.useEffect(a,c);let f,h;return t[3]!==i||t[4]!==r?(f=()=>{const{reset:p,rebuildNavStackWithSchema:m}=Wv.getState().actions;i==null||r.length>0?p():m(i)},h=[i,r],t[3]=i,t[4]=r,t[5]=f,t[6]=h):(f=t[5],h=t[6]),E.useEffect(f,h),n},r9=uf(Wv),k2=()=>r9(KY),Kh=()=>r9(JY);function KY(e){return e.explorerNavStack}function JY(e){return e.actions}const eQ=e=>e?ci(e):"",o9=e=>{const t=me.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const i=n.defaultValue,r=n.type;let u,a,c,f;if(t[0]!==n.defaultValue||t[1]!==n.type){f=Symbol.for("react.early_return_sentinel");e:{const m=Oa(i,r);if(!m){f=null;break e}c=" = ",u="graphiql-doc-explorer-default-value",a=eQ(m)}t[0]=n.defaultValue,t[1]=n.type,t[2]=u,t[3]=a,t[4]=c,t[5]=f}else u=t[2],a=t[3],c=t[4],f=t[5];if(f!==Symbol.for("react.early_return_sentinel"))return f;let h;t[6]!==u||t[7]!==a?(h=w.jsx("span",{className:u,children:a}),t[6]=u,t[7]=a,t[8]=h):h=t[8];let p;return t[9]!==c||t[10]!==h?(p=w.jsxs(w.Fragment,{children:[c,h]}),t[9]=c,t[10]=h,t[11]=p):p=t[11],p};function ah(e,t){return $t(e)?w.jsxs(w.Fragment,{children:[ah(e.ofType,t),"!"]}):kn(e)?w.jsxs(w.Fragment,{children:["[",ah(e.ofType,t),"]"]}):t(e)}const So=e=>{const t=me.c(5),{type:n}=e,{push:i}=Kh();if(!n)return null;let r;t[0]!==i?(r=a=>w.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:c=>{c.preventDefault(),i({name:a.name,def:a})},href:"#",children:a.name}),t[0]=i,t[1]=r):r=t[1];let u;return t[2]!==r||t[3]!==n?(u=ah(n,r),t[2]=r,t[3]=n,t[4]=u):u=t[4],u},lh=e=>{const t=me.c(19),{arg:n,showDefaultValue:i,inline:r}=e;let u;t[0]!==n.name?(u=w.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=u):u=t[1];let a;t[2]!==n.type?(a=w.jsx(So,{type:n.type}),t[2]=n.type,t[3]=a):a=t[3];let c;t[4]!==n||t[5]!==i?(c=i!==!1&&w.jsx(o9,{field:n}),t[4]=n,t[5]=i,t[6]=c):c=t[6];let f;t[7]!==u||t[8]!==a||t[9]!==c?(f=w.jsxs("span",{children:[u,": ",a,c]}),t[7]=u,t[8]=a,t[9]=c,t[10]=f):f=t[10];const h=f;if(r)return h;let p;t[11]!==n.description?(p=n.description?w.jsx(Fr,{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?w.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),w.jsx(Fr,{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=w.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},s9=e=>{const t=me.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?w.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),w.jsx(Fr,{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},tQ=e=>{const t=me.c(2),{directive:n}=e;let i;return t[0]!==n.name.value?(i=w.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=i):i=t[1],i},Mi=e=>{const t=me.c(10),{title:n,children:i}=e,r=nQ[n];let u;t[0]!==r?(u=w.jsx(r,{}),t[0]=r,t[1]=u):u=t[1];let a;t[2]!==u||t[3]!==n?(a=w.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[u,n]}),t[2]=u,t[3]=n,t[4]=a):a=t[4];let c;t[5]!==i?(c=w.jsx("div",{className:"graphiql-doc-explorer-section-content",children:i}),t[5]=i,t[6]=c):c=t[6];let f;return t[7]!==a||t[8]!==c?(f=w.jsxs("div",{children:[a,c]}),t[7]=a,t[8]=c,t[9]=f):f=t[9],f},nQ={Arguments:KF,"Deprecated Arguments":ij,"Deprecated Enum Values":rj,"Deprecated Fields":oj,Directives:sj,"Enum Values":lj,Fields:cj,Implements:dj,Implementations:Xd,"Possible Types":Xd,"Root Types":Ej,Type:Xd,"All Schema Types":Xd},iQ=e=>{const t=me.c(15),{field:n}=e;let i;t[0]!==n.description?(i=n.description?w.jsx(Fr,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=i):i=t[1];let r;t[2]!==n.deprecationReason?(r=w.jsx(s9,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=r):r=t[3];let u;t[4]!==n.type?(u=w.jsx(Mi,{title:"Type",children:w.jsx(So,{type:n.type})}),t[4]=n.type,t[5]=u):u=t[5];let a,c;t[6]!==n?(a=w.jsx(rQ,{field:n}),c=w.jsx(oQ,{field:n}),t[6]=n,t[7]=a,t[8]=c):(a=t[7],c=t[8]);let f;return t[9]!==i||t[10]!==r||t[11]!==u||t[12]!==a||t[13]!==c?(f=w.jsxs(w.Fragment,{children:[i,r,u,a,c]}),t[9]=i,t[10]=r,t[11]=u,t[12]=a,t[13]=c,t[14]=f):f=t[14],f},rQ=e=>{const t=me.c(12),{field:n}=e,[i,r]=E.useState(!1);let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{r(!0)},t[0]=u):u=t[0];const a=u;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?w.jsx(Mi,{title:"Arguments",children:c.map(sQ)}):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?w.jsx(Mi,{title:"Deprecated Arguments",children:f.map(uQ)}):w.jsx(Zi,{type:"button",onClick:a,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=w.jsxs(w.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=m):m=t[11],m},oQ=e=>{var t;const n=me.c(4),{field:i}=e,r=(t=i.astNode)==null?void 0:t.directives;if(!r?.length)return null;let u;n[0]!==r?(u=r.map(aQ),n[0]=r,n[1]=u):u=n[1];let a;return n[2]!==u?(a=w.jsx(Mi,{title:"Directives",children:u}),n[2]=u,n[3]=a):a=n[3],a};function sQ(e){return w.jsx(lh,{arg:e},e.name)}function uQ(e){return w.jsx(lh,{arg:e},e.name)}function aQ(e){return w.jsx("div",{children:w.jsx(tQ,{directive:e})},e.name.value)}const lQ=e=>{var t,n;const i=me.c(39),{schema:r}=e;let u;i[0]!==r?(u=r.getQueryType(),i[0]=r,i[1]=u):u=i[1];const a=u;let c;i[2]!==r?(c=(t=r.getMutationType)==null?void 0:t.call(r),i[2]=r,i[3]=c):c=i[3];const f=c;let h;i[4]!==r?(h=(n=r.getSubscriptionType)==null?void 0:n.call(r),i[4]=r,i[5]=h):h=i[5];const p=h;let m,v,y,x,S;if(i[6]!==f||i[7]!==a||i[8]!==r||i[9]!==p){const N=r.getTypeMap(),A=a?.name,D=f?.name,R=p?.name;let M;i[15]!==R||i[16]!==A||i[17]!==D?(M=[A,D,R],i[15]=R,i[16]=A,i[17]=D,i[18]=M):M=i[18];const F=M,B=r.description||"A GraphQL schema provides a root type for each kind of operation.";i[19]!==B?(x=w.jsx(Fr,{type:"description",children:B}),i[19]=B,i[20]=x):x=i[20];let k;i[21]!==a?(k=a?w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",w.jsx(So,{type:a})]}):null,i[21]=a,i[22]=k):k=i[22];let $;i[23]!==f?($=f&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",w.jsx(So,{type:f})]}),i[23]=f,i[24]=$):$=i[24];let H;i[25]!==p?(H=p&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",w.jsx(So,{type:p})]}),i[25]=p,i[26]=H):H=i[26],i[27]!==k||i[28]!==$||i[29]!==H?(S=w.jsxs(Mi,{title:"Root Types",children:[k,$,H]}),i[27]=k,i[28]=$,i[29]=H,i[30]=S):S=i[30],m=Mi,v="All Schema Types",y=N&&w.jsx("div",{children:Object.values(N).map(Y=>F.includes(Y.name)||Y.name.startsWith("__")?null:w.jsx("div",{children:w.jsx(So,{type:Y})},Y.name))}),i[6]=f,i[7]=a,i[8]=r,i[9]=p,i[10]=m,i[11]=v,i[12]=y,i[13]=x,i[14]=S}else m=i[10],v=i[11],y=i[12],x=i[13],S=i[14];let _;i[31]!==m||i[32]!==v||i[33]!==y?(_=w.jsx(m,{title:v,children:y}),i[31]=m,i[32]=v,i[33]=y,i[34]=_):_=i[34];let T;return i[35]!==x||i[36]!==S||i[37]!==_?(T=w.jsxs(w.Fragment,{children:[x,S,_]}),i[35]=x,i[36]=S,i[37]=_,i[38]=T):T=i[38],T},cQ=typeof document<"u"?Oe.useLayoutEffect:()=>{},Ms=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},fu=e=>e&&"window"in e&&e.window===e?e:Ms(e).defaultView||window;function fQ(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function dQ(e){return fQ(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let hQ=!1;function L2(){return hQ}function u9(e,t){if(!L2())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:dQ(n)?n=n.host:n=n.parentNode}return!1}const Zv=(e=document)=>{var t;if(!L2())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 a9(e){return L2()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function pQ(e){if(mQ())e.focus({preventScroll:!0});else{let t=gQ(e);e.focus(),vQ(t)}}let f0=null;function mQ(){if(f0==null){f0=!1;try{document.createElement("div").focus({get preventScroll(){return f0=!0,!0}})}catch{}}return f0}function gQ(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function vQ(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function Jh(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 l9(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 cl(e){let t=null;return()=>(t==null&&(t=e()),t)}const ch=cl(function(){return l9(/^Mac/i)}),yQ=cl(function(){return l9(/^iPad/i)||ch()&&navigator.maxTouchPoints>1}),bQ=cl(function(){return Jh(/AppleWebKit/i)&&!xQ()}),xQ=cl(function(){return Jh(/Chrome/i)}),EQ=cl(function(){return Jh(/Android/i)}),SQ=cl(function(){return Jh(/Firefox/i)});function Kc(e,t,n=!0){var i,r;let{metaKey:u,ctrlKey:a,altKey:c,shiftKey:f}=t;SQ()&&(!((r=window.event)===null||r===void 0||(i=r.type)===null||i===void 0)&&i.startsWith("key"))&&e.target==="_blank"&&(ch()?u=!0:a=!0);let h=bQ()&&ch()&&!yQ()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:a,altKey:c,shiftKey:f}):new MouseEvent("click",{metaKey:u,ctrlKey:a,altKey:c,shiftKey:f,detail:1,bubbles:!0,cancelable:!0});Kc.isOpening=n,pQ(e),e.dispatchEvent(h),Kc.isOpening=!1}Kc.isOpening=!1;function c9(){let e=E.useRef(new Map),t=E.useCallback((r,u,a,c)=>{let f=c?.once?(...h)=>{e.current.delete(a),a(...h)}:a;e.current.set(a,{type:u,eventTarget:r,fn:f,options:c}),r.addEventListener(u,f,c)},[]),n=E.useCallback((r,u,a,c)=>{var f;let h=((f=e.current.get(a))===null||f===void 0?void 0:f.fn)||a;r.removeEventListener(u,h,c),e.current.delete(a)},[]),i=E.useCallback(()=>{e.current.forEach((r,u)=>{n(r.eventTarget,r.type,u,r.options)})},[n]);return E.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function TQ(e){return e.pointerType===""&&e.isTrusted?!0:EQ()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function f9(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function _Q(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function d9(e){let t=E.useRef({isFocused:!1,observer:null});return cQ(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),E.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n.target,r=u=>{if(t.current.isFocused=!1,i.disabled){let a=f9(u);e?.(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let CQ=!1,_f=null,Kv=new Set,Nc=new Map,Cu=!1,Jv=!1;const AQ={Tab:!0,Escape:!0};function I2(e,t){for(let n of Kv)n(e,t)}function wQ(e){return!(e.metaKey||!ch()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fh(e){Cu=!0,!Kc.isOpening&&wQ(e)&&(_f="keyboard",I2("keyboard",e))}function Ba(e){_f="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Cu=!0,I2("pointer",e))}function h9(e){!Kc.isOpening&&TQ(e)&&(Cu=!0,_f="virtual")}function p9(e){e.target===window||e.target===document||CQ||!e.isTrusted||(!Cu&&!Jv&&(_f="virtual",I2("virtual",e)),Cu=!1,Jv=!1)}function m9(){Cu=!1,Jv=!0}function ey(e){if(typeof window>"u"||typeof document>"u"||Nc.get(fu(e)))return;const t=fu(e),n=Ms(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Cu=!0,i.apply(this,arguments)},n.addEventListener("keydown",fh,!0),n.addEventListener("keyup",fh,!0),n.addEventListener("click",h9,!0),t.addEventListener("focus",p9,!0),t.addEventListener("blur",m9,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ba,!0),n.addEventListener("pointermove",Ba,!0),n.addEventListener("pointerup",Ba,!0)),t.addEventListener("beforeunload",()=>{g9(e)},{once:!0}),Nc.set(t,{focus:i})}const g9=(e,t)=>{const n=fu(e),i=Ms(e);t&&i.removeEventListener("DOMContentLoaded",t),Nc.has(n)&&(n.HTMLElement.prototype.focus=Nc.get(n).focus,i.removeEventListener("keydown",fh,!0),i.removeEventListener("keyup",fh,!0),i.removeEventListener("click",h9,!0),n.removeEventListener("focus",p9,!0),n.removeEventListener("blur",m9,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Ba,!0),i.removeEventListener("pointermove",Ba,!0),i.removeEventListener("pointerup",Ba,!0)),Nc.delete(n))};function DQ(e){const t=Ms(e);let n;return t.readyState!=="loading"?ey(e):(n=()=>{ey(e)},t.addEventListener("DOMContentLoaded",n)),()=>g9(e,n)}typeof document<"u"&&DQ();function v9(){return _f!=="pointer"}const NQ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function OQ(e,t,n){let i=Ms(n?.target);const r=typeof window<"u"?fu(n?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?fu(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?fu(n?.target).HTMLElement:HTMLElement,c=typeof window<"u"?fu(n?.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof r&&!NQ.has(i.activeElement.type)||i.activeElement instanceof u||i.activeElement instanceof a&&i.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!AQ[n.key])}function RQ(e,t,n){ey(),E.useEffect(()=>{let i=(r,u)=>{OQ(!!n?.isTextInput,r,u)&&e(v9())};return Kv.add(i),()=>{Kv.delete(i)}},t)}function MQ(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:r}=e;const u=E.useCallback(f=>{if(f.target===f.currentTarget)return i&&i(f),r&&r(!1),!0},[i,r]),a=d9(u),c=E.useCallback(f=>{const h=Ms(f.target),p=h?Zv(h):Zv();f.target===f.currentTarget&&p===a9(f.nativeEvent)&&(n&&n(f),r&&r(!0),a(f))},[r,n,a]);return{focusProps:{onFocus:!t&&(n||r||i)?c:void 0,onBlur:!t&&(i||r)?u:void 0}}}function kQ(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=e,u=E.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:c}=c9(),f=E.useCallback(m=>{m.currentTarget.contains(m.target)&&u.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(u.current.isFocusWithin=!1,c(),n&&n(m),r&&r(!1))},[n,r,u,c]),h=d9(f),p=E.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const v=Ms(m.target),y=Zv(v);if(!u.current.isFocusWithin&&y===a9(m.nativeEvent)){i&&i(m),r&&r(!0),u.current.isFocusWithin=!0,h(m);let x=m.currentTarget;a(v,"focus",S=>{if(u.current.isFocusWithin&&!u9(x,S.target)){let _=new v.defaultView.FocusEvent("blur",{relatedTarget:S.target});_Q(_,x);let T=f9(_);f(T)}},{capture:!0})}},[i,r,h,a,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let ty=!1,d0=0;function LQ(){ty=!0,setTimeout(()=>{ty=!1},50)}function wS(e){e.pointerType==="touch"&&LQ()}function IQ(){if(!(typeof document>"u"))return d0===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",wS),d0++,()=>{d0--,!(d0>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",wS)}}function y9(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[u,a]=E.useState(!1),c=E.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;E.useEffect(IQ,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=c9(),{hoverProps:p,triggerHoverEnd:m}=E.useMemo(()=>{let v=(S,_)=>{if(c.pointerType=_,r||_==="touch"||c.isHovered||!S.currentTarget.contains(S.target))return;c.isHovered=!0;let T=S.currentTarget;c.target=T,f(Ms(S.target),"pointerover",N=>{c.isHovered&&c.target&&!u9(c.target,N.target)&&y(N,N.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:T,pointerType:_}),n&&n(!0),a(!0)},y=(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),a(!1))},x={};return typeof PointerEvent<"u"&&(x.onPointerEnter=S=>{ty&&S.pointerType==="mouse"||v(S,S.pointerType)},x.onPointerLeave=S=>{!r&&S.currentTarget.contains(S.target)&&y(S,S.pointerType)}),{hoverProps:x,triggerHoverEnd:y}},[t,n,i,r,c,f,h]);return E.useEffect(()=>{r&&m({currentTarget:c.target},c.pointerType)},[r]),{hoverProps:p,isHovered:u}}function b9(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,r=E.useRef({isFocused:!1,isFocusVisible:t||v9()}),[u,a]=E.useState(!1),[c,f]=E.useState(()=>r.current.isFocused&&r.current.isFocusVisible),h=E.useCallback(()=>f(r.current.isFocused&&r.current.isFocusVisible),[]),p=E.useCallback(y=>{r.current.isFocused=y,a(y),h()},[h]);RQ(y=>{r.current.isFocusVisible=y,h()},[],{isTextInput:n});let{focusProps:m}=MQ({isDisabled:i,onFocusChange:p}),{focusWithinProps:v}=kQ({isDisabled:!i,onFocusWithinChange:p});return{isFocused:u,isFocusVisible:c,focusProps:i?v:m}}var FQ=Object.defineProperty,jQ=(e,t,n)=>t in e?FQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bg=(e,t,n)=>(jQ(e,typeof t!="symbol"?t+"":t,n),n);let PQ=class{constructor(){bg(this,"current",this.detect()),bg(this,"handoffState","pending"),bg(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"}},yu=new PQ;function Cf(e){var t;return yu.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function $Q(e){var t,n;return yu.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function VQ(e){var t,n;return(n=(t=$Q(e))==null?void 0:t.activeElement)!=null?n:null}function x9(e){return VQ(e)===e}function E9(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Li(){let e=[],t={addEventListener(n,i,r,u){return n.addEventListener(i,r,u),t.add(()=>n.removeEventListener(i,r,u))},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 E9(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,r){let u=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:u})})},group(n){let i=Li();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 r of e.splice(i,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function fl(){let[e]=E.useState(Li);return E.useEffect(()=>()=>e.dispose(),[e]),e}let Qt=(e,t)=>{yu.isServer?E.useEffect(e,t):E.useLayoutEffect(e,t)};function Iu(e){let t=E.useRef(e);return Qt(()=>{t.current=e},[e]),t}let Qe=function(e){let t=Iu(e);return Oe.useCallback((...n)=>t.current(...n),[t])};function BQ(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 UQ(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function zQ({disabled:e=!1}={}){let t=E.useRef(null),[n,i]=E.useState(!1),r=fl(),u=Qe(()=>{t.current=null,i(!1),r.dispose()}),a=Qe(c=>{if(r.dispose(),t.current===null){t.current=c.currentTarget,i(!0);{let f=Cf(c.currentTarget);r.addEventListener(f,"pointerup",u,!1),r.addEventListener(f,"pointermove",h=>{if(t.current){let p=BQ(h);i(UQ(p,t.current.getBoundingClientRect()))}},!1),r.addEventListener(f,"pointercancel",u,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:u,onClick:u}}}function Fu(e){return E.useMemo(()=>e,Object.values(e))}let HQ=E.createContext(void 0);function F2(){return E.useContext(HQ)}function DS(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Pr(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Pr),i}var ny=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ny||{}),qQ=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(qQ||{});function ar(){let e=YQ();return E.useCallback(t=>GQ({mergeRefs:e,...t}),[e])}function GQ({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:u=!0,name:a,mergeRefs:c}){c=c??QQ;let f=S9(t,e);if(u)return h0(f,n,i,a,c);let h=r??0;if(h&2){let{static:p=!1,...m}=f;if(p)return h0(m,n,i,a,c)}if(h&1){let{unmount:p=!0,...m}=f;return Pr(p?0:1,{0(){return null},1(){return h0({...m,hidden:!0,style:{display:"none"}},n,i,a,c)}})}return h0(f,n,i,a,c)}function h0(e,t={},n,i,r){let{as:u=n,children:a,refName:c="ref",...f}=xg(e,["unmount","static"]),h=e.ref!==void 0?{[c]:e.ref}:{},p=typeof a=="function"?a(t):a;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t)),f["aria-labelledby"]&&f["aria-labelledby"]===f.id&&(f["aria-labelledby"]=void 0);let m={};if(t){let v=!1,y=[];for(let[x,S]of Object.entries(t))typeof S=="boolean"&&(v=!0),S===!0&&y.push(x.replace(/([A-Z])/g,_=>`-${_.toLowerCase()}`));if(v){m["data-headlessui-state"]=y.join(" ");for(let x of y)m[`data-${x}`]=""}}if(R0(u)&&(Object.keys(ou(f)).length>0||Object.keys(ou(m)).length>0))if(!E.isValidElement(p)||Array.isArray(p)&&p.length>1||WQ(p)){if(Object.keys(ou(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(ou(f)).concat(Object.keys(ou(m))).map(v=>` - ${v}`).join(`
|
|
260
|
+
`),"","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(`
|
|
261
|
+
`)].join(`
|
|
262
|
+
`))}else{let v=p.props,y=v?.className,x=typeof y=="function"?(...T)=>DS(y(...T),f.className):DS(y,f.className),S=x?{className:x}:{},_=S9(p.props,ou(xg(f,["ref"])));for(let T in m)T in _&&delete m[T];return E.cloneElement(p,Object.assign({},_,m,h,{ref:r(XQ(p),h.ref)},S))}return E.createElement(u,Object.assign({},xg(f,["ref"]),!R0(u)&&h,!R0(u)&&m),p)}function YQ(){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 QQ(...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 S9(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[r=>{var u;return(u=r?.preventDefault)==null?void 0:u.call(r)}]);for(let i in n)Object.assign(t,{[i](r,...u){let a=n[i];for(let c of a){if((r instanceof Event||r?.nativeEvent instanceof Event)&&r.defaultPrevented)return;c(r,...u)}}});return t}function j2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];for(let i in n)Object.assign(t,{[i](...r){let u=n[i];for(let a of u)a?.(...r)}});return t}function lr(e){var t;return Object.assign(E.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ou(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function xg(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function XQ(e){return Oe.version.split(".")[0]>="19"?e.props.ref:e.ref}function R0(e){return e===E.Fragment||e===Symbol.for("react.fragment")}function WQ(e){return R0(e.type)}function ZQ(e,t,n){let[i,r]=E.useState(n),u=e!==void 0,a=E.useRef(u),c=E.useRef(!1),f=E.useRef(!1);return u&&!a.current&&!c.current?(c.current=!0,a.current=u,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.")):!u&&a.current&&!f.current&&(f.current=!0,a.current=u,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.")),[u?e:i,Qe(h=>(u||xn.flushSync(()=>r(h)),t?.(h)))]}function KQ(e){let[t]=E.useState(e);return t}function T9(e={},t=null,n=[]){for(let[i,r]of Object.entries(e))C9(n,_9(t,i),r);return n}function _9(e,t){return e?e+"["+t+"]":t}function C9(e,t,n){if(Array.isArray(n))for(let[i,r]of n.entries())C9(e,_9(t,i.toString()),r);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,""]):JQ(n)&&!E.isValidElement(n)&&T9(n,t,e)}function JQ(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}let eX="span";var P2=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(P2||{});function tX(e,t){var n;let{features:i=1,...r}=e,u={ref:t,"aria-hidden":(i&2)===2?!0:(n=r["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 ar()({ourProps:u,theirProps:r,slot:{},defaultTag:eX,name:"Hidden"})}let A9=lr(tX),nX=E.createContext(null);function iX({children:e}){let t=E.useContext(nX);if(!t)return Oe.createElement(Oe.Fragment,null,e);let{target:n}=t;return n?xn.createPortal(Oe.createElement(Oe.Fragment,null,e),n):null}function rX({data:e,form:t,disabled:n,onReset:i,overrides:r}){let[u,a]=E.useState(null),c=fl();return E.useEffect(()=>{if(i&&u)return c.addEventListener(u,"reset",i)},[u,t,i]),Oe.createElement(iX,null,Oe.createElement(oX,{setForm:a,formId:t}),T9(e).map(([f,h])=>Oe.createElement(A9,{features:P2.Hidden,...ou({key:f,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:f,value:h,...r})})))}function oX({setForm:e,formId:t}){return E.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Oe.createElement(A9,{features:P2.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let i=n.closest("form");i&&e(i)}})}let sX=E.createContext(void 0);function w9(){return E.useContext(sX)}function D9(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function ep(e){return D9(e)&&"tagName"in e}function ks(e){return ep(e)&&"accessKey"in e}function du(e){return ep(e)&&"tabIndex"in e}function uX(e){return ep(e)&&"style"in e}function aX(e){return ks(e)&&e.nodeName==="IFRAME"}function dh(e){return ks(e)&&e.nodeName==="INPUT"}function NS(e){return ks(e)&&e.nodeName==="LABEL"}function lX(e){return ks(e)&&e.nodeName==="FIELDSET"}function N9(e){return ks(e)&&e.nodeName==="LEGEND"}function cX(e){return ep(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function OS(e){let t=e.parentElement,n=null;for(;t&&!lX(t);)N9(t)&&(n=t),t=t.parentElement;let i=t?.getAttribute("disabled")==="";return i&&fX(n)?!1:i}function fX(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(N9(t))return!1;t=t.previousElementSibling}return!0}let O9=Symbol();function dX(e,t=!0){return Object.assign(e,{[O9]:t})}function Mo(...e){let t=E.useRef(e);E.useEffect(()=>{t.current=e},[e]);let n=Qe(i=>{for(let r of t.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return e.every(i=>i==null||i?.[O9])?void 0:n}let $2=E.createContext(null);$2.displayName="DescriptionContext";function R9(){let e=E.useContext($2);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,R9),t}return e}function hX(){var e,t;return(t=(e=E.useContext($2))==null?void 0:e.value)!=null?t:void 0}let pX="p";function mX(e,t){let n=E.useId(),i=F2(),{id:r=`headlessui-description-${n}`,...u}=e,a=R9(),c=Mo(t);Qt(()=>a.register(r),[r,a.register]);let f=Fu({...a.slot,disabled:i||!1}),h={ref:c,...a.props,id:r};return ar()({ourProps:h,theirProps:u,slot:f,defaultTag:pX,name:a.name||"Description"})}let gX=lr(mX);Object.assign(gX,{});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 tp=E.createContext(null);tp.displayName="LabelContext";function M9(){let e=E.useContext(tp);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,M9),t}return e}function np(e){var t,n,i;let r=(n=(t=E.useContext(tp))==null?void 0:t.value)!=null?n:void 0;return((i=e?.length)!=null?i:0)>0?[r,...e].filter(Boolean).join(" "):r}function vX({inherit:e=!1}={}){let t=np(),[n,i]=E.useState([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,E.useMemo(()=>function(u){let a=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:a,slot:u.slot,name:u.name,props:u.props,value:u.value}),[a,u.slot,u.name,u.props,u.value]);return Oe.createElement(tp.Provider,{value:c},u.children)},[i])]}let yX="label";function bX(e,t){var n;let i=E.useId(),r=M9(),u=w9(),a=F2(),{id:c=`headlessui-label-${i}`,htmlFor:f=u??((n=r.props)==null?void 0:n.htmlFor),passive:h=!1,...p}=e,m=Mo(t);Qt(()=>r.register(c),[c,r.register]);let v=Qe(S=>{let _=S.currentTarget;if(!(S.target!==S.currentTarget&&cX(S.target))&&(NS(_)&&S.preventDefault(),r.props&&"onClick"in r.props&&typeof r.props.onClick=="function"&&r.props.onClick(S),NS(_))){let T=document.getElementById(_.htmlFor);if(T){let N=T.getAttribute("disabled");if(N==="true"||N==="")return;let A=T.getAttribute("aria-disabled");if(A==="true"||A==="")return;(dh(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})}}}),y=Fu({...r.slot,disabled:a||!1}),x={ref:m,...r.props,id:c,htmlFor:f,onClick:v};return h&&("onClick"in x&&(delete x.htmlFor,delete x.onClick),"onClick"in p&&delete p.onClick),ar()({ourProps:x,theirProps:p,slot:y,defaultTag:f?yX:"div",name:r.name||"Label"})}let xX=lr(bX),EX=Object.assign(xX,{});function Aa(e,t,n){let i=n.initialDeps??[],r,u=!0;function a(){var c,f,h;let p;n.key&&((c=n.debug)!=null&&c.call(n))&&(p=Date.now());const m=e();if(!(m.length!==i.length||m.some((x,S)=>i[S]!==x)))return r;i=m;let y;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(y=Date.now()),r=t(...m),n.key&&((h=n.debug)!=null&&h.call(n))){const x=Math.round((Date.now()-p)*100)/100,S=Math.round((Date.now()-y)*100)/100,_=S/16,T=(N,A)=>{for(N=String(N);N.length<A;)N=" "+N;return N};console.info(`%c⏱ ${T(S,5)} /${T(x,5)} ms`,`
|
|
263
|
+
font-size: .6rem;
|
|
264
|
+
font-weight: bold;
|
|
265
|
+
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(u&&n.skipInitialOnChange)&&n.onChange(r),u=!1,r}return a.updateDeps=c=>{i=c},a}function RS(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const SX=(e,t)=>Math.abs(e-t)<1.01,TX=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}},MS=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},_X=e=>e,CX=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},AX=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=a=>{const{width:c,height:f}=a;t({width:Math.round(c),height:Math.round(f)})};if(r(MS(n)),!i.ResizeObserver)return()=>{};const u=new i.ResizeObserver(a=>{const c=()=>{const f=a[0];if(f?.borderBoxSize){const h=f.borderBoxSize[0];if(h){r({width:h.inlineSize,height:h.blockSize});return}}r(MS(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return u.observe(n,{box:"border-box"}),()=>{u.unobserve(n)}},kS={passive:!0},LS=typeof window>"u"?!0:"onscrollend"in window,wX=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const u=e.options.useScrollendEvent&&LS?()=>{}:TX(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),a=p=>()=>{const{horizontal:m,isRtl:v}=e.options;r=m?n.scrollLeft*(v&&-1||1):n.scrollTop,u(),t(r,p)},c=a(!0),f=a(!1);n.addEventListener("scroll",c,kS);const h=e.options.useScrollendEvent&&LS;return h&&n.addEventListener("scrollend",f,kS),()=>{n.removeEventListener("scroll",c),h&&n.removeEventListener("scrollend",f)}},DX=(e,t,n)=>{if(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"]},NX=(e,{adjustments:t=0,behavior:n},i)=>{var r,u;const a=e+t;(u=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||u.call(r,{[i.options.horizontal?"left":"top"]:a,behavior:n})};class OX{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(u=>{const a=()=>{this._measureElement(u.target,u)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var u;return(u=i())==null?void 0:u.observe(r,{box:"border-box"})},unobserve:r=>{var u;return(u=i())==null?void 0:u.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_X,rangeExtractor:CX,onChange:()=>{},measureElement:DX,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,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Aa(()=>(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(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=u,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},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 r=new Map,u=new Map;for(let a=i-1;a>=0;a--){const c=n[a];if(r.has(c.lane))continue;const f=u.get(c.lane);if(f==null||c.end>f.end?u.set(c.lane,c):c.end<f.end&&r.set(c.lane,!0),r.size===this.options.lanes)break}return u.size===this.options.lanes?Array.from(u.values()).sort((a,c)=>a.end===c.end?a.index-c.index:a.end-c.end)[0]:void 0},this.getMeasurementOptions=Aa(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,u,a,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:u,enabled:a,lanes:c}),{key:!1}),this.getMeasurements=Aa(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:u,enabled:a,lanes:c},f)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const v of this.laneAssignments.keys())v>=n&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const h=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,h),m=new Array(c).fill(void 0);for(let v=0;v<h;v++){const y=p[v];y&&(m[y.lane]=v)}for(let v=h;v<n;v++){const y=u(v),x=this.laneAssignments.get(v);let S,_;if(x!==void 0&&this.options.lanes>1){S=x;const D=m[S],R=D!==void 0?p[D]:void 0;_=R?R.end+this.options.gap:i+r}else{const D=this.options.lanes===1?p[v-1]:this.getFurthestMeasurement(p,v);_=D?D.end+this.options.gap:i+r,S=D?D.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,S)}const T=f.get(y),N=typeof T=="number"?T:this.options.estimateSize(v),A=_+N;p[v]={index:v,start:_,size:N,end:A,key:y,lane:S},m[S]=v}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Aa(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,u)=>this.range=n.length>0&&i>0?RX({measurements:n,outerSize:i,scrollOffset:r,lanes:u}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Aa(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,u,a)=>u===null||a===null?[]:n({startIndex:u,endIndex:a,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(n,i)=>{const r=this.indexFromElement(n),u=this.measurementsCache[r];if(!u)return;const a=u.key,c=this.elementsCache.get(a);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,i,this))},this.resizeItem=(n,i)=>{const r=this.measurementsCache[n];if(!r)return;const u=this.itemSizeCache.get(r.key)??r.size,a=i-u;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,a,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,i)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,r)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=Aa(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let u=0,a=n.length;u<a;u++){const c=n[u],f=i[c];r.push(f)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return RS(i[k9(0,i.length-1,r=>RS(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const u=this.getSize(),a=this.getScrollOffset();i==="auto"&&(i=n>=a+u?"end":"start"),i==="center"?n+=(r-u)/2:i==="end"&&(n-=u);const c=this.getMaxScrollOffset();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 r=this.measurementsCache[n];if(!r)return;const u=this.getSize(),a=this.getScrollOffset();if(i==="auto")if(r.end>=a+u-this.options.scrollPaddingEnd)i="end";else if(r.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const c=i==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,i,r.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:i="start",behavior:r}={})=>{r==="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:r})},this.scrollToIndex=(n,{align:i="auto",behavior:r}={})=>{r==="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)),this.currentScrollToIndex=n;let u=0;const a=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:r}),this.targetWindow.requestAnimationFrame(()=>{const y=()=>{if(this.currentScrollToIndex!==n)return;const x=this.getScrollOffset(),S=this.getOffsetForIndex(n,v);if(!S){console.warn("Failed to get offset for index:",n);return}SX(S[0],x)||f(v)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(y):y()})},f=h=>{this.targetWindow&&this.currentScrollToIndex===n&&(u++,u<a?this.targetWindow.requestAnimationFrame(()=>c(h)):console.warn(`Failed to scroll to index ${n} after ${a} 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 r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const u=Array(this.options.lanes).fill(null);let a=i.length-1;for(;a>=0&&u.some(c=>c===null);){const c=i[a];u[c.lane]===null&&(u[c.lane]=c.end),a--}r=Math.max(...u.filter(c=>c!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}}const k9=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,u=n(r);if(u<i)e=r+1;else if(u>i)t=r-1;else return r}return e>0?e-1:0};function RX({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,u=f=>e[f].start;if(e.length<=i)return{startIndex:0,endIndex:r};let a=k9(0,r,u,n),c=a;if(i===1)for(;c<r&&e[c].end<n+t;)c++;else if(i>1){const f=Array(i).fill(0);for(;c<r&&f.some(p=>p<n+t);){const p=e[c];f[p.lane]=p.end,c++}const h=Array(i).fill(n+t);for(;a>=0&&h.some(p=>p>=n);){const p=e[a];h[p.lane]=p.start,a--}a=Math.max(0,a-a%i),c=Math.min(r,c+(i-1-c%i))}return{startIndex:a,endIndex:c}}const IS=typeof document<"u"?E.useLayoutEffect:E.useEffect;function MX({useFlushSync:e=!0,...t}){const n=E.useReducer(()=>({}),{})[1],i={...t,onChange:(u,a)=>{var c;e&&a?xn.flushSync(n):n(),(c=t.onChange)==null||c.call(t,u,a)}},[r]=E.useState(()=>new OX(i));return r.setOptions(i),IS(()=>r._didMount(),[]),IS(()=>r._willUpdate()),r}function kX(e){return MX({observeElementRect:AX,observeElementOffset:wX,scrollToFn:NX,...e})}function LX(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 IX(e=LX){return E.useCallback((t,n)=>{if(typeof e=="string"){let i=e;return t?.[i]===n?.[i]}return e(t,n)},[e])}function FS(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function jS(e,t,n=!1){let[i,r]=E.useState(()=>FS(t));return Qt(()=>{if(!t||!e)return;let u=Li();return u.requestAnimationFrame(function a(){u.requestAnimationFrame(a),r(c=>{let f=FS(t);return f.width===c.width&&f.height===c.height?c:f})}),()=>{u.dispose()}},[t,e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}var V2=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(V2||{});function FX(e){let t=E.useRef(null),n=Qe(r=>{t.current=r.pointerType,!OS(r.currentTarget)&&r.pointerType==="mouse"&&r.button===V2.Left&&(r.preventDefault(),e(r))}),i=Qe(r=>{t.current!=="mouse"&&(OS(r.currentTarget)||e(r))});return{onPointerDown:n,onClick:i}}let L9=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 jX=Object.defineProperty,PX=(e,t,n)=>t in e?jX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$X=(e,t,n)=>(PX(e,t+"",n),n),I9=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>(I9(e,t,"read from private field"),n?n.call(e):t.get(e)),Eg=(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)},PS=(e,t,n,i)=>(I9(e,t,"write to private field"),t.set(e,n),n),_r,vc,yc;let F9=class{constructor(t){Eg(this,_r,{}),Eg(this,vc,new L9(()=>new Set)),Eg(this,yc,new Set),$X(this,"disposables",Li()),PS(this,_r,t),yu.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return _i(this,_r)}subscribe(t,n){if(yu.isServer)return()=>{};let i={selector:t,callback:n,current:t(_i(this,_r))};return _i(this,yc).add(i),this.disposables.add(()=>{_i(this,yc).delete(i)})}on(t,n){return yu.isServer?()=>{}:(_i(this,vc).get(t).add(n),this.disposables.add(()=>{_i(this,vc).get(t).delete(n)}))}send(t){let n=this.reduce(_i(this,_r),t);if(n!==_i(this,_r)){PS(this,_r,n);for(let i of _i(this,yc)){let r=i.selector(_i(this,_r));j9(i.current,r)||(i.current=r,i.callback(r))}for(let i of _i(this,vc).get(t.type))i(_i(this,_r),t)}}};_r=new WeakMap,vc=new WeakMap,yc=new WeakMap;function j9(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:Sg(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Sg(e.entries(),t.entries()):$S(e)&&$S(t)?Sg(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Sg(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 $S(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var VX=Object.defineProperty,BX=(e,t,n)=>t in e?VX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VS=(e,t,n)=>(BX(e,typeof t!="symbol"?t+"":t,n),n),P9=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(P9||{});let UX={0(e,t){let n=t.id,i=e.stack,r=e.stack.indexOf(n);if(r!==-1){let u=e.stack.slice();return u.splice(r,1),u.push(n),i=u,{...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 r=e.stack.slice();return r.splice(i,1),{...e,stack:r}}},zX=class $9 extends F9{constructor(){super(...arguments),VS(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),VS(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new $9({stack:[]})}reduce(t,n){return Pr(n.type,UX,t,n)}};const B2=new L9(()=>zX.new());var Tg={exports:{}},_g={};var BS;function HX(){if(BS)return _g;BS=1;var e=rf();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,r=e.useRef,u=e.useEffect,a=e.useMemo,c=e.useDebugValue;return _g.useSyncExternalStoreWithSelector=function(f,h,p,m,v){var y=r(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=a(function(){function _(R){if(!T){if(T=!0,N=R,R=m(R),v!==void 0&&x.hasValue){var M=x.value;if(v(M,R))return A=M}return A=R}if(M=A,n(N,R))return M;var F=m(R);return v!==void 0&&v(M,F)?(N=R,M):(N=R,A=F)}var T=!1,N,A,D=p===void 0?null:p;return[function(){return _(h())},D===null?void 0:function(){return _(D())}]},[h,p,m,v]);var S=i(f,y[0],y[1]);return u(function(){x.hasValue=!0,x.value=S},[S]),c(S),S},_g}var US;function qX(){return US||(US=1,Tg.exports=HX()),Tg.exports}var GX=qX();function ln(e,t,n=j9){return GX.useSyncExternalStoreWithSelector(Qe(i=>e.subscribe(YX,i)),Qe(()=>e.state),Qe(()=>e.state),Qe(t),n)}function YX(e){return e}function V9(e,t){let n=E.useId(),i=B2.get(t),[r,u]=ln(i,E.useCallback(a=>[i.selectors.isTop(a,n),i.selectors.inStack(a,n)],[i,n]));return Qt(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),e?u?r:!0:!1}let iy=new Map,Oc=new Map;function zS(e){var t;let n=(t=Oc.get(e))!=null?t:0;return Oc.set(e,n+1),n!==0?()=>HS(e):(iy.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>HS(e))}function HS(e){var t;let n=(t=Oc.get(e))!=null?t:1;if(n===1?Oc.delete(e):Oc.set(e,n-1),n!==1)return;let i=iy.get(e);i&&(i["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,iy.delete(e))}function QX(e,{allowed:t,disallowed:n}={}){let i=V9(e,"inert-others");Qt(()=>{var r,u;if(!i)return;let a=Li();for(let f of(r=n?.())!=null?r:[])f&&a.add(zS(f));let c=(u=t?.())!=null?u:[];for(let f of c){if(!f)continue;let h=Cf(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))||a.add(zS(m));p=p.parentElement}}return a.dispose},[i,t,n])}function XX(e,t,n){let i=Iu(r=>{let u=r.getBoundingClientRect();u.x===0&&u.y===0&&u.width===0&&u.height===0&&n()});E.useEffect(()=>{if(!e)return;let r=t===null?null:ks(t)?t:t.current;if(!r)return;let u=Li();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>i.current(r));a.observe(r),u.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>i.current(r));a.observe(r),u.add(()=>a.disconnect())}return()=>u.dispose()},[t,i,e])}let ry=["[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 WX=(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))(WX||{}),ZX=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ZX||{}),KX=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(KX||{}),B9=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(B9||{});function JX(e,t=0){var n;return e===((n=Cf(e))==null?void 0:n.body)?!1:Pr(t,{0(){return e.matches(ry)},1(){let i=e;for(;i!==null;){if(i.matches(ry))return!0;i=i.parentElement}return!1}})}var eW=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(eW||{});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 tW(e,t=n=>n){return e.slice().sort((n,i)=>{let r=t(n),u=t(i);if(r===null||u===null)return 0;let a=r.compareDocumentPosition(u);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function U9(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function nW(){return/Android/gi.test(window.navigator.userAgent)}function oy(){return U9()||nW()}function La(e,t,n,i){let r=Iu(n);E.useEffect(()=>{if(!e)return;function u(a){r.current(a)}return document.addEventListener(t,u,i),()=>document.removeEventListener(t,u,i)},[e,t,i])}function iW(e,t,n,i){let r=Iu(n);E.useEffect(()=>{if(!e)return;function u(a){r.current(a)}return window.addEventListener(t,u,i),()=>window.removeEventListener(t,u,i)},[e,t,i])}const qS=30;function rW(e,t,n){let i=Iu(n),r=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!JX(h,B9.Loose)&&h.tabIndex!==-1&&c.preventDefault(),i.current(c,h)},[i,t]),u=E.useRef(null);La(e,"pointerdown",c=>{var f,h;oy()||(u.current=((h=(f=c.composedPath)==null?void 0:f.call(c))==null?void 0:h[0])||c.target)},!0),La(e,"pointerup",c=>{if(oy()||!u.current)return;let f=u.current;return u.current=null,r(c,()=>f)},!0);let a=E.useRef({x:0,y:0});La(e,"touchstart",c=>{a.current.x=c.touches[0].clientX,a.current.y=c.touches[0].clientY},!0),La(e,"touchend",c=>{let f={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(f.x-a.current.x)>=qS||Math.abs(f.y-a.current.y)>=qS))return r(c,()=>du(c.target)?c.target:null)},!0),iW(e,"blur",c=>r(c,()=>aX(window.document.activeElement)?window.document.activeElement:null),!0)}function sy(...e){return E.useMemo(()=>Cf(...e),[...e])}var oW=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(oW||{});const cc={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},sW=200,GS=5;function uW(e,{trigger:t,action:n,close:i,select:r}){let u=E.useRef(null),a=E.useRef(null),c=E.useRef(null);La(e&&t!==null,"pointerdown",f=>{D9(f?.target)&&t!=null&&t.contains(f.target)&&(a.current=f.x,c.current=f.y,u.current=f.timeStamp)}),La(e&&t!==null,"pointerup",f=>{var h,p;let m=u.current;if(m===null||(u.current=null,!du(f.target))||Math.abs(f.x-((h=a.current)!=null?h:f.x))<GS&&Math.abs(f.y-((p=c.current)!=null?p:f.y))<GS)return;let v=n(f);switch(v.kind){case 0:return;case 1:{f.timeStamp-m>sW&&(r(v.target),i());break}case 2:{i();break}}},{capture:!0})}function aW(e,t,n,i){let r=Iu(n);E.useEffect(()=>{e=e??window;function u(a){r.current(a)}return e.addEventListener(t,u,i),()=>e.removeEventListener(t,u,i)},[e,t,i])}function z9(e){let t=E.useRef({value:"",selectionStart:null,selectionEnd:null});return aW(e,"blur",n=>{let i=n.target;dh(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),Qe(()=>{if(!x9(e)&&dh(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 lW(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?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function cW(e){return E.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function fW(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...u){let a=t[r].call(n,...u);a&&(n=a,i.forEach(c=>c()))}}}function dW(){let e;return{before({doc:t}){var n;let i=t.documentElement,r=(n=t.defaultView)!=null?n:window;e=Math.max(0,r.innerWidth-i.clientWidth)},after({doc:t,d:n}){let i=t.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),u=Math.max(0,e-r);n.style(i,"paddingRight",`${u}px`)}}}function hW(){return U9()?{before({doc:e,d:t,meta:n}){function i(r){for(let u of n().containers)for(let a of u())if(a.contains(r))return!0;return!1}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=Li();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let u=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",c=>{if(du(c.target))try{let f=c.target.closest("a");if(!f)return;let{hash:h}=new URL(f.href),p=e.querySelector(h);du(p)&&!i(p)&&(a=p)}catch{}},!0),t.group(c=>{t.addEventListener(e,"touchstart",f=>{if(c.dispose(),du(f.target)&&uX(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(du(c.target)){if(dh(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;u!==f&&window.scrollTo(0,u),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function pW(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function YS(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let hu=fW(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:Li(),meta:new Set,computedMeta:{}};return i.count++,i.meta.add(t),i.computedMeta=YS(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=YS(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[hW(),dW(),pW()];n.forEach(({before:i})=>i?.(t)),n.forEach(({after:i})=>i?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});hu.subscribe(()=>{let e=hu.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",r=n.count!==0;(r&&!i||!r&&i)&&hu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&hu.dispatch("TEARDOWN",n)}});function mW(e,t,n=()=>({containers:[]})){let i=cW(hu),r=t?i.get(t):void 0,u=r?r.count>0:!1;return Qt(()=>{if(!(!t||!e))return hu.dispatch("PUSH",t,n),()=>hu.dispatch("POP",t,n)},[e,t]),u}function gW(e,t,n=()=>[document.body]){let i=V9(e,"scroll-lock");mW(i,t,r=>{var u;return{containers:[...(u=r.containers)!=null?u:[],n]}})}function QS(e){return[e.screenX,e.screenY]}function vW(){let e=E.useRef([-1,-1]);return{wasMoved(t){let n=QS(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=QS(t)}}}function yW(e=0){let[t,n]=E.useState(e),i=E.useCallback(f=>n(f),[]),r=E.useCallback(f=>n(h=>h|f),[]),u=E.useCallback(f=>(t&f)===f,[t]),a=E.useCallback(f=>n(h=>h&~f),[]),c=E.useCallback(f=>n(h=>h^f),[]);return{flags:t,setFlag:i,addFlag:r,hasFlag:u,removeFlag:a,toggleFlag:c}}var bW={},XS,WS;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((XS=process==null?void 0:bW)==null?void 0:XS.NODE_ENV)==="test"&&typeof((WS=Element?.prototype)==null?void 0:WS.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(`
|
|
266
|
+
`)),[]});var xW=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(xW||{});function EW(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function SW(e,t,n,i){let[r,u]=E.useState(n),{hasFlag:a,addFlag:c,removeFlag:f}=yW(e&&r?3:0),h=E.useRef(!1),p=E.useRef(!1),m=fl();return Qt(()=>{var v;if(e){if(n&&u(!0),!t){n&&c(3);return}return(v=void 0)==null||v.call(i,n),TW(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 y;p.current&&AW(t)||(h.current=!1,f(7),n||u(!1),(y=void 0)==null||y.call(i,n))}})}},[e,n,t,m]),e?[r,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function TW(e,{prepare:t,run:n,done:i,inFlight:r}){let u=Li();return CW(e,{prepare:t,inFlight:r}),u.nextFrame(()=>{n(),u.requestAnimationFrame(()=>{u.add(_W(e,i))})}),u.dispose}function _W(e,t){var n,i;let r=Li();if(!e)return r.dispose;let u=!1;r.add(()=>{u=!0});let a=(i=(n=e.getAnimations)==null?void 0:n.call(e).filter(c=>c instanceof CSSTransition))!=null?i:[];return a.length===0?(t(),r.dispose):(Promise.allSettled(a.map(c=>c.finished)).then(()=>{u||t()}),r.dispose)}function CW(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 AW(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 wW(e,{container:t,accept:n,walk:i}){let r=E.useRef(n),u=E.useRef(i);E.useEffect(()=>{r.current=n,u.current=i},[n,i]),Qt(()=>{if(!t||!e)return;let a=Cf(t);if(!a)return;let c=r.current,f=u.current,h=Object.assign(m=>c(m),{acceptNode:c}),p=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,h,!1);for(;p.nextNode();)f(p.currentNode)},[t,e,r,u])}function ZS(e,t){let n=E.useRef([]),i=Qe(e);E.useEffect(()=>{let r=[...n.current];for(let[u,a]of t.entries())if(n.current[u]!==a){let c=i(t,r);return n.current=t,c}},[i,...t])}function ip(){return typeof window<"u"}function dl(e){return H9(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qr(e){var t;return(t=(H9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function H9(e){return ip()?e instanceof Node||e instanceof ai(e).Node:!1}function Mn(e){return ip()?e instanceof Element||e instanceof ai(e).Element:!1}function ko(e){return ip()?e instanceof HTMLElement||e instanceof ai(e).HTMLElement:!1}function KS(e){return!ip()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot}function Af(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=ir(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&r!=="inline"&&r!=="contents"}function DW(e){return/^(table|td|th)$/.test(dl(e))}function rp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const NW=/transform|translate|scale|rotate|perspective|filter/,OW=/paint|layout|strict|content/,iu=e=>!!e&&e!=="none";let Cg;function U2(e){const t=Mn(e)?ir(e):e;return iu(t.transform)||iu(t.translate)||iu(t.scale)||iu(t.rotate)||iu(t.perspective)||!z2()&&(iu(t.backdropFilter)||iu(t.filter))||NW.test(t.willChange||"")||OW.test(t.contain||"")}function RW(e){let t=Ds(e);for(;ko(t)&&!Ka(t);){if(U2(t))return t;if(rp(t))return null;t=Ds(t)}return null}function z2(){return Cg==null&&(Cg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cg}function Ka(e){return/^(html|body|#document)$/.test(dl(e))}function ir(e){return ai(e).getComputedStyle(e)}function op(e){return Mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ds(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||KS(e)&&e.host||qr(e);return KS(t)?t.host:t}function q9(e){const t=Ds(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:ko(t)&&Af(t)?t:q9(t)}function Jc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=q9(e),u=r===((i=e.ownerDocument)==null?void 0:i.body),a=ai(r);if(u){const c=uy(a);return t.concat(a,a.visualViewport||[],Af(r)?r:[],c&&n?Jc(c):[])}else return t.concat(r,Jc(r,[],n))}function uy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function MW(){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 Au=Math.min,An=Math.max,ef=Math.round,p0=Math.floor,Lr=e=>({x:e,y:e}),kW={left:"right",right:"left",bottom:"top",top:"bottom"};function JS(e,t,n){return An(e,Au(t,n))}function hl(e,t){return typeof e=="function"?e(t):e}function Ns(e){return e.split("-")[0]}function wf(e){return e.split("-")[1]}function G9(e){return e==="x"?"y":"x"}function Y9(e){return e==="y"?"height":"width"}function To(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Q9(e){return G9(To(e))}function LW(e,t,n){n===void 0&&(n=!1);const i=wf(e),r=Q9(e),u=Y9(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=hh(a)),[a,hh(a)]}function IW(e){const t=hh(e);return[ay(e),t,ay(t)]}function ay(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const eT=["left","right"],tT=["right","left"],FW=["top","bottom"],jW=["bottom","top"];function PW(e,t,n){switch(e){case"top":case"bottom":return n?t?tT:eT:t?eT:tT;case"left":case"right":return t?FW:jW;default:return[]}}function $W(e,t,n,i){const r=wf(e);let u=PW(Ns(e),n==="start",i);return r&&(u=u.map(a=>a+"-"+r),t&&(u=u.concat(u.map(ay)))),u}function hh(e){const t=Ns(e);return kW[t]+e.slice(t.length)}function VW(e){return{top:0,right:0,bottom:0,left:0,...e}}function BW(e){return typeof e!="number"?VW(e):{top:e,right:e,bottom:e,left:e}}function ph(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function nT(e,t,n){let{reference:i,floating:r}=e;const u=To(t),a=Q9(t),c=Y9(a),f=Ns(t),h=u==="y",p=i.x+i.width/2-r.width/2,m=i.y+i.height/2-r.height/2,v=i[c]/2-r[c]/2;let y;switch(f){case"top":y={x:p,y:i.y-r.height};break;case"bottom":y={x:p,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:m};break;case"left":y={x:i.x-r.width,y:m};break;default:y={x:i.x,y:i.y}}switch(wf(t)){case"start":y[a]-=v*(n&&h?-1:1);break;case"end":y[a]+=v*(n&&h?-1:1);break}return y}async function X9(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:u,rects:a,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:y=0}=hl(t,e),x=BW(y),_=c[v?m==="floating"?"reference":"floating":m],T=ph(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(_)))==null||n?_:_.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:f})),N=m==="floating"?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(c.floating)),D=await(u.isElement==null?void 0:u.isElement(A))?await(u.getScale==null?void 0:u.getScale(A))||{x:1,y:1}:{x:1,y:1},R=ph(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:A,strategy:f}):N);return{top:(T.top-R.top+x.top)/D.y,bottom:(R.bottom-T.bottom+x.bottom)/D.y,left:(T.left-R.left+x.left)/D.x,right:(R.right-T.right+x.right)/D.x}}const UW=50,zW=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:u=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:X9},f=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:m}=nT(h,i,f),v=i,y=0;const x={};for(let S=0;S<u.length;S++){const _=u[S];if(!_)continue;const{name:T,fn:N}=_,{x:A,y:D,data:R,reset:M}=await N({x:p,y:m,initialPlacement:i,placement:v,strategy:r,middlewareData:x,rects:h,platform:c,elements:{reference:e,floating:t}});p=A??p,m=D??m,x[T]={...x[T],...R},M&&y<UW&&(y++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(h=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:p,y:m}=nT(h,v,f)),S=-1)}return{x:p,y:m,placement:v,strategy:r,middlewareData:x}},HW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:u,rects:a,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,..._}=hl(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const T=Ns(r),N=To(c),A=Ns(c)===c,D=await(f.isRTL==null?void 0:f.isRTL(h.floating)),R=v||(A||!S?[hh(c)]:IW(c)),M=x!=="none";!v&&M&&R.push(...$W(c,S,x,D));const F=[c,...R],B=await f.detectOverflow(t,_),k=[];let $=((i=u.flip)==null?void 0:i.overflows)||[];if(p&&k.push(B[T]),m){const W=LW(r,a,D);k.push(B[W[0]],B[W[1]])}if($=[...$,{placement:r,overflows:k}],!k.every(W=>W<=0)){var H,Y;const W=(((H=u.flip)==null?void 0:H.index)||0)+1,J=F[W];if(J&&(!(m==="alignment"?N!==To(J):!1)||$.every(j=>To(j.placement)===N?j.overflows[0]>0:!0)))return{data:{index:W,overflows:$},reset:{placement:J}};let L=(Y=$.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:Y.placement;if(!L)switch(y){case"bestFit":{var se;const q=(se=$.filter(j=>{if(M){const P=To(j.placement);return P===N||P==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(P=>P>0).reduce((P,ne)=>P+ne,0)]).sort((j,P)=>j[1]-P[1])[0])==null?void 0:se[0];q&&(L=q);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}},qW=new Set(["left","top"]);async function GW(e,t){const{placement:n,platform:i,elements:r}=e,u=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=Ns(n),c=wf(n),f=To(n)==="y",h=qW.has(a)?-1:1,p=u&&f?-1:1,m=hl(t,e);let{mainAxis:v,crossAxis:y,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"&&(y=c==="end"?x*-1:x),f?{x:y*p,y:v*h}:{x:v*h,y:y*p}}const YW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:u,placement:a,middlewareData:c}=t,f=await GW(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:u+f.y,data:{...f,placement:a}}}}},QW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r,platform:u}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:N,y:A}=T;return{x:N,y:A}}},...h}=hl(e,t),p={x:n,y:i},m=await u.detectOverflow(t,h),v=To(Ns(r)),y=G9(v);let x=p[y],S=p[v];if(a){const T=y==="y"?"top":"left",N=y==="y"?"bottom":"right",A=x+m[T],D=x-m[N];x=JS(A,x,D)}if(c){const T=v==="y"?"top":"left",N=v==="y"?"bottom":"right",A=S+m[T],D=S-m[N];S=JS(A,S,D)}const _=f.fn({...t,[y]:x,[v]:S});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[y]:a,[v]:c}}}}}},XW=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:u,platform:a,elements:c}=t,{apply:f=()=>{},...h}=hl(e,t),p=await a.detectOverflow(t,h),m=Ns(r),v=wf(r),y=To(r)==="y",{width:x,height:S}=u.floating;let _,T;m==="top"||m==="bottom"?(_=m,T=v===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(T=m,_=v==="end"?"top":"bottom");const N=S-p.top-p.bottom,A=x-p.left-p.right,D=Au(S-p[_],N),R=Au(x-p[T],A),M=!t.middlewareData.shift;let F=D,B=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=A),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(F=N),M&&!v){const $=An(p.left,0),H=An(p.right,0),Y=An(p.top,0),se=An(p.bottom,0);y?B=x-2*($!==0||H!==0?$+H:An(p.left,p.right)):F=S-2*(Y!==0||se!==0?Y+se:An(p.top,p.bottom))}await f({...t,availableWidth:B,availableHeight:F});const k=await a.getDimensions(c.floating);return x!==k.width||S!==k.height?{reset:{rects:!0}}:{}}}};function W9(e){const t=ir(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=ko(e),u=r?e.offsetWidth:n,a=r?e.offsetHeight:i,c=ef(n)!==u||ef(i)!==a;return c&&(n=u,i=a),{width:n,height:i,$:c}}function H2(e){return Mn(e)?e:e.contextElement}function Ua(e){const t=H2(e);if(!ko(t))return Lr(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:u}=W9(t);let a=(u?ef(n.width):n.width)/i,c=(u?ef(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const WW=Lr(0);function Z9(e){const t=ai(e);return!z2()||!t.visualViewport?WW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ai(e)?!1:t}function wu(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),u=H2(e);let a=Lr(1);t&&(i?Mn(i)&&(a=Ua(i)):a=Ua(e));const c=ZW(u,n,i)?Z9(u):Lr(0);let f=(r.left+c.x)/a.x,h=(r.top+c.y)/a.y,p=r.width/a.x,m=r.height/a.y;if(u){const v=ai(u),y=i&&Mn(i)?ai(i):i;let x=v,S=uy(x);for(;S&&i&&y!==x;){const _=Ua(S),T=S.getBoundingClientRect(),N=ir(S),A=T.left+(S.clientLeft+parseFloat(N.paddingLeft))*_.x,D=T.top+(S.clientTop+parseFloat(N.paddingTop))*_.y;f*=_.x,h*=_.y,p*=_.x,m*=_.y,f+=A,h+=D,x=ai(S),S=uy(x)}}return ph({width:p,height:m,x:f,y:h})}function sp(e,t){const n=op(e).scrollLeft;return t?t.left+n:wu(qr(e)).left+n}function K9(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-sp(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function KW(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const u=r==="fixed",a=qr(i),c=t?rp(t.floating):!1;if(i===a||c&&u)return n;let f={scrollLeft:0,scrollTop:0},h=Lr(1);const p=Lr(0),m=ko(i);if((m||!m&&!u)&&((dl(i)!=="body"||Af(a))&&(f=op(i)),m)){const y=wu(i);h=Ua(i),p.x=y.x+i.clientLeft,p.y=y.y+i.clientTop}const v=a&&!m&&!u?K9(a,f):Lr(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 JW(e){return Array.from(e.getClientRects())}function eZ(e){const t=qr(e),n=op(e),i=e.ownerDocument.body,r=An(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),u=An(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+sp(e);const c=-n.scrollTop;return ir(i).direction==="rtl"&&(a+=An(t.clientWidth,i.clientWidth)-r),{width:r,height:u,x:a,y:c}}const iT=25;function tZ(e,t){const n=ai(e),i=qr(e),r=n.visualViewport;let u=i.clientWidth,a=i.clientHeight,c=0,f=0;if(r){u=r.width,a=r.height;const p=z2();(!p||p&&t==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}const h=sp(i);if(h<=0){const p=i.ownerDocument,m=p.body,v=getComputedStyle(m),y=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(i.clientWidth-m.clientWidth-y);x<=iT&&(u-=x)}else h<=iT&&(u+=h);return{width:u,height:a,x:c,y:f}}function nZ(e,t){const n=wu(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,u=ko(e)?Ua(e):Lr(1),a=e.clientWidth*u.x,c=e.clientHeight*u.y,f=r*u.x,h=i*u.y;return{width:a,height:c,x:f,y:h}}function rT(e,t,n){let i;if(t==="viewport")i=tZ(e,n);else if(t==="document")i=eZ(qr(e));else if(Mn(t))i=nZ(t,n);else{const r=Z9(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ph(i)}function J9(e,t){const n=Ds(e);return n===t||!Mn(n)||Ka(n)?!1:ir(n).position==="fixed"||J9(n,t)}function iZ(e,t){const n=t.get(e);if(n)return n;let i=Jc(e,[],!1).filter(c=>Mn(c)&&dl(c)!=="body"),r=null;const u=ir(e).position==="fixed";let a=u?Ds(e):e;for(;Mn(a)&&!Ka(a);){const c=ir(a),f=U2(a);!f&&c.position==="fixed"&&(r=null),(u?!f&&!r:!f&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Af(a)&&!f&&J9(e,a))?i=i.filter(p=>p!==a):r=c,a=Ds(a)}return t.set(e,i),i}function rZ(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?rp(t)?[]:iZ(t,this._c):[].concat(n),i],c=rT(t,a[0],r);let f=c.top,h=c.right,p=c.bottom,m=c.left;for(let v=1;v<a.length;v++){const y=rT(t,a[v],r);f=An(y.top,f),h=Au(y.right,h),p=Au(y.bottom,p),m=An(y.left,m)}return{width:h-m,height:p-f,x:m,y:f}}function oZ(e){const{width:t,height:n}=W9(e);return{width:t,height:n}}function sZ(e,t,n){const i=ko(t),r=qr(t),u=n==="fixed",a=wu(e,!0,u,t);let c={scrollLeft:0,scrollTop:0};const f=Lr(0);function h(){f.x=sp(r)}if(i||!i&&!u)if((dl(t)!=="body"||Af(r))&&(c=op(t)),i){const y=wu(t,!0,u,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else r&&h();u&&!i&&r&&h();const p=r&&!i&&!u?K9(r,c):Lr(0),m=a.left+c.scrollLeft-f.x-p.x,v=a.top+c.scrollTop-f.y-p.y;return{x:m,y:v,width:a.width,height:a.height}}function Ag(e){return ir(e).position==="static"}function oT(e,t){if(!ko(e)||ir(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qr(e)===n&&(n=n.ownerDocument.body),n}function e7(e,t){const n=ai(e);if(rp(e))return n;if(!ko(e)){let r=Ds(e);for(;r&&!Ka(r);){if(Mn(r)&&!Ag(r))return r;r=Ds(r)}return n}let i=oT(e,t);for(;i&&DW(i)&&Ag(i);)i=oT(i,t);return i&&Ka(i)&&Ag(i)&&!U2(i)?n:i||RW(e)||n}const uZ=async function(e){const t=this.getOffsetParent||e7,n=this.getDimensions,i=await n(e.floating);return{reference:sZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function aZ(e){return ir(e).direction==="rtl"}const lZ={convertOffsetParentRelativeRectToViewportRelativeRect:KW,getDocumentElement:qr,getClippingRect:rZ,getOffsetParent:e7,getElementRects:uZ,getClientRects:JW,getDimensions:oZ,getScale:Ua,isElement:Mn,isRTL:aZ};function t7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cZ(e,t){let n=null,i;const r=qr(e);function u(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),u();const h=e.getBoundingClientRect(),{left:p,top:m,width:v,height:y}=h;if(c||t(),!v||!y)return;const x=p0(m),S=p0(r.clientWidth-(p+v)),_=p0(r.clientHeight-(m+y)),T=p0(p),A={rootMargin:-x+"px "+-S+"px "+-_+"px "+-T+"px",threshold:An(0,Au(1,f))||1};let D=!0;function R(M){const F=M[0].intersectionRatio;if(F!==f){if(!D)return a();F?a(!1,F):i=setTimeout(()=>{a(!1,1e-7)},1e3)}F===1&&!t7(h,e.getBoundingClientRect())&&a(),D=!1}try{n=new IntersectionObserver(R,{...A,root:r.ownerDocument})}catch{n=new IntersectionObserver(R,A)}n.observe(e)}return a(!0),u}function fZ(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:u=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=H2(e),p=r||u?[...h?Jc(h):[],...t?Jc(t):[]]:[];p.forEach(T=>{r&&T.addEventListener("scroll",n,{passive:!0}),u&&T.addEventListener("resize",n)});const m=h&&c?cZ(h,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),h&&!f&&y.observe(h),t&&y.observe(t));let x,S=f?wu(e):null;f&&_();function _(){const T=wu(e);S&&!t7(S,T)&&n(),S=T,x=requestAnimationFrame(_)}return n(),()=>{var T;p.forEach(N=>{r&&N.removeEventListener("scroll",n),u&&N.removeEventListener("resize",n)}),m?.(),(T=y)==null||T.disconnect(),y=null,f&&cancelAnimationFrame(x)}}const wg=X9,dZ=YW,hZ=QW,pZ=HW,mZ=XW,gZ=(e,t,n)=>{const i=new Map,r={platform:lZ,...n},u={...r.platform,_c:i};return zW(e,t,{...r,platform:u})};var vZ=typeof document<"u",yZ=function(){},M0=vZ?E.useLayoutEffect:yZ;function mh(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,r;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(!mh(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const u=r[i];if(!(u==="_owner"&&e.$$typeof)&&!mh(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}function n7(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sT(e,t){const n=n7(e);return Math.round(t*n)/n}function Dg(e){const t=E.useRef(e);return M0(()=>{t.current=e}),t}function bZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:u,floating:a}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[p,m]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=E.useState(i);mh(v,i)||y(i);const[x,S]=E.useState(null),[_,T]=E.useState(null),N=E.useCallback(j=>{j!==M.current&&(M.current=j,S(j))},[]),A=E.useCallback(j=>{j!==F.current&&(F.current=j,T(j))},[]),D=u||x,R=a||_,M=E.useRef(null),F=E.useRef(null),B=E.useRef(p),k=f!=null,$=Dg(f),H=Dg(r),Y=Dg(h),se=E.useCallback(()=>{if(!M.current||!F.current)return;const j={placement:t,strategy:n,middleware:v};H.current&&(j.platform=H.current),gZ(M.current,F.current,j).then(P=>{const ne={...P,isPositioned:Y.current!==!1};W.current&&!mh(B.current,ne)&&(B.current=ne,xn.flushSync(()=>{m(ne)}))})},[v,t,n,H,Y]);M0(()=>{h===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,m(j=>({...j,isPositioned:!1})))},[h]);const W=E.useRef(!1);M0(()=>(W.current=!0,()=>{W.current=!1}),[]),M0(()=>{if(D&&(M.current=D),R&&(F.current=R),D&&R){if($.current)return $.current(D,R,se);se()}},[D,R,se,$,k]);const J=E.useMemo(()=>({reference:M,floating:F,setReference:N,setFloating:A}),[N,A]),L=E.useMemo(()=>({reference:D,floating:R}),[D,R]),q=E.useMemo(()=>{const j={position:n,left:0,top:0};if(!L.floating)return j;const P=sT(L.floating,p.x),ne=sT(L.floating,p.y);return c?{...j,transform:"translate("+P+"px, "+ne+"px)",...n7(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:ne}},[n,c,L.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:se,refs:J,elements:L,floatingStyles:q}),[p,se,J,L,q])}const i7=(e,t)=>{const n=dZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},xZ=(e,t)=>{const n=hZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},EZ=(e,t)=>{const n=pZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},SZ=(e,t)=>{const n=mZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},r7={...fy},TZ=r7.useInsertionEffect,_Z=TZ||(e=>e());function o7(e){const t=E.useRef(()=>{});return _Z(()=>{t.current=e}),E.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}var ly=typeof document<"u"?E.useLayoutEffect:E.useEffect;let uT=!1,CZ=0;const aT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+CZ++;function AZ(){const[e,t]=E.useState(()=>uT?aT():void 0);return ly(()=>{e==null&&t(aT())},[]),E.useEffect(()=>{uT=!0},[]),e}const wZ=r7.useId,DZ=wZ||AZ;function NZ(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(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(r=>r!==n))||[])}}}const OZ=E.createContext(null),RZ=E.createContext(null),MZ=()=>{var e;return((e=E.useContext(OZ))==null?void 0:e.id)||null},kZ=()=>E.useContext(RZ),LZ="data-floating-ui-focusable";function IZ(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=DZ(),u=E.useRef({}),[a]=E.useState(()=>NZ()),c=MZ()!=null,[f,h]=E.useState(i.reference),p=o7((y,x,S)=>{u.current.openEvent=y?x:void 0,a.emit("openchange",{open:y,event:x,reason:S,nested:c}),n?.(y,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:u,open:t,onOpenChange:p,elements:v,events:a,floatingId:r,refs:m}),[t,p,v,a,r,m])}function FZ(e){e===void 0&&(e={});const{nodeId:t}=e,n=IZ({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[u,a]=E.useState(null),[c,f]=E.useState(null),p=r?.domReference||u,m=E.useRef(null),v=kZ();ly(()=>{p&&(m.current=p)},[p]);const y=bZ({...e,elements:{...r,...c&&{reference:c}}}),x=E.useCallback(A=>{const D=Mn(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),contextElement:A}:A;f(D),y.refs.setReference(D)},[y.refs]),S=E.useCallback(A=>{(Mn(A)||A===null)&&(m.current=A,a(A)),(Mn(y.refs.reference.current)||y.refs.reference.current===null||A!==null&&!Mn(A))&&y.refs.setReference(A)},[y.refs]),_=E.useMemo(()=>({...y.refs,setReference:S,setPositionReference:x,domReference:m}),[y.refs,S,x]),T=E.useMemo(()=>({...y.elements,domReference:p}),[y.elements,p]),N=E.useMemo(()=>({...y,...i,refs:_,elements:T,nodeId:t}),[y,_,T,t,i]);return ly(()=>{i.dataRef.current.floatingContext=N;const A=v?.nodesRef.current.find(D=>D.id===t);A&&(A.context=N)}),E.useMemo(()=>({...y,context:N,refs:_,elements:T}),[y,_,T,N])}const lT="active",cT="selected";function Ng(e,t,n){const i=new Map,r=n==="item";let u=e;if(r&&e){const{[lT]:a,[cT]:c,...f}=e;u=f}return{...n==="floating"&&{tabIndex:-1,[LZ]:""},...u,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(f=>{let[h,p]=f;if(!(r&&[lT,cT].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),a[h]=function(){for(var v,y=arguments.length,x=new Array(y),S=0;S<y;S++)x[S]=arguments[S];return(v=i.get(h))==null?void 0:v.map(_=>_(...x)).find(_=>_!==void 0)}}}else a[h]=p}),a),{})}}function jZ(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),i=e.map(c=>c?.item),r=E.useCallback(c=>Ng(c,e,"reference"),t),u=E.useCallback(c=>Ng(c,e,"floating"),n),a=E.useCallback(c=>Ng(c,e,"item"),i);return E.useMemo(()=>({getReferenceProps:r,getFloatingProps:u,getItemProps:a}),[r,u,a])}function fT(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const PZ=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:i,onFallbackChange:r,offset:u=0,index:a=0,minItemsVisible:c=4,referenceOverflowThreshold:f=0,scrollRef:h,...p}=hl(e,t),{rects:m,elements:{floating:v}}=t,y=n.current[a],x=h?.current||v,S=v.clientTop||x.clientTop,_=v.clientTop!==0,T=x.clientTop!==0,N=v===x;if(!y)return{};const A={...t,...await i7(-y.offsetTop-v.clientTop-m.reference.height/2-y.offsetHeight/2-u).fn(t)},D=await wg(fT(A,x.scrollHeight+S+v.clientTop),p),R=await wg(A,{...p,elementContext:"reference"}),M=An(0,D.top),F=A.y+M,$=(x.scrollHeight>x.clientHeight?H=>H:ef)(An(0,x.scrollHeight+(_&&N||T?S*2:0)-M-An(0,D.bottom)));if(x.style.maxHeight=$+"px",x.scrollTop=M,r){const H=x.offsetHeight<y.offsetHeight*Au(c,n.current.length)-1||R.top>=-f||R.bottom>=-f;xn.flushSync(()=>r(H))}return i&&(i.current=await wg(fT({...A,y:F},x.offsetHeight+S+v.clientTop),p)),{y:F}}});function $Z(e,t){const{open:n,elements:i}=e,{enabled:r=!0,overflowRef:u,scrollRef:a,onChange:c}=t,f=o7(c),h=E.useRef(!1),p=E.useRef(null),m=E.useRef(null);E.useEffect(()=>{if(!r)return;function y(S){if(S.ctrlKey||!x||u.current==null)return;const _=S.deltaY,T=u.current.top>=-.5,N=u.current.bottom>=-.5,A=x.scrollHeight-x.clientHeight,D=_<0?-1:1,R=_<0?"max":"min";x.scrollHeight<=x.clientHeight||(!T&&_>0||!N&&_<0?(S.preventDefault(),xn.flushSync(()=>{f(M=>M+Math[R](_,A*D))})):/firefox/i.test(MW())&&(x.scrollTop+=_))}const x=a?.current||i.floating;if(n&&x)return x.addEventListener("wheel",y),requestAnimationFrame(()=>{p.current=x.scrollTop,u.current!=null&&(m.current={...u.current})}),()=>{p.current=null,m.current=null,x.removeEventListener("wheel",y)}},[r,n,i.floating,u,a,f]);const v=E.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){const y=a?.current||i.floating;if(!(!u.current||!y||!h.current)){if(p.current!==null){const x=y.scrollTop-p.current;(u.current.bottom<-.5&&x<-1||u.current.top<-.5&&x>1)&&xn.flushSync(()=>f(S=>S+x))}requestAnimationFrame(()=>{p.current=y.scrollTop})}}}),[i.floating,f,u,a]);return E.useMemo(()=>r?{floating:v}:{},[r,v])}let Df=E.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Df.displayName="FloatingContext";let q2=E.createContext(null);q2.displayName="PlacementContext";function VZ(e){return E.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function BZ(){return E.useContext(Df).setReference}function UZ(){let{getFloatingProps:e,slot:t}=E.useContext(Df);return E.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function zZ(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=E.useContext(q2),n=E.useMemo(()=>e,[JSON.stringify(e,(r,u)=>{var a;return(a=u?.outerHTML)!=null?a:u})]);Qt(()=>{t?.(n??null)},[t,n]);let i=E.useContext(Df);return E.useMemo(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}let dT=4;function HZ({children:e,enabled:t=!0}){let[n,i]=E.useState(null),[r,u]=E.useState(0),a=E.useRef(null),[c,f]=E.useState(null);qZ(c);let h=t&&n!==null&&c!==null,{to:p="bottom",gap:m=0,offset:v=0,padding:y=0,inner:x}=GZ(n,c),[S,_="center"]=p.split(" ");Qt(()=>{h&&u(0)},[h]);let{refs:T,floatingStyles:N,context:A}=FZ({open:h,placement:S==="selection"?_==="center"?"bottom":`bottom-${_}`:_==="center"?`${S}`:`${S}-${_}`,strategy:"absolute",transform:!1,middleware:[i7({mainAxis:S==="selection"?0:m,crossAxis:v}),xZ({padding:y}),S!=="selection"&&EZ({padding:y}),S==="selection"&&x?PZ({...x,padding:y,overflowRef:a,offset:r,minItemsVisible:dT,referenceOverflowThreshold:y,onFallbackChange(H){var Y,se;if(!H)return;let W=A.elements.floating;if(!W)return;let J=parseFloat(getComputedStyle(W).scrollPaddingBottom)||0,L=Math.min(dT,W.childElementCount),q=0,j=0;for(let P of(se=(Y=A.elements.floating)==null?void 0:Y.childNodes)!=null?se:[])if(ks(P)){let ne=P.offsetTop,I=ne+P.clientHeight+J,U=W.scrollTop,ie=U+W.clientHeight;if(ne>=U&&I<=ie)L--;else{j=Math.max(0,Math.min(I,ie)-Math.max(ne,U)),q=P.clientHeight;break}}L>=1&&u(P=>{let ne=q*L-j+J;return P>=ne?P:ne})}}):null,SZ({padding:y,apply({availableWidth:H,availableHeight:Y,elements:se}){Object.assign(se.floating.style,{overflow:"auto",maxWidth:`${H}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Y}px)`})}})].filter(Boolean),whileElementsMounted:fZ}),[D=S,R=_]=A.placement.split("-");S==="selection"&&(D="selection");let M=E.useMemo(()=>({anchor:[D,R].filter(Boolean).join(" ")}),[D,R]),F=$Z(A,{overflowRef:a,onChange:u}),{getReferenceProps:B,getFloatingProps:k}=jZ([F]),$=Qe(H=>{f(H),T.setFloating(H)});return E.createElement(q2.Provider,{value:i},E.createElement(Df.Provider,{value:{setFloating:$,setReference:T.setReference,styles:N,getReferenceProps:B,getFloatingProps:k,slot:M}},e))}function qZ(e){Qt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,i=parseFloat(n);if(isNaN(i))return;let r=parseInt(n);isNaN(r)||i!==r&&(e.style.maxHeight=`${Math.ceil(i)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function GZ(e,t){var n,i,r;let u=Og((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),a=Og((i=e?.offset)!=null?i:"var(--anchor-offset, 0)",t),c=Og((r=e?.padding)!=null?r:"var(--anchor-padding, 0)",t);return{...e,gap:u,offset:a,padding:c}}function Og(e,t,n=void 0){let i=fl(),r=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=hT(f,h);return[p,m=>{let v=s7(f);{let y=v.map(x=>window.getComputedStyle(h).getPropertyValue(x));i.requestAnimationFrame(function x(){i.nextFrame(x);let S=!1;for(let[T,N]of v.entries()){let A=window.getComputedStyle(h).getPropertyValue(N);if(y[T]!==A){y[T]=A,S=!0;break}}if(!S)return;let _=hT(f,h);p!==_&&(m(_),p=_)})}return i.dispose}]}return[n,null]}),u=E.useMemo(()=>r(e,t)[0],[e,t]),[a=u,c]=E.useState();return Qt(()=>{let[f,h]=r(e,t);if(c(f),!!h)return h(c)},[e,t]),a}function s7(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(),r=t[1].slice(n+1).trim();return r?[i,...s7(r)]:[i]}return[]}function hT(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 YZ({children:e,freeze:t},n){let i=cy(t,e);return E.isValidElement(i)?E.cloneElement(i,{ref:n}):Oe.createElement(Oe.Fragment,null,i)}const QZ=Oe.forwardRef(YZ);function cy(e,t){let[n,i]=E.useState(t);return!e&&n!==t&&i(t),e?n:t}let G2=E.createContext(null);G2.displayName="OpenClosedContext";var tf=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(tf||{});function XZ(){return E.useContext(G2)}function WZ({value:e,children:t}){return Oe.createElement(G2.Provider,{value:e},t)}function ZZ(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let su=[];ZZ(()=>{function e(t){if(!du(t.target)||t.target===document.body||su[0]===t.target)return;let n=t.target;n=n.closest(ry),su.unshift(n??t.target),su=su.filter(i=>i!=null&&i.isConnected),su.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 KZ(e){throw new Error("Unexpected object: "+e)}var un=(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))(un||{});function pT(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=i??-1;switch(e.focus){case 0:{for(let u=0;u<n.length;++u)if(!t.resolveDisabled(n[u],u,n))return u;return i}case 1:{r===-1&&(r=n.length);for(let u=r-1;u>=0;--u)if(!t.resolveDisabled(n[u],u,n))return u;return i}case 2:{for(let u=r+1;u<n.length;++u)if(!t.resolveDisabled(n[u],u,n))return u;return i}case 3:{for(let u=n.length-1;u>=0;--u)if(!t.resolveDisabled(n[u],u,n))return u;return i}case 4:{for(let u=0;u<n.length;++u)if(t.resolveId(n[u],u,n)===e.id)return u;return i}case 5:return null;default:KZ(e)}}function u7(e){let t=Qe(e),n=E.useRef(!1);E.useEffect(()=>(n.current=!1,()=>{n.current=!0,E9(()=>{n.current&&t()})}),[t])}let JZ=E.createContext(!1);function eK(){return E.useContext(JZ)}function tK(e){let t=eK(),n=E.useContext(l7),[i,r]=E.useState(()=>{var u;if(!t&&n!==null)return(u=n.current)!=null?u:null;if(yu.isServer)return null;let a=e?.getElementById("headlessui-portal-root");if(a)return a;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&&r(n.current)},[n,r,t]),i}let a7=E.Fragment,nK=lr(function(e,t){let{ownerDocument:n=null,...i}=e,r=E.useRef(null),u=Mo(dX(v=>{r.current=v}),t),a=sy(r.current),c=n??a,f=tK(c),h=E.useContext(sK),p=fl(),m=ar();return u7(()=>{var v;f&&f.childNodes.length<=0&&((v=f.parentElement)==null||v.removeChild(f))}),f?xn.createPortal(Oe.createElement("div",{"data-headlessui-portal":"",ref:v=>{p.dispose(),h&&v&&p.add(h.register(v))}},m({ourProps:{ref:u},theirProps:i,slot:{},defaultTag:a7,name:"Portal"})),f):null});function iK(e,t){let n=Mo(t),{enabled:i=!0,ownerDocument:r,...u}=e,a=ar();return i?Oe.createElement(nK,{...u,ownerDocument:r,ref:n}):a({ourProps:{ref:n},theirProps:u,slot:{},defaultTag:a7,name:"Portal"})}let rK=E.Fragment,l7=E.createContext(null);function oK(e,t){let{target:n,...i}=e,r={ref:Mo(t)},u=ar();return Oe.createElement(l7.Provider,{value:n},u({ourProps:r,theirProps:i,defaultTag:rK,name:"Popover.Group"}))}let sK=E.createContext(null),uK=lr(iK),aK=lr(oK),lK=Object.assign(uK,{Group:aK});const bc={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function c7(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function cK(e,t,n){let i=Li();if(t.kind==="Tracked"){let r=function(){u!==c7(e)&&(i.dispose(),n())},{position:u}=t,a=new ResizeObserver(r);a.observe(e),i.add(()=>a.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}var fK=Object.defineProperty,dK=(e,t,n)=>t in e?fK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mT=(e,t,n)=>(dK(e,typeof t!="symbol"?t+"":t,n),n),Ue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ue||{}),oi=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oi||{}),Ir=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ir||{}),f7=(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))(f7||{});function Rg(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),r=i.length>0&&i[0].dataRef.current.order!==null?i.sort((a,c)=>a.dataRef.current.order-c.dataRef.current.order):tW(i,a=>a.dataRef.current.domRef.current),u=n?r.indexOf(n):null;return u===-1&&(u=null),{options:r,activeOptionIndex:u}}let hK={1(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1)return e;let n=e.inputElement?bc.Tracked(c7(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:bc.Idle}}return{...e,comboboxState:0,inputPositionState:bc.Idle,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,i,r,u;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===un.Specific?t.idx:pT(t,{resolveItems:()=>h,resolveActiveIndex:()=>{var y,x;return(x=(y=e.activeOptionIndex)!=null?y:h.findIndex(S=>!p(S)))!=null?x:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),v=(r=t.trigger)!=null?r:2;return e.activeOptionIndex===m&&e.activationTrigger===v?e:{...e,activeOptionIndex:m,activationTrigger:v,isTyping:!1,__demoMode:!1}}let a=Rg(e);if(a.activeOptionIndex===null){let h=a.options.findIndex(p=>!p.dataRef.current.disabled);h!==-1&&(a.activeOptionIndex=h)}let c=t.focus===un.Specific?t.idx:pT(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled}),f=(u=t.trigger)!=null?u:2;return e.activeOptionIndex===c&&e.activationTrigger===f?e:{...e,...a,isTyping:!1,activeOptionIndex:c,activationTrigger:f,__demoMode:!1}},4:(e,t)=>{var n,i,r,u;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,c=Rg(e,h=>(h.push(a),h));e.activeOptionIndex===null&&(r=(i=e.dataRef.current).isSelected)!=null&&r.call(i,t.payload.dataRef.current.value)&&(c.activeOptionIndex=c.options.indexOf(a));let f={...e,...c,activationTrigger:2};return(u=e.dataRef.current)!=null&&u.__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(r=>r.id!==t.id)};let i=Rg(e,r=>{let u=r.findIndex(a=>a.id===t.id);return u!==-1&&r.splice(u,1),r});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 r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let u=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);u!==-1?r=u:r=null}return{...e,activeOptionIndex:r,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:bc.Moved}}};class Y2 extends F9{constructor(t){super(t),mT(this,"actions",{onChange:n=>{let{onChange:i,compare:r,mode:u,value:a}=this.state.dataRef.current;return Pr(u,{0:()=>i?.(n),1:()=>{let c=a.slice(),f=c.findIndex(h=>r(h,n));return f===-1?c.push(n):c.splice(f,1),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:un.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})}}),mT(this,"selectors",{activeDescendantId:n=>{var i,r;let u=this.selectors.activeOptionIndex(n);if(u!==null)return n.virtual?(r=n.options.find(a=>!a.dataRef.current.disabled&&n.dataRef.current.compare(a.dataRef.current.value,n.virtual.options[u])))==null?void 0:r.id:(i=n.options[u])==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:r,disabled:u}=n.virtual,a=r.findIndex(c=>{var f;return!((f=u?.(c))!=null&&f)});if(a!==-1)return a}let i=n.options.findIndex(r=>!r.dataRef.current.disabled);if(i!==-1)return i}return n.activeOptionIndex},activeOption:n=>{var i,r;let u=this.selectors.activeOptionIndex(n);return u===null?null:n.virtual?n.virtual.options[u??0]:(r=(i=n.options[u])==null?void 0:i.dataRef.current.value)!=null?r:null},isActive:(n,i,r)=>{var u;let a=this.selectors.activeOptionIndex(n);return a===null?!1:n.virtual?a===n.dataRef.current.calculateIndex(i):((u=n.options[a])==null?void 0:u.id)===r},shouldScrollIntoView:(n,i,r)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,i,r)),didInputMove(n){return n.inputPositionState.kind==="Moved"}});{let n=this.state.id,i=B2.get(null);this.disposables.add(i.on(P9.Push,r=>{!i.selectors.isTop(r,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(cK(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:i=!1}){var r;return new Y2({id:t,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(r=n.disabled)!=null?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:bc.Idle})}reduce(t,n){return Pr(n.type,hK,t,n)}}const d7=E.createContext(null);function Nf(e){let t=E.useContext(d7);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,h7),n}return t}function h7({id:e,virtual:t=null,__demoMode:n=!1}){let i=E.useMemo(()=>Y2.new({id:e,virtual:t,__demoMode:n}),[]);return u7(()=>i.dispose()),i}let nf=E.createContext(null);nf.displayName="ComboboxDataContext";function pl(e){let t=E.useContext(nf);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,pl),n}return t}let p7=E.createContext(null);function pK(e){let t=Nf("VirtualProvider"),n=pl("VirtualProvider"),{options:i}=n.virtual,r=ln(t,y=>y.optionsElement),[u,a]=E.useMemo(()=>{let y=r;if(!y)return[0,0];let x=window.getComputedStyle(y);return[parseFloat(x.paddingBlockStart||x.paddingTop),parseFloat(x.paddingBlockEnd||x.paddingBottom)]},[r]),c=kX({enabled:i.length!==0,scrollPaddingStart:u,scrollPaddingEnd:a,count:i.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[f,h]=E.useState(0);Qt(()=>{h(y=>y+1)},[i]);let p=c.getVirtualItems(),m=ln(t,y=>y.activationTrigger===Ir.Pointer),v=ln(t,t.selectors.activeOptionIndex);return p.length===0?null:Oe.createElement(p7.Provider,{value:c},Oe.createElement("div",{style:{position:"relative",width:"100%",height:`${c.getTotalSize()}px`},ref:y=>{y&&(m||v!==null&&i.length>v&&c.scrollToIndex(v))}},p.map(y=>{var x;return Oe.createElement(E.Fragment,{key:y.key},Oe.cloneElement((x=e.children)==null?void 0:x.call(e,{...e.slot,option:i[y.index]}),{key:`${f}-${y.key}`,"data-index":y.index,"aria-setsize":i.length,"aria-posinset":y.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${y.start}px)`,overflowAnchor:"none"}}))})))}let mK=E.Fragment;function gK(e,t){let n=E.useId(),i=F2(),{value:r,defaultValue:u,onChange:a,form:c,name:f,by:h,invalid:p=!1,disabled:m=i||!1,onClose:v,__demoMode:y=!1,multiple:x=!1,immediate:S=!1,virtual:_=null,nullable:T,...N}=e,A=KQ(u),[D=x?[]:void 0,R]=ZQ(r,a,A),M=h7({id:n,virtual:_,__demoMode:y}),F=E.useRef({static:!1,hold:!1}),B=IX(h),k=Qe(fe=>_?h===null?_.options.indexOf(fe):_.options.findIndex(ge=>B(ge,fe)):M.state.options.findIndex(ge=>B(ge.dataRef.current.value,fe))),$=E.useCallback(fe=>Pr(se.mode,{[oi.Multi]:()=>D.some(ge=>B(ge,fe)),[oi.Single]:()=>B(D,fe)}),[D]),H=ln(M,fe=>fe.virtual),Y=Qe(()=>v?.()),se=E.useMemo(()=>({__demoMode:y,immediate:S,optionsPropsRef:F,value:D,defaultValue:A,disabled:m,invalid:p,mode:x?oi.Multi:oi.Single,virtual:_?H:null,onChange:R,isSelected:$,calculateIndex:k,compare:B,onClose:Y}),[y,S,F,D,A,m,p,x,_,H,R,$,k,B,Y]);Qt(()=>{var fe;_&&M.send({type:f7.UpdateVirtualConfiguration,options:_.options,disabled:(fe=_.disabled)!=null?fe:null})},[_,_?.options,_?.disabled]),Qt(()=>{M.state.dataRef.current=se},[se]);let[W,J,L,q]=ln(M,fe=>[fe.comboboxState,fe.buttonElement,fe.inputElement,fe.optionsElement]),j=B2.get(null),P=ln(j,E.useCallback(fe=>j.selectors.isTop(fe,n),[j,n]));rW(P,[J,L,q],()=>M.actions.closeCombobox());let ne=ln(M,M.selectors.activeOptionIndex),I=ln(M,M.selectors.activeOption),U=Fu({open:W===Ue.Open,disabled:m,invalid:p,activeIndex:ne,activeOption:I,value:D}),[ie,ee]=vX(),he=t===null?{}:{ref:t},de=E.useCallback(()=>{if(A!==void 0)return R?.(A)},[R,A]),oe=ar();return Oe.createElement(ee,{value:ie,props:{htmlFor:L?.id},slot:{open:W===Ue.Open,disabled:m}},Oe.createElement(HZ,null,Oe.createElement(nf.Provider,{value:se},Oe.createElement(d7.Provider,{value:M},Oe.createElement(WZ,{value:Pr(W,{[Ue.Open]:tf.Open,[Ue.Closed]:tf.Closed})},f!=null&&Oe.createElement(rX,{disabled:m,data:D!=null?{[f]:D}:{},form:c,onReset:de}),oe({ourProps:he,theirProps:N,slot:U,defaultTag:mK,name:"Combobox"}))))))}let vK="input";function yK(e,t){var n,i;let r=Nf("Combobox.Input"),u=pl("Combobox.Input"),a=E.useId(),c=w9(),{id:f=c||`headlessui-combobox-input-${a}`,onChange:h,displayValue:p,disabled:m=u.disabled||!1,autoFocus:v=!1,type:y="text",...x}=e,S=E.useRef(null),_=Mo(S,t,BZ(),r.actions.setInputElement),[T,N]=ln(r,U=>[U.comboboxState,U.isTyping]),A=fl(),D=Qe(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:un.Nothing})}),R=E.useMemo(()=>{var U;return typeof p=="function"&&u.value!==void 0?(U=p(u.value))!=null?U:"":typeof u.value=="string"?u.value:""},[u.value,p]);ZS(([U,ie],[ee,he])=>{if(r.state.isTyping)return;let de=S.current;de&&((he===Ue.Open&&ie===Ue.Closed||U!==ee)&&(de.value=U),requestAnimationFrame(()=>{if(r.state.isTyping||!de||x9(de))return;let{selectionStart:oe,selectionEnd:fe}=de;Math.abs((fe??0)-(oe??0))===0&&oe===0&&de.setSelectionRange(de.value.length,de.value.length)}))},[R,T,N]),ZS(([U],[ie])=>{if(U===Ue.Open&&ie===Ue.Closed){if(r.state.isTyping)return;let ee=S.current;if(!ee)return;let he=ee.value,{selectionStart:de,selectionEnd:oe,selectionDirection:fe}=ee;ee.value="",ee.value=he,fe!==null?ee.setSelectionRange(de,oe,fe):ee.setSelectionRange(de,oe)}},[T]);let M=E.useRef(!1),F=Qe(()=>{M.current=!0}),B=Qe(()=>{A.nextFrame(()=>{M.current=!1})}),k=Qe(U=>{switch(r.actions.setIsTyping(!0),U.key){case Dn.Enter:if(r.state.comboboxState!==Ue.Open||M.current)return;if(U.preventDefault(),U.stopPropagation(),r.selectors.activeOptionIndex(r.state)===null){r.actions.closeCombobox();return}r.actions.selectActiveOption(),u.mode===oi.Single&&r.actions.closeCombobox();break;case Dn.ArrowDown:return U.preventDefault(),U.stopPropagation(),Pr(r.state.comboboxState,{[Ue.Open]:()=>r.actions.goToOption({focus:un.Next}),[Ue.Closed]:()=>r.actions.openCombobox()});case Dn.ArrowUp:return U.preventDefault(),U.stopPropagation(),Pr(r.state.comboboxState,{[Ue.Open]:()=>r.actions.goToOption({focus:un.Previous}),[Ue.Closed]:()=>{xn.flushSync(()=>r.actions.openCombobox()),u.value||r.actions.goToOption({focus:un.Last})}});case Dn.Home:if(r.state.comboboxState===Ue.Closed||U.shiftKey)break;return U.preventDefault(),U.stopPropagation(),r.actions.goToOption({focus:un.First});case Dn.PageUp:return U.preventDefault(),U.stopPropagation(),r.actions.goToOption({focus:un.First});case Dn.End:if(r.state.comboboxState===Ue.Closed||U.shiftKey)break;return U.preventDefault(),U.stopPropagation(),r.actions.goToOption({focus:un.Last});case Dn.PageDown:return U.preventDefault(),U.stopPropagation(),r.actions.goToOption({focus:un.Last});case Dn.Escape:return r.state.comboboxState!==Ue.Open?void 0:(U.preventDefault(),r.state.optionsElement&&!u.optionsPropsRef.current.static&&U.stopPropagation(),u.mode===oi.Single&&u.value===null&&D(),r.actions.closeCombobox());case Dn.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==Ue.Open)return;u.mode===oi.Single&&r.state.activationTrigger!==Ir.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox();break}}),$=Qe(U=>{h?.(U),u.mode===oi.Single&&U.target.value===""&&D(),r.actions.openCombobox()}),H=Qe(U=>{var ie,ee,he;let de=(ie=U.relatedTarget)!=null?ie:su.find(oe=>oe!==U.currentTarget);if(!((ee=r.state.optionsElement)!=null&&ee.contains(de))&&!((he=r.state.buttonElement)!=null&&he.contains(de))&&r.state.comboboxState===Ue.Open)return U.preventDefault(),u.mode===oi.Single&&u.value===null&&D(),r.actions.closeCombobox()}),Y=Qe(U=>{var ie,ee,he;let de=(ie=U.relatedTarget)!=null?ie:su.find(oe=>oe!==U.currentTarget);(ee=r.state.buttonElement)!=null&&ee.contains(de)||(he=r.state.optionsElement)!=null&&he.contains(de)||u.disabled||u.immediate&&r.state.comboboxState!==Ue.Open&&A.microTask(()=>{xn.flushSync(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(Ir.Focus)})}),se=np(),W=hX(),{isFocused:J,focusProps:L}=b9({autoFocus:v}),{isHovered:q,hoverProps:j}=y9({isDisabled:m}),P=ln(r,U=>U.optionsElement),ne=Fu({open:T===Ue.Open,disabled:m,invalid:u.invalid,hover:q,focus:J,autofocus:v}),I=j2({ref:_,id:f,role:"combobox",type:y,"aria-controls":P?.id,"aria-expanded":T===Ue.Open,"aria-activedescendant":ln(r,r.selectors.activeDescendantId),"aria-labelledby":se,"aria-describedby":W,"aria-autocomplete":"list",defaultValue:(i=(n=e.defaultValue)!=null?n:u.defaultValue!==void 0?p?.(u.defaultValue):null)!=null?i:u.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:F,onCompositionEnd:B,onKeyDown:k,onChange:$,onFocus:Y,onBlur:H},L,j);return ar()({ourProps:I,theirProps:x,slot:ne,defaultTag:vK,name:"Combobox.Input"})}let bK="button";function xK(e,t){let n=Nf("Combobox.Button"),i=pl("Combobox.Button"),[r,u]=E.useState(null),a=Mo(t,u,n.actions.setButtonElement),c=E.useId(),{id:f=`headlessui-combobox-button-${c}`,disabled:h=i.disabled||!1,autoFocus:p=!1,...m}=e,[v,y,x]=ln(n,Y=>[Y.comboboxState,Y.inputElement,Y.optionsElement]),S=z9(y),_=v===Ue.Open;uW(_,{trigger:r,action:E.useCallback(Y=>{if(r!=null&&r.contains(Y.target)||y!=null&&y.contains(Y.target))return cc.Ignore;let se=Y.target.closest('[role="option"]:not([data-disabled])');return ks(se)?cc.Select(se):x!=null&&x.contains(Y.target)?cc.Ignore:cc.Close},[r,y,x]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let T=Qe(Y=>{switch(Y.key){case Dn.Space:case Dn.Enter:Y.preventDefault(),Y.stopPropagation(),n.state.comboboxState===Ue.Closed&&xn.flushSync(()=>n.actions.openCombobox()),S();return;case Dn.ArrowDown:Y.preventDefault(),Y.stopPropagation(),n.state.comboboxState===Ue.Closed&&(xn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:un.First})),S();return;case Dn.ArrowUp:Y.preventDefault(),Y.stopPropagation(),n.state.comboboxState===Ue.Closed&&(xn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:un.Last})),S();return;case Dn.Escape:if(n.state.comboboxState!==Ue.Open)return;Y.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&Y.stopPropagation(),xn.flushSync(()=>n.actions.closeCombobox()),S();return;default:return}}),N=FX(()=>{n.state.comboboxState===Ue.Open?n.actions.closeCombobox():n.actions.openCombobox(),S()}),A=np([f]),{isFocusVisible:D,focusProps:R}=b9({autoFocus:p}),{isHovered:M,hoverProps:F}=y9({isDisabled:h}),{pressed:B,pressProps:k}=zQ({disabled:h}),$=Fu({open:v===Ue.Open,active:B||v===Ue.Open,disabled:h,invalid:i.invalid,value:i.value,hover:M,focus:D}),H=j2({ref:a,id:f,type:lW(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":x?.id,"aria-expanded":v===Ue.Open,"aria-labelledby":A,disabled:h||void 0,autoFocus:p,onKeyDown:T},N,R,F,k);return ar()({ourProps:H,theirProps:m,slot:$,defaultTag:bK,name:"Combobox.Button"})}let EK="div",SK=ny.RenderStrategy|ny.Static;function TK(e,t){var n,i,r;let u=E.useId(),{id:a=`headlessui-combobox-options-${u}`,hold:c=!1,anchor:f,portal:h=!1,modal:p=!0,transition:m=!1,...v}=e,y=Nf("Combobox.Options"),x=pl("Combobox.Options"),S=VZ(f);S&&(h=!0);let[_,T]=zZ(S),[N,A]=E.useState(null),D=UZ(),R=Mo(t,S?_:null,y.actions.setOptionsElement,A),[M,F,B,k,$]=ln(y,Te=>[Te.comboboxState,Te.inputElement,Te.buttonElement,Te.optionsElement,Te.activationTrigger]),H=sy(F||B),Y=sy(k),se=XZ(),[W,J]=SW(m,N,se!==null?(se&tf.Open)===tf.Open:M===Ue.Open);XX(W,F,y.actions.closeCombobox);let L=x.__demoMode?!1:p&&M===Ue.Open;gW(L,Y);let q=x.__demoMode?!1:p&&M===Ue.Open;QX(q,{allowed:E.useCallback(()=>[F,B,k],[F,B,k])});let j=ln(y,y.selectors.didInputMove)?!1:W;Qt(()=>{var Te;x.optionsPropsRef.current.static=(Te=e.static)!=null?Te:!1},[x.optionsPropsRef,e.static]),Qt(()=>{x.optionsPropsRef.current.hold=c},[x.optionsPropsRef,c]),wW(M===Ue.Open,{container:k,accept(Te){return Te.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:Te.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(Te){Te.setAttribute("role","none")}});let P=np([B?.id]),ne=Fu({open:M===Ue.Open,option:void 0}),I=Qe(()=>{y.actions.setActivationTrigger(Ir.Pointer)}),U=Qe(Te=>{Te.preventDefault(),y.actions.setActivationTrigger(Ir.Pointer)}),ie=j2(S?D():{},{"aria-labelledby":P,role:"listbox","aria-multiselectable":x.mode===oi.Multi?!0:void 0,id:a,ref:R,style:{...v.style,...T,"--input-width":jS(W,F,!0).width,"--button-width":jS(W,B,!0).width},onWheel:$===Ir.Pointer?void 0:I,onMouseDown:U,...EW(J)}),ee=W&&M===Ue.Closed&&!e.static,he=cy(ee,(n=x.virtual)==null?void 0:n.options),de=cy(ee,x.value),oe=E.useCallback(Te=>x.compare(de,Te),[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(nf.Provider,{value:fe},Oe.createElement(pK,{slot:ne},v.children))});let ge=ar(),Ne=E.useMemo(()=>x.mode===oi.Multi?x:{...x,isSelected:oe},[x,oe]);return Oe.createElement(lK,{enabled:h?e.static||W:!1,ownerDocument:H},Oe.createElement(nf.Provider,{value:Ne},ge({ourProps:ie,theirProps:{...v,children:Oe.createElement(QZ,{freeze:ee},typeof v.children=="function"?(r=v.children)==null?void 0:r.call(v,ne):v.children)},slot:ne,defaultTag:EK,features:SK,visible:j,name:"Combobox.Options"})))}let _K="div";function CK(e,t){var n,i,r;let u=pl("Combobox.Option"),a=Nf("Combobox.Option"),c=E.useId(),{id:f=`headlessui-combobox-option-${c}`,value:h,disabled:p=(r=(i=(n=u.virtual)==null?void 0:n.disabled)==null?void 0:i.call(n,h))!=null?r:!1,order:m=null,...v}=e,[y]=ln(a,J=>[J.inputElement]),x=z9(y),S=ln(a,E.useCallback(J=>a.selectors.isActive(J,h,f),[h,f])),_=u.isSelected(h),T=E.useRef(null),N=Iu({disabled:p,value:h,domRef:T,order:m}),A=E.useContext(p7),D=Mo(t,T,A?A.measureElement:null),R=Qe(()=>{a.actions.setIsTyping(!1),a.actions.onChange(h)});Qt(()=>a.actions.registerOption(f,N),[N,f]);let M=ln(a,E.useCallback(J=>a.selectors.shouldScrollIntoView(J,h,f),[h,f]));Qt(()=>{if(M)return Li().requestAnimationFrame(()=>{var J,L;(L=(J=T.current)==null?void 0:J.scrollIntoView)==null||L.call(J,{block:"nearest"})})},[M,T]);let F=Qe(J=>{J.preventDefault(),J.button===V2.Left&&(p||(R(),oy()||requestAnimationFrame(()=>x()),u.mode===oi.Single&&a.actions.closeCombobox()))}),B=Qe(()=>{if(p)return a.actions.goToOption({focus:un.Nothing});let J=u.calculateIndex(h);a.actions.goToOption({focus:un.Specific,idx:J})}),k=vW(),$=Qe(J=>k.update(J)),H=Qe(J=>{if(!k.wasMoved(J)||p||S&&a.state.activationTrigger===Ir.Pointer)return;let L=u.calculateIndex(h);a.actions.goToOption({focus:un.Specific,idx:L},Ir.Pointer)}),Y=Qe(J=>{k.wasMoved(J)&&(p||S&&(u.optionsPropsRef.current.hold||a.state.activationTrigger===Ir.Pointer&&a.actions.goToOption({focus:un.Nothing})))}),se=Fu({active:S,focus:S,selected:_,disabled:p}),W={id:f,ref:D,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":_,disabled:void 0,onMouseDown:F,onFocus:B,onPointerEnter:$,onMouseEnter:$,onPointerMove:H,onMouseMove:H,onPointerLeave:Y,onMouseLeave:Y};return ar()({ourProps:W,theirProps:v,slot:se,defaultTag:_K,name:"Combobox.Option"})}let AK=lr(gK),wK=lr(xK),m7=lr(yK),DK=EX,g7=lr(TK),up=lr(CK),NK=Object.assign(AK,{Input:m7,Button:wK,Label:DK,Options:g7,Option:up});const OK=()=>{const e=me.c(32),t=k2(),{push:n}=Kh(),i=E.useRef(null),r=RK(),[u,a]=E.useState("");let c;e[0]!==r||e[1]!==u?(c=()=>r(u),e[0]=r,e[1]=u,e[2]=c):c=e[2];const[f,h]=E.useState(c);let p;e[3]!==r?(p=Qa(200,W=>{h(r(W))}),e[3]=r,e[4]=p):p=e[4];const m=p,[v]=E.useState(i),y=v.current===document.activeElement;let x,S;e[5]!==m||e[6]!==u?(x=()=>{m(u)},S=[m,u],e[5]=m,e[6]=u,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 W=function(L){L.metaKey&&L.key==="k"&&i.current.focus()};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},T=[],e[9]=_,e[10]=T):(_=e[9],T=e[10]),E.useEffect(_,T);let N,A,D;if(e[11]!==t||e[12]!==n){N=t.at(-1);let W;e[16]!==n?(W=J=>{n("field"in J?{name:J.field.name,def:J.field}:{name:J.type.name,def:J.type})},e[16]=n,e[17]=W):W=e[17],A=W,D=t.length===1||Tt(N.def)||Dt(N.def)||fn(N.def),e[11]=t,e[12]=n,e[13]=N,e[14]=A,e[15]=D}else N=e[13],A=e[14],D=e[15];if(!D)return null;const M=y?void 0:"idle",F=`Search ${N.name}...`;let B,k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{i.current.focus()},B=w.jsx(pj,{}),e[18]=B,e[19]=k):(B=e[18],k=e[19]);let $;e[20]===Symbol.for("react.memo_cache_sentinel")?($=W=>a(W.target.value),e[20]=$):$=e[20];let H;e[21]!==u?(H=w.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:k,children:[B,w.jsx(m7,{autoComplete:"off",onChange:$,placeholder:`${Sy?"⌘":"Ctrl"} K`,ref:i,value:u,"data-cy":"doc-explorer-input"})]}),e[21]=u,e[22]=H):H=e[22];let Y;e[23]!==y||e[24]!==f?(Y=y&&w.jsxs(g7,{"data-cy":"doc-explorer-list",children:[f.within.length+f.types.length+f.fields.length===0?w.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):f.within.map(MK),f.within.length>0&&f.types.length+f.fields.length>0?w.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,f.types.map(kK),f.fields.map(LK)]}),e[23]=y,e[24]=f,e[25]=Y):Y=e[25];let se;return e[26]!==A||e[27]!==H||e[28]!==Y||e[29]!==M||e[30]!==F?(se=w.jsxs(NK,{as:"div",className:"graphiql-doc-explorer-search",onChange:A,"data-state":M,"aria-label":F,children:[H,Y]}),e[26]=A,e[27]=H,e[28]=Y,e[29]=M,e[30]=F,e[31]=se):se=e[31],se};function RK(){const e=me.c(5),t=k2(),{schema:n}=Vr();let i;e[0]!==t?(i=t.at(-1),e[0]=t,e[1]=i):i=e[1];const r=i;let u;return e[2]!==r||e[3]!==n?(u=a=>{const c={within:[],types:[],fields:[]};if(!n)return c;const f=r.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&&Mg(m,a)&&c.types.push({type:v}),!Tt(v)&&!Dt(v)&&!fn(v))continue;const y=v.getFields();for(const x in y){const S=y[x];let _;if(!Mg(x,a))if("args"in S){if(_=S.args.filter(T=>Mg(T.name,a)),_.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]=r,e[3]=n,e[4]=u):u=e[4],u}function Mg(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 Q2=e=>{const t=me.c(2),{type:n}=e;let i;return t[0]!==n.name?(i=w.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],i},v7=e=>{const t=me.c(7),{field:n,argument:i}=e;let r;t[0]!==n.name?(r=w.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=r):r=t[1];let u;t[2]!==i?(u=i?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:i.name}),":"," ",ah(i.type,IK),")"]}):null,t[2]=i,t[3]=u):u=t[3];let a;return t[4]!==r||t[5]!==u?(a=w.jsxs(w.Fragment,{children:[r,u]}),t[4]=r,t[5]=u,t[6]=a):a=t[6],a};function MK(e,t){return w.jsx(up,{value:e,"data-cy":"doc-explorer-option",children:w.jsx(v7,{field:e.field,argument:e.argument})},`within-${t}`)}function kK(e,t){return w.jsx(up,{value:e,"data-cy":"doc-explorer-option",children:w.jsx(Q2,{type:e.type})},`type-${t}`)}function LK(e,t){return w.jsxs(up,{value:e,"data-cy":"doc-explorer-option",children:[w.jsx(Q2,{type:e.type}),".",w.jsx(v7,{field:e.field,argument:e.argument})]},`field-${t}`)}function IK(e){return w.jsx(Q2,{type:e})}const FK=e=>{const t=me.c(6),{field:n}=e,{push:i}=Kh();let r;t[0]!==n||t[1]!==i?(r=a=>{a.preventDefault(),i({name:n.name,def:n})},t[0]=n,t[1]=i,t[2]=r):r=t[2];let u;return t[3]!==n.name||t[4]!==r?(u=w.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:r,href:"#",children:n.name}),t[3]=n.name,t[4]=r,t[5]=u):u=t[5],u},jK=e=>{const t=me.c(2),{type:n}=e;let i;return t[0]!==n?(i=my(n)?w.jsxs(w.Fragment,{children:[n.description?w.jsx(Fr,{type:"description",children:n.description}):null,w.jsx(PK,{type:n}),w.jsx($K,{type:n}),w.jsx(VK,{type:n}),w.jsx(BK,{type:n})]}):null,t[0]=n,t[1]=i):i=t[1],i},PK=e=>{const t=me.c(5),{type:n}=e;if(!Tt(n))return null;let i;t[0]!==n?(i=n.getInterfaces(),t[0]=n,t[1]=i):i=t[1];const r=i;let u;return t[2]!==r.length||t[3]!==n?(u=r.length>0?w.jsx(Mi,{title:"Implements",children:n.getInterfaces().map(UK)}):null,t[2]=r.length,t[3]=n,t[4]=u):u=t[4],u},$K=e=>{const t=me.c(12),{type:n}=e,[i,r]=E.useState(!1);let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{r(!0)},t[0]=u):u=t[0];const a=u;if(!Tt(n)&&!Dt(n)&&!fn(n))return null;let c,f,h;if(t[1]!==n){const v=n.getFields();f=[],c=[];for(const y of Object.keys(v).map(x=>v[x]))y.deprecationReason?c.push(y):f.push(y);h=f.length>0?w.jsx(Mi,{title:"Fields",children:f.map(zK)}):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?w.jsx(Mi,{title:"Deprecated Fields",children:c.map(HK)}):w.jsx(Zi,{type:"button",onClick:a,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=w.jsxs(w.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=m):m=t[11],m},y7=e=>{const t=me.c(22),{field:n}=e;let i,r,u;if(t[0]!==n){const v="args"in n?n.args.filter(qK):[];u="graphiql-doc-explorer-item",i=w.jsx(FK,{field:n}),r=v.length>0?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{children:v.map(y=>v.length===1?w.jsx(lh,{arg:y,inline:!0},y.name):w.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:w.jsx(lh,{arg:y,inline:!0})},y.name))}),")"]}):null,t[0]=n,t[1]=i,t[2]=r,t[3]=u}else i=t[1],r=t[2],u=t[3];let a;t[4]!==n.type?(a=w.jsx(So,{type:n.type}),t[4]=n.type,t[5]=a):a=t[5];let c;t[6]!==n?(c=w.jsx(o9,{field:n}),t[6]=n,t[7]=c):c=t[7];let f;t[8]!==i||t[9]!==r||t[10]!==a||t[11]!==c?(f=w.jsxs("div",{children:[i,r,": ",a,c]}),t[8]=i,t[9]=r,t[10]=a,t[11]=c,t[12]=f):f=t[12];let h;t[13]!==n.description?(h=n.description?w.jsx(Fr,{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=w.jsx(s9,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=p):p=t[16];let m;return t[17]!==u||t[18]!==f||t[19]!==h||t[20]!==p?(m=w.jsxs("div",{className:u,children:[f,h,p]}),t[17]=u,t[18]=f,t[19]=h,t[20]=p,t[21]=m):m=t[21],m},VK=e=>{const t=me.c(12),{type:n}=e,[i,r]=E.useState(!1);let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{r(!0)},t[0]=u):u=t[0];const a=u;if(!fi(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?w.jsx(Mi,{title:"Enum Values",children:h.map(GK)}):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?w.jsx(Mi,{title:"Deprecated Enum Values",children:c.map(YK)}):w.jsx(Zi,{type:"button",onClick:a,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=w.jsxs(w.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=m):m=t[11],m},b7=e=>{const t=me.c(10),{value:n}=e;let i;t[0]!==n.name?(i=w.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let r;t[2]!==n.description?(r=n.description&&w.jsx(Fr,{type:"description",children:n.description}),t[2]=n.description,t[3]=r):r=t[3];let u;t[4]!==n.deprecationReason?(u=n.deprecationReason&&w.jsx(Fr,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=u):u=t[5];let a;return t[6]!==i||t[7]!==r||t[8]!==u?(a=w.jsxs("div",{className:"graphiql-doc-explorer-item",children:[i,r,u]}),t[6]=i,t[7]=r,t[8]=u,t[9]=a):a=t[9],a},BK=e=>{const t=me.c(6),{type:n}=e,{schema:i}=Vr();if(!i||!_o(n))return null;const r=Dt(n)?"Implementations":"Possible Types";let u;t[0]!==i||t[1]!==n?(u=i.getPossibleTypes(n).map(QK),t[0]=i,t[1]=n,t[2]=u):u=t[2];let a;return t[3]!==r||t[4]!==u?(a=w.jsx(Mi,{title:r,children:u}),t[3]=r,t[4]=u,t[5]=a):a=t[5],a};function UK(e){return w.jsx("div",{children:w.jsx(So,{type:e})},e.name)}function zK(e){return w.jsx(y7,{field:e},e.name)}function HK(e){return w.jsx(y7,{field:e},e.name)}function qK(e){return!e.deprecationReason}function GK(e){return w.jsx(b7,{value:e},e.name)}function YK(e){return w.jsx(b7,{value:e},e.name)}function QK(e){return w.jsx("div",{children:w.jsx(So,{type:e})},e.name)}const XK=()=>{const e=me.c(38),{fetchError:t,isFetching:n,schema:i,validationErrors:r}=Vr(),u=k2(),{pop:a}=Kh();let c,f;if(e[0]!==u||e[1]!==t||e[2]!==n||e[3]!==i||e[4]!==r){if(f=u.at(-1),c=null,t){let T;e[7]===Symbol.for("react.memo_cache_sentinel")?(T=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[7]=T):T=e[7],c=T}else if(r.length>0){let T;e[8]!==r[0].message?(T=w.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}),e[8]=r[0].message,e[9]=T):T=e[9],c=T}else if(n){let T;e[10]===Symbol.for("react.memo_cache_sentinel")?(T=w.jsx(t2,{}),e[10]=T):T=e[10],c=T}else if(i){if(u.length===1){let T;e[12]!==i?(T=w.jsx(lQ,{schema:i}),e[12]=i,e[13]=T):T=e[13],c=T}else if(hy(f.def)){let T;e[14]!==f.def?(T=w.jsx(jK,{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=w.jsx(iQ,{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=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[11]=T):T=e[11],c=T}e[0]=u,e[1]=t,e[2]=n,e[3]=i,e[4]=r,e[5]=c,e[6]=f}else c=e[5],f=e[6];let h;if(u.length>1){let T;e[18]!==u?(T=u.at(-2),e[18]=u,e[19]=T):T=e[19],h=T.name}let p;e[20]!==a||e[21]!==h?(p=h&&w.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:T=>{T.preventDefault(),a()},"aria-label":`Go back to ${h}`,children:[w.jsx(ej,{}),h]}),e[20]=a,e[21]=h,e[22]=p):p=e[22];let m;e[23]!==f.name?(m=w.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=w.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[p,m]}),e[25]=p,e[26]=m,e[27]=v):v=e[27];let y;e[28]!==f.name?(y=w.jsx(OK,{},f.name),e[28]=f.name,e[29]=y):y=e[29];let x;e[30]!==v||e[31]!==y?(x=w.jsxs("div",{className:"graphiql-doc-explorer-header",children:[v,y]}),e[30]=v,e[31]=y,e[32]=x):x=e[32];let S;e[33]!==c?(S=w.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?(_=w.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[x,S]}),e[35]=x,e[36]=S,e[37]=_):_=e[37],_},x7={title:"Documentation Explorer",icon:function(){const{visiblePlugin:t}=Ah();return t===x7?w.jsx(uj,{}):w.jsx(aj,{})},content:XK},WK=e=>{var t,n;const i=me.c(72);let r,u,a,c,f,h,p,m,v,y,x,S,_,T,N,A,D,R,M,F,B,k,$,H,Y,se,W,J,L;i[0]!==e?({dangerouslyAssumeSchemaIsValid:u,confirmCloseTab:r,defaultQuery:c,defaultTabs:f,externalFragments:h,fetcher:p,getDefaultFieldNames:m,headers:v,inputValueDeprecation:y,introspectionQueryName:x,maxHistoryLength:S,onEditOperationName:_,onSchemaChange:T,onTabChange:N,onTogglePluginVisibility:A,operationName:D,plugins:Y,referencePlugin:se,query:M,response:F,schema:B,schemaDescription:k,shouldPersistHeaders:$,storage:H,validationRules:W,variables:J,visiblePlugin:L,defaultHeaders:a,...R}=e,i[0]=e,i[1]=r,i[2]=u,i[3]=a,i[4]=c,i[5]=f,i[6]=h,i[7]=p,i[8]=m,i[9]=v,i[10]=y,i[11]=x,i[12]=S,i[13]=_,i[14]=T,i[15]=N,i[16]=A,i[17]=D,i[18]=R,i[19]=M,i[20]=F,i[21]=B,i[22]=k,i[23]=$,i[24]=H,i[25]=Y,i[26]=se,i[27]=W,i[28]=J,i[29]=L):(r=i[1],u=i[2],a=i[3],c=i[4],f=i[5],h=i[6],p=i[7],m=i[8],v=i[9],y=i[10],x=i[11],S=i[12],_=i[13],T=i[14],N=i[15],A=i[16],D=i[17],R=i[18],M=i[19],F=i[20],B=i[21],k=i[22],$=i[23],H=i[24],Y=i[25],se=i[26],W=i[27],J=i[28],L=i[29]);let q;i[30]!==Y?(q=Y===void 0?[]:Y,i[30]=Y,i[31]=q):q=i[31];const j=q,P=se===void 0?x7: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 ne;i[32]!==j||i[33]!==P?(ne=[P,WY,...j],i[32]=j,i[33]=P,i[34]=ne):ne=i[34];let I;i[35]!==u||i[36]!==a||i[37]!==c||i[38]!==f||i[39]!==h||i[40]!==p||i[41]!==m||i[42]!==v||i[43]!==y||i[44]!==x||i[45]!==_||i[46]!==T||i[47]!==N||i[48]!==A||i[49]!==D||i[50]!==M||i[51]!==P||i[52]!==F||i[53]!==B||i[54]!==k||i[55]!==$||i[56]!==H||i[57]!==ne||i[58]!==W||i[59]!==J||i[60]!==L?(I={getDefaultFieldNames:m,dangerouslyAssumeSchemaIsValid:u,defaultQuery:c,defaultHeaders:a,defaultTabs:f,externalFragments:h,fetcher:p,headers:v,inputValueDeprecation:y,introspectionQueryName:x,onEditOperationName:_,onSchemaChange:T,onTabChange:N,onTogglePluginVisibility:A,plugins:ne,referencePlugin:P,visiblePlugin:L,operationName:D,query:M,response:F,schema:B,schemaDescription:k,shouldPersistHeaders:$,storage:H,validationRules:W,variables:J},i[35]=u,i[36]=a,i[37]=c,i[38]=f,i[39]=h,i[40]=p,i[41]=m,i[42]=v,i[43]=y,i[44]=x,i[45]=_,i[46]=T,i[47]=N,i[48]=A,i[49]=D,i[50]=M,i[51]=P,i[52]=F,i[53]=B,i[54]=k,i[55]=$,i[56]=H,i[57]=ne,i[58]=W,i[59]=J,i[60]=L,i[61]=I):I=i[61];const U=I,ie=$!==!1;let ee;i[62]!==r||i[63]!==R||i[64]!==ie?(ee=w.jsx(ZY,{children:w.jsx(KK,{confirmCloseTab:r,showPersistHeadersSettings:ie,forcedTheme:R.forcedTheme,...R})}),i[62]=r,i[63]=R,i[64]=ie,i[65]=ee):ee=i[65];let he;i[66]!==S||i[67]!==ee?(he=w.jsx(PY,{maxHistoryLength:S,children:ee}),i[66]=S,i[67]=ee,i[68]=he):he=i[68];let de;return i[69]!==U||i[70]!==he?(de=w.jsx(bF,{...U,children:he}),i[69]=U,i[70]=he,i[71]=de):de=i[71],de},ZK=["light","dark","system"],kg="graphiql-session-tab-",KK=e=>{const t=me.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:r,initialHeaders:u,setShouldPersistHeaders:a,addTab:c,moveTab:f,closeTab:h,changeTab:p,shouldPersistHeaders:m,tabs:v,activeTabIndex:y}=En(i);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={nonNull:!0},t[1]=x):x=t[1];const S=rl(x),{isFetching:_,introspect:T}=Vr(),N=nl(),{visiblePlugin:A,setVisiblePlugin:D,plugins:R}=Ah(),M=e.forcedTheme&&ZK.includes(e.forcedTheme)?e.forcedTheme:void 0,{theme:F,setTheme:B}=xF(e.defaultTheme);let k,$;t[2]!==M||t[3]!==B?(k=()=>{M==="system"?B(null):(M==="light"||M==="dark")&&B(M)},$=[M,B],t[2]=M,t[3]=B,t[4]=k,t[5]=$):(k=t[4],$=t[5]),E.useEffect(k,$);const H=A?.content,Y=A?void 0:"first";let se;t[6]!==D||t[7]!==Y?(se={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:Y,onHiddenElementChange(He){He==="first"&&D(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[6]=D,t[7]=Y,t[8]=se):se=t[8];const W=H1(se);let J;t[9]===Symbol.for("react.memo_cache_sentinel")?(J={direction:"horizontal",storageKey:"editorFlex"},t[9]=J):J=t[9];const L=H1(J);let q;e:{if(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"){q=void 0;break e}if(typeof e.defaultEditorToolsVisibility=="boolean"){q=e.defaultEditorToolsVisibility?void 0:"second";break e}q=r||u?void 0:"second"}let j;t[10]!==q?(j={defaultSizeRelation:3,direction:"vertical",initiallyHidden:q,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[10]=q,t[11]=j):j=t[11];const P=H1(j);let ne;t[12]!==u||t[13]!==r||t[14]!==n||t[15]!==e.defaultEditorToolsVisibility?(ne=()=>e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!r&&u&&n?"headers":"variables",t[12]=u,t[13]=r,t[14]=n,t[15]=e.defaultEditorToolsVisibility,t[16]=ne):ne=t[16];const[I,U]=E.useState(ne),[ie,ee]=E.useState(null),[he,de]=E.useState(null);let oe;if(t[17]!==e.children||t[18]!==e.onCopyQuery||t[19]!==e.onPrettifyQuery){let He;t[21]!==e.onCopyQuery||t[22]!==e.onPrettifyQuery?(He=(Nt,Wn)=>{e:switch(sJ(Wn)){case Da.Logo:{Nt.logo=Wn;break e}case Da.Toolbar:{Nt.toolbar=E.cloneElement(Wn,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery});break e}case Da.Footer:{Nt.footer=Wn;break e}default:Nt.children.push(Wn)}return Nt},t[21]=e.onCopyQuery,t[22]=e.onPrettifyQuery,t[23]=He):He=t[23];let At;t[24]===Symbol.for("react.memo_cache_sentinel")?(At=w.jsx(Da.Logo,{}),t[24]=At):At=t[24];let It;t[25]!==e.onCopyQuery||t[26]!==e.onPrettifyQuery?(It=w.jsx(Da.Toolbar,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery}),t[25]=e.onCopyQuery,t[26]=e.onPrettifyQuery,t[27]=It):It=t[27],oe=E.Children.toArray(e.children).reduce(He,{logo:At,toolbar:It,children:[]}),t[17]=e.children,t[18]=e.onCopyQuery,t[19]=e.onPrettifyQuery,t[20]=oe}else oe=t[20];const{logo:fe,toolbar:ge,footer:Ne,children:Te}=oe;let pt;t[28]!==W?(pt=()=>{W.hiddenElement==="first"&&W.setHiddenElement(null)},t[28]=W,t[29]=pt):pt=t[29];const Ae=pt;let mt;t[30]!==N?(mt=()=>{try{N.clear(),de("success")}catch{de("error")}},t[30]=N,t[31]=mt):mt=t[31];const dn=mt;let hn;t[32]!==a?(hn=He=>{a(He.currentTarget.dataset.value==="true")},t[32]=a,t[33]=hn):hn=t[33];const Sn=hn;let _e;t[34]!==B?(_e=He=>{const At=He.currentTarget.dataset.theme;B(At||null)},t[34]=B,t[35]=_e):_e=t[35];const Pe=_e;let De;t[36]===Symbol.for("react.memo_cache_sentinel")?(De=He=>{ee(He.currentTarget.dataset.value)},t[36]=De):De=t[36];const ke=De;let _t;t[37]!==W||t[38]!==R||t[39]!==D||t[40]!==A?(_t=He=>{const At=Number(He.currentTarget.dataset.index),It=R.find((Wn,gl)=>At===gl);It===A?(D(null),W.setHiddenElement("first")):(D(It),W.setHiddenElement(null))},t[37]=W,t[38]=R,t[39]=D,t[40]=A,t[41]=_t):_t=t[41];const Xe=_t;let ct;t[42]!==P?(ct=He=>{P.hiddenElement==="second"&&P.setHiddenElement(null),U(He.currentTarget.dataset.name)},t[42]=P,t[43]=ct):ct=t[43];const Ii=ct;let Ls;t[44]!==P?(Ls=()=>{P.setHiddenElement(P.hiddenElement==="second"?null:"second")},t[44]=P,t[45]=Ls):Ls=t[45];const ju=Ls;let Gr;t[46]===Symbol.for("react.memo_cache_sentinel")?(Gr=He=>{He||ee(null)},t[46]=Gr):Gr=t[46];const ap=Gr;let Is;t[47]===Symbol.for("react.memo_cache_sentinel")?(Is=He=>{He||(ee(null),de(null))},t[47]=Is):Is=t[47];const lp=Is,Pu=e.confirmCloseTab;let cr;t[48]!==y||t[49]!==h||t[50]!==Pu||t[51]!==S?(cr=async He=>{const At=He.currentTarget.previousSibling,It=Number(At.id.replace(kg,""));(!Pu||await Pu(It))&&(y===It&&S.stop(),h(It))},t[48]=y,t[49]=h,t[50]=Pu,t[51]=S,t[52]=cr):cr=t[52];const Xt=cr;let qn;t[53]!==p||t[54]!==S?(qn=He=>{const At=Number(He.currentTarget.id.replace(kg,""));S.stop(),p(At)},t[53]=p,t[54]=S,t[55]=qn):qn=t[55];const Wt=qn;let Lo;t[56]!==e.className?(Lo=dt("graphiql-container",e.className),t[56]=e.className,t[57]=Lo):Lo=t[57];let Io;if(t[58]!==Xe||t[59]!==R||t[60]!==A){let He;t[62]!==Xe||t[63]!==A?(He=(At,It)=>{const Nt=At===A,Wn=`${Nt?"Hide":"Show"} ${At.title}`;return w.jsx(Un,{label:Wn,children:w.jsx(nn,{type:"button",className:dt(Nt&&"active"),onClick:Xe,"data-index":It,"aria-label":Wn,children:w.jsx(At.icon,{"aria-hidden":"true"})})},At.title)},t[62]=Xe,t[63]=A,t[64]=He):He=t[64],Io=R.map(He),t[58]=Xe,t[59]=R,t[60]=A,t[61]=Io}else Io=t[61];let $u;t[65]===Symbol.for("react.memo_cache_sentinel")?($u={marginTop:"auto"},t[65]=$u):$u=t[65];const Fo=_&&"graphiql-spin";let Fi;t[66]!==Fo?(Fi=dt(Fo),t[66]=Fo,t[67]=Fi):Fi=t[67];let ji;t[68]!==Fi?(ji=w.jsx(xj,{className:Fi,"aria-hidden":"true"}),t[68]=Fi,t[69]=ji):ji=t[69];let In;t[70]!==T||t[71]!==_||t[72]!==ji?(In=w.jsx(Un,{label:"Re-fetch GraphQL schema",children:w.jsx(nn,{type:"button",disabled:_,onClick:T,"aria-label":"Re-fetch GraphQL schema",style:$u,children:ji})}),t[70]=T,t[71]=_,t[72]=ji,t[73]=In):In=t[73];let Yr;t[74]===Symbol.for("react.memo_cache_sentinel")?(Yr=w.jsx(Un,{label:"Open short keys dialog",children:w.jsx(nn,{type:"button","data-value":"short-keys",onClick:ke,"aria-label":"Open short keys dialog",children:w.jsx(hj,{"aria-hidden":"true"})})}),t[74]=Yr):Yr=t[74];let fr;t[75]===Symbol.for("react.memo_cache_sentinel")?(fr=w.jsx(Un,{label:"Open settings dialog",children:w.jsx(nn,{type:"button","data-value":"settings",onClick:ke,"aria-label":"Open settings dialog",children:w.jsx(Sj,{"aria-hidden":"true"})})}),t[75]=fr):fr=t[75];let jo;t[76]!==Io||t[77]!==In?(jo=w.jsxs("div",{className:"graphiql-sidebar",children:[Io,In,Yr,fr]}),t[76]=Io,t[77]=In,t[78]=jo):jo=t[78];let Fs;t[79]===Symbol.for("react.memo_cache_sentinel")?(Fs={minWidth:"200px"},t[79]=Fs):Fs=t[79];let dr;t[80]!==H?(dr=H?w.jsx(H,{}):null,t[80]=H,t[81]=dr):dr=t[81];let hi;t[82]!==W.firstRef||t[83]!==dr?(hi=w.jsx("div",{ref:W.firstRef,className:"graphiql-plugin",style:Fs,children:dr}),t[82]=W.firstRef,t[83]=dr,t[84]=hi):hi=t[84];let Po;t[85]!==W.dragBarRef||t[86]!==A?(Po=A&&w.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:W.dragBarRef}),t[85]=W.dragBarRef,t[86]=A,t[87]=Po):Po=t[87];const Of=W.secondRef;let Qr;if(t[88]!==y||t[89]!==Wt||t[90]!==Xt||t[91]!==v){let He;t[93]!==y||t[94]!==Wt||t[95]!==Xt?(He=(At,It,Nt)=>w.jsxs(yg,{value:At,isActive:It===y,children:[w.jsx(yg.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${It}`,title:At.title,onClick:Wt,children:At.title}),Nt.length>1&&w.jsx(yg.Close,{onClick:Xt})]},At.id),t[93]=y,t[94]=Wt,t[95]=Xt,t[96]=He):He=t[96],Qr=v.map(He),t[88]=y,t[89]=Wt,t[90]=Xt,t[91]=v,t[92]=Qr}else Qr=t[92];let Xr;t[97]!==f||t[98]!==Qr||t[99]!==v?(Xr=w.jsx(Yw,{values:v,onReorder:f,"aria-label":"Select active operation",className:"no-scrollbar",children:Qr}),t[97]=f,t[98]=Qr,t[99]=v,t[100]=Xr):Xr=t[100];let $o;t[101]===Symbol.for("react.memo_cache_sentinel")?($o=w.jsx(yj,{"aria-hidden":"true"}),t[101]=$o):$o=t[101];let hr;t[102]!==c?(hr=w.jsx(Un,{label:"New tab",children:w.jsx(nn,{type:"button",className:"graphiql-tab-add",onClick:c,"aria-label":"New tab",children:$o})}),t[102]=c,t[103]=hr):hr=t[103];let Wr;t[104]!==fe||t[105]!==Xr||t[106]!==hr?(Wr=w.jsxs("div",{className:"graphiql-session-header",children:[Xr,hr,fe]}),t[104]=fe,t[105]=Xr,t[106]=hr,t[107]=Wr):Wr=t[107];const Vu=`${kg}${y}`,pr=L.firstRef;let Ct;t[108]!==Ae||t[109]!==e.editorTheme||t[110]!==e.keyMap||t[111]!==e.onCopyQuery||t[112]!==e.onEditQuery||t[113]!==e.onPrettifyQuery||t[114]!==e.readOnly?(Ct=w.jsx(oC,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:Ae,onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),t[108]=Ae,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]=Ct):Ct=t[115];let Zt;t[116]===Symbol.for("react.memo_cache_sentinel")?(Zt=w.jsx(Qv,{}),t[116]=Zt):Zt=t[116];let Gn;t[117]!==ge?(Gn=w.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[Zt,ge]}),t[117]=ge,t[118]=Gn):Gn=t[118];let mr;t[119]!==P.firstRef||t[120]!==Ct||t[121]!==Gn?(mr=w.jsxs("section",{className:"graphiql-query-editor","aria-label":"Query Editor",ref:P.firstRef,children:[Ct,Gn]}),t[119]=P.firstRef,t[120]=Ct,t[121]=Gn,t[122]=mr):mr=t[122];const cp=P.dragBarRef,ml=I==="variables"&&P.hiddenElement!=="second"&&"active";let Zr;t[123]!==ml?(Zr=dt(ml),t[123]=ml,t[124]=Zr):Zr=t[124];let pi;t[125]!==Ii||t[126]!==Zr?(pi=w.jsx(nn,{type:"button",className:Zr,onClick:Ii,"data-name":"variables",children:"Variables"}),t[125]=Ii,t[126]=Zr,t[127]=pi):pi=t[127];let gr;t[128]!==I||t[129]!==P.hiddenElement||t[130]!==Ii||t[131]!==n?(gr=n&&w.jsx(nn,{type:"button",className:dt(I==="headers"&&P.hiddenElement!=="second"&&"active"),onClick:Ii,"data-name":"headers",children:"Headers"}),t[128]=I,t[129]=P.hiddenElement,t[130]=Ii,t[131]=n,t[132]=gr):gr=t[132];const vr=P.hiddenElement==="second"?"Show editor tools":"Hide editor tools",yr=P.hiddenElement==="second"?"Show editor tools":"Hide editor tools";let mi;t[133]!==P.hiddenElement?(mi=P.hiddenElement==="second"?w.jsx(tj,{className:"graphiql-chevron-icon","aria-hidden":"true"}):w.jsx(JF,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[133]=P.hiddenElement,t[134]=mi):mi=t[134];let Yn;t[135]!==yr||t[136]!==mi||t[137]!==ju?(Yn=w.jsx(nn,{type:"button",onClick:ju,"aria-label":yr,className:"graphiql-toggle-editor-tools",children:mi}),t[135]=yr,t[136]=mi,t[137]=ju,t[138]=Yn):Yn=t[138];let bt;t[139]!==vr||t[140]!==Yn?(bt=w.jsx(Un,{label:vr,children:Yn}),t[139]=vr,t[140]=Yn,t[141]=bt):bt=t[141];let Kr;t[142]!==P.dragBarRef||t[143]!==pi||t[144]!==gr||t[145]!==bt?(Kr=w.jsxs("div",{ref:cp,className:"graphiql-editor-tools",children:[pi,gr,bt]}),t[142]=P.dragBarRef,t[143]=pi,t[144]=gr,t[145]=bt,t[146]=Kr):Kr=t[146];const Bu=I==="variables"?"Variables":"Headers",Pi=I!=="variables";let Qn;t[147]!==Ae||t[148]!==e.editorTheme||t[149]!==e.keyMap||t[150]!==e.onEditVariables||t[151]!==e.readOnly||t[152]!==Pi?(Qn=w.jsx(dv,{editorTheme:e.editorTheme,isHidden:Pi,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:Ae,readOnly:e.readOnly}),t[147]=Ae,t[148]=e.editorTheme,t[149]=e.keyMap,t[150]=e.onEditVariables,t[151]=e.readOnly,t[152]=Pi,t[153]=Qn):Qn=t[153];let Vo;t[154]!==I||t[155]!==n||t[156]!==e.editorTheme||t[157]!==e.keyMap||t[158]!==e.onEditHeaders||t[159]!==e.readOnly?(Vo=n&&w.jsx(fv,{editorTheme:e.editorTheme,isHidden:I!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}),t[154]=I,t[155]=n,t[156]=e.editorTheme,t[157]=e.keyMap,t[158]=e.onEditHeaders,t[159]=e.readOnly,t[160]=Vo):Vo=t[160];let Jr;t[161]!==P.secondRef||t[162]!==Bu||t[163]!==Qn||t[164]!==Vo?(Jr=w.jsxs("section",{className:"graphiql-editor-tool","aria-label":Bu,ref:P.secondRef,children:[Qn,Vo]}),t[161]=P.secondRef,t[162]=Bu,t[163]=Qn,t[164]=Vo,t[165]=Jr):Jr=t[165];let eo;t[166]!==L.firstRef||t[167]!==mr||t[168]!==Kr||t[169]!==Jr?(eo=w.jsxs("div",{className:"graphiql-editors",ref:pr,children:[mr,Kr,Jr]}),t[166]=L.firstRef,t[167]=mr,t[168]=Kr,t[169]=Jr,t[170]=eo):eo=t[170];let Bo;t[171]!==L.dragBarRef?(Bo=w.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:L.dragBarRef}),t[171]=L.dragBarRef,t[172]=Bo):Bo=t[172];let $i;t[173]!==S.isFetching?($i=S.isFetching?w.jsx(t2,{}):null,t[173]=S.isFetching,t[174]=$i):$i=t[174];let Vi;t[175]!==e.editorTheme||t[176]!==e.keyMap||t[177]!==e.responseTooltip?(Vi=w.jsx(uC,{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 Tn;t[179]!==L.secondRef||t[180]!==Ne||t[181]!==$i||t[182]!==Vi?(Tn=w.jsxs("div",{className:"graphiql-response",ref:L.secondRef,children:[$i,Vi,Ne]}),t[179]=L.secondRef,t[180]=Ne,t[181]=$i,t[182]=Vi,t[183]=Tn):Tn=t[183];let Kt;t[184]!==Vu||t[185]!==eo||t[186]!==Bo||t[187]!==Tn?(Kt=w.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Vu,children:[eo,Bo,Tn]}),t[184]=Vu,t[185]=eo,t[186]=Bo,t[187]=Tn,t[188]=Kt):Kt=t[188];let to;t[189]!==W.secondRef||t[190]!==Wr||t[191]!==Kt?(to=w.jsxs("div",{ref:Of,className:"graphiql-sessions",children:[Wr,Kt]}),t[189]=W.secondRef,t[190]=Wr,t[191]=Kt,t[192]=to):to=t[192];let Uo;t[193]!==hi||t[194]!==Po||t[195]!==to?(Uo=w.jsxs("div",{className:"graphiql-main",children:[hi,Po,to]}),t[193]=hi,t[194]=Po,t[195]=to,t[196]=Uo):Uo=t[196];const js=ie==="short-keys";let Ps;t[197]===Symbol.for("react.memo_cache_sentinel")?(Ps=w.jsxs("div",{className:"graphiql-dialog-header",children:[w.jsx(Ca.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),w.jsx(Ca.Close,{})]}),t[197]=Ps):Ps=t[197];let Bi;t[198]!==e.keyMap?(Bi=w.jsx("div",{className:"graphiql-dialog-section",children:w.jsx(eJ,{keyMap:e.keyMap})}),t[198]=e.keyMap,t[199]=Bi):Bi=t[199];let zo;t[200]!==js||t[201]!==Bi?(zo=w.jsxs(Ca,{open:js,onOpenChange:ap,children:[Ps,Bi]}),t[200]=js,t[201]=Bi,t[202]=zo):zo=t[202];const _n=ie==="settings";let Ho;t[203]===Symbol.for("react.memo_cache_sentinel")?(Ho=w.jsxs("div",{className:"graphiql-dialog-header",children:[w.jsx(Ca.Title,{className:"graphiql-dialog-title",children:"Settings"}),w.jsx(Ca.Close,{})]}),t[203]=Ho):Ho=t[203];let no;t[204]!==Sn||t[205]!==e.showPersistHeadersSettings||t[206]!==m?(no=e.showPersistHeadersSettings?w.jsxs("div",{className:"graphiql-dialog-section",children:[w.jsxs("div",{children:[w.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),w.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",w.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),w.jsxs(hv,{children:[w.jsx(Zi,{type:"button",id:"enable-persist-headers",className:dt(m&&"active"),"data-value":"true",onClick:Sn,children:"On"}),w.jsx(Zi,{type:"button",id:"disable-persist-headers",className:dt(!m&&"active"),onClick:Sn,children:"Off"})]})]}):null,t[204]=Sn,t[205]=e.showPersistHeadersSettings,t[206]=m,t[207]=no):no=t[207];let br;t[208]!==M||t[209]!==Pe||t[210]!==F?(br=!M&&w.jsxs("div",{className:"graphiql-dialog-section",children:[w.jsxs("div",{children:[w.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),w.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),w.jsxs(hv,{children:[w.jsx(Zi,{type:"button",className:dt(F===null&&"active"),onClick:Pe,children:"System"}),w.jsx(Zi,{type:"button",className:dt(F==="light"&&"active"),"data-theme":"light",onClick:Pe,children:"Light"}),w.jsx(Zi,{type:"button",className:dt(F==="dark"&&"active"),"data-theme":"dark",onClick:Pe,children:"Dark"})]})]}),t[208]=M,t[209]=Pe,t[210]=F,t[211]=br):br=t[211];let Ui;t[212]===Symbol.for("react.memo_cache_sentinel")?(Ui=w.jsxs("div",{children:[w.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),w.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[212]=Ui):Ui=t[212];const Uu=he||void 0,zu=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 qo;t[215]!==dn||t[216]!==Uu||t[217]!==zu||t[218]!==Xn?(qo=w.jsxs("div",{className:"graphiql-dialog-section",children:[Ui,w.jsx(Zi,{type:"button",state:Uu,disabled:zu,onClick:dn,children:Xn})]}),t[215]=dn,t[216]=Uu,t[217]=zu,t[218]=Xn,t[219]=qo):qo=t[219];let io;t[220]!==_n||t[221]!==no||t[222]!==br||t[223]!==qo?(io=w.jsxs(Ca,{open:_n,onOpenChange:lp,children:[Ho,no,br,qo]}),t[220]=_n,t[221]=no,t[222]=br,t[223]=qo,t[224]=io):io=t[224];let ro;t[225]!==Lo||t[226]!==jo||t[227]!==Uo||t[228]!==zo||t[229]!==io?(ro=w.jsxs("div",{className:Lo,children:[jo,Uo,zo,io]}),t[225]=Lo,t[226]=jo,t[227]=Uo,t[228]=zo,t[229]=io,t[230]=ro):ro=t[230];let Go;return t[231]!==Te||t[232]!==ro?(Go=w.jsxs(Un.Provider,{children:[ro,Te]}),t[231]=Te,t[232]=ro,t[233]=Go):Go=t[233],Go},Lg=Sy?"⌘":"Ctrl",JK=Object.entries({"Search in editor":[Lg,"F"],"Search in documentation":[Lg,"K"],"Execute query":[Lg,"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"]}),eJ=e=>{const t=me.c(5),{keyMap:n}=e,i=n===void 0?"sublime":n;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=w.jsxs("table",{className:"graphiql-table",children:[w.jsx("thead",{children:w.jsxs("tr",{children:[w.jsx("th",{children:"Short Key"}),w.jsx("th",{children:"Function"})]})}),w.jsx("tbody",{children:JK.map(aJ)})]}),t[0]=r):r=t[0];let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=w.jsx("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer",children:"CodeMirror Key Maps"}),t[1]=u):u=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("em",{children:"i"}),t[2]=a):a=t[2];let c;return t[3]!==i?(c=w.jsxs("div",{children:[r,w.jsxs("p",{children:["The editors use"," ",u," ","that add more short keys. This instance of Graph",a,"QL uses"," ",w.jsx("code",{children:i}),"."]})]}),t[3]=i,t[4]=c):c=t[4],c},tJ=w.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",w.jsx("em",{children:"i"}),"QL"]}),nJ=e=>{const t=me.c(2),{children:n}=e,i=n===void 0?tJ:n;let r;return t[0]!==i?(r=w.jsx("div",{className:"graphiql-logo",children:i}),t[0]=i,t[1]=r):r=t[1],r},iJ=e=>{const t=me.c(4),{prettify:n,copy:i,merge:r}=e;let u;return t[0]!==i||t[1]!==r||t[2]!==n?(u=w.jsxs(w.Fragment,{children:[n,r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=u):u=t[3],u},rJ=({children:e=iJ,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=Ry({onCopyQuery:t}),r=df(),u=hf({onPrettifyQuery:n}),a=w.jsx(O0,{onClick:u,label:"Prettify query (Shift-Ctrl-P)",children:w.jsx(bj,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),c=w.jsx(O0,{onClick:r,label:"Merge fragments into query (Shift-Ctrl-M)",children:w.jsx(mj,{className:"graphiql-toolbar-icon","aria-hidden":"true"})});return e({prettify:a,copy:w.jsx(O0,{onClick:i,label:"Copy query (Shift-Ctrl-C)",children:w.jsx(nj,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),merge:c})},oJ=e=>{const t=me.c(2);let n;return t[0]!==e.children?(n=w.jsx("div",{className:"graphiql-footer",children:e.children}),t[0]=e.children,t[1]=n):n=t[1],n};function sJ(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}const Da=Object.assign(WK,{Logo:nJ,Toolbar:rJ,Footer:oJ});function uJ(e,t,n){return w.jsxs(E.Fragment,{children:[w.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function aJ(e){const[t,n]=e;return w.jsxs("tr",{children:[w.jsx("td",{children:n.map(uJ)}),w.jsx("td",{children:t})]},t)}const lJ={clear(){},getItem(e){return null},length:0,removeItem(e){},setItem(e,t){}},cJ=({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,r=e==="admin"?"Admin API":"Shop API",u=new URLSearchParams(window.location.search),a=u.get("query")??void 0,c=u.get("embeddedMode")==="true",f=c?lJ:void 0,h=E.useCallback(()=>TR({url:i,subscriptionUrl:i.replace(/^http/,"ws")}),[i]),p=m=>{if(m!==e){const v=window.location.pathname.split("/"),y=v.length>1?`/${v[1]}`:"";window.location.href=`${y}/${m}`}};return w.jsxs("div",{className:"graphiql-app",children:[c?null:w.jsxs("div",{className:"vendure-header",children:[w.jsxs("h1",{children:["Vendure GraphiQL - ",r]}),w.jsxs("div",{className:"switch-api",children:[w.jsx("span",{children:"Switch API:"}),w.jsx("a",{href:"#",className:e==="admin"?"active":"",onClick:m=>{m.preventDefault(),p("admin")},children:"Admin API"}),w.jsx("a",{href:"#",className:e==="shop"?"active":"",onClick:m=>{m.preventDefault(),p("shop")},children:"Shop API"})]})]}),w.jsx("div",{className:"graphiql-wrapper",children:w.jsx(Da,{className:c?"embedded-mode":void 0,fetcher:h(),storage:f,defaultEditorToolsVisibility:!c,query:a})})]})},fJ=new URLSearchParams(window.location.search),dJ=fJ.get("embeddedMode")==="true";dJ&&document.body.classList.add("embedded-mode","graphiql-dark");const E7=window.location.pathname;E7.includes("/admin");const hJ=E7.includes("/shop"),pJ=hJ?"shop":"admin",gT=document.getElementById("root");gT&&kN.createRoot(gT).render(w.jsx(Oe.StrictMode,{children:w.jsx(cJ,{apiType:pJ})}));export{Lc as $,UO as A,fn as B,PO as C,Ce as D,LT as E,Ci as F,tt as G,kT as H,v0 as I,er as J,Q as K,lR as L,nt as M,yJ as N,Ai as O,vJ as P,bh as Q,TT as R,Nu as S,t_ as T,XR as U,i4 as V,$e as W,zn as X,vy as Y,el as Z,kc as _,bJ as a,Ic as a0,YR as a1,GR as a2,qR as a3,Yt as a4,Ou as a5,Ie as a6,We as a7,C1 as a8,Pt as a9,Dt as b,Tt as c,xO as d,Ss as e,YO as f,Du as g,gh as h,_o as i,xe as j,BO as k,KT as l,Nn as m,EO as n,kn as o,ci as p,$t as q,xh as r,TO as s,Fc as t,$O as u,gy as v,MT as w,hy as x,dc as y,zO as z};
|
|
267
|
+
//# sourceMappingURL=index-5e9LZB--.js.map
|