UNPKG

@graphql-yoga/render-graphiql

Version:
1 lines 1.96 MB
export const js = "(function(ya,zo){typeof exports==\"object\"&&typeof module<\"u\"?zo(exports):typeof define==\"function\"&&define.amd?define([\"exports\"],zo):(ya=typeof globalThis<\"u\"?globalThis:ya||self,zo(ya.YogaGraphiQL={}))})(this,function(ya){\"use strict\";var Tie=Object.defineProperty;var wie=(ya,zo,of)=>zo in ya?Tie(ya,zo,{enumerable:!0,configurable:!0,writable:!0,value:of}):ya[zo]=of;var en=(ya,zo,of)=>wie(ya,typeof zo!=\"symbol\"?zo+\"\":zo,of);function zo(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!=\"string\"&&!Array.isArray(r)){for(const i in r)if(i!==\"default\"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}))}var of=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function W_(e){if(Object.prototype.hasOwnProperty.call(e,\"__esModule\"))return e;var t=e.default;if(typeof t==\"function\"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,\"__esModule\",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var z1={exports:{}},$h={};/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Y_;function Lj(){if(Y_)return $h;Y_=1;var e=Symbol.for(\"react.transitional.element\"),t=Symbol.for(\"react.fragment\");function n(r,i,o){var l=null;if(o!==void 0&&(l=\"\"+o),i.key!==void 0&&(l=\"\"+i.key),\"key\"in i){o={};for(var c in i)c!==\"key\"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return $h.Fragment=t,$h.jsx=n,$h.jsxs=n,$h}var Q_;function Ij(){return Q_||(Q_=1,z1.exports=Lj()),z1.exports}var Y=Ij(),H1={exports:{}},Qt={};/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var K_;function Fj(){if(K_)return Qt;K_=1;var e=Symbol.for(\"react.transitional.element\"),t=Symbol.for(\"react.portal\"),n=Symbol.for(\"react.fragment\"),r=Symbol.for(\"react.strict_mode\"),i=Symbol.for(\"react.profiler\"),o=Symbol.for(\"react.consumer\"),l=Symbol.for(\"react.context\"),c=Symbol.for(\"react.forward_ref\"),p=Symbol.for(\"react.suspense\"),d=Symbol.for(\"react.memo\"),m=Symbol.for(\"react.lazy\"),E=Symbol.iterator;function b(J){return J===null||typeof J!=\"object\"?null:(J=E&&J[E]||J[\"@@iterator\"],typeof J==\"function\"?J:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function k(J,ge,ce){this.props=J,this.context=ge,this.refs=x,this.updater=ce||y}k.prototype.isReactComponent={},k.prototype.setState=function(J,ge){if(typeof J!=\"object\"&&typeof J!=\"function\"&&J!=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,J,ge,\"setState\")},k.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,\"forceUpdate\")};function N(){}N.prototype=k.prototype;function A(J,ge,ce){this.props=J,this.context=ge,this.refs=x,this.updater=ce||y}var O=A.prototype=new N;O.constructor=A,w(O,k.prototype),O.isPureReactComponent=!0;var _=Array.isArray,M={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function P(J,ge,ce,he,le,pe){return ce=pe.ref,{$$typeof:e,type:J,key:ge,ref:ce!==void 0?ce:null,props:pe}}function F(J,ge){return P(J.type,ge,void 0,void 0,void 0,J.props)}function j(J){return typeof J==\"object\"&&J!==null&&J.$$typeof===e}function q(J){var ge={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+J.replace(/[=:]/g,function(ce){return ge[ce]})}var Q=/\\/+/g;function ee(J,ge){return typeof J==\"object\"&&J!==null&&J.key!=null?q(\"\"+J.key):ge.toString(36)}function Z(){}function W(J){switch(J.status){case\"fulfilled\":return J.value;case\"rejected\":throw J.reason;default:switch(typeof J.status==\"string\"?J.then(Z,Z):(J.status=\"pending\",J.then(function(ge){J.status===\"pending\"&&(J.status=\"fulfilled\",J.value=ge)},function(ge){J.status===\"pending\"&&(J.status=\"rejected\",J.reason=ge)})),J.status){case\"fulfilled\":return J.value;case\"rejected\":throw J.reason}}throw J}function B(J,ge,ce,he,le){var pe=typeof J;(pe===\"undefined\"||pe===\"boolean\")&&(J=null);var Te=!1;if(J===null)Te=!0;else switch(pe){case\"bigint\":case\"string\":case\"number\":Te=!0;break;case\"object\":switch(J.$$typeof){case e:case t:Te=!0;break;case m:return Te=J._init,B(Te(J._payload),ge,ce,he,le)}}if(Te)return le=le(J),Te=he===\"\"?\".\"+ee(J,0):he,_(le)?(ce=\"\",Te!=null&&(ce=Te.replace(Q,\"$&/\")+\"/\"),B(le,ge,ce,\"\",function(qe){return qe})):le!=null&&(j(le)&&(le=F(le,ce+(le.key==null||J&&J.key===le.key?\"\":(\"\"+le.key).replace(Q,\"$&/\")+\"/\")+Te)),ge.push(le)),1;Te=0;var Fe=he===\"\"?\".\":he+\":\";if(_(J))for(var $e=0;$e<J.length;$e++)he=J[$e],pe=Fe+ee(he,$e),Te+=B(he,ge,ce,pe,le);else if($e=b(J),typeof $e==\"function\")for(J=$e.call(J),$e=0;!(he=J.next()).done;)he=he.value,pe=Fe+ee(he,$e++),Te+=B(he,ge,ce,pe,le);else if(pe===\"object\"){if(typeof J.then==\"function\")return B(W(J),ge,ce,he,le);throw ge=String(J),Error(\"Objects are not valid as a React child (found: \"+(ge===\"[object Object]\"?\"object with keys {\"+Object.keys(J).join(\", \")+\"}\":ge)+\"). If you meant to render a collection of children, use an array instead.\")}return Te}function ne(J,ge,ce){if(J==null)return J;var he=[],le=0;return B(J,he,\"\",\"\",function(pe){return ge.call(ce,pe,le++)}),he}function ie(J){if(J._status===-1){var ge=J._result;ge=ge(),ge.then(function(ce){(J._status===0||J._status===-1)&&(J._status=1,J._result=ce)},function(ce){(J._status===0||J._status===-1)&&(J._status=2,J._result=ce)}),J._status===-1&&(J._status=0,J._result=ge)}if(J._status===1)return J._result.default;throw J._result}var se=typeof reportError==\"function\"?reportError:function(J){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var ge=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof J==\"object\"&&J!==null&&typeof J.message==\"string\"?String(J.message):String(J),error:J});if(!window.dispatchEvent(ge))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",J);return}console.error(J)};function de(){}return Qt.Children={map:ne,forEach:function(J,ge,ce){ne(J,function(){ge.apply(this,arguments)},ce)},count:function(J){var ge=0;return ne(J,function(){ge++}),ge},toArray:function(J){return ne(J,function(ge){return ge})||[]},only:function(J){if(!j(J))throw Error(\"React.Children.only expected to receive a single React element child.\");return J}},Qt.Component=k,Qt.Fragment=n,Qt.Profiler=i,Qt.PureComponent=A,Qt.StrictMode=r,Qt.Suspense=p,Qt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Qt.act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},Qt.cache=function(J){return function(){return J.apply(null,arguments)}},Qt.cloneElement=function(J,ge,ce){if(J==null)throw Error(\"The argument must be a React element, but you passed \"+J+\".\");var he=w({},J.props),le=J.key,pe=void 0;if(ge!=null)for(Te in ge.ref!==void 0&&(pe=void 0),ge.key!==void 0&&(le=\"\"+ge.key),ge)!V.call(ge,Te)||Te===\"key\"||Te===\"__self\"||Te===\"__source\"||Te===\"ref\"&&ge.ref===void 0||(he[Te]=ge[Te]);var Te=arguments.length-2;if(Te===1)he.children=ce;else if(1<Te){for(var Fe=Array(Te),$e=0;$e<Te;$e++)Fe[$e]=arguments[$e+2];he.children=Fe}return P(J.type,le,void 0,void 0,pe,he)},Qt.createContext=function(J){return J={$$typeof:l,_currentValue:J,_currentValue2:J,_threadCount:0,Provider:null,Consumer:null},J.Provider=J,J.Consumer={$$typeof:o,_context:J},J},Qt.createElement=function(J,ge,ce){var he,le={},pe=null;if(ge!=null)for(he in ge.key!==void 0&&(pe=\"\"+ge.key),ge)V.call(ge,he)&&he!==\"key\"&&he!==\"__self\"&&he!==\"__source\"&&(le[he]=ge[he]);var Te=arguments.length-2;if(Te===1)le.children=ce;else if(1<Te){for(var Fe=Array(Te),$e=0;$e<Te;$e++)Fe[$e]=arguments[$e+2];le.children=Fe}if(J&&J.defaultProps)for(he in Te=J.defaultProps,Te)le[he]===void 0&&(le[he]=Te[he]);return P(J,pe,void 0,void 0,null,le)},Qt.createRef=function(){return{current:null}},Qt.forwardRef=function(J){return{$$typeof:c,render:J}},Qt.isValidElement=j,Qt.lazy=function(J){return{$$typeof:m,_payload:{_status:-1,_result:J},_init:ie}},Qt.memo=function(J,ge){return{$$typeof:d,type:J,compare:ge===void 0?null:ge}},Qt.startTransition=function(J){var ge=M.T,ce={};M.T=ce;try{var he=J(),le=M.S;le!==null&&le(ce,he),typeof he==\"object\"&&he!==null&&typeof he.then==\"function\"&&he.then(de,se)}catch(pe){se(pe)}finally{M.T=ge}},Qt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Qt.use=function(J){return M.H.use(J)},Qt.useActionState=function(J,ge,ce){return M.H.useActionState(J,ge,ce)},Qt.useCallback=function(J,ge){return M.H.useCallback(J,ge)},Qt.useContext=function(J){return M.H.useContext(J)},Qt.useDebugValue=function(){},Qt.useDeferredValue=function(J,ge){return M.H.useDeferredValue(J,ge)},Qt.useEffect=function(J,ge){return M.H.useEffect(J,ge)},Qt.useId=function(){return M.H.useId()},Qt.useImperativeHandle=function(J,ge,ce){return M.H.useImperativeHandle(J,ge,ce)},Qt.useInsertionEffect=function(J,ge){return M.H.useInsertionEffect(J,ge)},Qt.useLayoutEffect=function(J,ge){return M.H.useLayoutEffect(J,ge)},Qt.useMemo=function(J,ge){return M.H.useMemo(J,ge)},Qt.useOptimistic=function(J,ge){return M.H.useOptimistic(J,ge)},Qt.useReducer=function(J,ge,ce){return M.H.useReducer(J,ge,ce)},Qt.useRef=function(J){return M.H.useRef(J)},Qt.useState=function(J){return M.H.useState(J)},Qt.useSyncExternalStore=function(J,ge,ce){return M.H.useSyncExternalStore(J,ge,ce)},Qt.useTransition=function(){return M.H.useTransition()},Qt.version=\"19.0.0\",Qt}var X_;function Vv(){return X_||(X_=1,H1.exports=Fj()),H1.exports}var L=Vv();const Oe=Mu(L),G1=zo({__proto__:null,default:Oe},[L]);var W1={exports:{}},zh={},Y1={exports:{}},Q1={};/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Z_;function Pj(){return Z_||(Z_=1,function(e){function t(ne,ie){var se=ne.length;ne.push(ie);e:for(;0<se;){var de=se-1>>>1,J=ne[de];if(0<i(J,ie))ne[de]=ie,ne[se]=J,se=de;else break e}}function n(ne){return ne.length===0?null:ne[0]}function r(ne){if(ne.length===0)return null;var ie=ne[0],se=ne.pop();if(se!==ie){ne[0]=se;e:for(var de=0,J=ne.length,ge=J>>>1;de<ge;){var ce=2*(de+1)-1,he=ne[ce],le=ce+1,pe=ne[le];if(0>i(he,se))le<J&&0>i(pe,he)?(ne[de]=pe,ne[le]=se,de=le):(ne[de]=he,ne[ce]=se,de=ce);else if(le<J&&0>i(pe,se))ne[de]=pe,ne[le]=se,de=le;else break e}}return ie}function i(ne,ie){var se=ne.sortIndex-ie.sortIndex;return se!==0?se:ne.id-ie.id}if(e.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var p=[],d=[],m=1,E=null,b=3,y=!1,w=!1,x=!1,k=typeof setTimeout==\"function\"?setTimeout:null,N=typeof clearTimeout==\"function\"?clearTimeout:null,A=typeof setImmediate<\"u\"?setImmediate:null;function O(ne){for(var ie=n(d);ie!==null;){if(ie.callback===null)r(d);else if(ie.startTime<=ne)r(d),ie.sortIndex=ie.expirationTime,t(p,ie);else break;ie=n(d)}}function _(ne){if(x=!1,O(ne),!w)if(n(p)!==null)w=!0,W();else{var ie=n(d);ie!==null&&B(_,ie.startTime-ne)}}var M=!1,V=-1,P=5,F=-1;function j(){return!(e.unstable_now()-F<P)}function q(){if(M){var ne=e.unstable_now();F=ne;var ie=!0;try{e:{w=!1,x&&(x=!1,N(V),V=-1),y=!0;var se=b;try{t:{for(O(ne),E=n(p);E!==null&&!(E.expirationTime>ne&&j());){var de=E.callback;if(typeof de==\"function\"){E.callback=null,b=E.priorityLevel;var J=de(E.expirationTime<=ne);if(ne=e.unstable_now(),typeof J==\"function\"){E.callback=J,O(ne),ie=!0;break t}E===n(p)&&r(p),O(ne)}else r(p);E=n(p)}if(E!==null)ie=!0;else{var ge=n(d);ge!==null&&B(_,ge.startTime-ne),ie=!1}}break e}finally{E=null,b=se,y=!1}ie=void 0}}finally{ie?Q():M=!1}}}var Q;if(typeof A==\"function\")Q=function(){A(q)};else if(typeof MessageChannel<\"u\"){var ee=new MessageChannel,Z=ee.port2;ee.port1.onmessage=q,Q=function(){Z.postMessage(null)}}else Q=function(){k(q,0)};function W(){M||(M=!0,Q())}function B(ne,ie){V=k(function(){ne(e.unstable_now())},ie)}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(ne){ne.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,W())},e.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<ne?Math.floor(1e3/ne):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(p)},e.unstable_next=function(ne){switch(b){case 1:case 2:case 3:var ie=3;break;default:ie=b}var se=b;b=ie;try{return ne()}finally{b=se}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ne,ie){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var se=b;b=ne;try{return ie()}finally{b=se}},e.unstable_scheduleCallback=function(ne,ie,se){var de=e.unstable_now();switch(typeof se==\"object\"&&se!==null?(se=se.delay,se=typeof se==\"number\"&&0<se?de+se:de):se=de,ne){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=se+J,ne={id:m++,callback:ie,priorityLevel:ne,startTime:se,expirationTime:J,sortIndex:-1},se>de?(ne.sortIndex=se,t(d,ne),n(p)===null&&ne===n(d)&&(x?(N(V),V=-1):x=!0,B(_,se-de))):(ne.sortIndex=J,t(p,ne),w||y||(w=!0,W())),ne},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(ne){var ie=b;return function(){var se=b;b=ie;try{return ne.apply(this,arguments)}finally{b=se}}}}(Q1)),Q1}var J_;function jj(){return J_||(J_=1,Y1.exports=Pj()),Y1.exports}var K1={exports:{}},Yi={};/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var eN;function Vj(){if(eN)return Yi;eN=1;var e=Vv();function t(p){var d=\"https://react.dev/errors/\"+p;if(1<arguments.length){d+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+=\"&args[]=\"+encodeURIComponent(arguments[m])}return\"Minified React error #\"+p+\"; visit \"+d+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for(\"react.portal\");function o(p,d,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:E==null?null:\"\"+E,children:p,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(p,d){if(p===\"font\")return\"\";if(typeof d==\"string\")return d===\"use-credentials\"?d:\"\"}return Yi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Yi.createPortal=function(p,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(p,d,null,m)},Yi.flushSync=function(p){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,p)return p()}finally{l.T=d,r.p=m,r.d.f()}},Yi.preconnect=function(p,d){typeof p==\"string\"&&(d?(d=d.crossOrigin,d=typeof d==\"string\"?d===\"use-credentials\"?d:\"\":void 0):d=null,r.d.C(p,d))},Yi.prefetchDNS=function(p){typeof p==\"string\"&&r.d.D(p)},Yi.preinit=function(p,d){if(typeof p==\"string\"&&d&&typeof d.as==\"string\"){var m=d.as,E=c(m,d.crossOrigin),b=typeof d.integrity==\"string\"?d.integrity:void 0,y=typeof d.fetchPriority==\"string\"?d.fetchPriority:void 0;m===\"style\"?r.d.S(p,typeof d.precedence==\"string\"?d.precedence:void 0,{crossOrigin:E,integrity:b,fetchPriority:y}):m===\"script\"&&r.d.X(p,{crossOrigin:E,integrity:b,fetchPriority:y,nonce:typeof d.nonce==\"string\"?d.nonce:void 0})}},Yi.preinitModule=function(p,d){if(typeof p==\"string\")if(typeof d==\"object\"&&d!==null){if(d.as==null||d.as===\"script\"){var m=c(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:m,integrity:typeof d.integrity==\"string\"?d.integrity:void 0,nonce:typeof d.nonce==\"string\"?d.nonce:void 0})}}else d==null&&r.d.M(p)},Yi.preload=function(p,d){if(typeof p==\"string\"&&typeof d==\"object\"&&d!==null&&typeof d.as==\"string\"){var m=d.as,E=c(m,d.crossOrigin);r.d.L(p,m,{crossOrigin:E,integrity:typeof d.integrity==\"string\"?d.integrity:void 0,nonce:typeof d.nonce==\"string\"?d.nonce:void 0,type:typeof d.type==\"string\"?d.type:void 0,fetchPriority:typeof d.fetchPriority==\"string\"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy==\"string\"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet==\"string\"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes==\"string\"?d.imageSizes:void 0,media:typeof d.media==\"string\"?d.media:void 0})}},Yi.preloadModule=function(p,d){if(typeof p==\"string\")if(d){var m=c(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as==\"string\"&&d.as!==\"script\"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity==\"string\"?d.integrity:void 0})}else r.d.m(p)},Yi.requestFormReset=function(p){r.d.r(p)},Yi.unstable_batchedUpdates=function(p,d){return p(d)},Yi.useFormState=function(p,d,m){return l.H.useFormState(p,d,m)},Yi.useFormStatus=function(){return l.H.useHostTransitionStatus()},Yi.version=\"19.0.0\",Yi}var tN;function nN(){if(tN)return K1.exports;tN=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(),K1.exports=Vj(),K1.exports}/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var rN;function Uj(){if(rN)return zh;rN=1;var e=jj(),t=Vv(),n=nN();function r(a){var u=\"https://react.dev/errors/\"+a;if(1<arguments.length){u+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+=\"&args[]=\"+encodeURIComponent(arguments[h])}return\"Minified React error #\"+a+\"; visit \"+u+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var o=Symbol.for(\"react.element\"),l=Symbol.for(\"react.transitional.element\"),c=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),d=Symbol.for(\"react.strict_mode\"),m=Symbol.for(\"react.profiler\"),E=Symbol.for(\"react.provider\"),b=Symbol.for(\"react.consumer\"),y=Symbol.for(\"react.context\"),w=Symbol.for(\"react.forward_ref\"),x=Symbol.for(\"react.suspense\"),k=Symbol.for(\"react.suspense_list\"),N=Symbol.for(\"react.memo\"),A=Symbol.for(\"react.lazy\"),O=Symbol.for(\"react.offscreen\"),_=Symbol.for(\"react.memo_cache_sentinel\"),M=Symbol.iterator;function V(a){return a===null||typeof a!=\"object\"?null:(a=M&&a[M]||a[\"@@iterator\"],typeof a==\"function\"?a:null)}var P=Symbol.for(\"react.client.reference\");function F(a){if(a==null)return null;if(typeof a==\"function\")return a.$$typeof===P?null:a.displayName||a.name||null;if(typeof a==\"string\")return a;switch(a){case p:return\"Fragment\";case c:return\"Portal\";case m:return\"Profiler\";case d:return\"StrictMode\";case x:return\"Suspense\";case k:return\"SuspenseList\"}if(typeof a==\"object\")switch(a.$$typeof){case y:return(a.displayName||\"Context\")+\".Provider\";case b:return(a._context.displayName||\"Context\")+\".Consumer\";case w:var u=a.render;return a=a.displayName,a||(a=u.displayName||u.name||\"\",a=a!==\"\"?\"ForwardRef(\"+a+\")\":\"ForwardRef\"),a;case N:return u=a.displayName||null,u!==null?u:F(a.type)||\"Memo\";case A:u=a._payload,a=a._init;try{return F(a(u))}catch{}}return null}var j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.assign,Q,ee;function Z(a){if(Q===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\\n( *(at )?)/);Q=u&&u[1]||\"\",ee=-1<h.stack.indexOf(`\n at`)?\" (<anonymous>)\":-1<h.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\n`+Q+a+ee}var W=!1;function B(a,u){if(!a||W)return\"\";W=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={DetermineComponentFrameRoot:function(){try{if(u){var Ke=function(){throw Error()};if(Object.defineProperty(Ke.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Ke,[])}catch(Pe){var ke=Pe}Reflect.construct(a,[],Ke)}else{try{Ke.call()}catch(Pe){ke=Pe}a.call(Ke.prototype)}}else{try{throw Error()}catch(Pe){ke=Pe}(Ke=a())&&typeof Ke.catch==\"function\"&&Ke.catch(function(){})}}catch(Pe){if(Pe&&ke&&typeof Pe.stack==\"string\")return[Pe.stack,ke.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var C=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,\"name\");C&&C.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var R=S.DetermineComponentFrameRoot(),H=R[0],te=R[1];if(H&&te){var fe=H.split(`\n`),Se=te.split(`\n`);for(C=S=0;S<fe.length&&!fe[S].includes(\"DetermineComponentFrameRoot\");)S++;for(;C<Se.length&&!Se[C].includes(\"DetermineComponentFrameRoot\");)C++;if(S===fe.length||C===Se.length)for(S=fe.length-1,C=Se.length-1;1<=S&&0<=C&&fe[S]!==Se[C];)C--;for(;1<=S&&0<=C;S--,C--)if(fe[S]!==Se[C]){if(S!==1||C!==1)do if(S--,C--,0>C||fe[S]!==Se[C]){var Be=`\n`+fe[S].replace(\" at new \",\" at \");return a.displayName&&Be.includes(\"<anonymous>\")&&(Be=Be.replace(\"<anonymous>\",a.displayName)),Be}while(1<=S&&0<=C);break}}}finally{W=!1,Error.prepareStackTrace=h}return(h=a?a.displayName||a.name:\"\")?Z(h):\"\"}function ne(a){switch(a.tag){case 26:case 27:case 5:return Z(a.type);case 16:return Z(\"Lazy\");case 13:return Z(\"Suspense\");case 19:return Z(\"SuspenseList\");case 0:case 15:return a=B(a.type,!1),a;case 11:return a=B(a.type.render,!1),a;case 1:return a=B(a.type,!0),a;default:return\"\"}}function ie(a){try{var u=\"\";do u+=ne(a),a=a.return;while(a);return u}catch(h){return`\nError generating stack: `+h.message+`\n`+h.stack}}function se(a){var u=a,h=a;if(a.alternate)for(;u.return;)u=u.return;else{a=u;do u=a,(u.flags&4098)!==0&&(h=u.return),a=u.return;while(a)}return u.tag===3?h:null}function de(a){if(a.tag===13){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function J(a){if(se(a)!==a)throw Error(r(188))}function ge(a){var u=a.alternate;if(!u){if(u=se(a),u===null)throw Error(r(188));return u!==a?null:a}for(var h=a,S=u;;){var C=h.return;if(C===null)break;var R=C.alternate;if(R===null){if(S=C.return,S!==null){h=S;continue}break}if(C.child===R.child){for(R=C.child;R;){if(R===h)return J(C),a;if(R===S)return J(C),u;R=R.sibling}throw Error(r(188))}if(h.return!==S.return)h=C,S=R;else{for(var H=!1,te=C.child;te;){if(te===h){H=!0,h=C,S=R;break}if(te===S){H=!0,S=C,h=R;break}te=te.sibling}if(!H){for(te=R.child;te;){if(te===h){H=!0,h=R,S=C;break}if(te===S){H=!0,S=R,h=C;break}te=te.sibling}if(!H)throw Error(r(189))}}if(h.alternate!==S)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:u}function ce(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a;for(a=a.child;a!==null;){if(u=ce(a),u!==null)return u;a=a.sibling}return null}var he=Array.isArray,le=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},Te=[],Fe=-1;function $e(a){return{current:a}}function qe(a){0>Fe||(a.current=Te[Fe],Te[Fe]=null,Fe--)}function dt(a,u){Fe++,Te[Fe]=a.current,a.current=u}var pt=$e(null),at=$e(null),Ce=$e(null),ye=$e(null);function Re(a,u){switch(dt(Ce,u),dt(at,a),dt(pt,null),a=u.nodeType,a){case 9:case 11:u=(u=u.documentElement)&&(u=u.namespaceURI)?uj(u):0;break;default:if(a=a===8?u.parentNode:u,u=a.tagName,a=a.namespaceURI)a=uj(a),u=cj(a,u);else switch(u){case\"svg\":u=1;break;case\"math\":u=2;break;default:u=0}}qe(pt),dt(pt,u)}function ve(){qe(pt),qe(at),qe(Ce)}function ae(a){a.memoizedState!==null&&dt(ye,a);var u=pt.current,h=cj(u,a.type);u!==h&&(dt(at,a),dt(pt,h))}function Ie(a){at.current===a&&(qe(pt),qe(at)),ye.current===a&&(qe(ye),Lv._currentValue=pe)}var tt=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,Qe=e.unstable_cancelCallback,we=e.unstable_shouldYield,ze=e.unstable_requestPaint,et=e.unstable_now,gt=e.unstable_getCurrentPriorityLevel,Pt=e.unstable_ImmediatePriority,cn=e.unstable_UserBlockingPriority,vt=e.unstable_NormalPriority,Dt=e.unstable_LowPriority,mt=e.unstable_IdlePriority,Wt=e.log,Vt=e.unstable_setDisableYieldValue,Xt=null,rt=null;function Rr(a){if(rt&&typeof rt.onCommitFiberRoot==\"function\")try{rt.onCommitFiberRoot(Xt,a,void 0,(a.current.flags&128)===128)}catch{}}function Jt(a){if(typeof Wt==\"function\"&&Vt(a),rt&&typeof rt.setStrictMode==\"function\")try{rt.setStrictMode(Xt,a)}catch{}}var ut=Math.clz32?Math.clz32:on,gn=Math.log,Ci=Math.LN2;function on(a){return a>>>=0,a===0?32:31-(gn(a)/Ci|0)|0}var wr=128,On=4194304;function Mr(a){var u=a&42;if(u!==0)return u;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function xt(a,u){var h=a.pendingLanes;if(h===0)return 0;var S=0,C=a.suspendedLanes,R=a.pingedLanes,H=a.warmLanes;a=a.finishedLanes!==0;var te=h&134217727;return te!==0?(h=te&~C,h!==0?S=Mr(h):(R&=te,R!==0?S=Mr(R):a||(H=te&~H,H!==0&&(S=Mr(H))))):(te=h&~C,te!==0?S=Mr(te):R!==0?S=Mr(R):a||(H=h&~H,H!==0&&(S=Mr(H)))),S===0?0:u!==0&&u!==S&&(u&C)===0&&(C=S&-S,H=u&-u,C>=H||C===32&&(H&4194176)!==0)?u:S}function Mt(a,u){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&u)===0}function yn(a,u){switch(a){case 1:case 2:case 4:case 8:return u+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mn(){var a=wr;return wr<<=1,(wr&4194176)===0&&(wr=128),a}function tr(){var a=On;return On<<=1,(On&62914560)===0&&(On=4194304),a}function kt(a){for(var u=[],h=0;31>h;h++)u.push(a);return u}function En(a,u){a.pendingLanes|=u,u!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Un(a,u,h,S,C,R){var H=a.pendingLanes;a.pendingLanes=h,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=h,a.entangledLanes&=h,a.errorRecoveryDisabledLanes&=h,a.shellSuspendCounter=0;var te=a.entanglements,fe=a.expirationTimes,Se=a.hiddenUpdates;for(h=H&~h;0<h;){var Be=31-ut(h),Ke=1<<Be;te[Be]=0,fe[Be]=-1;var ke=Se[Be];if(ke!==null)for(Se[Be]=null,Be=0;Be<ke.length;Be++){var Pe=ke[Be];Pe!==null&&(Pe.lane&=-536870913)}h&=~Ke}S!==0&&xr(a,S,0),R!==0&&C===0&&a.tag!==0&&(a.suspendedLanes|=R&~(H&~u))}function xr(a,u,h){a.pendingLanes|=u,a.suspendedLanes&=~u;var S=31-ut(u);a.entangledLanes|=u,a.entanglements[S]=a.entanglements[S]|1073741824|h&4194218}function ra(a,u){var h=a.entangledLanes|=u;for(a=a.entanglements;h;){var S=31-ut(h),C=1<<S;C&u|a[S]&u&&(a[S]|=u),h&=~C}}function La(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function ko(){var a=le.p;return a!==0?a:(a=window.event,a===void 0?32:Aj(a.type))}function Ro(a,u){var h=le.p;try{return le.p=a,u()}finally{le.p=h}}var Ln=Math.random().toString(36).slice(2),nn=\"__reactFiber$\"+Ln,xn=\"__reactProps$\"+Ln,qi=\"__reactContainer$\"+Ln,_i=\"__reactEvents$\"+Ln,Js=\"__reactListeners$\"+Ln,el=\"__reactHandles$\"+Ln,ho=\"__reactResources$\"+Ln,ui=\"__reactMarker$\"+Ln;function Ni(a){delete a[nn],delete a[xn],delete a[_i],delete a[Js],delete a[el]}function mo(a){var u=a[nn];if(u)return u;for(var h=a.parentNode;h;){if(u=h[qi]||h[nn]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(a=pj(a);a!==null;){if(h=a[nn])return h;a=pj(a)}return u}a=h,h=a.parentNode}return null}function Mo(a){if(a=a[nn]||a[qi]){var u=a.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return a}return null}function In(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a.stateNode;throw Error(r(33))}function ft(a){var u=a[ho];return u||(u=a[ho]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Dn(a){a[ui]=!0}var tl=new Set,ci={};function Yt(a,u){fi(a,u),fi(a+\"Capture\",u)}function fi(a,u){for(ci[a]=u,a=0;a<u.length;a++)tl.add(u[a])}var di=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),Wl=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]*$\"),Ge={},K={};function ue(a){return tt.call(K,a)?!0:tt.call(Ge,a)?!1:Wl.test(a)?K[a]=!0:(Ge[a]=!0,!1)}function Le(a,u,h){if(ue(u))if(h===null)a.removeAttribute(u);else{switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":a.removeAttribute(u);return;case\"boolean\":var S=u.toLowerCase().slice(0,5);if(S!==\"data-\"&&S!==\"aria-\"){a.removeAttribute(u);return}}a.setAttribute(u,\"\"+h)}}function We(a,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":a.removeAttribute(u);return}a.setAttribute(u,\"\"+h)}}function Ct(a,u,h,S){if(S===null)a.removeAttribute(h);else{switch(typeof S){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":a.removeAttribute(h);return}a.setAttributeNS(u,h,\"\"+S)}}function Lt(a){switch(typeof a){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return a;case\"object\":return a;default:return\"\"}}function lt(a){var u=a.type;return(a=a.nodeName)&&a.toLowerCase()===\"input\"&&(u===\"checkbox\"||u===\"radio\")}function Xr(a){var u=lt(a)?\"checked\":\"value\",h=Object.getOwnPropertyDescriptor(a.constructor.prototype,u),S=\"\"+a[u];if(!a.hasOwnProperty(u)&&typeof h<\"u\"&&typeof h.get==\"function\"&&typeof h.set==\"function\"){var C=h.get,R=h.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return C.call(this)},set:function(H){S=\"\"+H,R.call(this,H)}}),Object.defineProperty(a,u,{enumerable:h.enumerable}),{getValue:function(){return S},setValue:function(H){S=\"\"+H},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function pi(a){a._valueTracker||(a._valueTracker=Xr(a))}function Yl(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var h=u.getValue(),S=\"\";return a&&(S=lt(a)?a.checked?\"true\":\"false\":a.value),a=S,a!==h?(u.setValue(a),!0):!1}function go(a){if(a=a||(typeof document<\"u\"?document:void 0),typeof a>\"u\")return null;try{return a.activeElement||a.body}catch{return a.body}}var bg=/[\\n\"\\\\]/g;function to(a){return a.replace(bg,function(u){return\"\\\\\"+u.charCodeAt(0).toString(16)+\" \"})}function nl(a,u,h,S,C,R,H,te){a.name=\"\",H!=null&&typeof H!=\"function\"&&typeof H!=\"symbol\"&&typeof H!=\"boolean\"?a.type=H:a.removeAttribute(\"type\"),u!=null?H===\"number\"?(u===0&&a.value===\"\"||a.value!=u)&&(a.value=\"\"+Lt(u)):a.value!==\"\"+Lt(u)&&(a.value=\"\"+Lt(u)):H!==\"submit\"&&H!==\"reset\"||a.removeAttribute(\"value\"),u!=null?Yf(a,H,Lt(u)):h!=null?Yf(a,H,Lt(h)):S!=null&&a.removeAttribute(\"value\"),C==null&&R!=null&&(a.defaultChecked=!!R),C!=null&&(a.checked=C&&typeof C!=\"function\"&&typeof C!=\"symbol\"),te!=null&&typeof te!=\"function\"&&typeof te!=\"symbol\"&&typeof te!=\"boolean\"?a.name=\"\"+Lt(te):a.removeAttribute(\"name\")}function Wf(a,u,h,S,C,R,H,te){if(R!=null&&typeof R!=\"function\"&&typeof R!=\"symbol\"&&typeof R!=\"boolean\"&&(a.type=R),u!=null||h!=null){if(!(R!==\"submit\"&&R!==\"reset\"||u!=null))return;h=h!=null?\"\"+Lt(h):\"\",u=u!=null?\"\"+Lt(u):h,te||u===a.value||(a.value=u),a.defaultValue=u}S=S??C,S=typeof S!=\"function\"&&typeof S!=\"symbol\"&&!!S,a.checked=te?a.checked:!!S,a.defaultChecked=!!S,H!=null&&typeof H!=\"function\"&&typeof H!=\"symbol\"&&typeof H!=\"boolean\"&&(a.name=H)}function Yf(a,u,h){u===\"number\"&&go(a.ownerDocument)===a||a.defaultValue===\"\"+h||(a.defaultValue=\"\"+h)}function ms(a,u,h,S){if(a=a.options,u){u={};for(var C=0;C<h.length;C++)u[\"$\"+h[C]]=!0;for(h=0;h<a.length;h++)C=u.hasOwnProperty(\"$\"+a[h].value),a[h].selected!==C&&(a[h].selected=C),C&&S&&(a[h].defaultSelected=!0)}else{for(h=\"\"+Lt(h),u=null,C=0;C<a.length;C++){if(a[C].value===h){a[C].selected=!0,S&&(a[C].defaultSelected=!0);return}u!==null||a[C].disabled||(u=a[C])}u!==null&&(u.selected=!0)}}function Eg(a,u,h){if(u!=null&&(u=\"\"+Lt(u),u!==a.value&&(a.value=u),h==null)){a.defaultValue!==u&&(a.defaultValue=u);return}a.defaultValue=h!=null?\"\"+Lt(h):\"\"}function Rp(a,u,h,S){if(u==null){if(S!=null){if(h!=null)throw Error(r(92));if(he(S)){if(1<S.length)throw Error(r(93));S=S[0]}h=S}h==null&&(h=\"\"),u=h}h=Lt(u),a.defaultValue=h,S=a.textContent,S===h&&S!==\"\"&&S!==null&&(a.value=S)}function rl(a,u){if(u){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=u;return}}a.textContent=u}var Sg=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 Tg(a,u,h){var S=u.indexOf(\"--\")===0;h==null||typeof h==\"boolean\"||h===\"\"?S?a.setProperty(u,\"\"):u===\"float\"?a.cssFloat=\"\":a[u]=\"\":S?a.setProperty(u,h):typeof h!=\"number\"||h===0||Sg.has(u)?u===\"float\"?a.cssFloat=h:a[u]=(\"\"+h).trim():a[u]=h+\"px\"}function wg(a,u,h){if(u!=null&&typeof u!=\"object\")throw Error(r(62));if(a=a.style,h!=null){for(var S in h)!h.hasOwnProperty(S)||u!=null&&u.hasOwnProperty(S)||(S.indexOf(\"--\")===0?a.setProperty(S,\"\"):S===\"float\"?a.cssFloat=\"\":a[S]=\"\");for(var C in u)S=u[C],u.hasOwnProperty(C)&&h[C]!==S&&Tg(a,C,S)}else for(var R in u)u.hasOwnProperty(R)&&Tg(a,R,u[R])}function Mp(a){if(a.indexOf(\"-\")===-1)return!1;switch(a){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var gs=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\"]]),Jb=/^[\\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 Qf(a){return Jb.test(\"\"+a)?\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\":a}var Ql=null;function il(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Kl=null,Xl=null;function xg(a){var u=Mo(a);if(u&&(a=u.stateNode)){var h=a[xn]||null;e:switch(a=u.stateNode,u.type){case\"input\":if(nl(a,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),u=h.name,h.type===\"radio\"&&u!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name=\"'+to(\"\"+u)+'\"][type=\"radio\"]'),u=0;u<h.length;u++){var S=h[u];if(S!==a&&S.form===a.form){var C=S[xn]||null;if(!C)throw Error(r(90));nl(S,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(u=0;u<h.length;u++)S=h[u],S.form===a.form&&Yl(S)}break e;case\"textarea\":Eg(a,h.value,h.defaultValue);break e;case\"select\":u=h.value,u!=null&&ms(a,!!h.multiple,u,!1)}}}var Lp=!1;function Kf(a,u,h){if(Lp)return a(u,h);Lp=!0;try{var S=a(u);return S}finally{if(Lp=!1,(Kl!==null||Xl!==null)&&(x1(),Kl&&(u=Kl,a=Xl,Xl=Kl=null,xg(u),a)))for(u=0;u<a.length;u++)xg(a[u])}}function Zl(a,u){var h=a.stateNode;if(h===null)return null;var S=h[xn]||null;if(S===null)return null;h=S[u];e:switch(u){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(S=!S.disabled)||(a=a.type,S=!(a===\"button\"||a===\"input\"||a===\"select\"||a===\"textarea\")),a=!S;break e;default:a=!1}if(a)return null;if(h&&typeof h!=\"function\")throw Error(r(231,u,typeof h));return h}var Ip=!1;if(di)try{var Jl={};Object.defineProperty(Jl,\"passive\",{get:function(){Ip=!0}}),window.addEventListener(\"test\",Jl,Jl),window.removeEventListener(\"test\",Jl,Jl)}catch{Ip=!1}var Ia=null,eu=null,ol=null;function Xf(){if(ol)return ol;var a,u=eu,h=u.length,S,C=\"value\"in Ia?Ia.value:Ia.textContent,R=C.length;for(a=0;a<h&&u[a]===C[a];a++);var H=h-a;for(S=1;S<=H&&u[h-S]===C[R-S];S++);return ol=C.slice(a,1<S?1-S:void 0)}function dc(a){var u=a.keyCode;return\"charCode\"in a?(a=a.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),32<=a||a===13?a:0}function pc(){return!0}function hc(){return!1}function Bi(a){function u(h,S,C,R,H){this._reactName=h,this._targetInst=C,this.type=S,this.nativeEvent=R,this.target=H,this.currentTarget=null;for(var te in a)a.hasOwnProperty(te)&&(h=a[te],this[te]=h?h(R):R[te]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?pc:hc,this.isPropagationStopped=hc,this}return q(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!=\"unknown\"&&(h.returnValue=!1),this.isDefaultPrevented=pc)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!=\"unknown\"&&(h.cancelBubble=!0),this.isPropagationStopped=pc)},persist:function(){},isPersistent:pc}),u}var vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=Bi(vs),mc=q({},vs,{view:0,detail:0}),e1=Bi(mc),gc,Zf,vo,tu=q({},mc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jp,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return\"movementX\"in a?a.movementX:(a!==vo&&(vo&&a.type===\"mousemove\"?(gc=a.screenX-vo.screenX,Zf=a.screenY-vo.screenY):Zf=gc=0,vo=a),gc)},movementY:function(a){return\"movementY\"in a?a.movementY:Zf}}),ia=Bi(tu),Jf=q({},tu,{dataTransfer:0}),Fp=Bi(Jf),vc=q({},mc,{relatedTarget:0}),Pp=Bi(vc),t1=q({},vs,{animationName:0,elapsedTime:0,pseudoElement:0}),a_=Bi(t1),s_=q({},vs,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),Cg=Bi(s_),_g=q({},vs,{data:0}),Ng=Bi(_g),n1={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},r1={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\"},i1={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Ag(a){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(a):(a=i1[a])?!!u[a]:!1}function jp(){return Ag}var Og=q({},mc,{key:function(a){if(a.key){var u=n1[a.key]||a.key;if(u!==\"Unidentified\")return u}return a.type===\"keypress\"?(a=dc(a),a===13?\"Enter\":String.fromCharCode(a)):a.type===\"keydown\"||a.type===\"keyup\"?r1[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jp,charCode:function(a){return a.type===\"keypress\"?dc(a):0},keyCode:function(a){return a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0},which:function(a){return a.type===\"keypress\"?dc(a):a.type===\"keydown\"||a.type===\"keyup\"?a.keyCode:0}}),ed=Bi(Og),yc=q({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dg=Bi(yc),o1=q({},mc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jp}),a1=Bi(o1),td=q({},vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lr=Bi(td),s1=q({},tu,{deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in a?-a.wheelDeltaX:0},deltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),kg=Bi(s1),bc=q({},vs,{newState:0,oldState:0}),l1=Bi(bc),Rg=[9,13,27,32],Vp=di&&\"CompositionEvent\"in window,al=null;di&&\"documentMode\"in document&&(al=document.documentMode);var Mg=di&&\"TextEvent\"in window&&!al,Lg=di&&(!Vp||al&&8<al&&11>=al),Ig=\" \",Up=!1;function qp(a,u){switch(a){case\"keyup\":return Rg.indexOf(u.keyCode)!==-1;case\"keydown\":return u.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Fg(a){return a=a.detail,typeof a==\"object\"&&\"data\"in a?a.data:null}var oa=!1;function Fa(a,u){switch(a){case\"compositionend\":return Fg(u);case\"keypress\":return u.which!==32?null:(Up=!0,Ig);case\"textInput\":return a=u.data,a===Ig&&Up?null:a;default:return null}}function nd(a,u){if(oa)return a===\"compositionend\"||!Vp&&qp(a,u)?(a=Xf(),ol=eu=Ia=null,oa=!1,a):null;switch(a){case\"paste\":return null;case\"keypress\":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case\"compositionend\":return Lg&&u.locale!==\"ko\"?null:u.data;default:return null}}var Bp={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 $p(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u===\"input\"?!!Bp[a.type]:u===\"textarea\"}function Lo(a,u,h,S){Kl?Xl?Xl.push(S):Xl=[S]:Kl=S,u=O1(u,\"onChange\"),0<u.length&&(h=new $i(\"onChange\",\"change\",null,h,S),a.push({event:h,listeners:u}))}var Io=null,sl=null;function u1(a){ij(a,0)}function Ec(a){var u=In(a);if(Yl(u))return a}function Pg(a,u){if(a===\"change\")return u}var zp=!1;if(di){var Sc;if(di){var ys=\"oninput\"in document;if(!ys){var Fo=document.createElement(\"div\");Fo.setAttribute(\"oninput\",\"return;\"),ys=typeof Fo.oninput==\"function\"}Sc=ys}else Sc=!1;zp=Sc&&(!document.documentMode||9<document.documentMode)}function jg(){Io&&(Io.detachEvent(\"onpropertychange\",Hp),sl=Io=null)}function Hp(a){if(a.propertyName===\"value\"&&Ec(sl)){var u=[];Lo(u,sl,a,il(a)),Kf(u1,u)}}function c1(a,u,h){a===\"focusin\"?(jg(),Io=u,sl=h,Io.attachEvent(\"onpropertychange\",Hp)):a===\"focusout\"&&jg()}function f1(a){if(a===\"selectionchange\"||a===\"keyup\"||a===\"keydown\")return Ec(sl)}function d1(a,u){if(a===\"click\")return Ec(u)}function Vg(a,u){if(a===\"input\"||a===\"change\")return Ec(u)}function Ug(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var Zr=typeof Object.is==\"function\"?Object.is:Ug;function nu(a,u){if(Zr(a,u))return!0;if(typeof a!=\"object\"||a===null||typeof u!=\"object\"||u===null)return!1;var h=Object.keys(a),S=Object.keys(u);if(h.length!==S.length)return!1;for(S=0;S<h.length;S++){var C=h[S];if(!tt.call(u,C)||!Zr(a[C],u[C]))return!1}return!0}function Gp(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rd(a,u){var h=Gp(a);a=0;for(var S;h;){if(h.nodeType===3){if(S=a+h.textContent.length,a<=u&&S>=u)return{node:h,offset:u-a};a=S}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Gp(h)}}function Tc(a,u){return a&&u?a===u?!0:a&&a.nodeType===3?!1:u&&u.nodeType===3?Tc(a,u.parentNode):\"contains\"in a?a.contains(u):a.compareDocumentPosition?!!(a.compareDocumentPosition(u)&16):!1:!1}function Wp(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var u=go(a.document);u instanceof a.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href==\"string\"}catch{h=!1}if(h)a=u.contentWindow;else break;u=go(a.document)}return u}function ru(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&(u===\"input\"&&(a.type===\"text\"||a.type===\"search\"||a.type===\"tel\"||a.type===\"url\"||a.type===\"password\")||u===\"textarea\"||a.contentEditable===\"true\")}function Po(a,u){var h=Wp(u);u=a.focusedElem;var S=a.selectionRange;if(h!==u&&u&&u.ownerDocument&&Tc(u.ownerDocument.documentElement,u)){if(S!==null&&ru(u)){if(a=S.start,h=S.end,h===void 0&&(h=a),\"selectionStart\"in u)u.selectionStart=a,u.selectionEnd=Math.min(h,u.value.length);else if(h=(a=u.ownerDocument||document)&&a.defaultView||window,h.getSelection){h=h.getSelection();var C=u.textContent.length,R=Math.min(S.start,C);S=S.end===void 0?R:Math.min(S.end,C),!h.extend&&R>S&&(C=S,S=R,R=C),C=rd(u,R);var H=rd(u,S);C&&H&&(h.rangeCount!==1||h.anchorNode!==C.node||h.anchorOffset!==C.offset||h.focusNode!==H.node||h.focusOffset!==H.offset)&&(a=a.createRange(),a.setStart(C.node,C.offset),h.removeAllRanges(),R>S?(h.addRange(a),h.extend(H.node,H.offset)):(a.setEnd(H.node,H.offset),h.addRange(a)))}}for(a=[],h=u;h=h.parentNode;)h.nodeType===1&&a.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof u.focus==\"function\"&&u.focus(),u=0;u<a.length;u++)h=a[u],h.element.scrollLeft=h.left,h.element.scrollTop=h.top}}var qg=di&&\"documentMode\"in document&&11>=document.documentMode,bs=null,wc=null,iu=null,id=!1;function od(a,u,h){var S=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;id||bs==null||bs!==go(S)||(S=bs,\"selectionStart\"in S&&ru(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),iu&&nu(iu,S)||(iu=S,S=O1(wc,\"onSelect\"),0<S.length&&(u=new $i(\"onSelect\",\"select\",null,u,h),a.push({event:u,listeners:S}),u.target=bs)))}function ll(a,u){var h={};return h[a.toLowerCase()]=u.toLowerCase(),h[\"Webkit\"+a]=\"webkit\"+u,h[\"Moz\"+a]=\"moz\"+u,h}var ou={animationend:ll(\"Animation\",\"AnimationEnd\"),animationiteration:ll(\"Animation\",\"AnimationIteration\"),animationstart:ll(\"Animation\",\"AnimationStart\"),transitionrun:ll(\"Transition\",\"TransitionRun\"),transitionstart:ll(\"Transition\",\"TransitionStart\"),transitioncancel:ll(\"Transition\",\"TransitionCancel\"),transitionend:ll(\"Transition\",\"TransitionEnd\")},Yp={},ul={};di&&(ul=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),\"TransitionEvent\"in window||delete ou.transitionend.transition);function yo(a){if(Yp[a])return Yp[a];if(!ou[a])return a;var u=ou[a],h;for(h in u)if(u.hasOwnProperty(h)&&h in ul)return Yp[a]=u[h];return a}var cl=yo(\"animationend\"),ad=yo(\"animationiteration\"),sd=yo(\"animationstart\"),Bg=yo(\"transitionrun\"),Qp=yo(\"transitionstart\"),fl=yo(\"transitioncancel\"),Es=yo(\"transitionend\"),hi=new Map,Pa=\"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 scrollEnd toggle touchMove waiting wheel\".split(\" \");function Hr(a,u){hi.set(a,u),Yt(u,[a])}var Ai=[],au=0,ld=0;function Ss(){for(var a=au,u=ld=au=0;u<a;){var h=Ai[u];Ai[u++]=null;var S=Ai[u];Ai[u++]=null;var C=Ai[u];Ai[u++]=null;var R=Ai[u];if(Ai[u++]=null,S!==null&&C!==null){var H=S.pending;H===null?C.next=C:(C.next=H.next,H.next=C),S.pending=C}R!==0&&$g(h,C,R)}}function xc(a,u,h,S){Ai[au++]=a,Ai[au++]=u,Ai[au++]=h,Ai[au++]=S,ld|=S,a.lanes|=S,a=a.alternate,a!==null&&(a.lanes|=S)}function Cc(a,u,h,S){return xc(a,u,h,S),su(a)}function jo(a,u){return xc(a,null,null,u),su(a)}function $g(a,u,h){a.lanes|=h;var S=a.alternate;S!==null&&(S.lanes|=h);for(var C=!1,R=a.return;R!==null;)R.childLanes|=h,S=R.alternate,S!==null&&(S.childLanes|=h),R.tag===22&&(a=R.stateNode,a===null||a._visibility&1||(C=!0)),a=R,R=R.return;C&&u!==null&&a.tag===3&&(R=a.stateNode,C=31-ut(h),R=R.hiddenUpdates,a=R[C],a===null?R[C]=[u]:a.push(u),u.lane=h|536870912)}function su(a){if(50<Nv)throw Nv=0,v_=null,Error(r(185));for(var u=a.return;u!==null;)a=u,u=a.return;return a.tag===3?a.stateNode:null}var dl={},ud=new WeakMap;function zi(a,u){if(typeof a==\"object\"&&a!==null){var h=ud.get(a);return h!==void 0?h:(u={value:a,source:u,stack:ie(u)},ud.set(a,u),u)}return{value:a,source:u,stack:ie(u)}}var Vo=[],ja=0,_c=null,pl=0,bo=[],Eo=0,hl=null,Uo=1,qo=\"\";function So(a,u){Vo[ja++]=pl,Vo[ja++]=_c,_c=a,pl=u}function lu(a,u,h){bo[Eo++]=Uo,bo[Eo++]=qo,bo[Eo++]=hl,hl=a;var S=Uo;a=qo;var C=32-ut(S)-1;S&=~(1<<C),h+=1;var R=32-ut(u)+C;if(30<R){var H=C-C%5;R=(S&(1<<H)-1).toString(32),S>>=H,C-=H,Uo=1<<32-ut(u)+C|h<<C|S,qo=R+a}else Uo=1<<R|h<<C|S,qo=a}function Kp(a){a.return!==null&&(So(a,1),lu(a,1,0))}function uu(a){for(;a===_c;)_c=Vo[--ja],Vo[ja]=null,pl=Vo[--ja],Vo[ja]=null;for(;a===hl;)hl=bo[--Eo],bo[Eo]=null,qo=bo[--Eo],bo[Eo]=null,Uo=bo[--Eo],bo[Eo]=null}var mi=null,vr=null,vn=!1,Jr=null,Hi=!1,Ts=Error(r(519));function aa(a){var u=Error(r(418,\"\"));throw cd(zi(u,a)),Ts}function ml(a){var u=a.stateNode,h=a.type,S=a.memoizedProps;switch(u[nn]=a,u[xn]=S,h){case\"dialog\":bn(\"cancel\",u),bn(\"close\",u);break;case\"iframe\":case\"object\":case\"embed\":bn(\"load\",u);break;case\"video\":case\"audio\":for(h=0;h<Ov.length;h++)bn(Ov[h],u);break;case\"source\":bn(\"error\",u);break;case\"img\":case\"image\":case\"link\":bn(\"error\",u),bn(\"load\",u);break;case\"details\":bn(\"toggle\",u);break;case\"input\":bn(\"invalid\",u),Wf(u,S.value,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name,!0),pi(u);break;case\"select\":bn(\"invalid\",u);break;case\"textarea\":bn(\"invalid\",u),Rp(u,S.value,S.defaultValue,S.children),pi(u)}h=S.children,typeof h!=\"string\"&&typeof h!=\"number\"&&typeof h!=\"bigint\"||u.textContent===\"\"+h||S.suppressHydrationWarning===!0||lj(u.textContent,h)?(S.popover!=null&&(bn(\"beforetoggle\",u),bn(\"toggle\",u)),S.onScroll!=null&&bn(\"scroll\",u),S.onScrollEnd!=null&&bn(\"scrollend\",u),S.onClick!=null&&(u.onclick=D1),u=!0):u=!1,u||aa(a)}function Xp(a){for(mi=a.return;mi;)switch(mi.tag){case 3:case 27:Hi=!0;return;case 5:case 13:Hi=!1;return;default:mi=mi.return}}function Nc(a){if(a!==mi)return!1;if(!vn)return Xp(a),vn=!0,!1;var u=!1,h;if((h=a.tag!==3&&a.tag!==27)&&((h=a.tag===5)&&(h=a.type,h=!(h!==\"form\"&&h!==\"button\")||L_(a.type,a.memoizedProps)),h=!h),h&&(u=!0),u&&vr&&aa(a),Xp(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,u=0;a;){if(a.nodeType===8)if(h=a.data,h===\"/$\"){if(u===0){vr=Ps(a.nextSibling);break e}u--}else h!==\"$\"&&h!==\"$!\"&&h!==\"$?\"||u++;a=a.nextSibling}vr=null}}else vr=mi?Ps(a.stateNode.nextSibling):null;return!0}function cu(){vr=mi=null,vn=!1}function cd(a){Jr===null?Jr=[a]:Jr.push(a)}var Bo=Error(r(460)),ws=Error(r(474)),Zp={then:function(){}};function zg(a){return a=a.status,a===\"fulfilled\"||a===\"rejected\"}function fd(){}function Hg(a,u,h){switch(h=a[h],h===void 0?a.push(u):h!==u&&(u.then(fd,fd),u=h),u.status){case\"fulfilled\":return u.value;case\"rejected\":throw a=u.reason,a===Bo?Error(r(483)):a;default:if(typeof u.status==\"string\")u.then(fd,fd);else{if(a=or,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=u,a.status=\"pending\",a.then(function(S){if(u.status===\"pending\"){var C=u;C.status=\"fulfilled\",C.value=S}},function(S){if(u.status===\"pending\"){var C=u;C.status=\"rejected\",C.reason=S}})}switch(u.status){case\"fulfilled\":return u.value;case\"rejected\":throw a=u.reason,a===Bo?Error(r(483)):a}throw Ac=u,Bo}}var Ac=null;function Gg(){if(Ac===null)throw Error(r(459));var a=Ac;return Ac=null,a}var Ir=null,nr=0;function Fr(a){var u=nr;return nr+=1,Ir===null&&(Ir=[]),Hg(Ir,a,u)}function rr(a,u){u=u.props.ref,a.ref=u!==void 0?u:null}function xs(a,u){throw u.$$typeof===o?Error(r(525)):(a=Object.prototype.toString.call(u),Error(r(31,a===\"[object Object]\"?\"object with keys {\"+Object.keys(u).join(\", \")+\"}\":a)))}function Wg(a){var u=a._init;return u(a._payload)}function dd(a){function u(xe,Ee){if(a){var Ne=xe.deletions;Ne===null?(xe.deletions=[Ee],xe.flags|=16):Ne.push(Ee)}}function h(xe,Ee){if(!a)return null;for(;Ee!==null;)u(xe,Ee),Ee=Ee.sibling;return null}function S(xe){for(var Ee=new Map;xe!==null;)xe.key!==null?Ee.set(xe.key,xe):Ee.set(xe.index,xe),xe=xe.sibling;return Ee}function C(xe,Ee){return xe=Kc(xe,Ee),xe.index=0,xe.sibling=null,xe}function R(xe,Ee,Ne){return xe.index=Ne,a?(Ne=xe.alternate,Ne!==null?(Ne=Ne.index,Ne<Ee?(xe.flags|=33554434,Ee):Ne):(xe.flags|=33554434,Ee)):(xe.flags|=1048576,Ee)}function H(xe){return a&&xe.alternate===null&&(xe.flags|=33554434),xe}function te(xe,Ee,Ne,He){return Ee===null||Ee.tag!==6?(Ee=u_(Ne,xe.mode,He),Ee.return=xe,Ee):(Ee=C(Ee,Ne),Ee.return=xe,Ee)}function fe(xe,Ee,Ne,He){var St=Ne.type;return St===p?Be(xe,Ee,Ne.props.children,He,Ne.key):Ee!==null&&(Ee.elementType===St||typeof St==\"object\"&&St!==null&&St.$$typeof===A&&Wg(St)===Ee.type)?(Ee=C(Ee,Ne.props),rr(Ee,Ne),Ee.return=xe,Ee):(Ee=b1(Ne.type,Ne.key,Ne.props,null,xe.mode,He),rr(Ee,Ne),Ee.return=xe,Ee)}function Se(xe,Ee,Ne,He){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==Ne.containerInfo||Ee.stateNode.implementation!==Ne.implementation?(Ee=c_(Ne,xe.mode,He),Ee.return=xe,Ee):(Ee=C(Ee,Ne.children||[]),Ee.return=xe,Ee)}function Be(xe,Ee,Ne,He,St){return Ee===null||Ee.tag!==7?(Ee=kd(Ne,xe.mode,He,St),Ee.return=xe,Ee):(Ee=C(Ee,Ne),Ee.return=xe,Ee)}function Ke(xe,Ee,Ne){if(typeof Ee==\"string\"&&Ee!==\"\"||typeof Ee==\"number\"||typeof Ee==\"bigint\")return Ee=u_(\"\"+Ee,xe.mode,Ne),Ee.return=xe,Ee;if(typeof Ee==\"object\"&&Ee!==null){switch(Ee.$$typeof){case l:return Ne=b1(Ee.type,Ee.key,Ee.props,null,xe.mode,Ne),rr(Ne,Ee),Ne.return=xe,Ne;case c:return Ee=c_(Ee,xe.mode,Ne),Ee.return=xe,Ee;case A:var He=Ee._init;return Ee=He(Ee._payload),Ke(xe,Ee,Ne)}if(he(Ee)||V(Ee))return Ee=kd(Ee,xe.mode,Ne,null),Ee.return=xe,Ee;if(typeof Ee.then==\"function\")return Ke(xe,Fr(Ee),Ne);if(Ee.$$typeof===y)return Ke(xe,Yc(xe,Ee),Ne);xs(xe,Ee)}return null}function ke(xe,Ee,Ne,He){var St=Ee!==null?Ee.key:null;if(typeof Ne==\"string\"&&Ne!==\"\"||typeof Ne==\"number\"||typeof Ne==\"bigint\")return St!==null?null:te(xe,Ee,\"\"+Ne,He);if(typeof Ne==\"object\"&&Ne!==null){switch(Ne.$$typeof){case l:return Ne.key===St?fe(xe,Ee,Ne,He):null;case c:return Ne.key===St?Se(xe,Ee,Ne,He):null;case A:return St=Ne._init,Ne=St(Ne._payload),ke(xe,Ee,Ne,He)}if(he(Ne)||V(Ne))return St!==null?null:Be(xe,Ee,Ne,He,null);if(typeof Ne.then==\"function\")return ke(xe,Ee,Fr(Ne),He);if(Ne.$$typeof===y)return ke(xe,Ee,Yc(xe,Ne),He);xs(xe,Ne)}return null}function Pe(xe,Ee,Ne,He,St){if(typeof He==\"string\"&&He!==\"\"||typeof He==\"number\"||typeof He==\"bigint\")return xe=xe.get(Ne)||null,te(Ee,xe,\"\"+He,St);if(typeof He==\"object\"&&He!==null){switch(He.$$typeof){case l:return xe=xe.get(He.key===null?Ne:He.key)||null,fe(Ee,xe,He,St);case c:return xe=xe.get(He.key===null?Ne:He.key)||null,Se(Ee,xe,He,St);case A:var ln=He._init;return He=ln(He._payload),Pe(xe,Ee,Ne,He,St)}if(he(He)||V(He))return xe=xe.get(Ne)||null,Be(Ee,xe,He,St,null);if(typeof He.then==\"function\")return Pe(xe,Ee,Ne,Fr(He),St);if(He.$$typeof===y)return Pe(xe,Ee,Ne,Yc(Ee,He),St);xs(Ee,He)}return null}function _t(xe,Ee,Ne,He){for(var St=null,ln=null,Ot=Ee,It=Ee=0,Mi=null;Ot!==null&&It<Ne.length;It++){Ot.index>It?(Mi=Ot,Ot=null):Mi=Ot.sibling;var An=ke(xe,Ot,Ne[It],He);if(An===null){Ot===null&&(Ot=Mi);break}a&&Ot&&An.alternate===null&&u(xe,Ot),Ee=R(An,Ee,It),ln===null?St=An:ln.sibling=An,ln=An,Ot=Mi}if(It===Ne.length)return h(xe,Ot),vn&&So(xe,It),St;if(Ot===null){for(;It<Ne.length;It++)Ot=Ke(xe,Ne[It],He),Ot!==null&&(Ee=R(Ot,Ee,It),ln===null?St=Ot:ln.sibling=Ot,ln=Ot);return vn&&So(xe,It),St}for(Ot=S(Ot);It<Ne.length;It++)Mi=Pe(Ot,xe,It,Ne[It],He),Mi!==null&&(a&&Mi.alternate!==null&&Ot.delete(Mi.key===null?It:Mi.key),Ee=R(Mi,Ee,It),ln===null?St=Mi:ln.sibling=Mi,ln=Mi);return a&&Ot.forEach(function(rf){return u(xe,rf)}),vn&&So(xe,It),St}function zt(xe,Ee,Ne,He){if(Ne==null)throw Error(r(151));for(var St=null,ln=null,Ot=Ee,It=Ee=0,Mi=null,An=Ne.next();Ot!==null&&!An.done;It++,An=Ne.next()){Ot.index>It?(Mi=Ot,Ot=null):Mi=Ot.sibling;var rf=ke(xe,Ot,An.value,He);if(rf===null){Ot===null&&(Ot=Mi);break}a&&Ot&&rf.alternate===null&&u(xe,Ot),Ee=R(rf,Ee,It),ln===null?St=rf:ln.sibling=rf,ln=rf,Ot=Mi}if(An.done)return h(xe,Ot),vn&&So(xe,It),St;if(Ot===null){for(;!An.done;It++,An=Ne.next())An=Ke(xe,An.value,He),An!==null&&(Ee=R(An,Ee,It),ln===null?St=An:ln.sibling=An,ln=An);return vn&&So(xe,It),St}for(Ot=S(Ot);!An.done;It++,An=Ne.next())An=Pe(Ot,xe,It,An.value,He),An!==null&&(a&&An.alternate!==null&&Ot.delete(An.key===null?It:An.key),Ee=R(An,Ee,It),ln===null?St=An:ln.sibling=An,ln=An);return a&&Ot.forEach(function(Sie){return u(xe,Sie)}),vn&&So(xe,It),St}function Ur(xe,Ee,Ne,He){if(typeof Ne==\"object\"&&Ne!==null&&Ne.type===p&&Ne.key===null&&(Ne=Ne.props.children),typeof Ne==\"object\"&&Ne!==null){switch(Ne.$$typeof){case l:e:{for(var St=Ne.key;Ee!==null;){if(Ee.key===St){if(St=Ne.type,St===p){if(Ee.tag===7){h(xe,Ee.sibling),He=C(Ee,Ne.props.children),He.return=xe,xe=He;break e}}else if(Ee.elementType===St||typeof St==\"object\"&&St!==null&&St.$$typeof===A&&Wg(St)===Ee.type){h(xe,Ee.sibling),He=C(Ee,Ne.props),rr(He,Ne),He.return=xe,xe=He;break e}h(xe,Ee);break}else u(xe,Ee);Ee=Ee.sibling}Ne.type===p?(He=kd(Ne.props.children,xe.mode,He,Ne.key),He.return=xe,xe=He):(He=b1(Ne.type,Ne.key,Ne.props,null,xe.mode,He),rr(He,Ne),He.return=xe,xe=He)}return H(xe);case c:e:{for(St=Ne.key;Ee!==null;){if(Ee.key===St)if(Ee.tag===4&&Ee.stateNode.containerInfo===Ne.containerInfo&&Ee.stateNode.implementation===Ne.implementation){h(xe,Ee.sibling),He=C(Ee,Ne.children||[]),He.return=xe,xe=He;break e}else{h(xe,Ee);break}else u(xe,Ee);Ee=Ee.sibling}He=c_(Ne,xe.mode,He),He.return=xe,xe=He}return H(xe);case A:return St=Ne._init,Ne=St(Ne._payload),Ur(xe,Ee,Ne,He)}if(he(Ne))return _t(xe,Ee,Ne,He);if(V(Ne)){if(St=V(Ne),typeof St!=\"function\")throw Error(r(150));return Ne=St.call(Ne),zt(xe,Ee,Ne,He)}if(typeof Ne.then==\"function\")return Ur(xe,Ee,Fr(Ne),He);if(Ne.$$typeof===y)return Ur(xe,Ee,Yc(xe,Ne),He);xs(xe,Ne)}return typeof Ne==\"string\"&&Ne!==\"\"||typeof Ne==\"number\"||typeof Ne==\"bigint\"?(Ne=\"\"+Ne,Ee!==null&&Ee.tag===6?(h(xe,Ee.sibling),He=C(Ee,Ne),He.return=xe,xe=He):(h(xe,Ee),He=u_(Ne,xe.mode,He),He.return=xe,xe=He),H(xe)):h(xe,Ee)}return function(xe,Ee,Ne,He){try{nr=0;var St=Ur(xe,Ee,Ne,He);return Ir=null,St}catch(Ot){if(Ot===Bo)throw Ot;var ln=Ga(29,Ot,null,xe.mode);return ln.lanes=He,ln.return=xe,ln}finally{}}}var gl=dd(!0),Yg=dd(!1),fu=$e(null),du=$e(0);function Jp(a,u){a=Du,dt(du,a),dt(fu,u),Du=a|u.baseLanes}function Oc(){dt(du,Du),dt(fu,fu.current)}function eh(){Du=du.current,qe(fu),qe(du)}var Gi=$e(null),To=null;function Va(a){var u=a.alternate;dt(ir,ir.current&1),dt(Gi,a),To===null&&(u===null||fu.current!==null||u.memoizedState!==null)&&(To=a)}function th(a){if(a.tag===22){if(dt(ir,ir.current),dt(Gi,a),To===null){var u=a.alternate;u!==null&&u.memoizedState!==null&&(To=a)}}else sa()}function sa(){dt(ir,ir.current),dt(Gi,Gi.current)}function la(a){qe(Gi),To===a&&(To=null),qe(ir)}var ir=$e(0);function pd(a){for(var u=a;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data===\"$?\"||h.data===\"$!\"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var nh=typeof AbortController<\"u\"?AbortController:function(){var a=[],u=this.signal={aborted:!1,addEventListener:function(h,S){a.push(S)}};this.abort=function(){u.aborted=!0,a.forEach(function(h){return h()})}},Cs=e.unstable_scheduleCallback,Qg=e.unstable_NormalPriority,Pr={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hd(){return{controller:new nh,data:new Map,refCount:0}}function gi(a){a.refCount--,a.refCount===0&&Cs(Qg,function(){a.controller.abort()})}var an=null,no=0,ro=0,io=null;function Kg(a,u){if(an===null){var h=an=[];no=0,ro=C_(),io={status:\"pending\",value:void 0,then:function(S){h.push(S)}}}return no++,u.then(md,md),u}function md(){if(--no===0&&an!==null){io!==null&&(io.status=\"fulfilled\");var a=an;an=null,ro=0,io=null;for(var u=0;u<a.length;u++)(0,a[u])()}}function Xg(a,u){var h=[],S={status:\"pending\",value:null,reason:null,then:function(C){h.push(C)}};return a.then(function(){S.status=\"fulfilled\",S.value=u;for(var C=0;C<h.length;C++)(0,h[C])(u)},function(C){for(S.status=\"rejected\",S.reason=C,C=0;C<h.length;C++)(0,h[C])(void 0)}),S}var Zg=j.S;j.S=function(a,u){typeof u==\"object\"&&u!==null&&typeof u.then==\"function\"&&Kg(a,u),Zg!==null&&Zg(a,u)};var Ua=$e(null);function vl(){var a=Ua.current;return a!==null?a:or.pooledCache}function Dc(a,u){u===null?dt(Ua,Ua.current):dt(Ua,u.pool)}function gd(){var a=vl();return a===null?null:{parent:Pr._currentValue,pool:a}}var Oi=0,Gt=null,Nn=null,Cr=null,yl=!1,_s=!1,Ns=!1,vd=0,pu=0,hu=null,p1=0;function Gn(){throw Error(r(321))}function yd(a,u){if(u===null)return!1;for(var h=0;h<u.length&&h<a.length;h++)if(!Zr(a[h],u[h]))return!1;return!0}function rh(a,u,h,S,C,R){return Oi=R,Gt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,j.H=a===null||a.memoizedState===null?wo:ca,Ns=!1,R=h(S,C),Ns=!1,_s&&(R=ih(u,h,S,C)),Jg(a),R}function Jg(a){j.H=oo;var u=Nn!==null&&Nn.next!==null;if(Oi=0,Cr=Nn=Gt=null,yl=!1,pu=0,hu=null,u)throw Error(r(300));a===null||jr||(a=a.dependencies,a!==null&&Wc(a)&&(jr=!0))}function ih(a,u,h,S){Gt=a;var C=0;do{if(_s&&(hu=null),pu=0,_s=!1,25<=C)throw Error(r(301));if(C+=1,Cr=Nn=null,a.updateQueue!=null){var R=a.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}j.H=$a,R=u(h,S)}while(_s);return R}function mu(){var a=j.H,u=a.useState()[0];return u=typeof u.then==\"function\"?vu(u):u,a=a.useState()[0],(Nn!==null?Nn.memoizedState:null)!==a&&(Gt.flags|=1024),u}function kc(){var a=vd!==0;return vd=0,a}function gu(a,u,h){u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~h}function bd(a){if(yl){for(a=a.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}yl=!1}Oi=0,Cr=Nn=Gt=null,_s=!1,pu=vd=0,hu=null}function vi(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?Gt.memoizedState=Cr=a:Cr=Cr.next=a,Cr}function yr(){if(Nn===null){var a=Gt.alternate;a=a!==null?a.memoizedState:null}else a=Nn.next;var u=Cr===null?Gt.memoizedState:Cr.next;if(u!==null)Cr=u,Nn=a;else{if(a===null)throw Gt.alternate===null?Error(r(467)):Error(r(310));Nn=a,a={memoizedState:Nn.memoizedState,baseState:Nn.baseState,baseQueue:Nn.baseQueue,queue:Nn.queue,next:null},Cr===null?Gt.memoizedState=Cr=a:Cr=Cr.next=a}return Cr}var Ed;Ed=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function vu(a){var u=pu;return pu+=1,hu===null&&(hu=[]),a=Hg(hu,a,u),u=Gt,(Cr===null?u.memoizedState:Cr.next)===null&&(u=u.alternate,j.H=u===null||u.memoizedState===null?wo:ca),a}function _r(a){if(a!==null&&typeof a==\"object\"){if(typeof a.then==\"function\")return vu(a);if(a.$$typeof===y)return ei(a)}throw Error(r(438,String(a)))}function yu(a){var u=null,h=Gt.updateQueue;if(h!==null&&(u=h.memoCache),u==null){var S=Gt.alternate;S!==null&&(S=S.updateQueue,S!==null&&(S=S.memoCache,S!=null&&(u={data:S.data.map(function(C){return C.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),h===null&&(h=Ed(),Gt.updateQueue=h),h.memoCache=u,h=u.data[u.index],h===void 0)for(h=u.data[u.index]=Array(a),S=0;S<a;S++)h[S]=_;return u.index++,h}function ua(a,u){return typeof u==\"function\"?u(a):u}function Rc(a){var u=yr();return Sd(u,Nn,a)}function Sd(a,u,h){var S=a.queue;if(S===null)throw Error(r(311));S.lastRenderedReducer=h;var C=a.baseQueue,R=S.pending;if(R!==null){if(C!==null){var H=C.next;C.next=R.next,R.next=H}u.baseQueue=C=R,S.pending=null}if(R=a.baseState,C===null)a.memoizedState=R;else{u=C.next;var te=H=null,fe=null,Se=u,Be=!1;do{var Ke=Se.lane&-536870913;if(Ke!==Se.lane?(wn&Ke)===Ke:(Oi&Ke)===Ke){var ke=Se.revertLane;if(ke===0)fe!==null&&(fe=fe.next={lane:0,revertLane:0,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),Ke===ro&&(Be=!0);else if((Oi&ke)===ke){Se=Se.next,ke===ro&&(Be=!0);continue}else Ke={lane:0,revertLane:Se.revertLane,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},fe===null?(te=fe=Ke,H=R):fe=fe.next=Ke,Gt.lanes|=ke,Xc|=ke;Ke=Se.action,Ns&&h(R,Ke),R=Se.hasEagerState?Se.eagerState:h(R,Ke)}else ke={lane:Ke,revertLane:Se.revertLane,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},fe===null?(te=fe=ke,H=R):fe=fe.next=ke,Gt.lanes|=Ke,Xc|=Ke;Se=Se.next}while(Se!==null&&Se!==u);if(fe===null?H=R:fe.next=te,!Zr(R,a.memoizedState)&&(jr=!0,Be&&(h=io,h!==null)))throw h;a.memoizedState=R,a.baseState=H,a.baseQueue=fe,S.lastRenderedState=R}return C===null&&(S.lanes=0),[a.memoizedState,S.dispatch]}function As(a){var u=yr(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var S=h.dispatch,C=h.pending,R=u.memoizedState;if(C!==null){h.pending=null;var H=C=C.next;do R=a(R,H.action),H=H.next;while(H!==C);Zr(R,u.memoizedState)||(jr=!0),u.memoizedState=R,u.baseQueue===null&&(u.baseState=R),h.lastRenderedState=R}return[R,S]}function Mc(a,u,h){var S=Gt,C=yr(),R=vn;if(R){if(h===void 0)throw Error(r(407));h=h()}else h=u();var H=!Zr((Nn||C).memoizedState,h);if(H&&(C.memoizedState=h,jr=!0),C=C.queue,wd(sh.bind(null,S,C,a),[a]),C.getSnapshot!==u||H||Cr!==null&&Cr.memoizedState.tag&1){if(S.flags|=2048,wu(9,ah.bind(null,S,C,h,u),{destroy:void 0},null),or===null)throw Error(r(349));R||(Oi&60)!==0||oh(S,u,h)}return h}function oh(a,u,h){a.flags|=16384,a={getSnapshot:u,value:h},u=Gt.updateQueue,u===null?(u=Ed(),Gt.updateQueue=u,u.stores=[a]):(h=u.stores,h===null?u.stores=[a]:h.push(a))}function ah(a,u,h,S){u.value=h,u.getSnapshot=S,bl(u)&&lh(a)}function sh(a,u,h){return h(function(){bl(u)&&lh(a)})}function bl(a){var u=a.getSnapshot;a=a.value;try{var h=u();return!Zr(a,h)}catch{return!0}}function lh(a){var u=jo(a,2);u!==null&&_o(u,a,2)}function bu(a){var u=vi();if(typeof a==\"function\"){var h=a;if(a=h(),Ns){Jt(!0);try{h()}finally{Jt(!1)}}}return u.memoizedState=u.baseState=a,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},u}function uh(a,u,h,S){return a.baseState=h,Sd(a,Nn,typeof S==\"function\"?S:ua)}function Lc(a,u,h,S,C){if(jc(a))throw Error(r(485));if(a=u.action,a!==null){var R={payload:C,action:a,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(H){R.listeners.push(H)}};j.T!==null?h(!0):R.isTransition=!1,S(R),h=u.pending,h===null?(R.next=u.pending=R,ev(u,R)):(R.next=h.next,u.pending=h.next=R)}}function ev(a,u){var h=u.action,S=u.payload,C=a.state;if(u.isTransition){var R=j.T,H={};j.T=H;try{var te=h(C,S),fe=j.S;fe!==null&&fe(H,te),El(a,u,te)}catch(Se){Td(a,u,Se)}finally{j.T=R}}else try{R=h(C,S),El(a,u,R)}catch(Se){Td(a,u,Se)}}function El(a,u,h){h!==null&&typeof h==\"object\"&&typeof h.then==\"function\"?h.then(function(S){ch(a,u,S)},function(S){return Td(a,u,S)}):ch(a,u,h)}function ch(a,u,h){u.status=\"fulfilled\",u.value=h,fh(u),a.state=h,u=a.pending,u!==null&&(h=u.next,h===u?a.pending=null:(h=h.next,u.next=h,ev(a,h)))}function Td(a,u,h){var S=a.pending;if(a.pending=null,S!==null){S=S.next;do u.status=\"rejected\",u.reason=h,fh(u),u=u.next;while(u!==S)}a.action=null}function fh(a){a=a.listeners;for(var u=0;u<a.length;u++)(0,a[u])()}function Eu(a,u){return u}function Su(a,u){if(vn){var h=or.formState;if(h!==null){e:{var S=Gt;if(vn){if(vr){t:{for(var C=vr,R=Hi;C.nodeType!==8;){if(!R){C=null;break t}if(C=Ps(C.nextSibling),C===null){C=null;break t}}R=C.data,C=R===\"F!\"||R===\"F\"?C:null}if(C){vr=Ps(C.nextSibling),S=C.data===\"F!\";break e}}aa(S)}S=!1}S&&(u=h[0])}}return h=vi(),h.memoizedState=h.baseState=u,S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eu,lastRenderedState:u},h.queue=S,h=cv.bind(null,Gt,S),S.dispatch=h,S=bu(!1),R=ks.bind(null,Gt,!1,S.queue),S=vi(),C={state:u,dispatch:null,action:a,pending:null},S.queue=C,h=Lc.bind(null,Gt,C,R,h),C.dispatch=h,S.memoizedState=a,[u,h,!1]}function Tu(a){var u=yr();return Ic(u,Nn,a)}function Ic(a,u,h){u=Sd(a,u,Eu)[0],a=Rc(ua)[0],u=typeof u==\"object\"&&u!==null&&typeof u.then==\"function\"?vu(u):u;var S=yr(),C=S.queue,R=C.dispatch;return h!==S.memoizedState&&(Gt.flags|=2048,wu(9,tv.bind(null,C,h),{destroy:void 0},null)),[u,R,a]}function tv(a,u){a.action=u}function nv(a){var u=yr(),h=Nn;if(h!==null)return Ic(u,h,a);yr(),u=u.memoizedState,h=yr();var S=h.queue.dispatch;return h.memoizedState=a,[u,S,!1]}function wu(a,u,h,S){return a={tag:a,create:u,inst:h,deps:S,next:null},u=Gt.updateQueue,u===null&&(u=Ed(),Gt.updateQueue=u),h=u.lastEffect,h===null?u.lastEffect=a.next=a:(S=h.next,h.next=a,a.next=S,u.lastEffect=a),a}function Os(){return yr().memoizedState}function qa(a,u,h,S){var C=vi();Gt.flags|=a,C.memoizedState=wu(1|u,h,{destroy:void 0},S===void 0?null:S)}function Sl(a,u,h,S){var C=yr();S=S===void 0?null:S;var R=C.memoizedState.inst;Nn!==null&&S!==null&&yd(S,Nn.memoizedState.deps)?C.memoizedState=wu(u,h,R,S):(Gt.flags|=a,C.memoizedState=wu(1|u,h,R,S))}function rv(a,u){qa(8390656,8,a,u)}function wd(a,u){Sl(2048,8,a,u)}function iv(a,u){return Sl(4,2,a,u)}function ov(a,u){return Sl(4,4,a,u)}function h1(a,u){if(typeof u==\"function\"){a=a();var h=u(a);return function(){typeof h==\"function\"?h():u(null)}}if(u!=null)return a=a(),u.current=a,function(){u.current=null}}function Di(a,u,h){h=h!=null?h.concat([a]):null,Sl(4,4,h1.bind(null,u,a),h)}function dh(){}function av(a,u){var h=yr();u=u===void 0?null:u;var S=h.memoizedState;return u!==null&&yd(u,S[1])?S[0]:(h.memoizedState=[a,u],a)}function sv(a,u){var h=yr();u=u===void 0?null:u;var S=h.memoizedState;if(u!==null&&yd(u,S[1]))return S[0];if(S=a(),Ns){Jt(!0);try{a()}finally{Jt(!1)}}return h.memoizedState=[S,u],S}function ph(a,u,h){return h===void 0||(Oi&1073741824)!==0?a.memoizedState=u:(a.memoizedState=h,a=UP(),Gt.lanes|=a,Xc|=a,h)}function hh(a,u,h,S){return Zr(h,u)?h:fu.current!==null?(a=ph(a,h,S),Zr(a,u)||(jr=!0),a):(Oi&42)===0?(jr=!0,a.memoizedState=h):(a=UP(),Gt.lanes|=a,Xc|=a,u)}function mh(a,u,h,S,C){var R=le.p;le.p=R!==0&&8>R?R:8;var H=j.T,te={};j.T=te,ks(a,!1,u,h);try{var fe=C(),Se=j.S;if(Se!==null&&Se(te,fe),fe!==null&&typeof fe==\"object\"&&typeof fe.then==\"function\"){var Be=Xg(fe,S);Pc(a,u,Be,va(a))}else Pc(a,u,S,va(a))}catch(Ke){Pc(a,u,{then:function(){},status:\"rejected\",reason:Ke},va())}finally{le.p=R,j.T=H}}function m1(){}function gh(a,u,h,S){if(a.tag!==5)throw Error(r(476));var C=lv(a).queue;mh(a,C,u,pe,h===null?m1:function(){return uv(a),h(S)})}function lv(a){var u=a.memoizedState;if(u!==null)return u;u={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:pe},next:null};var h={};return u.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:h},next:null},a.memoizedState=u,a=a.alternate,a!==null&&(a.memoizedState=u),u}function uv(a){var u=lv(a).next.queue;Pc(a,u,{},va())}function Ba(){return ei(Lv)}function Fc(){return yr().memoizedState}function xd(){return yr().memoizedState}function Cd(a){for(var u=a.return;u!==null;){switch(u.tag){case 24:case 3:var h=va();a=za(h);var S=Ls(u,a,h);S!==null&&(_o(S,u,h),pa(S,u,h)),u={cache:hd()},a.payload=u;return}u=u.return}}function Ds(a,u,h){var S=va();h={lane:S,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},jc(a)?vh(u,h):(h=Cc(a,u,h,S),h!==null&&(_o(h,a,S),yh(h,u,S)))}function cv(a,u,h){var S=va();Pc(a,u,h,S)}function Pc(a,u,h,S){var C={lane:S,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(jc(a))vh(u,C);else{var R=a.alternate;if(a.lanes===0&&(R===null||R.lanes===0)&&(R=u.lastRenderedReducer,R!==null))try{var H=u.lastRenderedState,te=R(H,h);if(C.hasEagerState=!0,C.eagerState=te,Zr(te,H))return xc(a,u,C,0),or===null&&Ss(),!1}catch{}finally{}if(h=Cc(a,u,C,S),h!==null)return _o(h,a,S),yh(h,u,S),!0}return!1}function ks(a,u,h,S){if(S={lane:2,revertLane:C_(),action:S,hasEagerState:!1,eagerState:null,next:null},jc(a)){if(u)throw Error(r(479))}else u=Cc(a,h,S,2),u!==null&&_o(u,a,2)}function jc(a){var u=a.alternate;return a===Gt||u!==null&&u===Gt}function vh(a,u){_s=yl=!0;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}function yh(a,u,h){if((h&4194176)!==0){var S=u.lanes;S&=a.pendingLanes,h|=S,u.lanes=h,ra(a,h)}}var oo={readContext:ei,use:_r,useCallback:Gn,useContext:Gn,useEffect:Gn,useImperativeHandle:Gn,useLayoutEffect:Gn,useInsertionEffect:Gn,useMemo:Gn,useReducer:Gn,useRef:Gn,useState:Gn,useDebugValue:Gn,useDeferredValue:Gn,useTransition:Gn,useSyncExternalStore:Gn,useId:Gn};oo.useCacheRefresh=Gn,oo.useMemoCache=Gn,oo.useHostTransitionStatus=Gn,oo.useFormState=Gn,oo.useActionState=Gn,oo.useOptimistic=Gn;var wo={readContext:ei,use:_r,useCallback:function(a,u){return vi().memoizedState=[a,u===void 0?null:u],a},useContext:ei,useEffect:rv,useImperativeHandle:function(a,u,h){h=h!=null?h.concat([a]):null,qa(4194308,4,h1.bind(null,u,a),h)},useLayoutEffect:function(a,u){return qa(4194308,4,a,u)},useInsertionEffect:function(a,u){qa(4,2,a,u)},useMemo:function(a,u){var h=vi();u=u===void 0?null:u;var S=a();if(Ns){Jt(!0);try{a()}finally{Jt(!1)}}return h.memoizedState=[S,u],S},useReducer:function(a,u,h){var S=vi();if(h!==void 0){var C=h(u);if(Ns){Jt(!0);try{h(u)}finally{Jt(!1)}}}else C=u;return S.memoizedState=S.baseState=C,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:C},S.queue=a,a=a.dispatch=Ds.bind(null,Gt,a),[S.memoizedState,a]},useRef:function(a){var u=vi();return a={current:a},u.memoizedState=a},useState:function(a){a=bu(a);var u=a.queue,h=cv.bind(null,Gt,u);return u.dispatch=h,[a.memoizedState,h]},useDebugValue:dh,useDeferredValue:function(a,u){var h=vi();return ph(h,a,u)},useTransition:function(){var a=bu(!1);return a=mh.bind(null,Gt,a.queue,!0,!1),vi().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,u,h){var S=Gt,C=vi();if(vn){if(h===void 0)throw Error(r(407));h=h()}else{if(h=u(),or===null)throw Error(r(349));(wn&60)!==0||oh(S,u,h)}C.memoizedState=h;var R={value:h,getSnapshot:u};return C.queue=R,rv(sh.bind(null,S,R,a),[a]),S.flags|=2048,wu(9,ah.bind(null,S,R,h,u),{destroy:void 0},null),h},useId:function(){var a=vi(),u=or.identifierPrefix;if(vn){var h=qo,S=Uo;h=(S&~(1<<32-ut(S)-1)).toString(32)+h,u=\":\"+u+\"R\"+h,h=vd++,0<h&&(u+=\"H\"+h.toString(32)),u+=\":\"}else h=p1++,u=\":\"+u+\"r\"+h.toString(32)+\":\";return a.memoizedState=u},useCacheRefresh:function(){return vi().memoizedState=Cd.bind(null,Gt)}};wo.useMemoCache=yu,wo.useHostTransitionStatus=Ba,wo.useFormState=Su,wo.useActionState=Su,wo.useOptimistic=function(a){var u=vi();u.memoizedState=u.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=h,u=ks.bind(null,Gt,!0,h),h.dispatch=u,[a,u]};var ca={readContext:ei,use:_r,useCallback:av,useContext:ei,useEffect:wd,useImperativeHandle:Di,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:sv,useReducer:Rc,useRef:Os,useState:function(){return Rc(ua)},useDebugValue:dh,useDeferredValue:function(a,u){var h=yr();return hh(h,Nn.memoizedState,a,u)},useTransition:function(){var a=Rc(ua)[0],u=yr().memoizedState;return[typeof a==\"boolean\"?a:vu(a),u]},useSyncExternalStore:Mc,useId:Fc};ca.useCacheRefresh=xd,ca.useMemoCache=yu,ca.useHostTransitionStatus=Ba,ca.useFormState=Tu,ca.useActionState=Tu,ca.useOptimistic=function(a,u){var h=yr();return uh(h,Nn,a,u)};var $a={readContext:ei,use:_r,useCallback:av,useContext:ei,useEffect:wd,useImperativeHandle:Di,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:sv,useReducer:As,useRef:Os,useState:function(){return As(ua)},useDebugValue:dh,useDeferredValue:function(a,u){var h=yr();return Nn===null?ph(h,a,u):hh(h,Nn.memoizedState,a,u)},useTransition:function(){var a=As(ua)[0],u=yr().memoizedState;return[typeof a==\"boolean\"?a:vu(a),u]},useSyncExternalStore:Mc,useId:Fc};$a.useCacheRefresh=xd,$a.useMemoCache=yu,$a.useHostTransitionStatus=Ba,$a.useFormState=nv,$a.useActionState=nv,$a.useOptimistic=function(a,u){var h=yr();return Nn!==null?uh(h,Nn,a,u):(h.baseState=a,[a,h.queue.dispatch])};function Vc(a,u,h,S){u=a.memoizedState,h=h(S,u),h=h==null?u:q({},u,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}var bh={isMounted:function(a){return(a=a._reactInternals)?se(a)===a:!1},enqueueSetState:function(a,u,h){a=a._reactInternals;var S=va(),C=za(S);C.payload=u,h!=null&&(C.callback=h),u=Ls(a,C,S),u!==null&&(_o(u,a,S),pa(u,a,S))},enqueueReplaceState:function(a,u,h){a=a._reactInternals;var S=va(),C=za(S);C.tag=1,C.payload=u,h!=null&&(C.callback=h),u=Ls(a,C,S),u!==null&&(_o(u,a,S),pa(u,a,S))},enqueueForceUpdate:function(a,u){a=a._reactInternals;var h=va(),S=za(h);S.tag=2,u!=null&&(S.callback=u),u=Ls(a,S,h),u!==null&&(_o(u,a,h),pa(u,a,h))}};function Uc(a,u,h,S,C,R,H){return a=a.stateNode,typeof a.shouldComponentUpdate==\"function\"?a.shouldComponentUpdate(S,R,H):u.prototype&&u.prototype.isPureReactComponent?!nu(h,S)||!nu(C,R):!0}function Eh(a,u,h,S){a=u.state,typeof u.componentWillReceiveProps==\"function\"&&u.componentWillReceiveProps(h,S),typeof u.UNSAFE_componentWillReceiveProps==\"function\"&&u.UNSAFE_componentWillReceiveProps(h,S),u.state!==a&&bh.enqueueReplaceState(u,u.state,null)}function Tl(a,u){var h=u;if(\"ref\"in u){h={};for(var S in u)S!==\"ref\"&&(h[S]=u[S])}if(a=a.defaultProps){h===u&&(h=q({},h));for(var C in a)h[C]===void 0&&(h[C]=a[C])}return h}var qc=typeof reportError==\"function\"?reportError:function(a){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var u=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof a==\"object\"&&a!==null&&typeof a.message==\"string\"?String(a.message):String(a),error:a});if(!window.dispatchEvent(u))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",a);return}console.error(a)};function Bc(a){qc(a)}function fv(a){console.error(a)}function g1(a){qc(a)}function Rs(a,u){try{var h=a.onUncaughtError;h(u.value,{componentStack:u.stack})}catch(S){setTimeout(function(){throw S})}}function Sh(a,u,h){try{var S=a.onCaughtError;S(h.value,{componentStack:h.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function _d(a,u,h){return h=za(h),h.tag=3,h.payload={element:null},h.callback=function(){Rs(a,u)},h}function dv(a){return a=za(a),a.tag=3,a}function Th(a,u,h,S){var C=h.type.getDerivedStateFromError;if(typeof C==\"function\"){var R=S.value;a.payload=function(){return C(R)},a.callback=function(){Sh(u,h,S)}}var H=h.stateNode;H!==null&&typeof H.componentDidCatch==\"function\"&&(a.callback=function(){Sh(u,h,S),typeof C!=\"function\"&&(Zc===null?Zc=new Set([this]):Zc.add(this));var te=S.stack;this.componentDidCatch(S.value,{componentStack:te!==null?te:\"\"})})}function pv(a,u,h,S,C){if(h.flags|=32768,S!==null&&typeof S==\"object\"&&typeof S.then==\"function\"){if(u=h.alternate,u!==null&&_u(u,h,C,!0),h=Gi.current,h!==null){switch(h.tag){case 13:return To===null?E_():h.alternate===null&&Vr===0&&(Vr=3),h.flags&=-257,h.flags|=65536,h.lanes=C,S===Zp?h.flags|=16384:(u=h.updateQueue,u===null?h.updateQueue=new Set([S]):u.add(S),T_(a,S,C)),!1;case 22:return h.flags|=65536,S===Zp?h.flags|=16384:(u=h.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([S])},h.updateQueue=u):(h=u.retryQueue,h===null?u.retryQueue=new Set([S]):h.add(S)),T_(a,S,C)),!1}throw Error(r(435,h.tag))}return T_(a,S,C),E_(),!1}if(vn)return u=Gi.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=C,S!==Ts&&(a=Error(r(422),{cause:S}),cd(zi(a,h)))):(S!==Ts&&(u=Error(r(423),{cause:S}),cd(zi(u,h))),a=a.current.alternate,a.flags|=65536,C&=-C,a.lanes|=C,S=zi(S,h),C=_d(a.stateNode,S,C),kh(a,C),Vr!==4&&(Vr=2)),!1;var R=Error(r(520),{cause:S});if(R=zi(R,h),Cv===null?Cv=[R]:Cv.push(R),Vr!==4&&(Vr=2),u===null)return!0;S=zi(S,h),h=u;do{switch(h.tag){case 3:return h.flags|=65536,a=C&-C,h.lanes|=a,a=_d(h.stateNode,S,a),kh(h,a),!1;case 1:if(u=h.type,R=h.stateNode,(h.flags&128)===0&&(typeof u.getDerivedStateFromError==\"function\"||R!==null&&typeof R.componentDidCatch==\"function\"&&(Zc===null||!Zc.has(R))))return h.flags|=65536,C&=-C,h.lanes|=C,C=dv(C),Th(C,a,h,S),kh(h,C),!1}h=h.return}while(h!==null);return!1}var hv=Error(r(461)),jr=!1;function Gr(a,u,h,S){u.child=a===null?Yg(u,null,h,S):gl(u,a.child,h,S)}function v1(a,u,h,S,C){h=h.render;var R=u.ref;if(\"ref\"in S){var H={};for(var te in S)te!==\"ref\"&&(H[te]=S[te])}else H=S;return Ms(u),S=rh(a,u,h,H,R,C),te=kc(),a!==null&&!jr?(gu(a,u,C),$o(a,u,C)):(vn&&te&&Kp(u),u.flags|=1,Gr(a,u,S,C),u.child)}function wh(a,u,h,S,C){if(a===null){var R=h.type;return typeof R==\"function\"&&!l_(R)&&R.defaultProps===void 0&&h.compare===null?(u.tag=15,u.type=R,$c(a,u,R,S,C)):(a=b1(h.type,null,S,u,u.mode,C),a.ref=u.ref,a.return=u,u.child=a)}if(R=a.child,!Dh(a,C)){var H=R.memoizedProps;if(h=h.compare,h=h!==null?h:nu,h(H,S)&&a.ref===u.ref)return $o(a,u,C)}return u.flags|=1,a=Kc(R,S),a.ref=u.ref,a.return=u,u.child=a}function $c(a,u,h,S,C){if(a!==null){var R=a.memoizedProps;if(nu(R,S)&&a.ref===u.ref)if(jr=!1,u.pendingProps=S=R,Dh(a,C))(a.flags&131072)!==0&&(jr=!0);else return u.lanes=a.lanes,$o(a,u,C)}return xh(a,u,h,S,C)}function zc(a,u,h){var S=u.pendingProps,C=S.children,R=(u.stateNode._pendingVisibility&2)!==0,H=a!==null?a.memoizedState:null;if(xu(a,u),S.mode===\"hidden\"||R){if((u.flags&128)!==0){if(S=H!==null?H.baseLanes|h:h,a!==null){for(C=u.child=a.child,R=0;C!==null;)R=R|C.lanes|C.childLanes,C=C.sibling;u.childLanes=R&~S}else u.childLanes=0,u.child=null;return mv(a,u,S,h)}if((h&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},a!==null&&Dc(u,H!==null?H.cachePool:null),H!==null?Jp(u,H):Oc(),th(u);else return u.lanes=u.childLanes=536870912,mv(a,u,H!==null?H.baseLanes|h:h,h)}else H!==null?(Dc(u,H.cachePool),Jp(u,H),sa(),u.memoizedState=null):(a!==null&&Dc(u,null),Oc(),sa());return Gr(a,u,C,h),u.child}function mv(a,u,h,S){var C=vl();return C=C===null?null:{parent:Pr._currentValue,pool:C},u.memoizedState={baseLanes:h,cachePool:C},a!==null&&Dc(u,null),Oc(),th(u),a!==null&&_u(a,u,S,!0),null}function xu(a,u){var h=u.ref;if(h===null)a!==null&&a.ref!==null&&(u.flags|=2097664);else{if(typeof h!=\"function\"&&typeof h!=\"object\")throw Error(r(284));(a===null||a.ref!==h)&&(u.flags|=2097664)}}function xh(a,u,h,S,C){return Ms(u),h=rh(a,u,h,S,void 0,C),S=kc(),a!==null&&!jr?(gu(a,u,C),$o(a,u,C)):(vn&&S&&Kp(u),u.flags|=1,Gr(a,u,h,C),u.child)}function gv(a,u,h,S,C,R){return Ms(u),u.updateQueue=null,h=ih(u,S,h,C),Jg(a),S=kc(),a!==null&&!jr?(gu(a,u,R),$o(a,u,R)):(vn&&S&&Kp(u),u.flags|=1,Gr(a,u,h,R),u.child)}function vv(a,u,h,S,C){if(Ms(u),u.stateNode===null){var R=dl,H=h.contextType;typeof H==\"object\"&&H!==null&&(R=ei(H)),R=new h(S,R),u.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=bh,u.stateNode=R,R._reactInternals=u,R=u.stateNode,R.props=S,R.state=u.memoizedState,R.refs={},Od(u),H=h.contextType,R.context=typeof H==\"object\"&&H!==null?ei(H):dl,R.state=u.memoizedState,H=h.getDerivedStateFromProps,typeof H==\"function\"&&(Vc(u,h,H,S),R.state=u.memoizedState),typeof h.getDerivedStateFromProps==\"function\"||typeof R.getSnapshotBeforeUpdate==\"function\"||typeof R.UNSAFE_componentWillMount!=\"function\"&&typeof R.componentWillMount!=\"function\"||(H=R.state,typeof R.componentWillMount==\"function\"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount==\"function\"&&R.UNSAFE_componentWillMount(),H!==R.state&&bh.enqueueReplaceState(R,R.state,null),qn(u,S,R,C),Qc(),R.state=u.memoizedState),typeof R.componentDidMount==\"function\"&&(u.flags|=4194308),S=!0}else if(a===null){R=u.stateNode;var te=u.memoizedProps,fe=Tl(h,te);R.props=fe;var Se=R.context,Be=h.contextType;H=dl,typeof Be==\"object\"&&Be!==null&&(H=ei(Be));var Ke=h.getDerivedStateFromProps;Be=typeof Ke==\"function\"||typeof R.getSnapshotBeforeUpdate==\"function\",te=u.pendingProps!==te,Be||typeof R.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof R.componentWillReceiveProps!=\"function\"||(te||Se!==H)&&Eh(u,R,S,H),da=!1;var ke=u.memoizedState;R.state=ke,qn(u,S,R,C),Qc(),Se=u.memoizedState,te||ke!==Se||da?(typeof Ke==\"function\"&&(Vc(u,h,Ke,S),Se=u.memoizedState),(fe=da||Uc(u,h,fe,S,ke,Se,H))?(Be||typeof R.UNSAFE_componentWillMount!=\"function\"&&typeof R.componentWillMount!=\"function\"||(typeof R.componentWillMount==\"function\"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount==\"function\"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount==\"function\"&&(u.flags|=4194308)):(typeof R.componentDidMount==\"function\"&&(u.flags|=4194308),u.memoizedProps=S,u.memoizedState=Se),R.props=S,R.state=Se,R.context=H,S=fe):(typeof R.componentDidMount==\"function\"&&(u.flags|=4194308),S=!1)}else{R=u.stateNode,Sn(a,u),H=u.memoizedProps,Be=Tl(h,H),R.props=Be,Ke=u.pendingProps,ke=R.context,Se=h.contextType,fe=dl,typeof Se==\"object\"&&Se!==null&&(fe=ei(Se)),te=h.getDerivedStateFromProps,(Se=typeof te==\"function\"||typeof R.getSnapshotBeforeUpdate==\"function\")||typeof R.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof R.componentWillReceiveProps!=\"function\"||(H!==Ke||ke!==fe)&&Eh(u,R,S,fe),da=!1,ke=u.memoizedState,R.state=ke,qn(u,S,R,C),Qc();var Pe=u.memoizedState;H!==Ke||ke!==Pe||da||a!==null&&a.dependencies!==null&&Wc(a.dependencies)?(typeof te==\"function\"&&(Vc(u,h,te,S),Pe=u.memoizedState),(Be=da||Uc(u,h,Be,S,ke,Pe,fe)||a!==null&&a.dependencies!==null&&Wc(a.dependencies))?(Se||typeof R.UNSAFE_componentWillUpdate!=\"function\"&&typeof R.componentWillUpdate!=\"function\"||(typeof R.componentWillUpdate==\"function\"&&R.componentWillUpdate(S,Pe,fe),typeof R.UNSAFE_componentWillUpdate==\"function\"&&R.UNSAFE_componentWillUpdate(S,Pe,fe)),typeof R.componentDidUpdate==\"function\"&&(u.flags|=4),typeof R.getSnapshotBeforeUpdate==\"function\"&&(u.flags|=1024)):(typeof R.componentDidUpdate!=\"function\"||H===a.memoizedProps&&ke===a.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!=\"function\"||H===a.memoizedProps&&ke===a.memoizedState||(u.flags|=1024),u.memoizedProps=S,u.memoizedState=Pe),R.props=S,R.state=Pe,R.context=fe,S=Be):(typeof R.componentDidUpdate!=\"function\"||H===a.memoizedProps&&ke===a.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!=\"function\"||H===a.memoizedProps&&ke===a.memoizedState||(u.flags|=1024),S=!1)}return R=S,xu(a,u),S=(u.flags&128)!==0,R||S?(R=u.stateNode,h=S&&typeof h.getDerivedStateFromError!=\"function\"?null:R.render(),u.flags|=1,a!==null&&S?(u.child=gl(u,a.child,null,C),u.child=gl(u,null,h,C)):Gr(a,u,h,C),u.memoizedState=R.state,a=u.child):a=$o(a,u,C),a}function yv(a,u,h,S){return cu(),u.flags|=256,Gr(a,u,h,S),u.child}var Nd={dehydrated:null,treeContext:null,retryLane:0};function Ch(a){return{baseLanes:a,cachePool:gd()}}function _h(a,u,h){return a=a!==null?a.childLanes&~h:0,u&&(a|=Wa),a}function Nh(a,u,h){var S=u.pendingProps,C=!1,R=(u.flags&128)!==0,H;if((H=R)||(H=a!==null&&a.memoizedState===null?!1:(ir.current&2)!==0),H&&(C=!0,u.flags&=-129),H=(u.flags&32)!==0,u.flags&=-33,a===null){if(vn){if(C?Va(u):sa(),vn){var te=vr,fe;if(fe=te){e:{for(fe=te,te=Hi;fe.nodeType!==8;){if(!te){te=null;break e}if(fe=Ps(fe.nextSibling),fe===null){te=null;break e}}te=fe}te!==null?(u.memoizedState={dehydrated:te,treeContext:hl!==null?{id:Uo,overflow:qo}:null,retryLane:536870912},fe=Ga(18,null,null,0),fe.stateNode=te,fe.return=u,u.child=fe,mi=u,vr=null,fe=!0):fe=!1}fe||aa(u)}if(te=u.memoizedState,te!==null&&(te=te.dehydrated,te!==null))return te.data===\"$!\"?u.lanes=16:u.lanes=536870912,null;la(u)}return te=S.children,S=S.fallback,C?(sa(),C=u.mode,te=Ad({mode:\"hidden\",children:te},C),S=kd(S,C,h,null),te.return=u,S.return=u,te.sibling=S,u.child=te,C=u.child,C.memoizedState=Ch(h),C.childLanes=_h(a,H,h),u.memoizedState=Nd,S):(Va(u),Hc(u,te))}if(fe=a.memoizedState,fe!==null&&(te=fe.dehydrated,te!==null)){if(R)u.flags&256?(Va(u),u.flags&=-257,u=Ah(a,u,h)):u.memoizedState!==null?(sa(),u.child=a.child,u.flags|=128,u=null):(sa(),C=S.fallback,te=u.mode,S=Ad({mode:\"visible\",children:S.children},te),C=kd(C,te,h,null),C.flags|=2,S.return=u,C.return=u,S.sibling=C,u.child=S,gl(u,a.child,null,h),S=u.child,S.memoizedState=Ch(h),S.childLanes=_h(a,H,h),u.memoizedState=Nd,u=C);else if(Va(u),te.data===\"$!\"){if(H=te.nextSibling&&te.nextSibling.dataset,H)var Se=H.dgst;H=Se,S=Error(r(419)),S.stack=\"\",S.digest=H,cd({value:S,source:null,stack:null}),u=Ah(a,u,h)}else if(jr||_u(a,u,h,!1),H=(h&a.childLanes)!==0,jr||H){if(H=or,H!==null){if(S=h&-h,(S&42)!==0)S=1;else switch(S){case 2:S=1;break;case 8:S=4;break;case 32:S=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:S=64;break;case 268435456:S=134217728;break;default:S=0}if(S=(S&(H.suspendedLanes|h))!==0?0:S,S!==0&&S!==fe.retryLane)throw fe.retryLane=S,jo(a,S),_o(H,a,S),hv}te.data===\"$?\"||E_(),u=Ah(a,u,h)}else te.data===\"$?\"?(u.flags|=128,u.child=a.child,u=Ire.bind(null,a),te._reactRetry=u,u=null):(a=fe.treeContext,vr=Ps(te.nextSibling),mi=u,vn=!0,Jr=null,Hi=!1,a!==null&&(bo[Eo++]=Uo,bo[Eo++]=qo,bo[Eo++]=hl,Uo=a.id,qo=a.overflow,hl=u),u=Hc(u,S.children),u.flags|=4096);return u}return C?(sa(),C=S.fallback,te=u.mode,fe=a.child,Se=fe.sibling,S=Kc(fe,{mode:\"hidden\",children:S.children}),S.subtreeFlags=fe.subtreeFlags&31457280,Se!==null?C=Kc(Se,C):(C=kd(C,te,h,null),C.flags|=2),C.return=u,S.return=u,S.sibling=C,u.child=S,S=C,C=u.child,te=a.child.memoizedState,te===null?te=Ch(h):(fe=te.cachePool,fe!==null?(Se=Pr._currentValue,fe=fe.parent!==Se?{parent:Se,pool:Se}:fe):fe=gd(),te={baseLanes:te.baseLanes|h,cachePool:fe}),C.memoizedState=te,C.childLanes=_h(a,H,h),u.memoizedState=Nd,S):(Va(u),h=a.child,a=h.sibling,h=Kc(h,{mode:\"visible\",children:S.children}),h.return=u,h.sibling=null,a!==null&&(H=u.deletions,H===null?(u.deletions=[a],u.flags|=16):H.push(a)),u.child=h,u.memoizedState=null,h)}function Hc(a,u){return u=Ad({mode:\"visible\",children:u},a.mode),u.return=a,a.child=u}function Ad(a,u){return PP(a,u,0,null)}function Ah(a,u,h){return gl(u,a.child,null,h),a=Hc(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function Oh(a,u,h){a.lanes|=u;var S=a.alternate;S!==null&&(S.lanes|=u),Cu(a.return,u,h)}function wl(a,u,h,S,C){var R=a.memoizedState;R===null?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:S,tail:h,tailMode:C}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=S,R.tail=h,R.tailMode=C)}function bv(a,u,h){var S=u.pendingProps,C=S.revealOrder,R=S.tail;if(Gr(a,u,S.children,h),S=ir.current,(S&2)!==0)S=S&1|2,u.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=u.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Oh(a,h,u);else if(a.tag===19)Oh(a,h,u);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===u)break e;for(;a.sibling===null;){if(a.return===null||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}S&=1}switch(dt(ir,S),C){case\"forwards\":for(h=u.child,C=null;h!==null;)a=h.alternate,a!==null&&pd(a)===null&&(C=h),h=h.sibling;h=C,h===null?(C=u.child,u.child=null):(C=h.sibling,h.sibling=null),wl(u,!1,C,h,R);break;case\"backwards\":for(h=null,C=u.child,u.child=null;C!==null;){if(a=C.alternate,a!==null&&pd(a)===null){u.child=C;break}a=C.sibling,C.sibling=h,h=C,C=a}wl(u,!0,h,null,R);break;case\"together\":wl(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function $o(a,u,h){if(a!==null&&(u.dependencies=a.dependencies),Xc|=u.lanes,(h&u.childLanes)===0)if(a!==null){if(_u(a,u,h,!1),(h&u.childLanes)===0)return null}else return null;if(a!==null&&u.child!==a.child)throw Error(r(153));if(u.child!==null){for(a=u.child,h=Kc(a,a.pendingProps),u.child=h,h.return=u;a.sibling!==null;)a=a.sibling,h=h.sibling=Kc(a,a.pendingProps),h.return=u;h.sibling=null}return u.child}function Dh(a,u){return(a.lanes&u)!==0?!0:(a=a.dependencies,!!(a!==null&&Wc(a)))}function y1(a,u,h){switch(u.tag){case 3:Re(u,u.stateNode.containerInfo),xo(u,Pr,a.memoizedState.cache),cu();break;case 27:case 5:ae(u);break;case 4:Re(u,u.stateNode.containerInfo);break;case 10:xo(u,u.type,u.memoizedProps.value);break;case 13:var S=u.memoizedState;if(S!==null)return S.dehydrated!==null?(Va(u),u.flags|=128,null):(h&u.child.childLanes)!==0?Nh(a,u,h):(Va(u),a=$o(a,u,h),a!==null?a.sibling:null);Va(u);break;case 19:var C=(a.flags&128)!==0;if(S=(h&u.childLanes)!==0,S||(_u(a,u,h,!1),S=(h&u.childLanes)!==0),C){if(S)return bv(a,u,h);u.flags|=128}if(C=u.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),dt(ir,ir.current),S)break;return null;case 22:case 23:return u.lanes=0,zc(a,u,h);case 24:xo(u,Pr,a.memoizedState.cache)}return $o(a,u,h)}function Ev(a,u,h){if(a!==null)if(a.memoizedProps!==u.pendingProps)jr=!0;else{if(!Dh(a,h)&&(u.flags&128)===0)return jr=!1,y1(a,u,h);jr=(a.flags&131072)!==0}else jr=!1,vn&&(u.flags&1048576)!==0&&lu(u,pl,u.index);switch(u.lanes=0,u.tag){case 16:e:{a=u.pendingProps;var S=u.elementType,C=S._init;if(S=C(S._payload),u.type=S,typeof S==\"function\")l_(S)?(a=Tl(S,a),u.tag=1,u=vv(null,u,S,a,h)):(u.tag=0,u=xh(null,u,S,a,h));else{if(S!=null){if(C=S.$$typeof,C===w){u.tag=11,u=v1(null,u,S,a,h);break e}else if(C===N){u.tag=14,u=wh(null,u,S,a,h);break e}}throw u=F(S)||S,Error(r(306,u,\"\"))}}return u;case 0:return xh(a,u,u.type,u.pendingProps,h);case 1:return S=u.type,C=Tl(S,u.pendingProps),vv(a,u,S,C,h);case 3:e:{if(Re(u,u.stateNode.containerInfo),a===null)throw Error(r(387));var R=u.pendingProps;C=u.memoizedState,S=C.element,Sn(a,u),qn(u,R,null,h);var H=u.memoizedState;if(R=H.cache,xo(u,Pr,R),R!==C.cache&&Gc(u,[Pr],h,!0),Qc(),R=H.element,C.isDehydrated)if(C={element:R,isDehydrated:!1,cache:H.cache},u.updateQueue.baseState=C,u.memoizedState=C,u.flags&256){u=yv(a,u,R,h);break e}else if(R!==S){S=zi(Error(r(424)),u),cd(S),u=yv(a,u,R,h);break e}else for(vr=Ps(u.stateNode.containerInfo.firstChild),mi=u,vn=!0,Jr=null,Hi=!0,h=Yg(u,null,R,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(cu(),R===S){u=$o(a,u,h);break e}Gr(a,u,R,h)}u=u.child}return u;case 26:return xu(a,u),a===null?(h=vj(u.type,null,u.pendingProps,null))?u.memoizedState=h:vn||(h=u.type,a=u.pendingProps,S=k1(Ce.current).createElement(h),S[nn]=u,S[xn]=a,Wi(S,h,a),Dn(S),u.stateNode=S):u.memoizedState=vj(u.type,a.memoizedProps,u.pendingProps,a.memoizedState),null;case 27:return ae(u),a===null&&vn&&(S=u.stateNode=hj(u.type,u.pendingProps,Ce.current),mi=u,Hi=!0,vr=Ps(S.firstChild)),S=u.pendingProps.children,a!==null||vn?Gr(a,u,S,h):u.child=gl(u,null,S,h),xu(a,u),u.child;case 5:return a===null&&vn&&((C=S=vr)&&(S=Xre(S,u.type,u.pendingProps,Hi),S!==null?(u.stateNode=S,mi=u,vr=Ps(S.firstChild),Hi=!1,C=!0):C=!1),C||aa(u)),ae(u),C=u.type,R=u.pendingProps,H=a!==null?a.memoizedProps:null,S=R.children,L_(C,R)?S=null:H!==null&&L_(C,H)&&(u.flags|=32),u.memoizedState!==null&&(C=rh(a,u,mu,null,null,h),Lv._currentValue=C),xu(a,u),Gr(a,u,S,h),u.child;case 6:return a===null&&vn&&((a=h=vr)&&(h=Zre(h,u.pendingProps,Hi),h!==null?(u.stateNode=h,mi=u,vr=null,a=!0):a=!1),a||aa(u)),null;case 13:return Nh(a,u,h);case 4:return Re(u,u.stateNode.containerInfo),S=u.pendingProps,a===null?u.child=gl(u,null,S,h):Gr(a,u,S,h),u.child;case 11:return v1(a,u,u.type,u.pendingProps,h);case 7:return Gr(a,u,u.pendingProps,h),u.child;case 8:return Gr(a,u,u.pendingProps.children,h),u.child;case 12:return Gr(a,u,u.pendingProps.children,h),u.child;case 10:return S=u.pendingProps,xo(u,u.type,S.value),Gr(a,u,S.children,h),u.child;case 9:return C=u.type._context,S=u.pendingProps.children,Ms(u),C=ei(C),S=S(C),u.flags|=1,Gr(a,u,S,h),u.child;case 14:return wh(a,u,u.type,u.pendingProps,h);case 15:return $c(a,u,u.type,u.pendingProps,h);case 19:return bv(a,u,h);case 22:return zc(a,u,h);case 24:return Ms(u),S=ei(Pr),a===null?(C=vl(),C===null&&(C=or,R=hd(),C.pooledCache=R,R.refCount++,R!==null&&(C.pooledCacheLanes|=h),C=R),u.memoizedState={parent:S,cache:C},Od(u),xo(u,Pr,C)):((a.lanes&h)!==0&&(Sn(a,u),qn(u,null,null,h),Qc()),C=a.memoizedState,R=u.memoizedState,C.parent!==S?(C={parent:S,cache:S},u.memoizedState=C,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=C),xo(u,Pr,S)):(S=R.cache,xo(u,Pr,S),S!==C.cache&&Gc(u,[Pr],h,!0))),Gr(a,u,u.pendingProps.children,h),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}var Fn=$e(null),xl=null,fa=null;function xo(a,u,h){dt(Fn,u._currentValue),u._currentValue=h}function Wr(a){a._currentValue=Fn.current,qe(Fn)}function Cu(a,u,h){for(;a!==null;){var S=a.alternate;if((a.childLanes&u)!==u?(a.childLanes|=u,S!==null&&(S.childLanes|=u)):S!==null&&(S.childLanes&u)!==u&&(S.childLanes|=u),a===h)break;a=a.return}}function Gc(a,u,h,S){var C=a.child;for(C!==null&&(C.return=a);C!==null;){var R=C.dependencies;if(R!==null){var H=C.child;R=R.firstContext;e:for(;R!==null;){var te=R;R=C;for(var fe=0;fe<u.length;fe++)if(te.context===u[fe]){R.lanes|=h,te=R.alternate,te!==null&&(te.lanes|=h),Cu(R.return,h,a),S||(H=null);break e}R=te.next}}else if(C.tag===18){if(H=C.return,H===null)throw Error(r(341));H.lanes|=h,R=H.alternate,R!==null&&(R.lanes|=h),Cu(H,h,a),H=null}else H=C.child;if(H!==null)H.return=C;else for(H=C;H!==null;){if(H===a){H=null;break}if(C=H.sibling,C!==null){C.return=H.return,H=C;break}H=H.return}C=H}}function _u(a,u,h,S){a=null;for(var C=u,R=!1;C!==null;){if(!R){if((C.flags&524288)!==0)R=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var H=C.alternate;if(H===null)throw Error(r(387));if(H=H.memoizedProps,H!==null){var te=C.type;Zr(C.pendingProps.value,H.value)||(a!==null?a.push(te):a=[te])}}else if(C===ye.current){if(H=C.alternate,H===null)throw Error(r(387));H.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(a!==null?a.push(Lv):a=[Lv])}C=C.return}a!==null&&Gc(u,a,h,S),u.flags|=262144}function Wc(a){for(a=a.firstContext;a!==null;){if(!Zr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ms(a){xl=a,fa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function ei(a){return Sv(xl,a)}function Yc(a,u){return xl===null&&Ms(a),Sv(a,u)}function Sv(a,u){var h=u._currentValue;if(u={context:u,memoizedValue:h,next:null},fa===null){if(a===null)throw Error(r(308));fa=u,a.dependencies={lanes:0,firstContext:u},a.flags|=524288}else fa=fa.next=u;return h}var da=!1;function Od(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sn(a,u){a=a.updateQueue,u.updateQueue===a&&(u.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function za(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ls(a,u,h){var S=a.updateQueue;if(S===null)return null;if(S=S.shared,(Or&2)!==0){var C=S.pending;return C===null?u.next=u:(u.next=C.next,C.next=u),S.pending=u,u=su(a),$g(a,null,h),u}return xc(a,S,u,h),su(a)}function pa(a,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194176)!==0)){var S=u.lanes;S&=a.pendingLanes,h|=S,u.lanes=h,ra(a,h)}}function kh(a,u){var h=a.updateQueue,S=a.alternate;if(S!==null&&(S=S.updateQueue,h===S)){var C=null,R=null;if(h=h.firstBaseUpdate,h!==null){do{var H={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};R===null?C=R=H:R=R.next=H,h=h.next}while(h!==null);R===null?C=R=u:R=R.next=u}else C=R=u;h={baseState:S.baseState,firstBaseUpdate:C,lastBaseUpdate:R,shared:S.shared,callbacks:S.callbacks},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=u:a.next=u,h.lastBaseUpdate=u}var Nu=!1;function Qc(){if(Nu){var a=io;if(a!==null)throw a}}function qn(a,u,h,S){Nu=!1;var C=a.updateQueue;da=!1;var R=C.firstBaseUpdate,H=C.lastBaseUpdate,te=C.shared.pending;if(te!==null){C.shared.pending=null;var fe=te,Se=fe.next;fe.next=null,H===null?R=Se:H.next=Se,H=fe;var Be=a.alternate;Be!==null&&(Be=Be.updateQueue,te=Be.lastBaseUpdate,te!==H&&(te===null?Be.firstBaseUpdate=Se:te.next=Se,Be.lastBaseUpdate=fe))}if(R!==null){var Ke=C.baseState;H=0,Be=Se=fe=null,te=R;do{var ke=te.lane&-536870913,Pe=ke!==te.lane;if(Pe?(wn&ke)===ke:(S&ke)===ke){ke!==0&&ke===ro&&(Nu=!0),Be!==null&&(Be=Be.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var _t=a,zt=te;ke=u;var Ur=h;switch(zt.tag){case 1:if(_t=zt.payload,typeof _t==\"function\"){Ke=_t.call(Ur,Ke,ke);break e}Ke=_t;break e;case 3:_t.flags=_t.flags&-65537|128;case 0:if(_t=zt.payload,ke=typeof _t==\"function\"?_t.call(Ur,Ke,ke):_t,ke==null)break e;Ke=q({},Ke,ke);break e;case 2:da=!0}}ke=te.callback,ke!==null&&(a.flags|=64,Pe&&(a.flags|=8192),Pe=C.callbacks,Pe===null?C.callbacks=[ke]:Pe.push(ke))}else Pe={lane:ke,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Be===null?(Se=Be=Pe,fe=Ke):Be=Be.next=Pe,H|=ke;if(te=te.next,te===null){if(te=C.shared.pending,te===null)break;Pe=te,te=Pe.next,Pe.next=null,C.lastBaseUpdate=Pe,C.shared.pending=null}}while(!0);Be===null&&(fe=Ke),C.baseState=fe,C.firstBaseUpdate=Se,C.lastBaseUpdate=Be,R===null&&(C.shared.lanes=0),Xc|=H,a.lanes=H,a.memoizedState=Ke}}function Tv(a,u){if(typeof a!=\"function\")throw Error(r(191,a));a.call(u)}function wv(a,u){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)Tv(h[a],u)}function Dd(a,u){try{var h=u.updateQueue,S=h!==null?h.lastEffect:null;if(S!==null){var C=S.next;h=C;do{if((h.tag&a)===a){S=void 0;var R=h.create,H=h.inst;S=R(),H.destroy=S}h=h.next}while(h!==C)}}catch(te){Kn(u,u.return,te)}}function ha(a,u,h){try{var S=u.updateQueue,C=S!==null?S.lastEffect:null;if(C!==null){var R=C.next;S=R;do{if((S.tag&a)===a){var H=S.inst,te=H.destroy;if(te!==void 0){H.destroy=void 0,C=u;var fe=h;try{te()}catch(Se){Kn(C,fe,Se)}}}S=S.next}while(S!==R)}}catch(Se){Kn(u,u.return,Se)}}function s(a){var u=a.updateQueue;if(u!==null){var h=a.stateNode;try{wv(u,h)}catch(S){Kn(a,a.return,S)}}}function f(a,u,h){h.props=Tl(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount()}catch(S){Kn(a,u,S)}}function v(a,u){try{var h=a.ref;if(h!==null){var S=a.stateNode;switch(a.tag){case 26:case 27:case 5:var C=S;break;default:C=S}typeof h==\"function\"?a.refCleanup=h(C):h.current=C}}catch(R){Kn(a,u,R)}}function g(a,u){var h=a.ref,S=a.refCleanup;if(h!==null)if(typeof S==\"function\")try{S()}catch(C){Kn(a,u,C)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof h==\"function\")try{h(null)}catch(C){Kn(a,u,C)}else h.current=null}function T(a){var u=a.type,h=a.memoizedProps,S=a.stateNode;try{e:switch(u){case\"button\":case\"input\":case\"select\":case\"textarea\":h.autoFocus&&S.focus();break e;case\"img\":h.src?S.src=h.src:h.srcSet&&(S.srcset=h.srcSet)}}catch(C){Kn(a,a.return,C)}}function D(a,u,h){try{var S=a.stateNode;Gre(S,a.type,h,u),S[xn]=u}catch(C){Kn(a,a.return,C)}}function I(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function U(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||I(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function $(a,u,h){var S=a.tag;if(S===5||S===6)a=a.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(a,u):h.insertBefore(a,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(a,h)):(u=h,u.appendChild(a)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=D1));else if(S!==4&&S!==27&&(a=a.child,a!==null))for($(a,u,h),a=a.sibling;a!==null;)$(a,u,h),a=a.sibling}function G(a,u,h){var S=a.tag;if(S===5||S===6)a=a.stateNode,u?h.insertBefore(a,u):h.appendChild(a);else if(S!==4&&S!==27&&(a=a.child,a!==null))for(G(a,u,h),a=a.sibling;a!==null;)G(a,u,h),a=a.sibling}var re=!1,oe=!1,be=!1,me=typeof WeakSet==\"function\"?WeakSet:Set,_e=null,je=!1;function Ze(a,u){if(a=a.containerInfo,R_=P1,a=Wp(a),ru(a)){if(\"selectionStart\"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var S=h.getSelection&&h.getSelection();if(S&&S.rangeCount!==0){h=S.anchorNode;var C=S.anchorOffset,R=S.focusNode;S=S.focusOffset;try{h.nodeType,R.nodeType}catch{h=null;break e}var H=0,te=-1,fe=-1,Se=0,Be=0,Ke=a,ke=null;t:for(;;){for(var Pe;Ke!==h||C!==0&&Ke.nodeType!==3||(te=H+C),Ke!==R||S!==0&&Ke.nodeType!==3||(fe=H+S),Ke.nodeType===3&&(H+=Ke.nodeValue.length),(Pe=Ke.firstChild)!==null;)ke=Ke,Ke=Pe;for(;;){if(Ke===a)break t;if(ke===h&&++Se===C&&(te=H),ke===R&&++Be===S&&(fe=H),(Pe=Ke.nextSibling)!==null)break;Ke=ke,ke=Ke.parentNode}Ke=Pe}h=te===-1||fe===-1?null:{start:te,end:fe}}else h=null}h=h||{start:0,end:0}}else h=null;for(M_={focusedElem:a,selectionRange:h},P1=!1,_e=u;_e!==null;)if(u=_e,a=u.child,(u.subtreeFlags&1028)!==0&&a!==null)a.return=u,_e=a;else for(;_e!==null;){switch(u=_e,R=u.alternate,a=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&R!==null){a=void 0,h=u,C=R.memoizedProps,R=R.memoizedState,S=h.stateNode;try{var _t=Tl(h.type,C,h.elementType===h.type);a=S.getSnapshotBeforeUpdate(_t,R),S.__reactInternalSnapshotBeforeUpdate=a}catch(zt){Kn(h,h.return,zt)}}break;case 3:if((a&1024)!==0){if(a=u.stateNode.containerInfo,h=a.nodeType,h===9)P_(a);else if(h===1)switch(a.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":P_(a);break;default:a.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=u.sibling,a!==null){a.return=u.return,_e=a;break}_e=u.return}return _t=je,je=!1,_t}function it(a,u,h){var S=h.flags;switch(h.tag){case 0:case 11:case 15:Bn(a,h),S&4&&Dd(5,h);break;case 1:if(Bn(a,h),S&4)if(a=h.stateNode,u===null)try{a.componentDidMount()}catch(te){Kn(h,h.return,te)}else{var C=Tl(h.type,u.memoizedProps);u=u.memoizedState;try{a.componentDidUpdate(C,u,a.__reactInternalSnapshotBeforeUpdate)}catch(te){Kn(h,h.return,te)}}S&64&&s(h),S&512&&v(h,h.return);break;case 3:if(Bn(a,h),S&64&&(S=h.updateQueue,S!==null)){if(a=null,h.child!==null)switch(h.child.tag){case 27:case 5:a=h.child.stateNode;break;case 1:a=h.child.stateNode}try{wv(S,a)}catch(te){Kn(h,h.return,te)}}break;case 26:Bn(a,h),S&512&&v(h,h.return);break;case 27:case 5:Bn(a,h),u===null&&S&4&&T(h),S&512&&v(h,h.return);break;case 12:Bn(a,h);break;case 13:Bn(a,h),S&4&&$t(a,h);break;case 22:if(C=h.memoizedState!==null||re,!C){u=u!==null&&u.memoizedState!==null||oe;var R=re,H=oe;re=C,(oe=u)&&!H?jn(a,h,(h.subtreeFlags&8772)!==0):Bn(a,h),re=R,oe=H}S&512&&(h.memoizedProps.mode===\"manual\"?v(h,h.return):g(h,h.return));break;default:Bn(a,h)}}function st(a){var u=a.alternate;u!==null&&(a.alternate=null,st(u)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(u=a.stateNode,u!==null&&Ni(u)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Ye=null,ot=!1;function bt(a,u,h){for(h=h.child;h!==null;)wt(a,u,h),h=h.sibling}function wt(a,u,h){if(rt&&typeof rt.onCommitFiberUnmount==\"function\")try{rt.onCommitFiberUnmount(Xt,h)}catch{}switch(h.tag){case 26:oe||g(h,u),bt(a,u,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:oe||g(h,u);var S=Ye,C=ot;for(Ye=h.stateNode,bt(a,u,h),h=h.stateNode,u=h.attributes;u.length;)h.removeAttributeNode(u[0]);Ni(h),Ye=S,ot=C;break;case 5:oe||g(h,u);case 6:C=Ye;var R=ot;if(Ye=null,bt(a,u,h),Ye=C,ot=R,Ye!==null)if(ot)try{a=Ye,S=h.stateNode,a.nodeType===8?a.parentNode.removeChild(S):a.removeChild(S)}catch(H){Kn(h,u,H)}else try{Ye.removeChild(h.stateNode)}catch(H){Kn(h,u,H)}break;case 18:Ye!==null&&(ot?(u=Ye,h=h.stateNode,u.nodeType===8?F_(u.parentNode,h):u.nodeType===1&&F_(u,h),jv(u)):F_(Ye,h.stateNode));break;case 4:S=Ye,C=ot,Ye=h.stateNode.containerInfo,ot=!0,bt(a,u,h),Ye=S,ot=C;break;case 0:case 11:case 14:case 15:oe||ha(2,h,u),oe||ha(4,h,u),bt(a,u,h);break;case 1:oe||(g(h,u),S=h.stateNode,typeof S.componentWillUnmount==\"function\"&&f(h,u,S)),bt(a,u,h);break;case 21:bt(a,u,h);break;case 22:oe||g(h,u),oe=(S=oe)||h.memoizedState!==null,bt(a,u,h),oe=S;break;default:bt(a,u,h)}}function $t(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{jv(a)}catch(h){Kn(u,u.return,h)}}function Pn(a){switch(a.tag){case 13:case 19:var u=a.stateNode;return u===null&&(u=a.stateNode=new me),u;case 22:return a=a.stateNode,u=a._retryCache,u===null&&(u=a._retryCache=new me),u;default:throw Error(r(435,a.tag))}}function Nr(a,u){var h=Pn(a);u.forEach(function(S){var C=Fre.bind(null,a,S);h.has(S)||(h.add(S),S.then(C,C))})}function sn(a,u){var h=u.deletions;if(h!==null)for(var S=0;S<h.length;S++){var C=h[S],R=a,H=u,te=H;e:for(;te!==null;){switch(te.tag){case 27:case 5:Ye=te.stateNode,ot=!1;break e;case 3:Ye=te.stateNode.containerInfo,ot=!0;break e;case 4:Ye=te.stateNode.containerInfo,ot=!0;break e}te=te.return}if(Ye===null)throw Error(r(160));wt(R,H,C),Ye=null,ot=!1,R=C.alternate,R!==null&&(R.return=null),C.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)ki(u,a),u=u.sibling}var Wn=null;function ki(a,u){var h=a.alternate,S=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:sn(u,a),Tn(a),S&4&&(ha(3,a,a.return),Dd(3,a),ha(5,a,a.return));break;case 1:sn(u,a),Tn(a),S&512&&(oe||h===null||g(h,h.return)),S&64&&re&&(a=a.updateQueue,a!==null&&(S=a.callbacks,S!==null&&(h=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=h===null?S:h.concat(S))));break;case 26:var C=Wn;if(sn(u,a),Tn(a),S&512&&(oe||h===null||g(h,h.return)),S&4){var R=h!==null?h.memoizedState:null;if(S=a.memoizedState,h===null)if(S===null)if(a.stateNode===null){e:{S=a.type,h=a.memoizedProps,C=C.ownerDocument||C;t:switch(S){case\"title\":R=C.getElementsByTagName(\"title\")[0],(!R||R[ui]||R[nn]||R.namespaceURI===\"http://www.w3.org/2000/svg\"||R.hasAttribute(\"itemprop\"))&&(R=C.createElement(S),C.head.insertBefore(R,C.querySelector(\"head > title\"))),Wi(R,S,h),R[nn]=a,Dn(R),S=R;break e;case\"link\":var H=Ej(\"link\",\"href\",C).get(S+(h.href||\"\"));if(H){for(var te=0;te<H.length;te++)if(R=H[te],R.getAttribute(\"href\")===(h.href==null?null:h.href)&&R.getAttribute(\"rel\")===(h.rel==null?null:h.rel)&&R.getAttribute(\"title\")===(h.title==null?null:h.title)&&R.getAttribute(\"crossorigin\")===(h.crossOrigin==null?null:h.crossOrigin)){H.splice(te,1);break t}}R=C.createElement(S),Wi(R,S,h),C.head.appendChild(R);break;case\"meta\":if(H=Ej(\"meta\",\"content\",C).get(S+(h.content||\"\"))){for(te=0;te<H.length;te++)if(R=H[te],R.getAttribute(\"content\")===(h.content==null?null:\"\"+h.content)&&R.getAttribute(\"name\")===(h.name==null?null:h.name)&&R.getAttribute(\"property\")===(h.property==null?null:h.property)&&R.getAttribute(\"http-equiv\")===(h.httpEquiv==null?null:h.httpEquiv)&&R.getAttribute(\"charset\")===(h.charSet==null?null:h.charSet)){H.splice(te,1);break t}}R=C.createElement(S),Wi(R,S,h),C.head.appendChild(R);break;default:throw Error(r(468,S))}R[nn]=a,Dn(R),S=R}a.stateNode=S}else Sj(C,a.type,a.stateNode);else a.stateNode=bj(C,S,a.memoizedProps);else R!==S?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,S===null?Sj(C,a.type,a.stateNode):bj(C,S,a.memoizedProps)):S===null&&a.stateNode!==null&&D(a,a.memoizedProps,h.memoizedProps)}break;case 27:if(S&4&&a.alternate===null){C=a.stateNode,R=a.memoizedProps;try{for(var fe=C.firstChild;fe;){var Se=fe.nextSibling,Be=fe.nodeName;fe[ui]||Be===\"HEAD\"||Be===\"BODY\"||Be===\"SCRIPT\"||Be===\"STYLE\"||Be===\"LINK\"&&fe.rel.toLowerCase()===\"stylesheet\"||C.removeChild(fe),fe=Se}for(var Ke=a.type,ke=C.attributes;ke.length;)C.removeAttributeNode(ke[0]);Wi(C,Ke,R),C[nn]=a,C[xn]=R}catch(_t){Kn(a,a.return,_t)}}case 5:if(sn(u,a),Tn(a),S&512&&(oe||h===null||g(h,h.return)),a.flags&32){C=a.stateNode;try{rl(C,\"\")}catch(_t){Kn(a,a.return,_t)}}S&4&&a.stateNode!=null&&(C=a.memoizedProps,D(a,C,h!==null?h.memoizedProps:C)),S&1024&&(be=!0);break;case 6:if(sn(u,a),Tn(a),S&4){if(a.stateNode===null)throw Error(r(162));S=a.memoizedProps,h=a.stateNode;try{h.nodeValue=S}catch(_t){Kn(a,a.return,_t)}}break;case 3:if(L1=null,C=Wn,Wn=R1(u.containerInfo),sn(u,a),Wn=C,Tn(a),S&4&&h!==null&&h.memoizedState.isDehydrated)try{jv(u.containerInfo)}catch(_t){Kn(a,a.return,_t)}be&&(be=!1,Ri(a));break;case 4:S=Wn,Wn=R1(a.stateNode.containerInfo),sn(u,a),Tn(a),Wn=S;break;case 12:sn(u,a),Tn(a);break;case 13:sn(u,a),Tn(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(h_=et()),S&4&&(S=a.updateQueue,S!==null&&(a.updateQueue=null,Nr(a,S)));break;case 22:if(S&512&&(oe||h===null||g(h,h.return)),fe=a.memoizedState!==null,Se=h!==null&&h.memoizedState!==null,Be=re,Ke=oe,re=Be||fe,oe=Ke||Se,sn(u,a),oe=Ke,re=Be,Tn(a),u=a.stateNode,u._current=a,u._visibility&=-3,u._visibility|=u._pendingVisibility&2,S&8192&&(u._visibility=fe?u._visibility&-2:u._visibility|1,fe&&(u=re||oe,h===null||Se||u||Yn(a)),a.memoizedProps===null||a.memoizedProps.mode!==\"manual\"))e:for(h=null,u=a;;){if(u.tag===5||u.tag===26||u.tag===27){if(h===null){Se=h=u;try{if(C=Se.stateNode,fe)R=C.style,typeof R.setProperty==\"function\"?R.setProperty(\"display\",\"none\",\"important\"):R.display=\"none\";else{H=Se.stateNode,te=Se.memoizedProps.style;var Pe=te!=null&&te.hasOwnProperty(\"display\")?te.display:null;H.style.display=Pe==null||typeof Pe==\"boolean\"?\"\":(\"\"+Pe).trim()}}catch(_t){Kn(Se,Se.return,_t)}}}else if(u.tag===6){if(h===null){Se=u;try{Se.stateNode.nodeValue=fe?\"\":Se.memoizedProps}catch(_t){Kn(Se,Se.return,_t)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===a)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;h===u&&(h=null),u=u.return}h===u&&(h=null),u.sibling.return=u.return,u=u.sibling}S&4&&(S=a.updateQueue,S!==null&&(h=S.retryQueue,h!==null&&(S.retryQueue=null,Nr(a,h))));break;case 19:sn(u,a),Tn(a),S&4&&(S=a.updateQueue,S!==null&&(a.updateQueue=null,Nr(a,S)));break;case 21:break;default:sn(u,a),Tn(a)}}function Tn(a){var u=a.flags;if(u&2){try{if(a.tag!==27){e:{for(var h=a.return;h!==null;){if(I(h)){var S=h;break e}h=h.return}throw Error(r(160))}switch(S.tag){case 27:var C=S.stateNode,R=U(a);G(a,R,C);break;case 5:var H=S.stateNode;S.flags&32&&(rl(H,\"\"),S.flags&=-33);var te=U(a);G(a,te,H);break;case 3:case 4:var fe=S.stateNode.containerInfo,Se=U(a);$(a,Se,fe);break;default:throw Error(r(161))}}}catch(Be){Kn(a,a.return,Be)}a.flags&=-3}u&4096&&(a.flags&=-4097)}function Ri(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var u=a;Ri(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),a=a.sibling}}function Bn(a,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)it(a,u.alternate,u),u=u.sibling}function Yn(a){for(a=a.child;a!==null;){var u=a;switch(u.tag){case 0:case 11:case 14:case 15:ha(4,u,u.return),Yn(u);break;case 1:g(u,u.return);var h=u.stateNode;typeof h.componentWillUnmount==\"function\"&&f(u,u.return,h),Yn(u);break;case 26:case 27:case 5:g(u,u.return),Yn(u);break;case 22:g(u,u.return),u.memoizedState===null&&Yn(u);break;default:Yn(u)}a=a.sibling}}function jn(a,u,h){for(h=h&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var S=u.alternate,C=a,R=u,H=R.flags;switch(R.tag){case 0:case 11:case 15:jn(C,R,h),Dd(4,R);break;case 1:if(jn(C,R,h),S=R,C=S.stateNode,typeof C.componentDidMount==\"function\")try{C.componentDidMount()}catch(Se){Kn(S,S.return,Se)}if(S=R,C=S.updateQueue,C!==null){var te=S.stateNode;try{var fe=C.shared.hiddenCallbacks;if(fe!==null)for(C.shared.hiddenCallbacks=null,C=0;C<fe.length;C++)Tv(fe[C],te)}catch(Se){Kn(S,S.return,Se)}}h&&H&64&&s(R),v(R,R.return);break;case 26:case 27:case 5:jn(C,R,h),h&&S===null&&H&4&&T(R),v(R,R.return);break;case 12:jn(C,R,h);break;case 13:jn(C,R,h),h&&H&4&&$t(C,R);break;case 22:R.memoizedState===null&&jn(C,R,h),v(R,R.return);break;default:jn(C,R,h)}u=u.sibling}}function Qn(a,u){var h=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),a=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(a=u.memoizedState.cachePool.pool),a!==h&&(a!=null&&a.refCount++,h!=null&&gi(h))}function yi(a,u){a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&gi(a))}function Co(a,u,h,S){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Is(a,u,h,S),u=u.sibling}function Is(a,u,h,S){var C=u.flags;switch(u.tag){case 0:case 11:case 15:Co(a,u,h,S),C&2048&&Dd(9,u);break;case 3:Co(a,u,h,S),C&2048&&(a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&gi(a)));break;case 12:if(C&2048){Co(a,u,h,S),a=u.stateNode;try{var R=u.memoizedProps,H=R.id,te=R.onPostCommit;typeof te==\"function\"&&te(H,u.alternate===null?\"mount\":\"update\",a.passiveEffectDuration,-0)}catch(fe){Kn(u,u.return,fe)}}else Co(a,u,h,S);break;case 23:break;case 22:R=u.stateNode,u.memoizedState!==null?R._visibility&4?Co(a,u,h,S):ao(a,u):R._visibility&4?Co(a,u,h,S):(R._visibility|=4,br(a,u,h,S,(u.subtreeFlags&10256)!==0)),C&2048&&Qn(u.alternate,u);break;case 24:Co(a,u,h,S),C&2048&&yi(u.alternate,u);break;default:Co(a,u,h,S)}}function br(a,u,h,S,C){for(C=C&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var R=a,H=u,te=h,fe=S,Se=H.flags;switch(H.tag){case 0:case 11:case 15:br(R,H,te,fe,C),Dd(8,H);break;case 23:break;case 22:var Be=H.stateNode;H.memoizedState!==null?Be._visibility&4?br(R,H,te,fe,C):ao(R,H):(Be._visibility|=4,br(R,H,te,fe,C)),C&&Se&2048&&Qn(H.alternate,H);break;case 24:br(R,H,te,fe,C),C&&Se&2048&&yi(H.alternate,H);break;default:br(R,H,te,fe,C)}u=u.sibling}}function ao(a,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var h=a,S=u,C=S.flags;switch(S.tag){case 22:ao(h,S),C&2048&&Qn(S.alternate,S);break;case 24:ao(h,S),C&2048&&yi(S.alternate,S);break;default:ao(h,S)}u=u.sibling}}var dr=8192;function Cl(a){if(a.subtreeFlags&dr)for(a=a.child;a!==null;)Ha(a),a=a.sibling}function Ha(a){switch(a.tag){case 26:Cl(a),a.flags&dr&&a.memoizedState!==null&&fie(Wn,a.memoizedState,a.memoizedProps);break;case 5:Cl(a);break;case 3:case 4:var u=Wn;Wn=R1(a.stateNode.containerInfo),Cl(a),Wn=u;break;case 22:a.memoizedState===null&&(u=a.alternate,u!==null&&u.memoizedState!==null?(u=dr,dr=16777216,Cl(a),dr=u):Cl(a));break;default:Cl(a)}}function _l(a){var u=a.alternate;if(u!==null&&(a=u.child,a!==null)){u.child=null;do u=a.sibling,a.sibling=null,a=u;while(a!==null)}}function ma(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var S=u[h];_e=S,Rh(S,a)}_l(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)bi(a),a=a.sibling}function bi(a){switch(a.tag){case 0:case 11:case 15:ma(a),a.flags&2048&&ha(9,a,a.return);break;case 3:ma(a);break;case 12:ma(a);break;case 22:var u=a.stateNode;a.memoizedState!==null&&u._visibility&4&&(a.return===null||a.return.tag!==13)?(u._visibility&=-5,Fs(a)):ma(a);break;default:ma(a)}}function Fs(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var S=u[h];_e=S,Rh(S,a)}_l(a)}for(a=a.child;a!==null;){switch(u=a,u.tag){case 0:case 11:case 15:ha(8,u,u.return),Fs(u);break;case 22:h=u.stateNode,h._visibility&4&&(h._visibility&=-5,Fs(u));break;default:Fs(u)}a=a.sibling}}function Rh(a,u){for(;_e!==null;){var h=_e;switch(h.tag){case 0:case 11:case 15:ha(8,h,u);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var S=h.memoizedState.cachePool.pool;S!=null&&S.refCount++}break;case 24:gi(h.memoizedState.cache)}if(S=h.child,S!==null)S.return=h,_e=S;else e:for(h=a;_e!==null;){S=_e;var C=S.sibling,R=S.return;if(st(S),S===h){_e=null;break e}if(C!==null){C.return=R,_e=C;break e}_e=R}}}function xre(a,u,h,S){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ga(a,u,h,S){return new xre(a,u,h,S)}function l_(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Kc(a,u){var h=a.alternate;return h===null?(h=Ga(a.tag,u,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=u,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&31457280,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,u=a.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.refCleanup=a.refCleanup,h}function FP(a,u){a.flags&=31457282;var h=a.alternate;return h===null?(a.childLanes=0,a.lanes=u,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type,u=h.dependencies,a.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),a}function b1(a,u,h,S,C,R){var H=0;if(S=a,typeof a==\"function\")l_(a)&&(H=1);else if(typeof a==\"string\")H=uie(a,h,pt.current)?26:a===\"html\"||a===\"head\"||a===\"body\"?27:5;else e:switch(a){case p:return kd(h.children,C,R,u);case d:H=8,C|=24;break;case m:return a=Ga(12,h,u,C|2),a.elementType=m,a.lanes=R,a;case x:return a=Ga(13,h,u,C),a.elementType=x,a.lanes=R,a;case k:return a=Ga(19,h,u,C),a.elementType=k,a.lanes=R,a;case O:return PP(h,C,R,u);default:if(typeof a==\"object\"&&a!==null)switch(a.$$typeof){case E:case y:H=10;break e;case b:H=9;break e;case w:H=11;break e;case N:H=14;break e;case A:H=16,S=null;break e}H=29,h=Error(r(130,a===null?\"null\":typeof a,\"\")),S=null}return u=Ga(H,h,u,C),u.elementType=a,u.type=S,u.lanes=R,u}function kd(a,u,h,S){return a=Ga(7,a,S,u),a.lanes=h,a}function PP(a,u,h,S){a=Ga(22,a,S,u),a.elementType=O,a.lanes=h;var C={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var R=C._current;if(R===null)throw Error(r(456));if((C._pendingVisibility&2)===0){var H=jo(R,2);H!==null&&(C._pendingVisibility|=2,_o(H,R,2))}},attach:function(){var R=C._current;if(R===null)throw Error(r(456));if((C._pendingVisibility&2)!==0){var H=jo(R,2);H!==null&&(C._pendingVisibility&=-3,_o(H,R,2))}}};return a.stateNode=C,a}function u_(a,u,h){return a=Ga(6,a,null,u),a.lanes=h,a}function c_(a,u,h){return u=Ga(4,a.children!==null?a.children:[],a.key,u),u.lanes=h,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}function Au(a){a.flags|=4}function jP(a,u){if(u.type!==\"stylesheet\"||(u.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Tj(u)){if(u=Gi.current,u!==null&&((wn&4194176)===wn?To!==null:(wn&62914560)!==wn&&(wn&536870912)===0||u!==To))throw Ac=Zp,ws;a.flags|=8192}}function E1(a,u){u!==null&&(a.flags|=4),a.flags&16384&&(u=a.tag!==22?tr():536870912,a.lanes|=u,Lh|=u)}function xv(a,u){if(!vn)switch(a.tailMode){case\"hidden\":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?a.tail=null:h.sibling=null;break;case\"collapsed\":h=a.tail;for(var S=null;h!==null;)h.alternate!==null&&(S=h),h=h.sibling;S===null?u||a.tail===null?a.tail=null:a.tail.sibling=null:S.sibling=null}}function Ar(a){var u=a.alternate!==null&&a.alternate.child===a.child,h=0,S=0;if(u)for(var C=a.child;C!==null;)h|=C.lanes|C.childLanes,S|=C.subtreeFlags&31457280,S|=C.flags&31457280,C.return=a,C=C.sibling;else for(C=a.child;C!==null;)h|=C.lanes|C.childLanes,S|=C.subtreeFlags,S|=C.flags,C.return=a,C=C.sibling;return a.subtreeFlags|=S,a.childLanes=h,u}function Cre(a,u,h){var S=u.pendingProps;switch(uu(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(u),null;case 1:return Ar(u),null;case 3:return h=u.stateNode,S=null,a!==null&&(S=a.memoizedState.cache),u.memoizedState.cache!==S&&(u.flags|=2048),Wr(Pr),ve(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(Nc(u)?Au(u):a===null||a.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Jr!==null&&(y_(Jr),Jr=null))),Ar(u),null;case 26:return h=u.memoizedState,a===null?(Au(u),h!==null?(Ar(u),jP(u,h)):(Ar(u),u.flags&=-16777217)):h?h!==a.memoizedState?(Au(u),Ar(u),jP(u,h)):(Ar(u),u.flags&=-16777217):(a.memoizedProps!==S&&Au(u),Ar(u),u.flags&=-16777217),null;case 27:Ie(u),h=Ce.current;var C=u.type;if(a!==null&&u.stateNode!=null)a.memoizedProps!==S&&Au(u);else{if(!S){if(u.stateNode===null)throw Error(r(166));return Ar(u),null}a=pt.current,Nc(u)?ml(u):(a=hj(C,S,h),u.stateNode=a,Au(u))}return Ar(u),null;case 5:if(Ie(u),h=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==S&&Au(u);else{if(!S){if(u.stateNode===null)throw Error(r(166));return Ar(u),null}if(a=pt.current,Nc(u))ml(u);else{switch(C=k1(Ce.current),a){case 1:a=C.createElementNS(\"http://www.w3.org/2000/svg\",h);break;case 2:a=C.createElementNS(\"http://www.w3.org/1998/Math/MathML\",h);break;default:switch(h){case\"svg\":a=C.createElementNS(\"http://www.w3.org/2000/svg\",h);break;case\"math\":a=C.createElementNS(\"http://www.w3.org/1998/Math/MathML\",h);break;case\"script\":a=C.createElement(\"div\"),a.innerHTML=\"<script><\\/script>\",a=a.removeChild(a.firstChild);break;case\"select\":a=typeof S.is==\"string\"?C.createElement(\"select\",{is:S.is}):C.createElement(\"select\"),S.multiple?a.multiple=!0:S.size&&(a.size=S.size);break;default:a=typeof S.is==\"string\"?C.createElement(h,{is:S.is}):C.createElement(h)}}a[nn]=u,a[xn]=S;e:for(C=u.child;C!==null;){if(C.tag===5||C.tag===6)a.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===u)break e;for(;C.sibling===null;){if(C.return===null||C.return===u)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}u.stateNode=a;e:switch(Wi(a,h,S),h){case\"button\":case\"input\":case\"select\":case\"textarea\":a=!!S.autoFocus;break e;case\"img\":a=!0;break e;default:a=!1}a&&Au(u)}}return Ar(u),u.flags&=-16777217,null;case 6:if(a&&u.stateNode!=null)a.memoizedProps!==S&&Au(u);else{if(typeof S!=\"string\"&&u.stateNode===null)throw Error(r(166));if(a=Ce.current,Nc(u)){if(a=u.stateNode,h=u.memoizedProps,S=null,C=mi,C!==null)switch(C.tag){case 27:case 5:S=C.memoizedProps}a[nn]=u,a=!!(a.nodeValue===h||S!==null&&S.suppressHydrationWarning===!0||lj(a.nodeValue,h)),a||aa(u)}else a=k1(a).createTextNode(S),a[nn]=u,u.stateNode=a}return Ar(u),null;case 13:if(S=u.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(C=Nc(u),S!==null&&S.dehydrated!==null){if(a===null){if(!C)throw Error(r(318));if(C=u.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[nn]=u}else cu(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Ar(u),C=!1}else Jr!==null&&(y_(Jr),Jr=null),C=!0;if(!C)return u.flags&256?(la(u),u):(la(u),null)}if(la(u),(u.flags&128)!==0)return u.lanes=h,u;if(h=S!==null,a=a!==null&&a.memoizedState!==null,h){S=u.child,C=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(C=S.alternate.memoizedState.cachePool.pool);var R=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(R=S.memoizedState.cachePool.pool),R!==C&&(S.flags|=2048)}return h!==a&&h&&(u.child.flags|=8192),E1(u,u.updateQueue),Ar(u),null;case 4:return ve(),a===null&&O_(u.stateNode.containerInfo),Ar(u),null;case 10:return Wr(u.type),Ar(u),null;case 19:if(qe(ir),C=u.memoizedState,C===null)return Ar(u),null;if(S=(u.flags&128)!==0,R=C.rendering,R===null)if(S)xv(C,!1);else{if(Vr!==0||a!==null&&(a.flags&128)!==0)for(a=u.child;a!==null;){if(R=pd(a),R!==null){for(u.flags|=128,xv(C,!1),a=R.updateQueue,u.updateQueue=a,E1(u,a),u.subtreeFlags=0,a=h,h=u.child;h!==null;)FP(h,a),h=h.sibling;return dt(ir,ir.current&1|2),u.child}a=a.sibling}C.tail!==null&&et()>S1&&(u.flags|=128,S=!0,xv(C,!1),u.lanes=4194304)}else{if(!S)if(a=pd(R),a!==null){if(u.flags|=128,S=!0,a=a.updateQueue,u.updateQueue=a,E1(u,a),xv(C,!0),C.tail===null&&C.tailMode===\"hidden\"&&!R.alternate&&!vn)return Ar(u),null}else 2*et()-C.renderingStartTime>S1&&h!==536870912&&(u.flags|=128,S=!0,xv(C,!1),u.lanes=4194304);C.isBackwards?(R.sibling=u.child,u.child=R):(a=C.last,a!==null?a.sibling=R:u.child=R,C.last=R)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=et(),u.sibling=null,a=ir.current,dt(ir,S?a&1|2:a&1),u):(Ar(u),null);case 22:case 23:return la(u),eh(),S=u.memoizedState!==null,a!==null?a.memoizedState!==null!==S&&(u.flags|=8192):S&&(u.flags|=8192),S?(h&536870912)!==0&&(u.flags&128)===0&&(Ar(u),u.subtreeFlags&6&&(u.flags|=8192)):Ar(u),h=u.updateQueue,h!==null&&E1(u,h.retryQueue),h=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),S=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(S=u.memoizedState.cachePool.pool),S!==h&&(u.flags|=2048),a!==null&&qe(Ua),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),u.memoizedState.cache!==h&&(u.flags|=2048),Wr(Pr),Ar(u),null;case 25:return null}throw Error(r(156,u.tag))}function _re(a,u){switch(uu(u),u.tag){case 1:return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 3:return Wr(Pr),ve(),a=u.flags,(a&65536)!==0&&(a&128)===0?(u.flags=a&-65537|128,u):null;case 26:case 27:case 5:return Ie(u),null;case 13:if(la(u),a=u.memoizedState,a!==null&&a.dehydrated!==null){if(u.alternate===null)throw Error(r(340));cu()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 19:return qe(ir),null;case 4:return ve(),null;case 10:return Wr(u.type),null;case 22:case 23:return la(u),eh(),a!==null&&qe(Ua),a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 24:return Wr(Pr),null;case 25:return null;default:return null}}function VP(a,u){switch(uu(u),u.tag){case 3:Wr(Pr),ve();break;case 26:case 27:case 5:Ie(u);break;case 4:ve();break;case 13:la(u);break;case 19:qe(ir);break;case 10:Wr(u.type);break;case 22:case 23:la(u),eh(),a!==null&&qe(Ua);break;case 24:Wr(Pr)}}var Nre={getCacheForType:function(a){var u=ei(Pr),h=u.data.get(a);return h===void 0&&(h=a(),u.data.set(a,h)),h}},Are=typeof WeakMap==\"function\"?WeakMap:Map,Or=0,or=null,fn=null,wn=0,ar=0,ga=null,Ou=!1,Mh=!1,f_=!1,Du=0,Vr=0,Xc=0,Rd=0,d_=0,Wa=0,Lh=0,Cv=null,Nl=null,p_=!1,h_=0,S1=1/0,T1=null,Zc=null,w1=!1,Md=null,_v=0,m_=0,g_=null,Nv=0,v_=null;function va(){if((Or&2)!==0&&wn!==0)return wn&-wn;if(j.T!==null){var a=ro;return a!==0?a:C_()}return ko()}function UP(){Wa===0&&(Wa=(wn&536870912)===0||vn?Mn():536870912);var a=Gi.current;return a!==null&&(a.flags|=32),Wa}function _o(a,u,h){(a===or&&ar===2||a.cancelPendingCommit!==null)&&(Ih(a,0),ku(a,wn,Wa,!1)),En(a,h),((Or&2)===0||a!==or)&&(a===or&&((Or&2)===0&&(Rd|=h),Vr===4&&ku(a,wn,Wa,!1)),Al(a))}function qP(a,u,h){if((Or&6)!==0)throw Error(r(327));var S=!h&&(u&60)===0&&(u&a.expiredLanes)===0||Mt(a,u),C=S?kre(a,u):S_(a,u,!0),R=S;do{if(C===0){Mh&&!S&&ku(a,u,0,!1);break}else if(C===6)ku(a,u,0,!Ou);else{if(h=a.current.alternate,R&&!Ore(h)){C=S_(a,u,!1),R=!1;continue}if(C===2){if(R=u,a.errorRecoveryDisabledLanes&R)var H=0;else H=a.pendingLanes&-536870913,H=H!==0?H:H&536870912?536870912:0;if(H!==0){u=H;e:{var te=a;C=Cv;var fe=te.current.memoizedState.isDehydrated;if(fe&&(Ih(te,H).flags|=256),H=S_(te,H,!1),H!==2){if(f_&&!fe){te.errorRecoveryDisabledLanes|=R,Rd|=R,C=4;break e}R=Nl,Nl=C,R!==null&&y_(R)}C=H}if(R=!1,C!==2)continue}}if(C===1){Ih(a,0),ku(a,u,0,!0);break}e:{switch(S=a,C){case 0:case 1:throw Error(r(345));case 4:if((u&4194176)===u){ku(S,u,Wa,!Ou);break e}break;case 2:Nl=null;break;case 3:case 5:break;default:throw Error(r(329))}if(S.finishedWork=h,S.finishedLanes=u,(u&62914560)===u&&(R=h_+300-et(),10<R)){if(ku(S,u,Wa,!Ou),xt(S,0)!==0)break e;S.timeoutHandle=fj(BP.bind(null,S,h,Nl,T1,p_,u,Wa,Rd,Lh,Ou,2,-0,0),R);break e}BP(S,h,Nl,T1,p_,u,Wa,Rd,Lh,Ou,0,-0,0)}}break}while(!0);Al(a)}function y_(a){Nl===null?Nl=a:Nl.push.apply(Nl,a)}function BP(a,u,h,S,C,R,H,te,fe,Se,Be,Ke,ke){var Pe=u.subtreeFlags;if((Pe&8192||(Pe&16785408)===16785408)&&(Mv={stylesheets:null,count:0,unsuspend:cie},Ha(u),u=die(),u!==null)){a.cancelPendingCommit=u(QP.bind(null,a,h,S,C,H,te,fe,1,Ke,ke)),ku(a,R,H,!Se);return}QP(a,h,S,C,H,te,fe,Be,Ke,ke)}function Ore(a){for(var u=a;;){var h=u.tag;if((h===0||h===11||h===15)&&u.flags&16384&&(h=u.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var S=0;S<h.length;S++){var C=h[S],R=C.getSnapshot;C=C.value;try{if(!Zr(R(),C))return!1}catch{return!1}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ku(a,u,h,S){u&=~d_,u&=~Rd,a.suspendedLanes|=u,a.pingedLanes&=~u,S&&(a.warmLanes|=u),S=a.expirationTimes;for(var C=u;0<C;){var R=31-ut(C),H=1<<R;S[R]=-1,C&=~H}h!==0&&xr(a,h,u)}function x1(){return(Or&6)===0?(Av(0),!1):!0}function b_(){if(fn!==null){if(ar===0)var a=fn.return;else a=fn,fa=xl=null,bd(a),Ir=null,nr=0,a=fn;for(;a!==null;)VP(a.alternate,a),a=a.return;fn=null}}function Ih(a,u){a.finishedWork=null,a.finishedLanes=0;var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,Yre(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),b_(),or=a,fn=h=Kc(a.current,null),wn=u,ar=0,ga=null,Ou=!1,Mh=Mt(a,u),f_=!1,Lh=Wa=d_=Rd=Xc=Vr=0,Nl=Cv=null,p_=!1,(u&8)!==0&&(u|=u&32);var S=a.entangledLanes;if(S!==0)for(a=a.entanglements,S&=u;0<S;){var C=31-ut(S),R=1<<C;u|=a[C],S&=~R}return Du=u,Ss(),h}function $P(a,u){Gt=null,j.H=oo,u===Bo?(u=Gg(),ar=3):u===ws?(u=Gg(),ar=4):ar=u===hv?8:u!==null&&typeof u==\"object\"&&typeof u.then==\"function\"?6:1,ga=u,fn===null&&(Vr=1,Rs(a,zi(u,a.current)))}function zP(){var a=j.H;return j.H=oo,a===null?oo:a}function HP(){var a=j.A;return j.A=Nre,a}function E_(){Vr=4,Ou||(wn&4194176)!==wn&&Gi.current!==null||(Mh=!0),(Xc&134217727)===0&&(Rd&134217727)===0||or===null||ku(or,wn,Wa,!1)}function S_(a,u,h){var S=Or;Or|=2;var C=zP(),R=HP();(or!==a||wn!==u)&&(T1=null,Ih(a,u)),u=!1;var H=Vr;e:do try{if(ar!==0&&fn!==null){var te=fn,fe=ga;switch(ar){case 8:b_(),H=6;break e;case 3:case 2:case 6:Gi.current===null&&(u=!0);var Se=ar;if(ar=0,ga=null,Fh(a,te,fe,Se),h&&Mh){H=0;break e}break;default:Se=ar,ar=0,ga=null,Fh(a,te,fe,Se)}}Dre(),H=Vr;break}catch(Be){$P(a,Be)}while(!0);return u&&a.shellSuspendCounter++,fa=xl=null,Or=S,j.H=C,j.A=R,fn===null&&(or=null,wn=0,Ss()),H}function Dre(){for(;fn!==null;)GP(fn)}function kre(a,u){var h=Or;Or|=2;var S=zP(),C=HP();or!==a||wn!==u?(T1=null,S1=et()+500,Ih(a,u)):Mh=Mt(a,u);e:do try{if(ar!==0&&fn!==null){u=fn;var R=ga;t:switch(ar){case 1:ar=0,ga=null,Fh(a,u,R,1);break;case 2:if(zg(R)){ar=0,ga=null,WP(u);break}u=function(){ar===2&&or===a&&(ar=7),Al(a)},R.then(u,u);break e;case 3:ar=7;break e;case 4:ar=5;break e;case 7:zg(R)?(ar=0,ga=null,WP(u)):(ar=0,ga=null,Fh(a,u,R,7));break;case 5:var H=null;switch(fn.tag){case 26:H=fn.memoizedState;case 5:case 27:var te=fn;if(!H||Tj(H)){ar=0,ga=null;var fe=te.sibling;if(fe!==null)fn=fe;else{var Se=te.return;Se!==null?(fn=Se,C1(Se)):fn=null}break t}}ar=0,ga=null,Fh(a,u,R,5);break;case 6:ar=0,ga=null,Fh(a,u,R,6);break;case 8:b_(),Vr=6;break e;default:throw Error(r(462))}}Rre();break}catch(Be){$P(a,Be)}while(!0);return fa=xl=null,j.H=S,j.A=C,Or=h,fn!==null?0:(or=null,wn=0,Ss(),Vr)}function Rre(){for(;fn!==null&&!we();)GP(fn)}function GP(a){var u=Ev(a.alternate,a,Du);a.memoizedProps=a.pendingProps,u===null?C1(a):fn=u}function WP(a){var u=a,h=u.alternate;switch(u.tag){case 15:case 0:u=gv(h,u,u.pendingProps,u.type,void 0,wn);break;case 11:u=gv(h,u,u.pendingProps,u.type.render,u.ref,wn);break;case 5:bd(u);default:VP(h,u),u=fn=FP(u,Du),u=Ev(h,u,Du)}a.memoizedProps=a.pendingProps,u===null?C1(a):fn=u}function Fh(a,u,h,S){fa=xl=null,bd(u),Ir=null,nr=0;var C=u.return;try{if(pv(a,C,u,h,wn)){Vr=1,Rs(a,zi(h,a.current)),fn=null;return}}catch(R){if(C!==null)throw fn=C,R;Vr=1,Rs(a,zi(h,a.current)),fn=null;return}u.flags&32768?(vn||S===1?a=!0:Mh||(wn&536870912)!==0?a=!1:(Ou=a=!0,(S===2||S===3||S===6)&&(S=Gi.current,S!==null&&S.tag===13&&(S.flags|=16384))),YP(u,a)):C1(u)}function C1(a){var u=a;do{if((u.flags&32768)!==0){YP(u,Ou);return}a=u.return;var h=Cre(u.alternate,u,Du);if(h!==null){fn=h;return}if(u=u.sibling,u!==null){fn=u;return}fn=u=a}while(u!==null);Vr===0&&(Vr=5)}function YP(a,u){do{var h=_re(a.alternate,a);if(h!==null){h.flags&=32767,fn=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!u&&(a=a.sibling,a!==null)){fn=a;return}fn=a=h}while(a!==null);Vr=6,fn=null}function QP(a,u,h,S,C,R,H,te,fe,Se){var Be=j.T,Ke=le.p;try{le.p=2,j.T=null,Mre(a,u,h,S,Ke,C,R,H,te,fe,Se)}finally{j.T=Be,le.p=Ke}}function Mre(a,u,h,S,C,R,H,te){do Ph();while(Md!==null);if((Or&6)!==0)throw Error(r(327));var fe=a.finishedWork;if(S=a.finishedLanes,fe===null)return null;if(a.finishedWork=null,a.finishedLanes=0,fe===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var Se=fe.lanes|fe.childLanes;if(Se|=ld,Un(a,S,Se,R,H,te),a===or&&(fn=or=null,wn=0),(fe.subtreeFlags&10256)===0&&(fe.flags&10256)===0||w1||(w1=!0,m_=Se,g_=h,Pre(vt,function(){return Ph(),null})),h=(fe.flags&15990)!==0,(fe.subtreeFlags&15990)!==0||h?(h=j.T,j.T=null,R=le.p,le.p=2,H=Or,Or|=4,Ze(a,fe),ki(fe,a),Po(M_,a.containerInfo),P1=!!R_,M_=R_=null,a.current=fe,it(a,fe.alternate,fe),ze(),Or=H,le.p=R,j.T=h):a.current=fe,w1?(w1=!1,Md=a,_v=S):KP(a,Se),Se=a.pendingLanes,Se===0&&(Zc=null),Rr(fe.stateNode),Al(a),u!==null)for(C=a.onRecoverableError,fe=0;fe<u.length;fe++)Se=u[fe],C(Se.value,{componentStack:Se.stack});return(_v&3)!==0&&Ph(),Se=a.pendingLanes,(S&4194218)!==0&&(Se&42)!==0?a===v_?Nv++:(Nv=0,v_=a):Nv=0,Av(0),null}function KP(a,u){(a.pooledCacheLanes&=u)===0&&(u=a.pooledCache,u!=null&&(a.pooledCache=null,gi(u)))}function Ph(){if(Md!==null){var a=Md,u=m_;m_=0;var h=La(_v),S=j.T,C=le.p;try{if(le.p=32>h?32:h,j.T=null,Md===null)var R=!1;else{h=g_,g_=null;var H=Md,te=_v;if(Md=null,_v=0,(Or&6)!==0)throw Error(r(331));var fe=Or;if(Or|=4,bi(H.current),Is(H,H.current,te,h),Or=fe,Av(0,!1),rt&&typeof rt.onPostCommitFiberRoot==\"function\")try{rt.onPostCommitFiberRoot(Xt,H)}catch{}R=!0}return R}finally{le.p=C,j.T=S,KP(a,u)}}return!1}function XP(a,u,h){u=zi(h,u),u=_d(a.stateNode,u,2),a=Ls(a,u,2),a!==null&&(En(a,2),Al(a))}function Kn(a,u,h){if(a.tag===3)XP(a,a,h);else for(;u!==null;){if(u.tag===3){XP(u,a,h);break}else if(u.tag===1){var S=u.stateNode;if(typeof u.type.getDerivedStateFromError==\"function\"||typeof S.componentDidCatch==\"function\"&&(Zc===null||!Zc.has(S))){a=zi(h,a),h=dv(2),S=Ls(u,h,2),S!==null&&(Th(h,S,u,a),En(S,2),Al(S));break}}u=u.return}}function T_(a,u,h){var S=a.pingCache;if(S===null){S=a.pingCache=new Are;var C=new Set;S.set(u,C)}else C=S.get(u),C===void 0&&(C=new Set,S.set(u,C));C.has(h)||(f_=!0,C.add(h),a=Lre.bind(null,a,u,h),u.then(a,a))}function Lre(a,u,h){var S=a.pingCache;S!==null&&S.delete(u),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,or===a&&(wn&h)===h&&(Vr===4||Vr===3&&(wn&62914560)===wn&&300>et()-h_?(Or&2)===0&&Ih(a,0):d_|=h,Lh===wn&&(Lh=0)),Al(a)}function ZP(a,u){u===0&&(u=tr()),a=jo(a,u),a!==null&&(En(a,u),Al(a))}function Ire(a){var u=a.memoizedState,h=0;u!==null&&(h=u.retryLane),ZP(a,h)}function Fre(a,u){var h=0;switch(a.tag){case 13:var S=a.stateNode,C=a.memoizedState;C!==null&&(h=C.retryLane);break;case 19:S=a.stateNode;break;case 22:S=a.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(u),ZP(a,h)}function Pre(a,u){return ht(a,u)}var _1=null,jh=null,w_=!1,N1=!1,x_=!1,Ld=0;function Al(a){a!==jh&&a.next===null&&(jh===null?_1=jh=a:jh=jh.next=a),N1=!0,w_||(w_=!0,Vre(jre))}function Av(a,u){if(!x_&&N1){x_=!0;do for(var h=!1,S=_1;S!==null;){if(a!==0){var C=S.pendingLanes;if(C===0)var R=0;else{var H=S.suspendedLanes,te=S.pingedLanes;R=(1<<31-ut(42|a)+1)-1,R&=C&~(H&~te),R=R&201326677?R&201326677|1:R?R|2:0}R!==0&&(h=!0,tj(S,R))}else R=wn,R=xt(S,S===or?R:0),(R&3)===0||Mt(S,R)||(h=!0,tj(S,R));S=S.next}while(h);x_=!1}}function jre(){N1=w_=!1;var a=0;Ld!==0&&(Wre()&&(a=Ld),Ld=0);for(var u=et(),h=null,S=_1;S!==null;){var C=S.next,R=JP(S,u);R===0?(S.next=null,h===null?_1=C:h.next=C,C===null&&(jh=h)):(h=S,(a!==0||(R&3)!==0)&&(N1=!0)),S=C}Av(a)}function JP(a,u){for(var h=a.suspendedLanes,S=a.pingedLanes,C=a.expirationTimes,R=a.pendingLanes&-62914561;0<R;){var H=31-ut(R),te=1<<H,fe=C[H];fe===-1?((te&h)===0||(te&S)!==0)&&(C[H]=yn(te,u)):fe<=u&&(a.expiredLanes|=te),R&=~te}if(u=or,h=wn,h=xt(a,a===u?h:0),S=a.callbackNode,h===0||a===u&&ar===2||a.cancelPendingCommit!==null)return S!==null&&S!==null&&Qe(S),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||Mt(a,h)){if(u=h&-h,u===a.callbackPriority)return u;switch(S!==null&&Qe(S),La(h)){case 2:case 8:h=cn;break;case 32:h=vt;break;case 268435456:h=mt;break;default:h=vt}return S=ej.bind(null,a),h=ht(h,S),a.callbackPriority=u,a.callbackNode=h,u}return S!==null&&S!==null&&Qe(S),a.callbackPriority=2,a.callbackNode=null,2}function ej(a,u){var h=a.callbackNode;if(Ph()&&a.callbackNode!==h)return null;var S=wn;return S=xt(a,a===or?S:0),S===0?null:(qP(a,S,u),JP(a,et()),a.callbackNode!=null&&a.callbackNode===h?ej.bind(null,a):null)}function tj(a,u){if(Ph())return null;qP(a,u,!0)}function Vre(a){Qre(function(){(Or&6)!==0?ht(Pt,a):a()})}function C_(){return Ld===0&&(Ld=Mn()),Ld}function nj(a){return a==null||typeof a==\"symbol\"||typeof a==\"boolean\"?null:typeof a==\"function\"?a:Qf(\"\"+a)}function rj(a,u){var h=u.ownerDocument.createElement(\"input\");return h.name=u.name,h.value=u.value,a.id&&h.setAttribute(\"form\",a.id),u.parentNode.insertBefore(h,u),a=new FormData(a),h.parentNode.removeChild(h),a}function Ure(a,u,h,S,C){if(u===\"submit\"&&h&&h.stateNode===C){var R=nj((C[xn]||null).action),H=S.submitter;H&&(u=(u=H[xn]||null)?nj(u.formAction):H.getAttribute(\"formAction\"),u!==null&&(R=u,H=null));var te=new $i(\"action\",\"action\",null,S,C);a.push({event:te,listeners:[{instance:null,listener:function(){if(S.defaultPrevented){if(Ld!==0){var fe=H?rj(C,H):new FormData(C);gh(h,{pending:!0,data:fe,method:C.method,action:R},null,fe)}}else typeof R==\"function\"&&(te.preventDefault(),fe=H?rj(C,H):new FormData(C),gh(h,{pending:!0,data:fe,method:C.method,action:R},R,fe))},currentTarget:C}]})}}for(var __=0;__<Pa.length;__++){var N_=Pa[__],qre=N_.toLowerCase(),Bre=N_[0].toUpperCase()+N_.slice(1);Hr(qre,\"on\"+Bre)}Hr(cl,\"onAnimationEnd\"),Hr(ad,\"onAnimationIteration\"),Hr(sd,\"onAnimationStart\"),Hr(\"dblclick\",\"onDoubleClick\"),Hr(\"focusin\",\"onFocus\"),Hr(\"focusout\",\"onBlur\"),Hr(Bg,\"onTransitionRun\"),Hr(Qp,\"onTransitionStart\"),Hr(fl,\"onTransitionCancel\"),Hr(Es,\"onTransitionEnd\"),fi(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),fi(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),fi(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),fi(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),Yt(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),Yt(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),Yt(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),Yt(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),Yt(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),Yt(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var Ov=\"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(\" \"),$re=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(Ov));function ij(a,u){u=(u&4)!==0;for(var h=0;h<a.length;h++){var S=a[h],C=S.event;S=S.listeners;e:{var R=void 0;if(u)for(var H=S.length-1;0<=H;H--){var te=S[H],fe=te.instance,Se=te.currentTarget;if(te=te.listener,fe!==R&&C.isPropagationStopped())break e;R=te,C.currentTarget=Se;try{R(C)}catch(Be){qc(Be)}C.currentTarget=null,R=fe}else for(H=0;H<S.length;H++){if(te=S[H],fe=te.instance,Se=te.currentTarget,te=te.listener,fe!==R&&C.isPropagationStopped())break e;R=te,C.currentTarget=Se;try{R(C)}catch(Be){qc(Be)}C.currentTarget=null,R=fe}}}}function bn(a,u){var h=u[_i];h===void 0&&(h=u[_i]=new Set);var S=a+\"__bubble\";h.has(S)||(oj(u,a,2,!1),h.add(S))}function A_(a,u,h){var S=0;u&&(S|=4),oj(h,a,S,u)}var A1=\"_reactListening\"+Math.random().toString(36).slice(2);function O_(a){if(!a[A1]){a[A1]=!0,tl.forEach(function(h){h!==\"selectionchange\"&&($re.has(h)||A_(h,!1,a),A_(h,!0,a))});var u=a.nodeType===9?a:a.ownerDocument;u===null||u[A1]||(u[A1]=!0,A_(\"selectionchange\",!1,u))}}function oj(a,u,h,S){switch(Aj(u)){case 2:var C=mie;break;case 8:C=gie;break;default:C=B_}h=C.bind(null,u,h,a),C=void 0,!Ip||u!==\"touchstart\"&&u!==\"touchmove\"&&u!==\"wheel\"||(C=!0),S?C!==void 0?a.addEventListener(u,h,{capture:!0,passive:C}):a.addEventListener(u,h,!0):C!==void 0?a.addEventListener(u,h,{passive:C}):a.addEventListener(u,h,!1)}function D_(a,u,h,S,C){var R=S;if((u&1)===0&&(u&2)===0&&S!==null)e:for(;;){if(S===null)return;var H=S.tag;if(H===3||H===4){var te=S.stateNode.containerInfo;if(te===C||te.nodeType===8&&te.parentNode===C)break;if(H===4)for(H=S.return;H!==null;){var fe=H.tag;if((fe===3||fe===4)&&(fe=H.stateNode.containerInfo,fe===C||fe.nodeType===8&&fe.parentNode===C))return;H=H.return}for(;te!==null;){if(H=mo(te),H===null)return;if(fe=H.tag,fe===5||fe===6||fe===26||fe===27){S=R=H;continue e}te=te.parentNode}}S=S.return}Kf(function(){var Se=R,Be=il(h),Ke=[];e:{var ke=hi.get(a);if(ke!==void 0){var Pe=$i,_t=a;switch(a){case\"keypress\":if(dc(h)===0)break e;case\"keydown\":case\"keyup\":Pe=ed;break;case\"focusin\":_t=\"focus\",Pe=Pp;break;case\"focusout\":_t=\"blur\",Pe=Pp;break;case\"beforeblur\":case\"afterblur\":Pe=Pp;break;case\"click\":if(h.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":Pe=ia;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":Pe=Fp;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":Pe=a1;break;case cl:case ad:case sd:Pe=a_;break;case Es:Pe=Lr;break;case\"scroll\":case\"scrollend\":Pe=e1;break;case\"wheel\":Pe=kg;break;case\"copy\":case\"cut\":case\"paste\":Pe=Cg;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":Pe=Dg;break;case\"toggle\":case\"beforetoggle\":Pe=l1}var zt=(u&4)!==0,Ur=!zt&&(a===\"scroll\"||a===\"scrollend\"),xe=zt?ke!==null?ke+\"Capture\":null:ke;zt=[];for(var Ee=Se,Ne;Ee!==null;){var He=Ee;if(Ne=He.stateNode,He=He.tag,He!==5&&He!==26&&He!==27||Ne===null||xe===null||(He=Zl(Ee,xe),He!=null&&zt.push(Dv(Ee,He,Ne))),Ur)break;Ee=Ee.return}0<zt.length&&(ke=new Pe(ke,_t,null,h,Be),Ke.push({event:ke,listeners:zt}))}}if((u&7)===0){e:{if(ke=a===\"mouseover\"||a===\"pointerover\",Pe=a===\"mouseout\"||a===\"pointerout\",ke&&h!==Ql&&(_t=h.relatedTarget||h.fromElement)&&(mo(_t)||_t[qi]))break e;if((Pe||ke)&&(ke=Be.window===Be?Be:(ke=Be.ownerDocument)?ke.defaultView||ke.parentWindow:window,Pe?(_t=h.relatedTarget||h.toElement,Pe=Se,_t=_t?mo(_t):null,_t!==null&&(Ur=se(_t),zt=_t.tag,_t!==Ur||zt!==5&&zt!==27&&zt!==6)&&(_t=null)):(Pe=null,_t=Se),Pe!==_t)){if(zt=ia,He=\"onMouseLeave\",xe=\"onMouseEnter\",Ee=\"mouse\",(a===\"pointerout\"||a===\"pointerover\")&&(zt=Dg,He=\"onPointerLeave\",xe=\"onPointerEnter\",Ee=\"pointer\"),Ur=Pe==null?ke:In(Pe),Ne=_t==null?ke:In(_t),ke=new zt(He,Ee+\"leave\",Pe,h,Be),ke.target=Ur,ke.relatedTarget=Ne,He=null,mo(Be)===Se&&(zt=new zt(xe,Ee+\"enter\",_t,h,Be),zt.target=Ne,zt.relatedTarget=Ur,He=zt),Ur=He,Pe&&_t)t:{for(zt=Pe,xe=_t,Ee=0,Ne=zt;Ne;Ne=Vh(Ne))Ee++;for(Ne=0,He=xe;He;He=Vh(He))Ne++;for(;0<Ee-Ne;)zt=Vh(zt),Ee--;for(;0<Ne-Ee;)xe=Vh(xe),Ne--;for(;Ee--;){if(zt===xe||xe!==null&&zt===xe.alternate)break t;zt=Vh(zt),xe=Vh(xe)}zt=null}else zt=null;Pe!==null&&aj(Ke,ke,Pe,zt,!1),_t!==null&&Ur!==null&&aj(Ke,Ur,_t,zt,!0)}}e:{if(ke=Se?In(Se):window,Pe=ke.nodeName&&ke.nodeName.toLowerCase(),Pe===\"select\"||Pe===\"input\"&&ke.type===\"file\")var St=Pg;else if($p(ke))if(zp)St=Vg;else{St=f1;var ln=c1}else Pe=ke.nodeName,!Pe||Pe.toLowerCase()!==\"input\"||ke.type!==\"checkbox\"&&ke.type!==\"radio\"?Se&&Mp(Se.elementType)&&(St=Pg):St=d1;if(St&&(St=St(a,Se))){Lo(Ke,St,h,Be);break e}ln&&ln(a,ke,Se),a===\"focusout\"&&Se&&ke.type===\"number\"&&Se.memoizedProps.value!=null&&Yf(ke,\"number\",ke.value)}switch(ln=Se?In(Se):window,a){case\"focusin\":($p(ln)||ln.contentEditable===\"true\")&&(bs=ln,wc=Se,iu=null);break;case\"focusout\":iu=wc=bs=null;break;case\"mousedown\":id=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":id=!1,od(Ke,h,Be);break;case\"selectionchange\":if(qg)break;case\"keydown\":case\"keyup\":od(Ke,h,Be)}var Ot;if(Vp)e:{switch(a){case\"compositionstart\":var It=\"onCompositionStart\";break e;case\"compositionend\":It=\"onCompositionEnd\";break e;case\"compositionupdate\":It=\"onCompositionUpdate\";break e}It=void 0}else oa?qp(a,h)&&(It=\"onCompositionEnd\"):a===\"keydown\"&&h.keyCode===229&&(It=\"onCompositionStart\");It&&(Lg&&h.locale!==\"ko\"&&(oa||It!==\"onCompositionStart\"?It===\"onCompositionEnd\"&&oa&&(Ot=Xf()):(Ia=Be,eu=\"value\"in Ia?Ia.value:Ia.textContent,oa=!0)),ln=O1(Se,It),0<ln.length&&(It=new Ng(It,a,null,h,Be),Ke.push({event:It,listeners:ln}),Ot?It.data=Ot:(Ot=Fg(h),Ot!==null&&(It.data=Ot)))),(Ot=Mg?Fa(a,h):nd(a,h))&&(It=O1(Se,\"onBeforeInput\"),0<It.length&&(ln=new Ng(\"onBeforeInput\",\"beforeinput\",null,h,Be),Ke.push({event:ln,listeners:It}),ln.data=Ot)),Ure(Ke,a,Se,h,Be)}ij(Ke,u)})}function Dv(a,u,h){return{instance:a,listener:u,currentTarget:h}}function O1(a,u){for(var h=u+\"Capture\",S=[];a!==null;){var C=a,R=C.stateNode;C=C.tag,C!==5&&C!==26&&C!==27||R===null||(C=Zl(a,h),C!=null&&S.unshift(Dv(a,C,R)),C=Zl(a,u),C!=null&&S.push(Dv(a,C,R))),a=a.return}return S}function Vh(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function aj(a,u,h,S,C){for(var R=u._reactName,H=[];h!==null&&h!==S;){var te=h,fe=te.alternate,Se=te.stateNode;if(te=te.tag,fe!==null&&fe===S)break;te!==5&&te!==26&&te!==27||Se===null||(fe=Se,C?(Se=Zl(h,R),Se!=null&&H.unshift(Dv(h,Se,fe))):C||(Se=Zl(h,R),Se!=null&&H.push(Dv(h,Se,fe)))),h=h.return}H.length!==0&&a.push({event:u,listeners:H})}var zre=/\\r\\n?/g,Hre=/\\u0000|\\uFFFD/g;function sj(a){return(typeof a==\"string\"?a:\"\"+a).replace(zre,`\n`).replace(Hre,\"\")}function lj(a,u){return u=sj(u),sj(a)===u}function D1(){}function $n(a,u,h,S,C,R){switch(h){case\"children\":typeof S==\"string\"?u===\"body\"||u===\"textarea\"&&S===\"\"||rl(a,S):(typeof S==\"number\"||typeof S==\"bigint\")&&u!==\"body\"&&rl(a,\"\"+S);break;case\"className\":We(a,\"class\",S);break;case\"tabIndex\":We(a,\"tabindex\",S);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":We(a,h,S);break;case\"style\":wg(a,S,R);break;case\"data\":if(u!==\"object\"){We(a,\"data\",S);break}case\"src\":case\"href\":if(S===\"\"&&(u!==\"a\"||h!==\"href\")){a.removeAttribute(h);break}if(S==null||typeof S==\"function\"||typeof S==\"symbol\"||typeof S==\"boolean\"){a.removeAttribute(h);break}S=Qf(\"\"+S),a.setAttribute(h,S);break;case\"action\":case\"formAction\":if(typeof S==\"function\"){a.setAttribute(h,\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\");break}else typeof R==\"function\"&&(h===\"formAction\"?(u!==\"input\"&&$n(a,u,\"name\",C.name,C,null),$n(a,u,\"formEncType\",C.formEncType,C,null),$n(a,u,\"formMethod\",C.formMethod,C,null),$n(a,u,\"formTarget\",C.formTarget,C,null)):($n(a,u,\"encType\",C.encType,C,null),$n(a,u,\"method\",C.method,C,null),$n(a,u,\"target\",C.target,C,null)));if(S==null||typeof S==\"symbol\"||typeof S==\"boolean\"){a.removeAttribute(h);break}S=Qf(\"\"+S),a.setAttribute(h,S);break;case\"onClick\":S!=null&&(a.onclick=D1);break;case\"onScroll\":S!=null&&bn(\"scroll\",a);break;case\"onScrollEnd\":S!=null&&bn(\"scrollend\",a);break;case\"dangerouslySetInnerHTML\":if(S!=null){if(typeof S!=\"object\"||!(\"__html\"in S))throw Error(r(61));if(h=S.__html,h!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=h}}break;case\"multiple\":a.multiple=S&&typeof S!=\"function\"&&typeof S!=\"symbol\";break;case\"muted\":a.muted=S&&typeof S!=\"function\"&&typeof S!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(S==null||typeof S==\"function\"||typeof S==\"boolean\"||typeof S==\"symbol\"){a.removeAttribute(\"xlink:href\");break}h=Qf(\"\"+S),a.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",h);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":S!=null&&typeof S!=\"function\"&&typeof S!=\"symbol\"?a.setAttribute(h,\"\"+S):a.removeAttribute(h);break;case\"inert\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":S&&typeof S!=\"function\"&&typeof S!=\"symbol\"?a.setAttribute(h,\"\"):a.removeAttribute(h);break;case\"capture\":case\"download\":S===!0?a.setAttribute(h,\"\"):S!==!1&&S!=null&&typeof S!=\"function\"&&typeof S!=\"symbol\"?a.setAttribute(h,S):a.removeAttribute(h);break;case\"cols\":case\"rows\":case\"size\":case\"span\":S!=null&&typeof S!=\"function\"&&typeof S!=\"symbol\"&&!isNaN(S)&&1<=S?a.setAttribute(h,S):a.removeAttribute(h);break;case\"rowSpan\":case\"start\":S==null||typeof S==\"function\"||typeof S==\"symbol\"||isNaN(S)?a.removeAttribute(h):a.setAttribute(h,S);break;case\"popover\":bn(\"beforetoggle\",a),bn(\"toggle\",a),Le(a,\"popover\",S);break;case\"xlinkActuate\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",S);break;case\"xlinkArcrole\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",S);break;case\"xlinkRole\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:role\",S);break;case\"xlinkShow\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:show\",S);break;case\"xlinkTitle\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:title\",S);break;case\"xlinkType\":Ct(a,\"http://www.w3.org/1999/xlink\",\"xlink:type\",S);break;case\"xmlBase\":Ct(a,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",S);break;case\"xmlLang\":Ct(a,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",S);break;case\"xmlSpace\":Ct(a,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",S);break;case\"is\":Le(a,\"is\",S);break;case\"innerText\":case\"textContent\":break;default:(!(2<h.length)||h[0]!==\"o\"&&h[0]!==\"O\"||h[1]!==\"n\"&&h[1]!==\"N\")&&(h=gs.get(h)||h,Le(a,h,S))}}function k_(a,u,h,S,C,R){switch(h){case\"style\":wg(a,S,R);break;case\"dangerouslySetInnerHTML\":if(S!=null){if(typeof S!=\"object\"||!(\"__html\"in S))throw Error(r(61));if(h=S.__html,h!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=h}}break;case\"children\":typeof S==\"string\"?rl(a,S):(typeof S==\"number\"||typeof S==\"bigint\")&&rl(a,\"\"+S);break;case\"onScroll\":S!=null&&bn(\"scroll\",a);break;case\"onScrollEnd\":S!=null&&bn(\"scrollend\",a);break;case\"onClick\":S!=null&&(a.onclick=D1);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(!ci.hasOwnProperty(h))e:{if(h[0]===\"o\"&&h[1]===\"n\"&&(C=h.endsWith(\"Capture\"),u=h.slice(2,C?h.length-7:void 0),R=a[xn]||null,R=R!=null?R[h]:null,typeof R==\"function\"&&a.removeEventListener(u,R,C),typeof S==\"function\")){typeof R!=\"function\"&&R!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(u,S,C);break e}h in a?a[h]=S:S===!0?a.setAttribute(h,\"\"):Le(a,h,S)}}}function Wi(a,u,h){switch(u){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":bn(\"error\",a),bn(\"load\",a);var S=!1,C=!1,R;for(R in h)if(h.hasOwnProperty(R)){var H=h[R];if(H!=null)switch(R){case\"src\":S=!0;break;case\"srcSet\":C=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(r(137,u));default:$n(a,u,R,H,h,null)}}C&&$n(a,u,\"srcSet\",h.srcSet,h,null),S&&$n(a,u,\"src\",h.src,h,null);return;case\"input\":bn(\"invalid\",a);var te=R=H=C=null,fe=null,Se=null;for(S in h)if(h.hasOwnProperty(S)){var Be=h[S];if(Be!=null)switch(S){case\"name\":C=Be;break;case\"type\":H=Be;break;case\"checked\":fe=Be;break;case\"defaultChecked\":Se=Be;break;case\"value\":R=Be;break;case\"defaultValue\":te=Be;break;case\"children\":case\"dangerouslySetInnerHTML\":if(Be!=null)throw Error(r(137,u));break;default:$n(a,u,S,Be,h,null)}}Wf(a,R,te,fe,Se,H,C,!1),pi(a);return;case\"select\":bn(\"invalid\",a),S=H=R=null;for(C in h)if(h.hasOwnProperty(C)&&(te=h[C],te!=null))switch(C){case\"value\":R=te;break;case\"defaultValue\":H=te;break;case\"multiple\":S=te;default:$n(a,u,C,te,h,null)}u=R,h=H,a.multiple=!!S,u!=null?ms(a,!!S,u,!1):h!=null&&ms(a,!!S,h,!0);return;case\"textarea\":bn(\"invalid\",a),R=C=S=null;for(H in h)if(h.hasOwnProperty(H)&&(te=h[H],te!=null))switch(H){case\"value\":S=te;break;case\"defaultValue\":C=te;break;case\"children\":R=te;break;case\"dangerouslySetInnerHTML\":if(te!=null)throw Error(r(91));break;default:$n(a,u,H,te,h,null)}Rp(a,S,C,R),pi(a);return;case\"option\":for(fe in h)if(h.hasOwnProperty(fe)&&(S=h[fe],S!=null))switch(fe){case\"selected\":a.selected=S&&typeof S!=\"function\"&&typeof S!=\"symbol\";break;default:$n(a,u,fe,S,h,null)}return;case\"dialog\":bn(\"cancel\",a),bn(\"close\",a);break;case\"iframe\":case\"object\":bn(\"load\",a);break;case\"video\":case\"audio\":for(S=0;S<Ov.length;S++)bn(Ov[S],a);break;case\"image\":bn(\"error\",a),bn(\"load\",a);break;case\"details\":bn(\"toggle\",a);break;case\"embed\":case\"source\":case\"link\":bn(\"error\",a),bn(\"load\",a);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(Se in h)if(h.hasOwnProperty(Se)&&(S=h[Se],S!=null))switch(Se){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(r(137,u));default:$n(a,u,Se,S,h,null)}return;default:if(Mp(u)){for(Be in h)h.hasOwnProperty(Be)&&(S=h[Be],S!==void 0&&k_(a,u,Be,S,h,void 0));return}}for(te in h)h.hasOwnProperty(te)&&(S=h[te],S!=null&&$n(a,u,te,S,h,null))}function Gre(a,u,h,S){switch(u){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var C=null,R=null,H=null,te=null,fe=null,Se=null,Be=null;for(Pe in h){var Ke=h[Pe];if(h.hasOwnProperty(Pe)&&Ke!=null)switch(Pe){case\"checked\":break;case\"value\":break;case\"defaultValue\":fe=Ke;default:S.hasOwnProperty(Pe)||$n(a,u,Pe,null,S,Ke)}}for(var ke in S){var Pe=S[ke];if(Ke=h[ke],S.hasOwnProperty(ke)&&(Pe!=null||Ke!=null))switch(ke){case\"type\":R=Pe;break;case\"name\":C=Pe;break;case\"checked\":Se=Pe;break;case\"defaultChecked\":Be=Pe;break;case\"value\":H=Pe;break;case\"defaultValue\":te=Pe;break;case\"children\":case\"dangerouslySetInnerHTML\":if(Pe!=null)throw Error(r(137,u));break;default:Pe!==Ke&&$n(a,u,ke,Pe,S,Ke)}}nl(a,H,te,fe,Se,Be,R,C);return;case\"select\":Pe=H=te=ke=null;for(R in h)if(fe=h[R],h.hasOwnProperty(R)&&fe!=null)switch(R){case\"value\":break;case\"multiple\":Pe=fe;default:S.hasOwnProperty(R)||$n(a,u,R,null,S,fe)}for(C in S)if(R=S[C],fe=h[C],S.hasOwnProperty(C)&&(R!=null||fe!=null))switch(C){case\"value\":ke=R;break;case\"defaultValue\":te=R;break;case\"multiple\":H=R;default:R!==fe&&$n(a,u,C,R,S,fe)}u=te,h=H,S=Pe,ke!=null?ms(a,!!h,ke,!1):!!S!=!!h&&(u!=null?ms(a,!!h,u,!0):ms(a,!!h,h?[]:\"\",!1));return;case\"textarea\":Pe=ke=null;for(te in h)if(C=h[te],h.hasOwnProperty(te)&&C!=null&&!S.hasOwnProperty(te))switch(te){case\"value\":break;case\"children\":break;default:$n(a,u,te,null,S,C)}for(H in S)if(C=S[H],R=h[H],S.hasOwnProperty(H)&&(C!=null||R!=null))switch(H){case\"value\":ke=C;break;case\"defaultValue\":Pe=C;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(C!=null)throw Error(r(91));break;default:C!==R&&$n(a,u,H,C,S,R)}Eg(a,ke,Pe);return;case\"option\":for(var _t in h)if(ke=h[_t],h.hasOwnProperty(_t)&&ke!=null&&!S.hasOwnProperty(_t))switch(_t){case\"selected\":a.selected=!1;break;default:$n(a,u,_t,null,S,ke)}for(fe in S)if(ke=S[fe],Pe=h[fe],S.hasOwnProperty(fe)&&ke!==Pe&&(ke!=null||Pe!=null))switch(fe){case\"selected\":a.selected=ke&&typeof ke!=\"function\"&&typeof ke!=\"symbol\";break;default:$n(a,u,fe,ke,S,Pe)}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 zt in h)ke=h[zt],h.hasOwnProperty(zt)&&ke!=null&&!S.hasOwnProperty(zt)&&$n(a,u,zt,null,S,ke);for(Se in S)if(ke=S[Se],Pe=h[Se],S.hasOwnProperty(Se)&&ke!==Pe&&(ke!=null||Pe!=null))switch(Se){case\"children\":case\"dangerouslySetInnerHTML\":if(ke!=null)throw Error(r(137,u));break;default:$n(a,u,Se,ke,S,Pe)}return;default:if(Mp(u)){for(var Ur in h)ke=h[Ur],h.hasOwnProperty(Ur)&&ke!==void 0&&!S.hasOwnProperty(Ur)&&k_(a,u,Ur,void 0,S,ke);for(Be in S)ke=S[Be],Pe=h[Be],!S.hasOwnProperty(Be)||ke===Pe||ke===void 0&&Pe===void 0||k_(a,u,Be,ke,S,Pe);return}}for(var xe in h)ke=h[xe],h.hasOwnProperty(xe)&&ke!=null&&!S.hasOwnProperty(xe)&&$n(a,u,xe,null,S,ke);for(Ke in S)ke=S[Ke],Pe=h[Ke],!S.hasOwnProperty(Ke)||ke===Pe||ke==null&&Pe==null||$n(a,u,Ke,ke,S,Pe)}var R_=null,M_=null;function k1(a){return a.nodeType===9?a:a.ownerDocument}function uj(a){switch(a){case\"http://www.w3.org/2000/svg\":return 1;case\"http://www.w3.org/1998/Math/MathML\":return 2;default:return 0}}function cj(a,u){if(a===0)switch(u){case\"svg\":return 1;case\"math\":return 2;default:return 0}return a===1&&u===\"foreignObject\"?0:a}function L_(a,u){return a===\"textarea\"||a===\"noscript\"||typeof u.children==\"string\"||typeof u.children==\"number\"||typeof u.children==\"bigint\"||typeof u.dangerouslySetInnerHTML==\"object\"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var I_=null;function Wre(){var a=window.event;return a&&a.type===\"popstate\"?a===I_?!1:(I_=a,!0):(I_=null,!1)}var fj=typeof setTimeout==\"function\"?setTimeout:void 0,Yre=typeof clearTimeout==\"function\"?clearTimeout:void 0,dj=typeof Promise==\"function\"?Promise:void 0,Qre=typeof queueMicrotask==\"function\"?queueMicrotask:typeof dj<\"u\"?function(a){return dj.resolve(null).then(a).catch(Kre)}:fj;function Kre(a){setTimeout(function(){throw a})}function F_(a,u){var h=u,S=0;do{var C=h.nextSibling;if(a.removeChild(h),C&&C.nodeType===8)if(h=C.data,h===\"/$\"){if(S===0){a.removeChild(C),jv(u);return}S--}else h!==\"$\"&&h!==\"$?\"&&h!==\"$!\"||S++;h=C}while(h);jv(u)}function P_(a){var u=a.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var h=u;switch(u=u.nextSibling,h.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":P_(h),Ni(h);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(h.rel.toLowerCase()===\"stylesheet\")continue}a.removeChild(h)}}function Xre(a,u,h,S){for(;a.nodeType===1;){var C=h;if(a.nodeName.toLowerCase()!==u.toLowerCase()){if(!S&&(a.nodeName!==\"INPUT\"||a.type!==\"hidden\"))break}else if(S){if(!a[ui])switch(u){case\"meta\":if(!a.hasAttribute(\"itemprop\"))break;return a;case\"link\":if(R=a.getAttribute(\"rel\"),R===\"stylesheet\"&&a.hasAttribute(\"data-precedence\"))break;if(R!==C.rel||a.getAttribute(\"href\")!==(C.href==null?null:C.href)||a.getAttribute(\"crossorigin\")!==(C.crossOrigin==null?null:C.crossOrigin)||a.getAttribute(\"title\")!==(C.title==null?null:C.title))break;return a;case\"style\":if(a.hasAttribute(\"data-precedence\"))break;return a;case\"script\":if(R=a.getAttribute(\"src\"),(R!==(C.src==null?null:C.src)||a.getAttribute(\"type\")!==(C.type==null?null:C.type)||a.getAttribute(\"crossorigin\")!==(C.crossOrigin==null?null:C.crossOrigin))&&R&&a.hasAttribute(\"async\")&&!a.hasAttribute(\"itemprop\"))break;return a;default:return a}}else if(u===\"input\"&&a.type===\"hidden\"){var R=C.name==null?null:\"\"+C.name;if(C.type===\"hidden\"&&a.getAttribute(\"name\")===R)return a}else return a;if(a=Ps(a.nextSibling),a===null)break}return null}function Zre(a,u,h){if(u===\"\")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!==\"INPUT\"||a.type!==\"hidden\")&&!h||(a=Ps(a.nextSibling),a===null))return null;return a}function Ps(a){for(;a!=null;a=a.nextSibling){var u=a.nodeType;if(u===1||u===3)break;if(u===8){if(u=a.data,u===\"$\"||u===\"$!\"||u===\"$?\"||u===\"F!\"||u===\"F\")break;if(u===\"/$\")return null}}return a}function pj(a){a=a.previousSibling;for(var u=0;a;){if(a.nodeType===8){var h=a.data;if(h===\"$\"||h===\"$!\"||h===\"$?\"){if(u===0)return a;u--}else h===\"/$\"&&u++}a=a.previousSibling}return null}function hj(a,u,h){switch(u=k1(h),a){case\"html\":if(a=u.documentElement,!a)throw Error(r(452));return a;case\"head\":if(a=u.head,!a)throw Error(r(453));return a;case\"body\":if(a=u.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var Ya=new Map,mj=new Set;function R1(a){return typeof a.getRootNode==\"function\"?a.getRootNode():a.ownerDocument}var Ru=le.d;le.d={f:Jre,r:eie,D:tie,C:nie,L:rie,m:iie,X:aie,S:oie,M:sie};function Jre(){var a=Ru.f(),u=x1();return a||u}function eie(a){var u=Mo(a);u!==null&&u.tag===5&&u.type===\"form\"?uv(u):Ru.r(a)}var Uh=typeof document>\"u\"?null:document;function gj(a,u,h){var S=Uh;if(S&&typeof u==\"string\"&&u){var C=to(u);C='link[rel=\"'+a+'\"][href=\"'+C+'\"]',typeof h==\"string\"&&(C+='[crossorigin=\"'+h+'\"]'),mj.has(C)||(mj.add(C),a={rel:a,crossOrigin:h,href:u},S.querySelector(C)===null&&(u=S.createElement(\"link\"),Wi(u,\"link\",a),Dn(u),S.head.appendChild(u)))}}function tie(a){Ru.D(a),gj(\"dns-prefetch\",a,null)}function nie(a,u){Ru.C(a,u),gj(\"preconnect\",a,u)}function rie(a,u,h){Ru.L(a,u,h);var S=Uh;if(S&&a&&u){var C='link[rel=\"preload\"][as=\"'+to(u)+'\"]';u===\"image\"&&h&&h.imageSrcSet?(C+='[imagesrcset=\"'+to(h.imageSrcSet)+'\"]',typeof h.imageSizes==\"string\"&&(C+='[imagesizes=\"'+to(h.imageSizes)+'\"]')):C+='[href=\"'+to(a)+'\"]';var R=C;switch(u){case\"style\":R=qh(a);break;case\"script\":R=Bh(a)}Ya.has(R)||(a=q({rel:\"preload\",href:u===\"image\"&&h&&h.imageSrcSet?void 0:a,as:u},h),Ya.set(R,a),S.querySelector(C)!==null||u===\"style\"&&S.querySelector(kv(R))||u===\"script\"&&S.querySelector(Rv(R))||(u=S.createElement(\"link\"),Wi(u,\"link\",a),Dn(u),S.head.appendChild(u)))}}function iie(a,u){Ru.m(a,u);var h=Uh;if(h&&a){var S=u&&typeof u.as==\"string\"?u.as:\"script\",C='link[rel=\"modulepreload\"][as=\"'+to(S)+'\"][href=\"'+to(a)+'\"]',R=C;switch(S){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":R=Bh(a)}if(!Ya.has(R)&&(a=q({rel:\"modulepreload\",href:a},u),Ya.set(R,a),h.querySelector(C)===null)){switch(S){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(h.querySelector(Rv(R)))return}S=h.createElement(\"link\"),Wi(S,\"link\",a),Dn(S),h.head.appendChild(S)}}}function oie(a,u,h){Ru.S(a,u,h);var S=Uh;if(S&&a){var C=ft(S).hoistableStyles,R=qh(a);u=u||\"default\";var H=C.get(R);if(!H){var te={loading:0,preload:null};if(H=S.querySelector(kv(R)))te.loading=5;else{a=q({rel:\"stylesheet\",href:a,\"data-precedence\":u},h),(h=Ya.get(R))&&j_(a,h);var fe=H=S.createElement(\"link\");Dn(fe),Wi(fe,\"link\",a),fe._p=new Promise(function(Se,Be){fe.onload=Se,fe.onerror=Be}),fe.addEventListener(\"load\",function(){te.loading|=1}),fe.addEventListener(\"error\",function(){te.loading|=2}),te.loading|=4,M1(H,u,S)}H={type:\"stylesheet\",instance:H,count:1,state:te},C.set(R,H)}}}function aie(a,u){Ru.X(a,u);var h=Uh;if(h&&a){var S=ft(h).hoistableScripts,C=Bh(a),R=S.get(C);R||(R=h.querySelector(Rv(C)),R||(a=q({src:a,async:!0},u),(u=Ya.get(C))&&V_(a,u),R=h.createElement(\"script\"),Dn(R),Wi(R,\"link\",a),h.head.appendChild(R)),R={type:\"script\",instance:R,count:1,state:null},S.set(C,R))}}function sie(a,u){Ru.M(a,u);var h=Uh;if(h&&a){var S=ft(h).hoistableScripts,C=Bh(a),R=S.get(C);R||(R=h.querySelector(Rv(C)),R||(a=q({src:a,async:!0,type:\"module\"},u),(u=Ya.get(C))&&V_(a,u),R=h.createElement(\"script\"),Dn(R),Wi(R,\"link\",a),h.head.appendChild(R)),R={type:\"script\",instance:R,count:1,state:null},S.set(C,R))}}function vj(a,u,h,S){var C=(C=Ce.current)?R1(C):null;if(!C)throw Error(r(446));switch(a){case\"meta\":case\"title\":return null;case\"style\":return typeof h.precedence==\"string\"&&typeof h.href==\"string\"?(u=qh(h.href),h=ft(C).hoistableStyles,S=h.get(u),S||(S={type:\"style\",instance:null,count:0,state:null},h.set(u,S)),S):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(h.rel===\"stylesheet\"&&typeof h.href==\"string\"&&typeof h.precedence==\"string\"){a=qh(h.href);var R=ft(C).hoistableStyles,H=R.get(a);if(H||(C=C.ownerDocument||C,H={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},R.set(a,H),(R=C.querySelector(kv(a)))&&!R._p&&(H.instance=R,H.state.loading=5),Ya.has(a)||(h={rel:\"preload\",as:\"style\",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Ya.set(a,h),R||lie(C,a,h,H.state))),u&&S===null)throw Error(r(528,\"\"));return H}if(u&&S!==null)throw Error(r(529,\"\"));return null;case\"script\":return u=h.async,h=h.src,typeof h==\"string\"&&u&&typeof u!=\"function\"&&typeof u!=\"symbol\"?(u=Bh(h),h=ft(C).hoistableScripts,S=h.get(u),S||(S={type:\"script\",instance:null,count:0,state:null},h.set(u,S)),S):{type:\"void\",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function qh(a){return'href=\"'+to(a)+'\"'}function kv(a){return'link[rel=\"stylesheet\"]['+a+\"]\"}function yj(a){return q({},a,{\"data-precedence\":a.precedence,precedence:null})}function lie(a,u,h,S){a.querySelector('link[rel=\"preload\"][as=\"style\"]['+u+\"]\")?S.loading=1:(u=a.createElement(\"link\"),S.preload=u,u.addEventListener(\"load\",function(){return S.loading|=1}),u.addEventListener(\"error\",function(){return S.loading|=2}),Wi(u,\"link\",h),Dn(u),a.head.appendChild(u))}function Bh(a){return'[src=\"'+to(a)+'\"]'}function Rv(a){return\"script[async]\"+a}function bj(a,u,h){if(u.count++,u.instance===null)switch(u.type){case\"style\":var S=a.querySelector('style[data-href~=\"'+to(h.href)+'\"]');if(S)return u.instance=S,Dn(S),S;var C=q({},h,{\"data-href\":h.href,\"data-precedence\":h.precedence,href:null,precedence:null});return S=(a.ownerDocument||a).createElement(\"style\"),Dn(S),Wi(S,\"style\",C),M1(S,h.precedence,a),u.instance=S;case\"stylesheet\":C=qh(h.href);var R=a.querySelector(kv(C));if(R)return u.state.loading|=4,u.instance=R,Dn(R),R;S=yj(h),(C=Ya.get(C))&&j_(S,C),R=(a.ownerDocument||a).createElement(\"link\"),Dn(R);var H=R;return H._p=new Promise(function(te,fe){H.onload=te,H.onerror=fe}),Wi(R,\"link\",S),u.state.loading|=4,M1(R,h.precedence,a),u.instance=R;case\"script\":return R=Bh(h.src),(C=a.querySelector(Rv(R)))?(u.instance=C,Dn(C),C):(S=h,(C=Ya.get(R))&&(S=q({},h),V_(S,C)),a=a.ownerDocument||a,C=a.createElement(\"script\"),Dn(C),Wi(C,\"link\",S),a.head.appendChild(C),u.instance=C);case\"void\":return null;default:throw Error(r(443,u.type))}else u.type===\"stylesheet\"&&(u.state.loading&4)===0&&(S=u.instance,u.state.loading|=4,M1(S,h.precedence,a));return u.instance}function M1(a,u,h){for(var S=h.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),C=S.length?S[S.length-1]:null,R=C,H=0;H<S.length;H++){var te=S[H];if(te.dataset.precedence===u)R=te;else if(R!==C)break}R?R.parentNode.insertBefore(a,R.nextSibling):(u=h.nodeType===9?h.head:h,u.insertBefore(a,u.firstChild))}function j_(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.title==null&&(a.title=u.title)}function V_(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.integrity==null&&(a.integrity=u.integrity)}var L1=null;function Ej(a,u,h){if(L1===null){var S=new Map,C=L1=new Map;C.set(h,S)}else C=L1,S=C.get(h),S||(S=new Map,C.set(h,S));if(S.has(a))return S;for(S.set(a,null),h=h.getElementsByTagName(a),C=0;C<h.length;C++){var R=h[C];if(!(R[ui]||R[nn]||a===\"link\"&&R.getAttribute(\"rel\")===\"stylesheet\")&&R.namespaceURI!==\"http://www.w3.org/2000/svg\"){var H=R.getAttribute(u)||\"\";H=a+H;var te=S.get(H);te?te.push(R):S.set(H,[R])}}return S}function Sj(a,u,h){a=a.ownerDocument||a,a.head.insertBefore(h,u===\"title\"?a.querySelector(\"head > title\"):null)}function uie(a,u,h){if(h===1||u.itemProp!=null)return!1;switch(a){case\"meta\":case\"title\":return!0;case\"style\":if(typeof u.precedence!=\"string\"||typeof u.href!=\"string\"||u.href===\"\")break;return!0;case\"link\":if(typeof u.rel!=\"string\"||typeof u.href!=\"string\"||u.href===\"\"||u.onLoad||u.onError)break;switch(u.rel){case\"stylesheet\":return a=u.disabled,typeof u.precedence==\"string\"&&a==null;default:return!0}case\"script\":if(u.async&&typeof u.async!=\"function\"&&typeof u.async!=\"symbol\"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src==\"string\")return!0}return!1}function Tj(a){return!(a.type===\"stylesheet\"&&(a.state.loading&3)===0)}var Mv=null;function cie(){}function fie(a,u,h){if(Mv===null)throw Error(r(475));var S=Mv;if(u.type===\"stylesheet\"&&(typeof h.media!=\"string\"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var C=qh(h.href),R=a.querySelector(kv(C));if(R){a=R._p,a!==null&&typeof a==\"object\"&&typeof a.then==\"function\"&&(S.count++,S=I1.bind(S),a.then(S,S)),u.state.loading|=4,u.instance=R,Dn(R);return}R=a.ownerDocument||a,h=yj(h),(C=Ya.get(C))&&j_(h,C),R=R.createElement(\"link\"),Dn(R);var H=R;H._p=new Promise(function(te,fe){H.onload=te,H.onerror=fe}),Wi(R,\"link\",h),u.instance=R}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(S.count++,u=I1.bind(S),a.addEventListener(\"load\",u),a.addEventListener(\"error\",u))}}function die(){if(Mv===null)throw Error(r(475));var a=Mv;return a.stylesheets&&a.count===0&&U_(a,a.stylesheets),0<a.count?function(u){var h=setTimeout(function(){if(a.stylesheets&&U_(a,a.stylesheets),a.unsuspend){var S=a.unsuspend;a.unsuspend=null,S()}},6e4);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h)}}:null}function I1(){if(this.count--,this.count===0){if(this.stylesheets)U_(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var F1=null;function U_(a,u){a.stylesheets=null,a.unsuspend!==null&&(a.count++,F1=new Map,u.forEach(pie,a),F1=null,I1.call(a))}function pie(a,u){if(!(u.state.loading&4)){var h=F1.get(a);if(h)var S=h.get(null);else{h=new Map,F1.set(a,h);for(var C=a.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),R=0;R<C.length;R++){var H=C[R];(H.nodeName===\"LINK\"||H.getAttribute(\"media\")!==\"not all\")&&(h.set(H.dataset.precedence,H),S=H)}S&&h.set(null,S)}C=u.instance,H=C.getAttribute(\"data-precedence\"),R=h.get(H)||S,R===S&&h.set(null,C),h.set(H,C),this.count++,S=I1.bind(this),C.addEventListener(\"load\",S),C.addEventListener(\"error\",S),R?R.parentNode.insertBefore(C,R.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(C,a.firstChild)),u.state.loading|=4}}var Lv={$$typeof:y,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function hie(a,u,h,S,C,R,H,te){this.tag=1,this.containerInfo=a,this.finishedWork=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=kt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kt(0),this.hiddenUpdates=kt(null),this.identifierPrefix=S,this.onUncaughtError=C,this.onCaughtError=R,this.onRecoverableError=H,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function wj(a,u,h,S,C,R,H,te,fe,Se,Be,Ke){return a=new hie(a,u,h,H,te,fe,Se,Ke),u=1,R===!0&&(u|=24),R=Ga(3,null,null,u),a.current=R,R.stateNode=a,u=hd(),u.refCount++,a.pooledCache=u,u.refCount++,R.memoizedState={element:S,isDehydrated:h,cache:u},Od(R),a}function xj(a){return a?(a=dl,a):dl}function Cj(a,u,h,S,C,R){C=xj(C),S.context===null?S.context=C:S.pendingContext=C,S=za(u),S.payload={element:h},R=R===void 0?null:R,R!==null&&(S.callback=R),h=Ls(a,S,u),h!==null&&(_o(h,a,u),pa(h,a,u))}function _j(a,u){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<u?h:u}}function q_(a,u){_j(a,u),(a=a.alternate)&&_j(a,u)}function Nj(a){if(a.tag===13){var u=jo(a,67108864);u!==null&&_o(u,a,67108864),q_(a,67108864)}}var P1=!0;function mie(a,u,h,S){var C=j.T;j.T=null;var R=le.p;try{le.p=2,B_(a,u,h,S)}finally{le.p=R,j.T=C}}function gie(a,u,h,S){var C=j.T;j.T=null;var R=le.p;try{le.p=8,B_(a,u,h,S)}finally{le.p=R,j.T=C}}function B_(a,u,h,S){if(P1){var C=$_(S);if(C===null)D_(a,u,S,j1,h),Oj(a,S);else if(yie(C,a,u,h,S))S.stopPropagation();else if(Oj(a,S),u&4&&-1<vie.indexOf(a)){for(;C!==null;){var R=Mo(C);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var H=Mr(R.pendingLanes);if(H!==0){var te=R;for(te.pendingLanes|=2,te.entangledLanes|=2;H;){var fe=1<<31-ut(H);te.entanglements[1]|=fe,H&=~fe}Al(R),(Or&6)===0&&(S1=et()+500,Av(0))}}break;case 13:te=jo(R,2),te!==null&&_o(te,R,2),x1(),q_(R,2)}if(R=$_(S),R===null&&D_(a,u,S,j1,h),R===C)break;C=R}C!==null&&S.stopPropagation()}else D_(a,u,S,null,h)}}function $_(a){return a=il(a),z_(a)}var j1=null;function z_(a){if(j1=null,a=mo(a),a!==null){var u=se(a);if(u===null)a=null;else{var h=u.tag;if(h===13){if(a=de(u),a!==null)return a;a=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;a=null}else u!==a&&(a=null)}}return j1=a,null}function Aj(a){switch(a){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 2;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(gt()){case Pt:return 2;case cn:return 8;case vt:case Dt:return 32;case mt:return 268435456;default:return 32}default:return 32}}var H_=!1,Jc=null,ef=null,tf=null,Iv=new Map,Fv=new Map,nf=[],vie=\"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 Oj(a,u){switch(a){case\"focusin\":case\"focusout\":Jc=null;break;case\"dragenter\":case\"dragleave\":ef=null;break;case\"mouseover\":case\"mouseout\":tf=null;break;case\"pointerover\":case\"pointerout\":Iv.delete(u.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":Fv.delete(u.pointerId)}}function Pv(a,u,h,S,C,R){return a===null||a.nativeEvent!==R?(a={blockedOn:u,domEventName:h,eventSystemFlags:S,nativeEvent:R,targetContainers:[C]},u!==null&&(u=Mo(u),u!==null&&Nj(u)),a):(a.eventSystemFlags|=S,u=a.targetContainers,C!==null&&u.indexOf(C)===-1&&u.push(C),a)}function yie(a,u,h,S,C){switch(u){case\"focusin\":return Jc=Pv(Jc,a,u,h,S,C),!0;case\"dragenter\":return ef=Pv(ef,a,u,h,S,C),!0;case\"mouseover\":return tf=Pv(tf,a,u,h,S,C),!0;case\"pointerover\":var R=C.pointerId;return Iv.set(R,Pv(Iv.get(R)||null,a,u,h,S,C)),!0;case\"gotpointercapture\":return R=C.pointerId,Fv.set(R,Pv(Fv.get(R)||null,a,u,h,S,C)),!0}return!1}function Dj(a){var u=mo(a.target);if(u!==null){var h=se(u);if(h!==null){if(u=h.tag,u===13){if(u=de(h),u!==null){a.blockedOn=u,Ro(a.priority,function(){if(h.tag===13){var S=va(),C=jo(h,S);C!==null&&_o(C,h,S),q_(h,S)}});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null}function V1(a){if(a.blockedOn!==null)return!1;for(var u=a.targetContainers;0<u.length;){var h=$_(a.nativeEvent);if(h===null){h=a.nativeEvent;var S=new h.constructor(h.type,h);Ql=S,h.target.dispatchEvent(S),Ql=null}else return u=Mo(h),u!==null&&Nj(u),a.blockedOn=h,!1;u.shift()}return!0}function kj(a,u,h){V1(a)&&h.delete(u)}function bie(){H_=!1,Jc!==null&&V1(Jc)&&(Jc=null),ef!==null&&V1(ef)&&(ef=null),tf!==null&&V1(tf)&&(tf=null),Iv.forEach(kj),Fv.forEach(kj)}function U1(a,u){a.blockedOn===u&&(a.blockedOn=null,H_||(H_=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bie)))}var q1=null;function Rj(a){q1!==a&&(q1=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){q1===a&&(q1=null);for(var u=0;u<a.length;u+=3){var h=a[u],S=a[u+1],C=a[u+2];if(typeof S!=\"function\"){if(z_(S||h)===null)continue;break}var R=Mo(h);R!==null&&(a.splice(u,3),u-=3,gh(R,{pending:!0,data:C,method:h.method,action:S},S,C))}}))}function jv(a){function u(fe){return U1(fe,a)}Jc!==null&&U1(Jc,a),ef!==null&&U1(ef,a),tf!==null&&U1(tf,a),Iv.forEach(u),Fv.forEach(u);for(var h=0;h<nf.length;h++){var S=nf[h];S.blockedOn===a&&(S.blockedOn=null)}for(;0<nf.length&&(h=nf[0],h.blockedOn===null);)Dj(h),h.blockedOn===null&&nf.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(S=0;S<h.length;S+=3){var C=h[S],R=h[S+1],H=C[xn]||null;if(typeof R==\"function\")H||Rj(h);else if(H){var te=null;if(R&&R.hasAttribute(\"formAction\")){if(C=R,H=R[xn]||null)te=H.formAction;else if(z_(C)!==null)continue}else te=H.action;typeof te==\"function\"?h[S+1]=te:(h.splice(S,3),S-=3),Rj(h)}}}function G_(a){this._internalRoot=a}B1.prototype.render=G_.prototype.render=function(a){var u=this._internalRoot;if(u===null)throw Error(r(409));var h=u.current,S=va();Cj(h,S,a,u,null,null)},B1.prototype.unmount=G_.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var u=a.containerInfo;a.tag===0&&Ph(),Cj(a.current,2,null,a,null,null),x1(),u[qi]=null}};function B1(a){this._internalRoot=a}B1.prototype.unstable_scheduleHydration=function(a){if(a){var u=ko();a={blockedOn:null,target:a,priority:u};for(var h=0;h<nf.length&&u!==0&&u<nf[h].priority;h++);nf.splice(h,0,a),h===0&&Dj(a)}};var Mj=t.version;if(Mj!==\"19.0.0\")throw Error(r(527,Mj,\"19.0.0\"));le.findDOMNode=function(a){var u=a._reactInternals;if(u===void 0)throw typeof a.render==\"function\"?Error(r(188)):(a=Object.keys(a).join(\",\"),Error(r(268,a)));return a=ge(u),a=a!==null?ce(a):null,a=a===null?null:a.stateNode,a};var Eie={bundleType:0,version:\"19.0.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:j,findFiberByHostInstance:mo,reconcilerVersion:\"19.0.0\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){var $1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$1.isDisabled&&$1.supportsFiber)try{Xt=$1.inject(Eie),rt=$1}catch{}}return zh.createRoot=function(a,u){if(!i(a))throw Error(r(299));var h=!1,S=\"\",C=Bc,R=fv,H=g1,te=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(C=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(H=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(te=u.unstable_transitionCallbacks)),u=wj(a,1,!1,null,null,h,S,C,R,H,te,null),a[qi]=u.current,O_(a.nodeType===8?a.parentNode:a),new G_(u)},zh.hydrateRoot=function(a,u,h){if(!i(a))throw Error(r(299));var S=!1,C=\"\",R=Bc,H=fv,te=g1,fe=null,Se=null;return h!=null&&(h.unstable_strictMode===!0&&(S=!0),h.identifierPrefix!==void 0&&(C=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(H=h.onCaughtError),h.onRecoverableError!==void 0&&(te=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(fe=h.unstable_transitionCallbacks),h.formState!==void 0&&(Se=h.formState)),u=wj(a,1,!0,u,h??null,S,C,R,H,te,fe,Se),u.context=xj(null),h=u.current,S=va(),C=za(S),C.callback=null,Ls(h,C,S),u.current.lanes=S,En(u,S),Al(u),a[qi]=u.current,O_(a),new B1(u)},zh.version=\"19.0.0\",zh}var iN;function qj(){if(iN)return W1.exports;iN=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(),W1.exports=Uj(),W1.exports}var Bj=qj();function oN(e){var t,n,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=oN(e[t]))&&(r&&(r+=\" \"),r+=n);else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}function Ei(){for(var e,t,n=0,r=\"\";n<arguments.length;)(e=arguments[n++])&&(t=oN(e))&&(r&&(r+=\" \"),r+=t);return r}const $j=\"16.10.0\",Uv=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});function Zt(e,t){if(!!!e)throw new Error(t)}function Ho(e){return typeof(e==null?void 0:e.then)==\"function\"}function Go(e){return typeof e==\"object\"&&e!==null}function qr(e,t){if(!!!e)throw new Error(t??\"Unexpected invariant triggered.\")}const zj=/\\r\\n|[\\n\\r]/g;function qv(e,t){let n=0,r=1;for(const i of e.body.matchAll(zj)){if(typeof i.index==\"number\"||qr(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function aN(e){return X1(e.source,qv(e.source,e.start))}function X1(e,t){const n=e.locationOffset.column-1,r=\"\".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=t.line===1?n:0,p=t.column+c,d=`${e.name}:${l}:${p}\n`,m=r.split(/\\r\\n|[\\n\\r]/g),E=m[i];if(E.length>120){const b=Math.floor(p/80),y=p%80,w=[];for(let x=0;x<E.length;x+=80)w.push(E.slice(x,x+80));return d+sN([[`${l} |`,w[0]],...w.slice(1,b+1).map(x=>[\"|\",x]),[\"|\",\"^\".padStart(y)],[\"|\",w[b+1]]])}return d+sN([[`${l-1} |`,m[i-1]],[`${l} |`,E],[\"|\",\"^\".padStart(p)],[`${l+1} |`,m[i+1]]])}function sN(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?\" \"+i:\"\")).join(`\n`)}function Hj(e){const t=e[0];return t==null||\"kind\"in t||\"length\"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Me extends Error{constructor(t,...n){var r,i,o;const{nodes:l,source:c,positions:p,path:d,originalError:m,extensions:E}=Hj(n);super(t),this.name=\"GraphQLError\",this.path=d??void 0,this.originalError=m??void 0,this.nodes=lN(Array.isArray(l)?l:l?[l]:void 0);const b=lN((r=this.nodes)===null||r===void 0?void 0:r.map(w=>w.loc).filter(w=>w!=null));this.source=c??(b==null||(i=b[0])===null||i===void 0?void 0:i.source),this.positions=p??(b==null?void 0:b.map(w=>w.start)),this.locations=p&&c?p.map(w=>qv(c,w)):b==null?void 0:b.map(w=>qv(w.source,w.start));const y=Go(m==null?void 0:m.extensions)?m==null?void 0:m.extensions:void 0;this.extensions=(o=E??y)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),m!=null&&m.stack?Object.defineProperty(this,\"stack\",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Me):Object.defineProperty(this,\"stack\",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return\"GraphQLError\"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`\n\n`+aN(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`\n\n`+X1(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 lN(e){return e===void 0||e.length===0?void 0:e}function Gj(e){return e.toString()}function Wj(e){return e.toJSON()}function ti(e,t,n){return new Me(`Syntax Error: ${n}`,{source:e,positions:[t]})}let uN=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return\"Location\"}toJSON(){return{start:this.start,end:this.end}}};class Z1{constructor(t,n,r,i,o,l){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return\"Token\"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const cN={Name:[],Document:[\"definitions\"],OperationDefinition:[\"name\",\"variableDefinitions\",\"directives\",\"selectionSet\"],VariableDefinition:[\"variable\",\"type\",\"defaultValue\",\"directives\"],Variable:[\"name\"],SelectionSet:[\"selections\"],Field:[\"alias\",\"name\",\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"name\",\"value\"],FragmentSpread:[\"name\",\"directives\"],InlineFragment:[\"typeCondition\",\"directives\",\"selectionSet\"],FragmentDefinition:[\"name\",\"variableDefinitions\",\"typeCondition\",\"directives\",\"selectionSet\"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[\"values\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"name\",\"arguments\"],NamedType:[\"name\"],ListType:[\"type\"],NonNullType:[\"type\"],SchemaDefinition:[\"description\",\"directives\",\"operationTypes\"],OperationTypeDefinition:[\"type\"],ScalarTypeDefinition:[\"description\",\"name\",\"directives\"],ObjectTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],FieldDefinition:[\"description\",\"name\",\"arguments\",\"type\",\"directives\"],InputValueDefinition:[\"description\",\"name\",\"type\",\"defaultValue\",\"directives\"],InterfaceTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeDefinition:[\"description\",\"name\",\"directives\",\"types\"],EnumTypeDefinition:[\"description\",\"name\",\"directives\",\"values\"],EnumValueDefinition:[\"description\",\"name\",\"directives\"],InputObjectTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],DirectiveDefinition:[\"description\",\"name\",\"arguments\",\"locations\"],SchemaExtension:[\"directives\",\"operationTypes\"],ScalarTypeExtension:[\"name\",\"directives\"],ObjectTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],InterfaceTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeExtension:[\"name\",\"directives\",\"types\"],EnumTypeExtension:[\"name\",\"directives\",\"values\"],InputObjectTypeExtension:[\"name\",\"directives\",\"fields\"]},Yj=new Set(Object.keys(cN));function J1(e){const t=e==null?void 0:e.kind;return typeof t==\"string\"&&Yj.has(t)}var ni;(function(e){e.QUERY=\"query\",e.MUTATION=\"mutation\",e.SUBSCRIPTION=\"subscription\"})(ni||(ni={}));var ct;(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\"})(ct||(ct={}));var X;(function(e){e.NAME=\"Name\",e.DOCUMENT=\"Document\",e.OPERATION_DEFINITION=\"OperationDefinition\",e.VARIABLE_DEFINITION=\"VariableDefinition\",e.SELECTION_SET=\"SelectionSet\",e.FIELD=\"Field\",e.ARGUMENT=\"Argument\",e.FRAGMENT_SPREAD=\"FragmentSpread\",e.INLINE_FRAGMENT=\"InlineFragment\",e.FRAGMENT_DEFINITION=\"FragmentDefinition\",e.VARIABLE=\"Variable\",e.INT=\"IntValue\",e.FLOAT=\"FloatValue\",e.STRING=\"StringValue\",e.BOOLEAN=\"BooleanValue\",e.NULL=\"NullValue\",e.ENUM=\"EnumValue\",e.LIST=\"ListValue\",e.OBJECT=\"ObjectValue\",e.OBJECT_FIELD=\"ObjectField\",e.DIRECTIVE=\"Directive\",e.NAMED_TYPE=\"NamedType\",e.LIST_TYPE=\"ListType\",e.NON_NULL_TYPE=\"NonNullType\",e.SCHEMA_DEFINITION=\"SchemaDefinition\",e.OPERATION_TYPE_DEFINITION=\"OperationTypeDefinition\",e.SCALAR_TYPE_DEFINITION=\"ScalarTypeDefinition\",e.OBJECT_TYPE_DEFINITION=\"ObjectTypeDefinition\",e.FIELD_DEFINITION=\"FieldDefinition\",e.INPUT_VALUE_DEFINITION=\"InputValueDefinition\",e.INTERFACE_TYPE_DEFINITION=\"InterfaceTypeDefinition\",e.UNION_TYPE_DEFINITION=\"UnionTypeDefinition\",e.ENUM_TYPE_DEFINITION=\"EnumTypeDefinition\",e.ENUM_VALUE_DEFINITION=\"EnumValueDefinition\",e.INPUT_OBJECT_TYPE_DEFINITION=\"InputObjectTypeDefinition\",e.DIRECTIVE_DEFINITION=\"DirectiveDefinition\",e.SCHEMA_EXTENSION=\"SchemaExtension\",e.SCALAR_TYPE_EXTENSION=\"ScalarTypeExtension\",e.OBJECT_TYPE_EXTENSION=\"ObjectTypeExtension\",e.INTERFACE_TYPE_EXTENSION=\"InterfaceTypeExtension\",e.UNION_TYPE_EXTENSION=\"UnionTypeExtension\",e.ENUM_TYPE_EXTENSION=\"EnumTypeExtension\",e.INPUT_OBJECT_TYPE_EXTENSION=\"InputObjectTypeExtension\"})(X||(X={}));function eE(e){return e===9||e===32}function Hh(e){return e>=48&&e<=57}function fN(e){return e>=97&&e<=122||e>=65&&e<=90}function tE(e){return fN(e)||e===95}function dN(e){return fN(e)||Hh(e)||e===95}function Qj(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let l=0;l<e.length;++l){var o;const c=e[l],p=Kj(c);p!==c.length&&(r=(o=r)!==null&&o!==void 0?o:l,i=l,l!==0&&p<n&&(n=p))}return e.map((l,c)=>c===0?l:l.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Kj(e){let t=0;for(;t<e.length&&eE(e.charCodeAt(t));)++t;return t}function Xj(e){if(e===\"\")return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function pN(e,t){const n=e.replace(/\"\"\"/g,'\\\\\"\"\"'),r=n.split(/\\r\\n|[\\n\\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(y=>y.length===0||eE(y.charCodeAt(0))),l=n.endsWith('\\\\\"\"\"'),c=e.endsWith('\"')&&!l,p=e.endsWith(\"\\\\\"),d=c||p,m=!(t!=null&&t.minimize)&&(!i||e.length>70||d||o||l);let E=\"\";const b=i&&eE(e.charCodeAt(0));return(m&&!b||o)&&(E+=`\n`),E+=n,(m||d)&&(E+=`\n`),'\"\"\"'+E+'\"\"\"'}var Ve;(function(e){e.SOF=\"<SOF>\",e.EOF=\"<EOF>\",e.BANG=\"!\",e.DOLLAR=\"$\",e.AMP=\"&\",e.PAREN_L=\"(\",e.PAREN_R=\")\",e.SPREAD=\"...\",e.COLON=\":\",e.EQUALS=\"=\",e.AT=\"@\",e.BRACKET_L=\"[\",e.BRACKET_R=\"]\",e.BRACE_L=\"{\",e.PIPE=\"|\",e.BRACE_R=\"}\",e.NAME=\"Name\",e.INT=\"Int\",e.FLOAT=\"Float\",e.STRING=\"String\",e.BLOCK_STRING=\"BlockString\",e.COMMENT=\"Comment\"})(Ve||(Ve={}));class nE{constructor(t){const n=new Z1(Ve.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!==Ve.EOF)do if(t.next)t=t.next;else{const n=Zj(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Ve.COMMENT);return t}}function hN(e){return e===Ve.BANG||e===Ve.DOLLAR||e===Ve.AMP||e===Ve.PAREN_L||e===Ve.PAREN_R||e===Ve.SPREAD||e===Ve.COLON||e===Ve.EQUALS||e===Ve.AT||e===Ve.BRACKET_L||e===Ve.BRACKET_R||e===Ve.BRACE_L||e===Ve.PIPE||e===Ve.BRACE_R}function Id(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Bv(e,t){return mN(e.charCodeAt(t))&&gN(e.charCodeAt(t+1))}function mN(e){return e>=55296&&e<=56319}function gN(e){return e>=56320&&e<=57343}function af(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return Ve.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='\"'?`'\"'`:`\"${r}\"`}return\"U+\"+n.toString(16).toUpperCase().padStart(4,\"0\")}function Yr(e,t,n,r,i){const o=e.line,l=1+n-e.lineStart;return new Z1(t,n,r,o,l,i)}function Zj(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Jj(e,i);case 33:return Yr(e,Ve.BANG,i,i+1);case 36:return Yr(e,Ve.DOLLAR,i,i+1);case 38:return Yr(e,Ve.AMP,i,i+1);case 40:return Yr(e,Ve.PAREN_L,i,i+1);case 41:return Yr(e,Ve.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Yr(e,Ve.SPREAD,i,i+3);break;case 58:return Yr(e,Ve.COLON,i,i+1);case 61:return Yr(e,Ve.EQUALS,i,i+1);case 64:return Yr(e,Ve.AT,i,i+1);case 91:return Yr(e,Ve.BRACKET_L,i,i+1);case 93:return Yr(e,Ve.BRACKET_R,i,i+1);case 123:return Yr(e,Ve.BRACE_L,i,i+1);case 124:return Yr(e,Ve.PIPE,i,i+1);case 125:return Yr(e,Ve.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?oV(e,i):tV(e,i)}if(Hh(o)||o===45)return eV(e,i,o);if(tE(o))return aV(e,i);throw ti(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (\")?`:Id(o)||Bv(n,i)?`Unexpected character: ${af(e,i)}.`:`Invalid character: ${af(e,i)}.`)}return Yr(e,Ve.EOF,r,r)}function Jj(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(o===10||o===13)break;if(Id(o))++i;else if(Bv(n,i))i+=2;else break}return Yr(e,Ve.COMMENT,t,i,n.slice(t+1,i))}function eV(e,t,n){const r=e.source.body;let i=t,o=n,l=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),Hh(o))throw ti(e.source,i,`Invalid number, unexpected digit after 0: ${af(e,i)}.`)}else i=rE(e,i,o),o=r.charCodeAt(i);if(o===46&&(l=!0,o=r.charCodeAt(++i),i=rE(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(l=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=rE(e,i,o),o=r.charCodeAt(i)),o===46||tE(o))throw ti(e.source,i,`Invalid number, expected digit but got: ${af(e,i)}.`);return Yr(e,l?Ve.FLOAT:Ve.INT,t,i,r.slice(t,i))}function rE(e,t,n){if(!Hh(n))throw ti(e.source,t,`Invalid number, expected digit but got: ${af(e,t)}.`);const r=e.source.body;let i=t+1;for(;Hh(r.charCodeAt(i));)++i;return i}function tV(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,l=\"\";for(;i<r;){const c=n.charCodeAt(i);if(c===34)return l+=n.slice(o,i),Yr(e,Ve.STRING,t,i+1,l);if(c===92){l+=n.slice(o,i);const p=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?nV(e,i):rV(e,i):iV(e,i);l+=p.value,i+=p.size,o=i;continue}if(c===10||c===13)break;if(Id(c))++i;else if(Bv(n,i))i+=2;else throw ti(e.source,i,`Invalid character within String: ${af(e,i)}.`)}throw ti(e.source,i,\"Unterminated string.\")}function nV(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const o=n.charCodeAt(t+i++);if(o===125){if(i<5||!Id(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Gh(o),r<0)break}throw ti(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+i)}\".`)}function rV(e,t){const n=e.source.body,r=vN(n,t+2);if(Id(r))return{value:String.fromCodePoint(r),size:6};if(mN(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=vN(n,t+8);if(gN(i))return{value:String.fromCodePoint(r,i),size:12}}throw ti(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+6)}\".`)}function vN(e,t){return Gh(e.charCodeAt(t))<<12|Gh(e.charCodeAt(t+1))<<8|Gh(e.charCodeAt(t+2))<<4|Gh(e.charCodeAt(t+3))}function Gh(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function iV(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'\"',size:2};case 92:return{value:\"\\\\\",size:2};case 47:return{value:\"/\",size:2};case 98:return{value:\"\\b\",size:2};case 102:return{value:\"\\f\",size:2};case 110:return{value:`\n`,size:2};case 114:return{value:\"\\r\",size:2};case 116:return{value:\"\t\",size:2}}throw ti(e.source,t,`Invalid character escape sequence: \"${n.slice(t,t+2)}\".`)}function oV(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,l=o,c=\"\";const p=[];for(;o<r;){const d=n.charCodeAt(o);if(d===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){c+=n.slice(l,o),p.push(c);const m=Yr(e,Ve.BLOCK_STRING,t,o+3,Qj(p).join(`\n`));return e.line+=p.length-1,e.lineStart=i,m}if(d===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){c+=n.slice(l,o),l=o+1,o+=4;continue}if(d===10||d===13){c+=n.slice(l,o),p.push(c),d===13&&n.charCodeAt(o+1)===10?o+=2:++o,c=\"\",l=o,i=o;continue}if(Id(d))++o;else if(Bv(n,o))o+=2;else throw ti(e.source,o,`Invalid character within String: ${af(e,o)}.`)}throw ti(e.source,o,\"Unterminated string.\")}function aV(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(dN(o))++i;else break}return Yr(e,Ve.NAME,t,i,n.slice(t,i))}const sV=10,yN=2;function Ue(e){return $v(e,[])}function $v(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return lV(e,t);default:return String(e)}}function lV(e,t){if(e===null)return\"null\";if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(uV(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:$v(r,n)}else if(Array.isArray(e))return fV(e,n);return cV(e,n)}function uV(e){return typeof e.toJSON==\"function\"}function cV(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>yN?\"[\"+dV(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+$v(o,t)).join(\", \")+\" }\"}function fV(e,t){if(e.length===0)return\"[]\";if(t.length>yN)return\"[Array]\";const n=Math.min(sV,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push($v(e[o],t));return r===1?i.push(\"... 1 more item\"):r>1&&i.push(`... ${r} more items`),\"[\"+i.join(\", \")+\"]\"}function dV(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 Qa=globalThis.process&&!0?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t==\"object\"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){const l=Ue(t);throw new Error(`Cannot use ${i} \"${l}\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Wh{constructor(t,n=\"GraphQL request\",r={line:1,column:1}){typeof t==\"string\"||Zt(!1,`Body must be a string. Received: ${Ue(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Zt(!1,\"line in locationOffset is 1-indexed and must be positive.\"),this.locationOffset.column>0||Zt(!1,\"column in locationOffset is 1-indexed and must be positive.\")}get[Symbol.toStringTag](){return\"Source\"}}function bN(e){return Qa(e,Wh)}function Li(e,t){const n=new zv(e,t),r=n.parseDocument();return Object.defineProperty(r,\"tokenCount\",{enumerable:!1,value:n.tokenCount}),r}function EN(e,t){const n=new zv(e,t);n.expectToken(Ve.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(Ve.EOF),r}function pV(e,t){const n=new zv(e,t);n.expectToken(Ve.SOF);const r=n.parseConstValueLiteral();return n.expectToken(Ve.EOF),r}function hV(e,t){const n=new zv(e,t);n.expectToken(Ve.SOF);const r=n.parseTypeReference();return n.expectToken(Ve.EOF),r}class zv{constructor(t,n={}){const r=bN(t)?t:new Wh(t);this._lexer=new nE(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Ve.NAME);return this.node(t,{kind:X.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:X.DOCUMENT,definitions:this.many(Ve.SOF,this.parseDefinition,Ve.EOF)})}parseDefinition(){if(this.peek(Ve.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Ve.NAME){switch(n.value){case\"schema\":return this.parseSchemaDefinition();case\"scalar\":return this.parseScalarTypeDefinition();case\"type\":return this.parseObjectTypeDefinition();case\"interface\":return this.parseInterfaceTypeDefinition();case\"union\":return this.parseUnionTypeDefinition();case\"enum\":return this.parseEnumTypeDefinition();case\"input\":return this.parseInputObjectTypeDefinition();case\"directive\":return this.parseDirectiveDefinition()}if(t)throw ti(this._lexer.source,this._lexer.token.start,\"Unexpected description, descriptions are supported only on type definitions.\");switch(n.value){case\"query\":case\"mutation\":case\"subscription\":return this.parseOperationDefinition();case\"fragment\":return this.parseFragmentDefinition();case\"extend\":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(Ve.BRACE_L))return this.node(t,{kind:X.OPERATION_DEFINITION,operation:ni.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(Ve.NAME)&&(r=this.parseName()),this.node(t,{kind:X.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Ve.NAME);switch(t.value){case\"query\":return ni.QUERY;case\"mutation\":return ni.MUTATION;case\"subscription\":return ni.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Ve.PAREN_L,this.parseVariableDefinition,Ve.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:X.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ve.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ve.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Ve.DOLLAR),this.node(t,{kind:X.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:X.SELECTION_SET,selections:this.many(Ve.BRACE_L,this.parseSelection,Ve.BRACE_R)})}parseSelection(){return this.peek(Ve.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(Ve.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:X.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ve.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ve.PAREN_L,n,Ve.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Ve.COLON),this.node(n,{kind:X.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Ve.SPREAD);const n=this.expectOptionalKeyword(\"on\");return!n&&this.peek(Ve.NAME)?this.node(t,{kind:X.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:X.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword(\"fragment\"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:X.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:X.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===\"on\")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case Ve.BRACKET_L:return this.parseList(t);case Ve.BRACE_L:return this.parseObject(t);case Ve.INT:return this.advanceLexer(),this.node(n,{kind:X.INT,value:n.value});case Ve.FLOAT:return this.advanceLexer(),this.node(n,{kind:X.FLOAT,value:n.value});case Ve.STRING:case Ve.BLOCK_STRING:return this.parseStringLiteral();case Ve.NAME:switch(this.advanceLexer(),n.value){case\"true\":return this.node(n,{kind:X.BOOLEAN,value:!0});case\"false\":return this.node(n,{kind:X.BOOLEAN,value:!1});case\"null\":return this.node(n,{kind:X.NULL});default:return this.node(n,{kind:X.ENUM,value:n.value})}case Ve.DOLLAR:if(t)if(this.expectToken(Ve.DOLLAR),this._lexer.token.kind===Ve.NAME){const r=this._lexer.token.value;throw ti(this._lexer.source,n.start,`Unexpected variable \"$${r}\" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:X.STRING,value:t.value,block:t.kind===Ve.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:X.LIST,values:this.any(Ve.BRACKET_L,n,Ve.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:X.OBJECT,fields:this.any(Ve.BRACE_L,n,Ve.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(Ve.COLON),this.node(n,{kind:X.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(Ve.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(Ve.AT),this.node(n,{kind:X.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(Ve.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Ve.BRACKET_R),n=this.node(t,{kind:X.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Ve.BANG)?this.node(t,{kind:X.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:X.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ve.STRING)||this.peek(Ve.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"schema\");const r=this.parseConstDirectives(),i=this.many(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);return this.node(t,{kind:X.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(Ve.COLON);const r=this.parseNamedType();return this.node(t,{kind:X.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"scalar\");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:X.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"type\");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:X.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword(\"implements\")?this.delimitedMany(Ve.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ve.BRACE_L,this.parseFieldDefinition,Ve.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ve.COLON);const o=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:X.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:l})}parseArgumentDefs(){return this.optionalMany(Ve.PAREN_L,this.parseInputValueDef,Ve.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Ve.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(Ve.EQUALS)&&(o=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:X.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"interface\");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:X.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"union\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:X.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Ve.EQUALS)?this.delimitedMany(Ve.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"enum\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:X.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Ve.BRACE_L,this.parseEnumValueDefinition,Ve.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:X.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value===\"true\"||this._lexer.token.value===\"false\"||this._lexer.token.value===\"null\")throw ti(this._lexer.source,this._lexer.token.start,`${Hv(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"input\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:X.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Ve.BRACE_L,this.parseInputValueDef,Ve.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Ve.NAME)switch(t.value){case\"schema\":return this.parseSchemaExtension();case\"scalar\":return this.parseScalarTypeExtension();case\"type\":return this.parseObjectTypeExtension();case\"interface\":return this.parseInterfaceTypeExtension();case\"union\":return this.parseUnionTypeExtension();case\"enum\":return this.parseEnumTypeExtension();case\"input\":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"schema\");const n=this.parseConstDirectives(),r=this.optionalMany(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:X.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"scalar\");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:X.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"type\");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:X.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"interface\");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:X.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"union\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:X.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"enum\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:X.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"input\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:X.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"directive\"),this.expectToken(Ve.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword(\"repeatable\");this.expectKeyword(\"on\");const l=this.parseDirectiveLocations();return this.node(t,{kind:X.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:l})}parseDirectiveLocations(){return this.delimitedMany(Ve.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ct,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new uN(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 ti(this._lexer.source,n.start,`Expected ${SN(t)}, found ${Hv(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===Ve.NAME&&n.value===t)this.advanceLexer();else throw ti(this._lexer.source,n.start,`Expected \"${t}\", found ${Hv(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===Ve.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return ti(this._lexer.source,n.start,`Unexpected ${Hv(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==Ve.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw ti(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Hv(e){const t=e.value;return SN(e.kind)+(t!=null?` \"${t}\"`:\"\")}function SN(e){return hN(e)?`\"${e}\"`:e}const mV=5;function Ol(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=\" Did you mean \";n&&(i+=n+\" \");const o=r.map(p=>`\"${p}\"`);switch(o.length){case 0:return\"\";case 1:return i+o[0]+\"?\";case 2:return i+o[0]+\" or \"+o[1]+\"?\"}const l=o.slice(0,mV),c=l.pop();return i+l.join(\", \")+\", or \"+c+\"?\"}function TN(e){return e}function Dl(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function Lu(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function kl(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Yh(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Gv(i)&&Gv(o)){let l=0;do++n,l=l*10+i-iE,i=e.charCodeAt(n);while(Gv(i)&&l>0);let c=0;do++r,c=c*10+o-iE,o=t.charCodeAt(r);while(Gv(o)&&c>0);if(l<c)return-1;if(l>c)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const iE=48,gV=57;function Gv(e){return!isNaN(e)&&iE<=e&&e<=gV}function Iu(e,t){const n=Object.create(null),r=new vV(e),i=Math.floor(e.length*.4)+1;for(const o of t){const l=r.measure(o,i);l!==void 0&&(n[o]=l)}return Object.keys(n).sort((o,l)=>{const c=n[o]-n[l];return c!==0?c:Yh(o,l)})}class vV{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=wN(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=wN(r),o=this._inputArray;if(i.length<o.length){const m=i;i=o,o=m}const l=i.length,c=o.length;if(l-c>n)return;const p=this._rows;for(let m=0;m<=c;m++)p[0][m]=m;for(let m=1;m<=l;m++){const E=p[(m-1)%3],b=p[m%3];let y=b[0]=m;for(let w=1;w<=c;w++){const x=i[m-1]===o[w-1]?0:1;let k=Math.min(E[w]+1,b[w-1]+1,E[w-1]+x);if(m>1&&w>1&&i[m-1]===o[w-2]&&i[m-2]===o[w-1]){const N=p[(m-2)%3][w-2];k=Math.min(k,N+1)}k<y&&(y=k),b[w]=k}if(y>n)return}const d=p[l%3][c];return d<=n?d:void 0}}function wN(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function ba(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}function yV(e){return`\"${e.replace(bV,EV)}\"`}const bV=/[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;function EV(e){return SV[e.charCodeAt(0)]}const SV=[\"\\\\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\"],sf=Object.freeze({});function Er(e,t,n=cN){const r=new Map;for(const N of Object.values(X))r.set(N,Fd(t,N));let i,o=Array.isArray(e),l=[e],c=-1,p=[],d=e,m,E;const b=[],y=[];do{c++;const N=c===l.length,A=N&&p.length!==0;if(N){if(m=y.length===0?void 0:b[b.length-1],d=E,E=y.pop(),A)if(o){d=d.slice();let _=0;for(const[M,V]of p){const P=M-_;V===null?(d.splice(P,1),_++):d[P]=V}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[_,M]of p)d[_]=M}c=i.index,l=i.keys,p=i.edits,o=i.inArray,i=i.prev}else if(E){if(m=o?c:l[c],d=E[m],d==null)continue;b.push(m)}let O;if(!Array.isArray(d)){var w,x;J1(d)||Zt(!1,`Invalid AST Node: ${Ue(d)}.`);const _=N?(w=r.get(d.kind))===null||w===void 0?void 0:w.leave:(x=r.get(d.kind))===null||x===void 0?void 0:x.enter;if(O=_==null?void 0:_.call(t,d,m,E,b,y),O===sf)break;if(O===!1){if(!N){b.pop();continue}}else if(O!==void 0&&(p.push([m,O]),!N))if(J1(O))d=O;else{b.pop();continue}}if(O===void 0&&A&&p.push([m,d]),N)b.pop();else{var k;i={inArray:o,index:c,keys:l,edits:p,prev:i},o=Array.isArray(d),l=o?d:(k=n[d.kind])!==null&&k!==void 0?k:[],c=-1,p=[],E&&y.push(E),E=d}}while(i!==void 0);return p.length!==0?p[p.length-1][1]:e}function oE(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(X)){let i=!1;const o=new Array(e.length).fill(void 0),l=new Array(e.length).fill(void 0);for(let p=0;p<e.length;++p){const{enter:d,leave:m}=Fd(e[p],r);i||(i=d!=null||m!=null),o[p]=d,l[p]=m}if(!i)continue;const c={enter(...p){const d=p[0];for(let E=0;E<e.length;E++)if(t[E]===null){var m;const b=(m=o[E])===null||m===void 0?void 0:m.apply(e[E],p);if(b===!1)t[E]=d;else if(b===sf)t[E]=sf;else if(b!==void 0)return b}},leave(...p){const d=p[0];for(let E=0;E<e.length;E++)if(t[E]===null){var m;const b=(m=l[E])===null||m===void 0?void 0:m.apply(e[E],p);if(b===sf)t[E]=sf;else if(b!==void 0&&b!==!1)return b}else t[E]===d&&(t[E]=null)}};n[r]=c}return n}function Fd(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 TV(e,t,n){const{enter:r,leave:i}=Fd(e,t);return n?i:r}function dn(e){return Er(e,xV)}const wV=80,xV={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>Tt(e.definitions,`\n\n`)},OperationDefinition:{leave(e){const t=pn(\"(\",Tt(e.variableDefinitions,\", \"),\")\"),n=Tt([e.operation,Tt([e.name,t]),Tt(e.directives,\" \")],\" \");return(n===\"query\"?\"\":n+\" \")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+pn(\" = \",n)+pn(\" \",Tt(r,\" \"))},SelectionSet:{leave:({selections:e})=>Ka(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=pn(\"\",e,\": \")+t;let l=o+pn(\"(\",Tt(n,\", \"),\")\");return l.length>wV&&(l=o+pn(`(\n`,Wv(Tt(n,`\n`)),`\n)`)),Tt([l,Tt(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+pn(\" \",Tt(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Tt([\"...\",pn(\"on \",e),Tt(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${pn(\"(\",Tt(n,\", \"),\")\")} on ${t} ${pn(\"\",Tt(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?pN(e):yV(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+Tt(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+Tt(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+pn(\"(\",Tt(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>pn(\"\",e,`\n`)+Tt([\"schema\",Tt(t,\" \"),Ka(n)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>pn(\"\",e,`\n`)+Tt([\"scalar\",t,Tt(n,\" \")],\" \")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>pn(\"\",e,`\n`)+Tt([\"type\",t,pn(\"implements \",Tt(n,\" & \")),Tt(r,\" \"),Ka(i)],\" \")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>pn(\"\",e,`\n`)+t+(xN(n)?pn(`(\n`,Wv(Tt(n,`\n`)),`\n)`):pn(\"(\",Tt(n,\", \"),\")\"))+\": \"+r+pn(\" \",Tt(i,\" \"))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>pn(\"\",e,`\n`)+Tt([t+\": \"+n,pn(\"= \",r),Tt(i,\" \")],\" \")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>pn(\"\",e,`\n`)+Tt([\"interface\",t,pn(\"implements \",Tt(n,\" & \")),Tt(r,\" \"),Ka(i)],\" \")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>pn(\"\",e,`\n`)+Tt([\"union\",t,Tt(n,\" \"),pn(\"= \",Tt(r,\" | \"))],\" \")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>pn(\"\",e,`\n`)+Tt([\"enum\",t,Tt(n,\" \"),Ka(r)],\" \")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>pn(\"\",e,`\n`)+Tt([t,Tt(n,\" \")],\" \")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>pn(\"\",e,`\n`)+Tt([\"input\",t,Tt(n,\" \"),Ka(r)],\" \")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>pn(\"\",e,`\n`)+\"directive @\"+t+(xN(n)?pn(`(\n`,Wv(Tt(n,`\n`)),`\n)`):pn(\"(\",Tt(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+Tt(i,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Tt([\"extend schema\",Tt(e,\" \"),Ka(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Tt([\"extend scalar\",e,Tt(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Tt([\"extend type\",e,pn(\"implements \",Tt(t,\" & \")),Tt(n,\" \"),Ka(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Tt([\"extend interface\",e,pn(\"implements \",Tt(t,\" & \")),Tt(n,\" \"),Ka(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Tt([\"extend union\",e,Tt(t,\" \"),pn(\"= \",Tt(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Tt([\"extend enum\",e,Tt(t,\" \"),Ka(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Tt([\"extend input\",e,Tt(t,\" \"),Ka(n)],\" \")}};function Tt(e,t=\"\"){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:\"\"}function Ka(e){return pn(`{\n`,Wv(Tt(e,`\n`)),`\n}`)}function pn(e,t,n=\"\"){return t!=null&&t!==\"\"?e+t+n:\"\"}function Wv(e){return pn(\" \",e.replace(/\\n/g,`\n `))}function xN(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`\n`)))!==null&&t!==void 0?t:!1}function Yv(e,t){switch(e.kind){case X.NULL:return null;case X.INT:return parseInt(e.value,10);case X.FLOAT:return parseFloat(e.value);case X.STRING:case X.ENUM:case X.BOOLEAN:return e.value;case X.LIST:return e.values.map(n=>Yv(n,t));case X.OBJECT:return Lu(e.fields,n=>n.name.value,n=>Yv(n.value,t));case X.VARIABLE:return t==null?void 0:t[e.name.value]}}function Wo(e){if(e!=null||Zt(!1,\"Must provide name.\"),typeof e==\"string\"||Zt(!1,\"Expected name to be a string.\"),e.length===0)throw new Me(\"Expected name to be a non-empty string.\");for(let t=1;t<e.length;++t)if(!dN(e.charCodeAt(t)))throw new Me(`Names must only contain [_a-zA-Z0-9] but \"${e}\" does not.`);if(!tE(e.charCodeAt(0)))throw new Me(`Names must start with [_a-zA-Z] but \"${e}\" does not.`);return e}function CN(e){if(e===\"true\"||e===\"false\"||e===\"null\")throw new Me(`Enum values cannot be named: ${e}`);return Wo(e)}function Pd(e){return Ii(e)||At(e)||Rt(e)||sr(e)||zn(e)||rn(e)||hn(e)||Nt(e)}function CV(e){if(!Pd(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL type.`);return e}function Ii(e){return Qa(e,Ea)}function _V(e){if(!Ii(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Scalar type.`);return e}function At(e){return Qa(e,ii)}function _N(e){if(!At(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Object type.`);return e}function Rt(e){return Qa(e,so)}function NN(e){if(!Rt(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Interface type.`);return e}function sr(e){return Qa(e,ju)}function NV(e){if(!sr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Union type.`);return e}function zn(e){return Qa(e,Qi)}function AV(e){if(!zn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Enum type.`);return e}function rn(e){return Qa(e,lo)}function OV(e){if(!rn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Input Object type.`);return e}function hn(e){return Qa(e,ur)}function DV(e){if(!hn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL List type.`);return e}function Nt(e){return Qa(e,jt)}function kV(e){if(!Nt(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Non-Null type.`);return e}function Fi(e){return Ii(e)||zn(e)||rn(e)||Qh(e)&&Fi(e.ofType)}function RV(e){if(!Fi(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL input type.`);return e}function Rl(e){return Ii(e)||At(e)||Rt(e)||sr(e)||zn(e)||Qh(e)&&Rl(e.ofType)}function MV(e){if(!Rl(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL output type.`);return e}function ri(e){return Ii(e)||zn(e)}function LV(e){if(!ri(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL leaf type.`);return e}function Qr(e){return At(e)||Rt(e)||sr(e)}function IV(e){if(!Qr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL composite type.`);return e}function lr(e){return Rt(e)||sr(e)}function AN(e){if(!lr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL abstract type.`);return e}class ur{constructor(t){Pd(t)||Zt(!1,`Expected ${Ue(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return\"GraphQLList\"}toString(){return\"[\"+String(this.ofType)+\"]\"}toJSON(){return this.toString()}}class jt{constructor(t){Qv(t)||Zt(!1,`Expected ${Ue(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return\"GraphQLNonNull\"}toString(){return String(this.ofType)+\"!\"}toJSON(){return this.toString()}}function Qh(e){return hn(e)||Nt(e)}function FV(e){if(!Qh(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL wrapping type.`);return e}function Qv(e){return Pd(e)&&!Nt(e)}function ON(e){if(!Qv(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL nullable type.`);return e}function Fu(e){if(e)return Nt(e)?e.ofType:e}function Ml(e){return Ii(e)||At(e)||Rt(e)||sr(e)||zn(e)||rn(e)}function PV(e){if(!Ml(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL named type.`);return e}function mn(e){if(e){let t=e;for(;Qh(t);)t=t.ofType;return t}}function aE(e){return typeof e==\"function\"?e():e}function sE(e){return typeof e==\"function\"?e():e}class Ea{constructor(t){var n,r,i,o;const l=(n=t.parseValue)!==null&&n!==void 0?n:TN;this.name=Wo(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:TN,this.parseValue=l,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,p)=>l(Yv(c,p)),this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL==\"string\"||Zt(!1,`${this.name} must provide \"specifiedByURL\" as a string, but got: ${Ue(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize==\"function\"||Zt(!1,`${this.name} must provide \"serialize\" function. If this custom Scalar is also used as an input type, ensure \"parseValue\" and \"parseLiteral\" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue==\"function\"&&typeof t.parseLiteral==\"function\"||Zt(!1,`${this.name} must provide both \"parseValue\" and \"parseLiteral\" functions.`))}get[Symbol.toStringTag](){return\"GraphQLScalarType\"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ii{constructor(t){var n;this.name=Wo(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>kN(t),this._interfaces=()=>DN(t),t.isTypeOf==null||typeof t.isTypeOf==\"function\"||Zt(!1,`${this.name} must provide \"isTypeOf\" as a function, but got: ${Ue(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return\"GraphQLObjectType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==\"function\"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:MN(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function DN(e){var t;const n=aE((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Zt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function kN(e){const t=sE(e.fields);return jd(t)||Zt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kl(t,(n,r)=>{var i;jd(n)||Zt(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve==\"function\"||Zt(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${Ue(n.resolve)}.`);const o=(i=n.args)!==null&&i!==void 0?i:{};return jd(o)||Zt(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Wo(r),description:n.description,type:n.type,args:RN(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:ba(n.extensions),astNode:n.astNode}})}function RN(e){return Object.entries(e).map(([t,n])=>({name:Wo(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ba(n.extensions),astNode:n.astNode}))}function jd(e){return Go(e)&&!Array.isArray(e)}function MN(e){return kl(e,t=>({description:t.description,type:t.type,args:LN(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function LN(e){return Lu(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Pu(e){return Nt(e.type)&&e.defaultValue===void 0}class so{constructor(t){var n;this.name=Wo(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=kN.bind(void 0,t),this._interfaces=DN.bind(void 0,t),t.resolveType==null||typeof t.resolveType==\"function\"||Zt(!1,`${this.name} must provide \"resolveType\" as a function, but got: ${Ue(t.resolveType)}.`)}get[Symbol.toStringTag](){return\"GraphQLInterfaceType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==\"function\"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:MN(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ju{constructor(t){var n;this.name=Wo(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=jV.bind(void 0,t),t.resolveType==null||typeof t.resolveType==\"function\"||Zt(!1,`${this.name} must provide \"resolveType\" as a function, but got: ${Ue(t.resolveType)}.`)}get[Symbol.toStringTag](){return\"GraphQLUnionType\"}getTypes(){return typeof this._types==\"function\"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function jV(e){const t=aE(e.types);return Array.isArray(t)||Zt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Qi{constructor(t){var n;this.name=Wo(t.name),this.description=t.description,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values==\"function\"?t.values:IN(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return\"GraphQLEnumType\"}getValues(){return typeof this._values==\"function\"&&(this._values=IN(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=Dl(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));const n=this._valueLookup.get(t);if(n===void 0)throw new Me(`Enum \"${this.name}\" cannot represent value: ${Ue(t)}`);return n.name}parseValue(t){if(typeof t!=\"string\"){const r=Ue(t);throw new Me(`Enum \"${this.name}\" cannot represent non-string value: ${r}.`+Kv(this,r))}const n=this.getValue(t);if(n==null)throw new Me(`Value \"${t}\" does not exist in \"${this.name}\" enum.`+Kv(this,t));return n.value}parseLiteral(t,n){if(t.kind!==X.ENUM){const i=dn(t);throw new Me(`Enum \"${this.name}\" cannot represent non-enum value: ${i}.`+Kv(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=dn(t);throw new Me(`Value \"${i}\" does not exist in \"${this.name}\" enum.`+Kv(this,i),{nodes:t})}return r.value}toConfig(){const t=Lu(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Kv(e,t){const n=e.getValues().map(i=>i.name),r=Iu(t,n);return Ol(\"the enum value\",r)}function IN(e,t){return jd(t)||Zt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(jd(r)||Zt(!1,`${e}.${n} must refer to an object with a \"value\" key representing an internal value but got: ${Ue(r)}.`),{name:CN(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:ba(r.extensions),astNode:r.astNode}))}class lo{constructor(t){var n,r;this.name=Wo(t.name),this.description=t.description,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=VV.bind(void 0,t)}get[Symbol.toStringTag](){return\"GraphQLInputObjectType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}toConfig(){const t=kl(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 VV(e){const t=sE(e.fields);return jd(t)||Zt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kl(t,(n,r)=>(!(\"resolve\"in n)||Zt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Wo(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ba(n.extensions),astNode:n.astNode}))}function Xv(e){return Nt(e.type)&&e.defaultValue===void 0}function Zv(e,t){return e===t?!0:Nt(e)&&Nt(t)||hn(e)&&hn(t)?Zv(e.ofType,t.ofType):!1}function lf(e,t,n){return t===n?!0:Nt(n)?Nt(t)?lf(e,t.ofType,n.ofType):!1:Nt(t)?lf(e,t.ofType,n):hn(n)?hn(t)?lf(e,t.ofType,n.ofType):!1:hn(t)?!1:lr(n)&&(Rt(t)||At(t))&&e.isSubType(n,t)}function Kh(e,t,n){return t===n?!0:lr(t)?lr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):lr(n)?e.isSubType(n,t):!1}const Jv=2147483647,ey=-2147483648,Xh=new Ea({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=nm(e);if(typeof t==\"boolean\")return t?1:0;let n=t;if(typeof t==\"string\"&&t!==\"\"&&(n=Number(t)),typeof n!=\"number\"||!Number.isInteger(n))throw new Me(`Int cannot represent non-integer value: ${Ue(t)}`);if(n>Jv||n<ey)throw new Me(\"Int cannot represent non 32-bit signed integer value: \"+Ue(t));return n},parseValue(e){if(typeof e!=\"number\"||!Number.isInteger(e))throw new Me(`Int cannot represent non-integer value: ${Ue(e)}`);if(e>Jv||e<ey)throw new Me(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==X.INT)throw new Me(`Int cannot represent non-integer value: ${dn(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Jv||t<ey)throw new Me(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Zh=new Ea({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=nm(e);if(typeof t==\"boolean\")return t?1:0;let n=t;if(typeof t==\"string\"&&t!==\"\"&&(n=Number(t)),typeof n!=\"number\"||!Number.isFinite(n))throw new Me(`Float cannot represent non numeric value: ${Ue(t)}`);return n},parseValue(e){if(typeof e!=\"number\"||!Number.isFinite(e))throw new Me(`Float cannot represent non numeric value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.FLOAT&&e.kind!==X.INT)throw new Me(`Float cannot represent non numeric value: ${dn(e)}`,e);return parseFloat(e.value)}}),Xn=new Ea({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=nm(e);if(typeof t==\"string\")return t;if(typeof t==\"boolean\")return t?\"true\":\"false\";if(typeof t==\"number\"&&Number.isFinite(t))return t.toString();throw new Me(`String cannot represent value: ${Ue(e)}`)},parseValue(e){if(typeof e!=\"string\")throw new Me(`String cannot represent a non string value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.STRING)throw new Me(`String cannot represent a non string value: ${dn(e)}`,{nodes:e});return e.value}}),Zn=new Ea({name:\"Boolean\",description:\"The `Boolean` scalar type represents `true` or `false`.\",serialize(e){const t=nm(e);if(typeof t==\"boolean\")return t;if(Number.isFinite(t))return t!==0;throw new Me(`Boolean cannot represent a non boolean value: ${Ue(t)}`)},parseValue(e){if(typeof e!=\"boolean\")throw new Me(`Boolean cannot represent a non boolean value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.BOOLEAN)throw new Me(`Boolean cannot represent a non boolean value: ${dn(e)}`,{nodes:e});return e.value}}),Jh=new Ea({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=nm(e);if(typeof t==\"string\")return t;if(Number.isInteger(t))return String(t);throw new Me(`ID cannot represent value: ${Ue(e)}`)},parseValue(e){if(typeof e==\"string\")return e;if(typeof e==\"number\"&&Number.isInteger(e))return e.toString();throw new Me(`ID cannot represent value: ${Ue(e)}`)},parseLiteral(e){if(e.kind!==X.STRING&&e.kind!==X.INT)throw new Me(\"ID cannot represent a non-string and non-integer value: \"+dn(e),{nodes:e});return e.value}}),em=Object.freeze([Xn,Xh,Zh,Zn,Jh]);function tm(e){return em.some(({name:t})=>e.name===t)}function nm(e){if(Go(e)){if(typeof e.valueOf==\"function\"){const t=e.valueOf();if(!Go(t))return t}if(typeof e.toJSON==\"function\")return e.toJSON()}return e}function ty(e){return Qa(e,No)}function UV(e){if(!ty(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL directive.`);return e}class No{constructor(t){var n,r;this.name=Wo(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=ba(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Zt(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};Go(i)&&!Array.isArray(i)||Zt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=RN(i)}get[Symbol.toStringTag](){return\"GraphQLDirective\"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:LN(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return\"@\"+this.name}toJSON(){return this.toString()}}const ny=new No({name:\"include\",description:\"Directs the executor to include this field or fragment only when the `if` argument is true.\",locations:[ct.FIELD,ct.FRAGMENT_SPREAD,ct.INLINE_FRAGMENT],args:{if:{type:new jt(Zn),description:\"Included when true.\"}}}),ry=new No({name:\"skip\",description:\"Directs the executor to skip this field or fragment when the `if` argument is true.\",locations:[ct.FIELD,ct.FRAGMENT_SPREAD,ct.INLINE_FRAGMENT],args:{if:{type:new jt(Zn),description:\"Skipped when true.\"}}}),lE=\"No longer supported\",iy=new No({name:\"deprecated\",description:\"Marks an element of a GraphQL schema as no longer supported.\",locations:[ct.FIELD_DEFINITION,ct.ARGUMENT_DEFINITION,ct.INPUT_FIELD_DEFINITION,ct.ENUM_VALUE],args:{reason:{type:Xn,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:lE}}}),uE=new No({name:\"specifiedBy\",description:\"Exposes a URL that specifies the behavior of this scalar.\",locations:[ct.SCALAR],args:{url:{type:new jt(Xn),description:\"The URL that specifies the behavior of this scalar.\"}}}),cE=new No({name:\"oneOf\",description:\"Indicates exactly one field must be supplied and this field must not be `null`.\",locations:[ct.INPUT_OBJECT],args:{}}),Vu=Object.freeze([ny,ry,iy,uE,cE]);function oy(e){return Vu.some(({name:t})=>t===e.name)}function fE(e){return typeof e==\"object\"&&typeof(e==null?void 0:e[Symbol.iterator])==\"function\"}function Ll(e,t){if(Nt(t)){const n=Ll(e,t.ofType);return(n==null?void 0:n.kind)===X.NULL?null:n}if(e===null)return{kind:X.NULL};if(e===void 0)return null;if(hn(t)){const n=t.ofType;if(fE(e)){const r=[];for(const i of e){const o=Ll(i,n);o!=null&&r.push(o)}return{kind:X.LIST,values:r}}return Ll(e,n)}if(rn(t)){if(!Go(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=Ll(e[r.name],r.type);i&&n.push({kind:X.OBJECT_FIELD,name:{kind:X.NAME,value:r.name},value:i})}return{kind:X.OBJECT,fields:n}}if(ri(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n==\"boolean\")return{kind:X.BOOLEAN,value:n};if(typeof n==\"number\"&&Number.isFinite(n)){const r=String(n);return FN.test(r)?{kind:X.INT,value:r}:{kind:X.FLOAT,value:r}}if(typeof n==\"string\")return zn(t)?{kind:X.ENUM,value:n}:t===Jh&&FN.test(n)?{kind:X.INT,value:n}:{kind:X.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ue(n)}.`)}qr(!1,\"Unexpected input type: \"+Ue(t))}const FN=/^-?(?:0|[1-9][0-9]*)$/,ay=new ii({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:Xn,resolve:e=>e.description},types:{description:\"A list of all types supported by this server.\",type:new jt(new ur(new jt(Sa))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:\"The type that query operations will be rooted at.\",type:new jt(Sa),resolve:e=>e.getQueryType()},mutationType:{description:\"If this server supports mutation, the type that mutation operations will be rooted at.\",type:Sa,resolve:e=>e.getMutationType()},subscriptionType:{description:\"If this server support subscription, the type that subscription operations will be rooted at.\",type:Sa,resolve:e=>e.getSubscriptionType()},directives:{description:\"A list of all directives supported by this server.\",type:new jt(new ur(new jt(dE))),resolve:e=>e.getDirectives()}})}),dE=new ii({name:\"__Directive\",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new jt(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},isRepeatable:{type:new jt(Zn),resolve:e=>e.isRepeatable},locations:{type:new jt(new ur(new jt(pE))),resolve:e=>e.locations},args:{type:new jt(new ur(new jt(rm))),args:{includeDeprecated:{type:Zn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),pE=new Qi({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:ct.QUERY,description:\"Location adjacent to a query operation.\"},MUTATION:{value:ct.MUTATION,description:\"Location adjacent to a mutation operation.\"},SUBSCRIPTION:{value:ct.SUBSCRIPTION,description:\"Location adjacent to a subscription operation.\"},FIELD:{value:ct.FIELD,description:\"Location adjacent to a field.\"},FRAGMENT_DEFINITION:{value:ct.FRAGMENT_DEFINITION,description:\"Location adjacent to a fragment definition.\"},FRAGMENT_SPREAD:{value:ct.FRAGMENT_SPREAD,description:\"Location adjacent to a fragment spread.\"},INLINE_FRAGMENT:{value:ct.INLINE_FRAGMENT,description:\"Location adjacent to an inline fragment.\"},VARIABLE_DEFINITION:{value:ct.VARIABLE_DEFINITION,description:\"Location adjacent to a variable definition.\"},SCHEMA:{value:ct.SCHEMA,description:\"Location adjacent to a schema definition.\"},SCALAR:{value:ct.SCALAR,description:\"Location adjacent to a scalar definition.\"},OBJECT:{value:ct.OBJECT,description:\"Location adjacent to an object type definition.\"},FIELD_DEFINITION:{value:ct.FIELD_DEFINITION,description:\"Location adjacent to a field definition.\"},ARGUMENT_DEFINITION:{value:ct.ARGUMENT_DEFINITION,description:\"Location adjacent to an argument definition.\"},INTERFACE:{value:ct.INTERFACE,description:\"Location adjacent to an interface definition.\"},UNION:{value:ct.UNION,description:\"Location adjacent to a union definition.\"},ENUM:{value:ct.ENUM,description:\"Location adjacent to an enum definition.\"},ENUM_VALUE:{value:ct.ENUM_VALUE,description:\"Location adjacent to an enum value definition.\"},INPUT_OBJECT:{value:ct.INPUT_OBJECT,description:\"Location adjacent to an input object type definition.\"},INPUT_FIELD_DEFINITION:{value:ct.INPUT_FIELD_DEFINITION,description:\"Location adjacent to an input object field definition.\"}}}),Sa=new ii({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 jt(gE),resolve(e){if(Ii(e))return Vn.SCALAR;if(At(e))return Vn.OBJECT;if(Rt(e))return Vn.INTERFACE;if(sr(e))return Vn.UNION;if(zn(e))return Vn.ENUM;if(rn(e))return Vn.INPUT_OBJECT;if(hn(e))return Vn.LIST;if(Nt(e))return Vn.NON_NULL;qr(!1,`Unexpected type: \"${Ue(e)}\".`)}},name:{type:Xn,resolve:e=>\"name\"in e?e.name:void 0},description:{type:Xn,resolve:e=>\"description\"in e?e.description:void 0},specifiedByURL:{type:Xn,resolve:e=>\"specifiedByURL\"in e?e.specifiedByURL:void 0},fields:{type:new ur(new jt(hE)),args:{includeDeprecated:{type:Zn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(At(e)||Rt(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ur(new jt(Sa)),resolve(e){if(At(e)||Rt(e))return e.getInterfaces()}},possibleTypes:{type:new ur(new jt(Sa)),resolve(e,t,n,{schema:r}){if(lr(e))return r.getPossibleTypes(e)}},enumValues:{type:new ur(new jt(mE)),args:{includeDeprecated:{type:Zn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(zn(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ur(new jt(rm)),args:{includeDeprecated:{type:Zn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rn(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Sa,resolve:e=>\"ofType\"in e?e.ofType:void 0},isOneOf:{type:Zn,resolve:e=>{if(rn(e))return e.isOneOf}}})}),hE=new ii({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 jt(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},args:{type:new jt(new ur(new jt(rm))),args:{includeDeprecated:{type:Zn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new jt(Sa),resolve:e=>e.type},isDeprecated:{type:new jt(Zn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})}),rm=new ii({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 jt(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},type:{type:new jt(Sa),resolve:e=>e.type},defaultValue:{type:Xn,description:\"A GraphQL-formatted string representing the default value for this input value.\",resolve(e){const{type:t,defaultValue:n}=e,r=Ll(n,t);return r?dn(r):null}},isDeprecated:{type:new jt(Zn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})}),mE=new ii({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 jt(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},isDeprecated:{type:new jt(Zn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})});var Vn;(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\"})(Vn||(Vn={}));const gE=new Qi({name:\"__TypeKind\",description:\"An enum describing what kind of type a given `__Type` is.\",values:{SCALAR:{value:Vn.SCALAR,description:\"Indicates this type is a scalar.\"},OBJECT:{value:Vn.OBJECT,description:\"Indicates this type is an object. `fields` and `interfaces` are valid fields.\"},INTERFACE:{value:Vn.INTERFACE,description:\"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.\"},UNION:{value:Vn.UNION,description:\"Indicates this type is a union. `possibleTypes` is a valid field.\"},ENUM:{value:Vn.ENUM,description:\"Indicates this type is an enum. `enumValues` is a valid field.\"},INPUT_OBJECT:{value:Vn.INPUT_OBJECT,description:\"Indicates this type is an input object. `inputFields` is a valid field.\"},LIST:{value:Vn.LIST,description:\"Indicates this type is a list. `ofType` is a valid field.\"},NON_NULL:{value:Vn.NON_NULL,description:\"Indicates this type is a non-null. `ofType` is a valid field.\"}}}),Ta={name:\"__schema\",type:new jt(ay),description:\"Access the current type schema of this server.\",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},wa={name:\"__type\",type:Sa,description:\"Request the type information of a single type.\",args:[{name:\"name\",description:void 0,type:new jt(Xn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},xa={name:\"__typename\",type:new jt(Xn),description:\"The name of the current Object type at runtime.\",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},im=Object.freeze([ay,dE,pE,Sa,hE,rm,mE,gE]);function uf(e){return im.some(({name:t})=>e.name===t)}function sy(e){return Qa(e,cf)}function vE(e){if(!sy(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL schema.`);return e}class cf{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Go(t)||Zt(!1,\"Must provide configuration object.\"),!t.types||Array.isArray(t.types)||Zt(!1,`\"types\" must be Array if provided but got: ${Ue(t.types)}.`),!t.directives||Array.isArray(t.directives)||Zt(!1,`\"directives\" must be Array if provided but got: ${Ue(t.directives)}.`),this.description=t.description,this.extensions=ba(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Vu;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),Xa(o,i);this._queryType!=null&&Xa(this._queryType,i),this._mutationType!=null&&Xa(this._mutationType,i),this._subscriptionType!=null&&Xa(this._subscriptionType,i);for(const o of this._directives)if(ty(o))for(const l of o.args)Xa(l.type,i);Xa(ay,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const l=o.name;if(l||Zt(!1,\"One of the provided types for building the Schema is missing a name.\"),this._typeMap[l]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named \"${l}\".`);if(this._typeMap[l]=o,Rt(o)){for(const c of o.getInterfaces())if(Rt(c)){let p=this._implementationsMap[c.name];p===void 0&&(p=this._implementationsMap[c.name]={objects:[],interfaces:[]}),p.interfaces.push(o)}}else if(At(o)){for(const c of o.getInterfaces())if(Rt(c)){let p=this._implementationsMap[c.name];p===void 0&&(p=this._implementationsMap[c.name]={objects:[],interfaces:[]}),p.objects.push(o)}}}}get[Symbol.toStringTag](){return\"GraphQLSchema\"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case ni.QUERY:return this.getQueryType();case ni.MUTATION:return this.getMutationType();case ni.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return sr(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),sr(t))for(const i of t.getTypes())r[i.name]=!0;else{const i=this.getImplementations(t);for(const o of i.objects)r[o.name]=!0;for(const o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Xa(e,t){const n=mn(e);if(!t.has(n)){if(t.add(n),sr(n))for(const r of n.getTypes())Xa(r,t);else if(At(n)||Rt(n)){for(const r of n.getInterfaces())Xa(r,t);for(const r of Object.values(n.getFields())){Xa(r.type,t);for(const i of r.args)Xa(i.type,t)}}else if(rn(n))for(const r of Object.values(n.getFields()))Xa(r.type,t)}return t}function ly(e){if(vE(e),e.__validationErrors)return e.__validationErrors;const t=new qV(e);BV(t),$V(t),zV(t);const n=t.getErrors();return e.__validationErrors=n,n}function uy(e){const t=ly(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}class qV{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Me(t,{nodes:r}))}getErrors(){return this._errors}}function BV(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError(\"Query root type must be provided.\",t.astNode);else if(!At(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Ue(n)}.`,(r=yE(t,ni.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!At(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ue(i)}.`,(o=yE(t,ni.MUTATION))!==null&&o!==void 0?o:i.astNode)}const l=t.getSubscriptionType();if(l&&!At(l)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ue(l)}.`,(c=yE(t,ni.SUBSCRIPTION))!==null&&c!==void 0?c:l.astNode)}}function yE(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function $V(e){for(const n of e.schema.getDirectives()){if(!ty(n)){e.reportError(`Expected directive but got: ${Ue(n)}.`,n==null?void 0:n.astNode);continue}ff(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args)if(ff(e,r),Fi(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Ue(r.type)}.`,r.astNode),Pu(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[bE(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function ff(e,t){t.name.startsWith(\"__\")&&e.reportError(`Name \"${t.name}\" must not begin with \"__\", which is reserved by GraphQL introspection.`,t.astNode)}function zV(e){const t=XV(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Ml(r)){e.reportError(`Expected GraphQL named type but got: ${Ue(r)}.`,r.astNode);continue}uf(r)||ff(e,r),At(r)||Rt(r)?(PN(e,r),jN(e,r)):sr(r)?WV(e,r):zn(r)?YV(e,r):rn(r)&&(QV(e,r),t(r))}}function PN(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const l of n){if(ff(e,l),!Rl(l.type)){var r;e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${Ue(l.type)}.`,(r=l.astNode)===null||r===void 0?void 0:r.type)}for(const c of l.args){const p=c.name;if(ff(e,c),!Fi(c.type)){var i;e.reportError(`The type of ${t.name}.${l.name}(${p}:) must be Input Type but got: ${Ue(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if(Pu(c)&&c.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${l.name}(${p}:) cannot be deprecated.`,[bE(c.astNode),(o=c.astNode)===null||o===void 0?void 0:o.type])}}}}function jN(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!Rt(r)){e.reportError(`Type ${Ue(t)} must only implement Interface types, it cannot implement ${Ue(r)}.`,om(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,om(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,om(t,r));continue}n[r.name]=!0,GV(e,t,r),HV(e,t,r)}}function HV(e,t,n){const r=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,m=r[d];if(!m){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!lf(e.schema,m.type,p.type)){var i,o;e.reportError(`Interface field ${n.name}.${d} expects type ${Ue(p.type)} but ${t.name}.${d} is type ${Ue(m.type)}.`,[(i=p.astNode)===null||i===void 0?void 0:i.type,(o=m.astNode)===null||o===void 0?void 0:o.type])}for(const E of p.args){const b=E.name,y=m.args.find(w=>w.name===b);if(!y){e.reportError(`Interface field argument ${n.name}.${d}(${b}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,m.astNode]);continue}if(!Zv(E.type,y.type)){var l,c;e.reportError(`Interface field argument ${n.name}.${d}(${b}:) expects type ${Ue(E.type)} but ${t.name}.${d}(${b}:) is type ${Ue(y.type)}.`,[(l=E.astNode)===null||l===void 0?void 0:l.type,(c=y.astNode)===null||c===void 0?void 0:c.type])}}for(const E of m.args){const b=E.name;!p.args.find(w=>w.name===b)&&Pu(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${b} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,p.astNode])}}}function GV(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...om(n,i),...om(t,n)])}function WV(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,VN(t,i.name));continue}r[i.name]=!0,At(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ue(i)}.`,VN(t,String(i)))}}function YV(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)ff(e,r)}function QV(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(ff(e,o),!Fi(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Ue(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(Xv(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[bE(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&KV(t,o,e)}}function KV(e,t,n){if(Nt(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function XV(e){const t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const l=Object.values(o.getFields());for(const c of l)if(Nt(c.type)&&rn(c.type.ofType)){const p=c.type.ofType,d=r[p.name];if(n.push(c),d===void 0)i(p);else{const m=n.slice(d),E=m.map(b=>b.name).join(\".\");e.reportError(`Cannot reference Input Object \"${p.name}\" within itself through a series of non-null fields: \"${E}\".`,m.map(b=>b.astNode))}n.pop()}r[o.name]=void 0}}function om(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var l;return(l=o.interfaces)!==null&&l!==void 0?l:[]}).filter(o=>o.name.value===t.name)}function VN(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var l;return(l=o.types)!==null&&l!==void 0?l:[]}).filter(o=>o.name.value===t)}function bE(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===iy.name)}function Si(e,t){switch(t.kind){case X.LIST_TYPE:{const n=Si(e,t.type);return n&&new ur(n)}case X.NON_NULL_TYPE:{const n=Si(e,t.type);return n&&new jt(n)}case X.NAMED_TYPE:return e.getType(t.name.value)}}class Uu{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??ZV,n&&(Fi(n)&&this._inputTypeStack.push(n),Qr(n)&&this._parentTypeStack.push(n),Rl(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return\"TypeInfo\"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case X.SELECTION_SET:{const i=mn(this.getType());this._parentTypeStack.push(Qr(i)?i:void 0);break}case X.FIELD:{const i=this.getParentType();let o,l;i&&(o=this._getFieldDef(n,i,t),o&&(l=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Rl(l)?l:void 0);break}case X.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case X.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(At(i)?i:void 0);break}case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:{const i=t.typeCondition,o=i?Si(n,i):mn(this.getType());this._typeStack.push(Rl(o)?o:void 0);break}case X.VARIABLE_DEFINITION:{const i=Si(n,t.type);this._inputTypeStack.push(Fi(i)?i:void 0);break}case X.ARGUMENT:{var r;let i,o;const l=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();l&&(i=l.args.find(c=>c.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Fi(o)?o:void 0);break}case X.LIST:{const i=Fu(this.getInputType()),o=hn(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Fi(o)?o:void 0);break}case X.OBJECT_FIELD:{const i=mn(this.getInputType());let o,l;rn(i)&&(l=i.getFields()[t.name.value],l&&(o=l.type)),this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push(Fi(o)?o:void 0);break}case X.ENUM:{const i=mn(this.getInputType());let o;zn(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case X.SELECTION_SET:this._parentTypeStack.pop();break;case X.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case X.DIRECTIVE:this._directive=null;break;case X.OPERATION_DEFINITION:case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:this._typeStack.pop();break;case X.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case X.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.LIST:case X.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.ENUM:this._enumValue=null;break}}}function ZV(e,t,n){const r=n.name.value;if(r===Ta.name&&e.getQueryType()===t)return Ta;if(r===wa.name&&e.getQueryType()===t)return wa;if(r===xa.name&&Qr(t))return xa;if(At(t)||Rt(t))return t.getFields()[r]}function qu(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Fd(t,r.kind).enter;if(i){const o=i.apply(t,n);return o!==void 0&&(e.leave(r),J1(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Fd(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function JV(e){return EE(e)||cy(e)||TE(e)}function EE(e){return e.kind===X.OPERATION_DEFINITION||e.kind===X.FRAGMENT_DEFINITION}function e6(e){return e.kind===X.FIELD||e.kind===X.FRAGMENT_SPREAD||e.kind===X.INLINE_FRAGMENT}function UN(e){return e.kind===X.VARIABLE||e.kind===X.INT||e.kind===X.FLOAT||e.kind===X.STRING||e.kind===X.BOOLEAN||e.kind===X.NULL||e.kind===X.ENUM||e.kind===X.LIST||e.kind===X.OBJECT}function SE(e){return UN(e)&&(e.kind===X.LIST?e.values.some(SE):e.kind===X.OBJECT?e.fields.some(t=>SE(t.value)):e.kind!==X.VARIABLE)}function t6(e){return e.kind===X.NAMED_TYPE||e.kind===X.LIST_TYPE||e.kind===X.NON_NULL_TYPE}function cy(e){return e.kind===X.SCHEMA_DEFINITION||Vd(e)||e.kind===X.DIRECTIVE_DEFINITION}function Vd(e){return e.kind===X.SCALAR_TYPE_DEFINITION||e.kind===X.OBJECT_TYPE_DEFINITION||e.kind===X.INTERFACE_TYPE_DEFINITION||e.kind===X.UNION_TYPE_DEFINITION||e.kind===X.ENUM_TYPE_DEFINITION||e.kind===X.INPUT_OBJECT_TYPE_DEFINITION}function TE(e){return e.kind===X.SCHEMA_EXTENSION||fy(e)}function fy(e){return e.kind===X.SCALAR_TYPE_EXTENSION||e.kind===X.OBJECT_TYPE_EXTENSION||e.kind===X.INTERFACE_TYPE_EXTENSION||e.kind===X.UNION_TYPE_EXTENSION||e.kind===X.ENUM_TYPE_EXTENSION||e.kind===X.INPUT_OBJECT_TYPE_EXTENSION}function wE(e){return{Document(t){for(const n of t.definitions)if(!EE(n)){const r=n.kind===X.SCHEMA_DEFINITION||n.kind===X.SCHEMA_EXTENSION?\"schema\":'\"'+n.name.value+'\"';e.reportError(new Me(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function qN(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let l=Ol(\"to use an inline fragment on\",n6(i,n,o));l===\"\"&&(l=Ol(r6(n,o))),e.reportError(new Me(`Cannot query field \"${o}\" on type \"${n.name}\".`+l,{nodes:t}))}}}}function n6(e,t,n){if(!lr(t))return[];const r=new Set,i=Object.create(null);for(const l of e.getPossibleTypes(t))if(l.getFields()[n]){r.add(l),i[l.name]=1;for(const c of l.getInterfaces()){var o;c.getFields()[n]&&(r.add(c),i[c.name]=((o=i[c.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((l,c)=>{const p=i[c.name]-i[l.name];return p!==0?p:Rt(l)&&e.isSubType(l,c)?-1:Rt(c)&&e.isSubType(c,l)?1:Yh(l.name,c.name)}).map(l=>l.name)}function r6(e,t){if(At(e)||Rt(e)){const n=Object.keys(e.getFields());return Iu(t,n)}return[]}function BN(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=Si(e.getSchema(),n);if(r&&!Qr(r)){const i=dn(n);e.reportError(new Me(`Fragment cannot condition on non composite type \"${i}\".`,{nodes:n}))}}},FragmentDefinition(t){const n=Si(e.getSchema(),t.typeCondition);if(n&&!Qr(n)){const r=dn(t.typeCondition);e.reportError(new Me(`Fragment \"${t.name.value}\" cannot condition on non composite type \"${r}\".`,{nodes:t.typeCondition}))}}}}function $N(e){return{...zN(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const o=t.name.value,l=r.args.map(p=>p.name),c=Iu(o,l);e.reportError(new Me(`Unknown argument \"${o}\" on field \"${i.name}.${r.name}\".`+Ol(c),{nodes:t}))}}}}function zN(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const l of r)t[l.name]=l.args.map(c=>c.name);const i=e.getDocument().definitions;for(const l of i)if(l.kind===X.DIRECTIVE_DEFINITION){var o;const c=(o=l.arguments)!==null&&o!==void 0?o:[];t[l.name.value]=c.map(p=>p.name.value)}return{Directive(l){const c=l.name.value,p=t[c];if(l.arguments&&p)for(const d of l.arguments){const m=d.name.value;if(!p.includes(m)){const E=Iu(m,p);e.reportError(new Me(`Unknown argument \"${m}\" on directive \"@${c}\".`+Ol(E),{nodes:d}))}}return!1}}}function xE(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===X.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(l=>l.value));return{Directive(o,l,c,p,d){const m=o.name.value,E=t[m];if(!E){e.reportError(new Me(`Unknown directive \"@${m}\".`,{nodes:o}));return}const b=i6(d);b&&!E.includes(b)&&e.reportError(new Me(`Directive \"@${m}\" may not be used on ${b}.`,{nodes:o}))}}}function i6(e){const t=e[e.length-1];switch(\"kind\"in t||qr(!1),t.kind){case X.OPERATION_DEFINITION:return o6(t.operation);case X.FIELD:return ct.FIELD;case X.FRAGMENT_SPREAD:return ct.FRAGMENT_SPREAD;case X.INLINE_FRAGMENT:return ct.INLINE_FRAGMENT;case X.FRAGMENT_DEFINITION:return ct.FRAGMENT_DEFINITION;case X.VARIABLE_DEFINITION:return ct.VARIABLE_DEFINITION;case X.SCHEMA_DEFINITION:case X.SCHEMA_EXTENSION:return ct.SCHEMA;case X.SCALAR_TYPE_DEFINITION:case X.SCALAR_TYPE_EXTENSION:return ct.SCALAR;case X.OBJECT_TYPE_DEFINITION:case X.OBJECT_TYPE_EXTENSION:return ct.OBJECT;case X.FIELD_DEFINITION:return ct.FIELD_DEFINITION;case X.INTERFACE_TYPE_DEFINITION:case X.INTERFACE_TYPE_EXTENSION:return ct.INTERFACE;case X.UNION_TYPE_DEFINITION:case X.UNION_TYPE_EXTENSION:return ct.UNION;case X.ENUM_TYPE_DEFINITION:case X.ENUM_TYPE_EXTENSION:return ct.ENUM;case X.ENUM_VALUE_DEFINITION:return ct.ENUM_VALUE;case X.INPUT_OBJECT_TYPE_DEFINITION:case X.INPUT_OBJECT_TYPE_EXTENSION:return ct.INPUT_OBJECT;case X.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return\"kind\"in n||qr(!1),n.kind===X.INPUT_OBJECT_TYPE_DEFINITION?ct.INPUT_FIELD_DEFINITION:ct.ARGUMENT_DEFINITION}default:qr(!1,\"Unexpected kind: \"+Ue(t.kind))}}function o6(e){switch(e){case ni.QUERY:return ct.QUERY;case ni.MUTATION:return ct.MUTATION;case ni.SUBSCRIPTION:return ct.SUBSCRIPTION}}function HN(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Me(`Unknown fragment \"${n}\".`,{nodes:t.name}))}}}function CE(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)Vd(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,l,c,p,d){const m=o.name.value;if(!n[m]&&!r[m]){var E;const b=(E=d[2])!==null&&E!==void 0?E:c,y=b!=null&&a6(b);if(y&&GN.includes(m))return;const w=Iu(m,y?GN.concat(i):i);e.reportError(new Me(`Unknown type \"${m}\".`+Ol(w),{nodes:o}))}}}}const GN=[...em,...im].map(e=>e.name);function a6(e){return\"kind\"in e&&(cy(e)||TE(e))}function WN(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===X.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Me(\"This anonymous operation must be the only defined operation.\",{nodes:n}))}}}function YN(e){var t,n,r;const i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let l=0;return{SchemaDefinition(c){if(o){e.reportError(new Me(\"Cannot define a new schema within a schema extension.\",{nodes:c}));return}l>0&&e.reportError(new Me(\"Must provide only one schema definition.\",{nodes:c})),++l}}}const s6=3;function QN(e){function t(n,r=Object.create(null),i=0){if(n.kind===X.FRAGMENT_SPREAD){const o=n.name.value;if(r[o]===!0)return!1;const l=e.getFragment(o);if(!l)return!1;try{return r[o]=!0,t(l,r,i)}finally{r[o]=void 0}}if(n.kind===X.FIELD&&(n.name.value===\"fields\"||n.name.value===\"interfaces\"||n.name.value===\"possibleTypes\"||n.name.value===\"inputFields\")&&(i++,i>=s6))return!0;if(\"selectionSet\"in n&&n.selectionSet){for(const o of n.selectionSet.selections)if(t(o,r,i))return!0}return!1}return{Field(n){if((n.name.value===\"__schema\"||n.name.value===\"__type\")&&t(n))return e.reportError(new Me(\"Maximum introspection depth exceeded\",{nodes:[n]})),!1}}}function KN(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;const l=o.name.value;t[l]=!0;const c=e.getFragmentSpreads(o.selectionSet);if(c.length!==0){r[l]=n.length;for(const p of c){const d=p.name.value,m=r[d];if(n.push(p),m===void 0){const E=e.getFragment(d);E&&i(E)}else{const E=n.slice(m),b=E.slice(0,-1).map(y=>'\"'+y.name.value+'\"').join(\", \");e.reportError(new Me(`Cannot spread fragment \"${d}\" within itself`+(b!==\"\"?` via ${b}.`:\".\"),{nodes:E}))}n.pop()}r[l]=void 0}}}function XN(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const o=i.name.value;t[o]!==!0&&e.reportError(new Me(n.name?`Variable \"$${o}\" is not defined by operation \"${n.name.value}\".`:`Variable \"$${o}\" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function _E(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(const i of n){const o=i.name.value;r[o]!==!0&&e.reportError(new Me(`Fragment \"${o}\" is never used.`,{nodes:i}))}}}}}function ZN(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:o}of i)r[o.name.value]=!0;for(const o of t){const l=o.variable.name.value;r[l]!==!0&&e.reportError(new Me(n.name?`Variable \"$${l}\" is never used in operation \"${n.name.value}\".`:`Variable \"$${l}\" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}function dy(e){switch(e.kind){case X.OBJECT:return{...e,fields:l6(e.fields)};case X.LIST:return{...e,values:e.values.map(dy)};case X.INT:case X.FLOAT:case X.STRING:case X.BOOLEAN:case X.NULL:case X.ENUM:case X.VARIABLE:return e}}function l6(e){return e.map(t=>({...t,value:dy(t.value)})).sort((t,n)=>Yh(t.name.value,n.name.value))}function JN(e){return Array.isArray(e)?e.map(([t,n])=>`subfields \"${t}\" conflict because `+JN(n)).join(\" and \"):e}function eA(e){const t=new iA,n=new h6,r=new Map;return{SelectionSet(i){const o=u6(e,r,t,n,e.getParentType(),i);for(const[[l,c],p,d]of o){const m=JN(c);e.reportError(new Me(`Fields \"${l}\" conflict because ${m}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:p.concat(d)}))}}}}function u6(e,t,n,r,i,o){const l=[],[c,p]=my(e,t,i,o);if(f6(e,l,t,n,r,c),p.length!==0)for(let d=0;d<p.length;d++){py(e,l,t,n,r,!1,c,p[d]);for(let m=d+1;m<p.length;m++)hy(e,l,t,n,r,!1,p[d],p[m])}return l}function py(e,t,n,r,i,o,l,c){if(r.has(l,c,o))return;r.add(l,c,o);const p=e.getFragment(c);if(!p)return;const[d,m]=OE(e,n,p);if(l!==d){NE(e,t,n,r,i,o,l,d);for(const E of m)py(e,t,n,r,i,o,l,E)}}function hy(e,t,n,r,i,o,l,c){if(l===c||i.has(l,c,o))return;i.add(l,c,o);const p=e.getFragment(l),d=e.getFragment(c);if(!p||!d)return;const[m,E]=OE(e,n,p),[b,y]=OE(e,n,d);NE(e,t,n,r,i,o,m,b);for(const w of y)hy(e,t,n,r,i,o,l,w);for(const w of E)hy(e,t,n,r,i,o,w,c)}function c6(e,t,n,r,i,o,l,c,p){const d=[],[m,E]=my(e,t,o,l),[b,y]=my(e,t,c,p);NE(e,d,t,n,r,i,m,b);for(const w of y)py(e,d,t,n,r,i,m,w);for(const w of E)py(e,d,t,n,r,i,b,w);for(const w of E)for(const x of y)hy(e,d,t,n,r,i,w,x);return d}function f6(e,t,n,r,i,o){for(const[l,c]of Object.entries(o))if(c.length>1)for(let p=0;p<c.length;p++)for(let d=p+1;d<c.length;d++){const m=tA(e,n,r,i,!1,l,c[p],c[d]);m&&t.push(m)}}function NE(e,t,n,r,i,o,l,c){for(const[p,d]of Object.entries(l)){const m=c[p];if(m)for(const E of d)for(const b of m){const y=tA(e,n,r,i,o,p,E,b);y&&t.push(y)}}}function tA(e,t,n,r,i,o,l,c){const[p,d,m]=l,[E,b,y]=c,w=i||p!==E&&At(p)&&At(E);if(!w){const O=d.name.value,_=b.name.value;if(O!==_)return[[o,`\"${O}\" and \"${_}\" are different fields`],[d],[b]];if(!d6(d,b))return[[o,\"they have differing arguments\"],[d],[b]]}const x=m==null?void 0:m.type,k=y==null?void 0:y.type;if(x&&k&&AE(x,k))return[[o,`they return conflicting types \"${Ue(x)}\" and \"${Ue(k)}\"`],[d],[b]];const N=d.selectionSet,A=b.selectionSet;if(N&&A){const O=c6(e,t,n,r,w,mn(x),N,mn(k),A);return p6(O,o,d,b)}}function d6(e,t){const n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;const i=new Map(r.map(({name:o,value:l})=>[o.value,l]));return n.every(o=>{const l=o.value,c=i.get(o.name.value);return c===void 0?!1:nA(l)===nA(c)})}function nA(e){return dn(dy(e))}function AE(e,t){return hn(e)?hn(t)?AE(e.ofType,t.ofType):!0:hn(t)?!0:Nt(e)?Nt(t)?AE(e.ofType,t.ofType):!0:Nt(t)?!0:ri(e)||ri(t)?e!==t:!1}function my(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),l=Object.create(null);rA(e,n,r,o,l);const c=[o,Object.keys(l)];return t.set(r,c),c}function OE(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=Si(e.getSchema(),n.typeCondition);return my(e,t,i,n.selectionSet)}function rA(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case X.FIELD:{const l=o.name.value;let c;(At(t)||Rt(t))&&(c=t.getFields()[l]);const p=o.alias?o.alias.value:l;r[p]||(r[p]=[]),r[p].push([t,o,c]);break}case X.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case X.INLINE_FRAGMENT:{const l=o.typeCondition,c=l?Si(e.getSchema(),l):t;rA(e,c,o.selectionSet,r,i);break}}}function p6(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class iA{constructor(){this._data=new Map}has(t,n,r){var i;const o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:r?!0:r===o}add(t,n,r){const i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}}class h6{constructor(){this._orderedPairSet=new iA}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}}function oA(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(Qr(n)&&Qr(r)&&!Kh(e.getSchema(),n,r)){const i=Ue(r),o=Ue(n);e.reportError(new Me(`Fragment cannot be spread here as objects of type \"${i}\" can never be of type \"${o}\".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=m6(e,n),i=e.getParentType();if(r&&i&&!Kh(e.getSchema(),r,i)){const o=Ue(i),l=Ue(r);e.reportError(new Me(`Fragment \"${n}\" cannot be spread here as objects of type \"${o}\" can never be of type \"${l}\".`,{nodes:t}))}}}}function m6(e,t){const n=e.getFragment(t);if(n){const r=Si(e.getSchema(),n.typeCondition);if(Qr(r))return r}}function aA(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)Vd(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){const o=i.name.value,l=n[o],c=t==null?void 0:t.getType(o);let p;if(l?p=g6[l.kind]:c&&(p=v6(c)),p){if(p!==i.kind){const d=y6(i.kind);e.reportError(new Me(`Cannot extend non-${d} type \"${o}\".`,{nodes:l?[l,i]:i}))}}else{const d=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),m=Iu(o,d);e.reportError(new Me(`Cannot extend type \"${o}\" because it is not defined.`+Ol(m),{nodes:i.name}))}}}const g6={[X.SCALAR_TYPE_DEFINITION]:X.SCALAR_TYPE_EXTENSION,[X.OBJECT_TYPE_DEFINITION]:X.OBJECT_TYPE_EXTENSION,[X.INTERFACE_TYPE_DEFINITION]:X.INTERFACE_TYPE_EXTENSION,[X.UNION_TYPE_DEFINITION]:X.UNION_TYPE_EXTENSION,[X.ENUM_TYPE_DEFINITION]:X.ENUM_TYPE_EXTENSION,[X.INPUT_OBJECT_TYPE_DEFINITION]:X.INPUT_OBJECT_TYPE_EXTENSION};function v6(e){if(Ii(e))return X.SCALAR_TYPE_EXTENSION;if(At(e))return X.OBJECT_TYPE_EXTENSION;if(Rt(e))return X.INTERFACE_TYPE_EXTENSION;if(sr(e))return X.UNION_TYPE_EXTENSION;if(zn(e))return X.ENUM_TYPE_EXTENSION;if(rn(e))return X.INPUT_OBJECT_TYPE_EXTENSION;qr(!1,\"Unexpected type: \"+Ue(e))}function y6(e){switch(e){case X.SCALAR_TYPE_EXTENSION:return\"scalar\";case X.OBJECT_TYPE_EXTENSION:return\"object\";case X.INTERFACE_TYPE_EXTENSION:return\"interface\";case X.UNION_TYPE_EXTENSION:return\"union\";case X.ENUM_TYPE_EXTENSION:return\"enum\";case X.INPUT_OBJECT_TYPE_EXTENSION:return\"input object\";default:qr(!1,\"Unexpected kind: \"+Ue(e))}}function sA(e){return{...lA(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(const o of r.args)if(!i.has(o.name)&&Pu(o)){const l=Ue(o.type);e.reportError(new Me(`Field \"${r.name}\" argument \"${o.name}\" of type \"${l}\" is required, but it was not provided.`,{nodes:t}))}}}}}function lA(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Vu;for(const c of i)n[c.name]=Dl(c.args.filter(Pu),p=>p.name);const o=e.getDocument().definitions;for(const c of o)if(c.kind===X.DIRECTIVE_DEFINITION){var l;const p=(l=c.arguments)!==null&&l!==void 0?l:[];n[c.name.value]=Dl(p.filter(b6),d=>d.name.value)}return{Directive:{leave(c){const p=c.name.value,d=n[p];if(d){var m;const E=(m=c.arguments)!==null&&m!==void 0?m:[],b=new Set(E.map(y=>y.name.value));for(const[y,w]of Object.entries(d))if(!b.has(y)){const x=Pd(w.type)?Ue(w.type):dn(w.type);e.reportError(new Me(`Directive \"@${p}\" argument \"${y}\" of type \"${x}\" is required, but it was not provided.`,{nodes:c}))}}}}}}function b6(e){return e.type.kind===X.NON_NULL_TYPE&&e.defaultValue==null}function uA(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(ri(mn(n))){if(r){const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field \"${i}\" must not have a selection since type \"${o}\" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field \"${i}\" of type \"${o}\" must have at least one field selected.`,{nodes:t}))}}else{const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field \"${i}\" of type \"${o}\" must have a selection of subfields. Did you mean \"${i} { ... }\"?`,{nodes:t}))}}}}function cA(e){return e.map(t=>typeof t==\"number\"?\"[\"+t.toString()+\"]\":\".\"+t).join(\"\")}function Ud(e,t,n){return{prev:e,key:t,typename:n}}function Ti(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function DE(e,t,n=E6){return am(e,t,n,void 0)}function E6(e,t,n){let r=\"Invalid value \"+Ue(t);throw e.length>0&&(r+=` at \"value${cA(e)}\"`),n.message=r+\": \"+n.message,n}function am(e,t,n,r){if(Nt(t)){if(e!=null)return am(e,t.ofType,n,r);n(Ti(r),e,new Me(`Expected non-nullable type \"${Ue(t)}\" not to be null.`));return}if(e==null)return null;if(hn(t)){const i=t.ofType;return fE(e)?Array.from(e,(o,l)=>{const c=Ud(r,l,void 0);return am(o,i,n,c)}):[am(e,i,n,r)]}if(rn(t)){if(!Go(e)){n(Ti(r),e,new Me(`Expected type \"${t.name}\" to be an object.`));return}const i={},o=t.getFields();for(const l of Object.values(o)){const c=e[l.name];if(c===void 0){if(l.defaultValue!==void 0)i[l.name]=l.defaultValue;else if(Nt(l.type)){const p=Ue(l.type);n(Ti(r),e,new Me(`Field \"${l.name}\" of required type \"${p}\" was not provided.`))}continue}i[l.name]=am(c,l.type,n,Ud(r,l.name,t.name))}for(const l of Object.keys(e))if(!o[l]){const c=Iu(l,Object.keys(t.getFields()));n(Ti(r),e,new Me(`Field \"${l}\" is not defined by type \"${t.name}\".`+Ol(c)))}if(t.isOneOf){const l=Object.keys(i);l.length!==1&&n(Ti(r),e,new Me(`Exactly one key must be specified for OneOf type \"${t.name}\".`));const c=l[0],p=i[c];p===null&&n(Ti(r).concat(c),p,new Me(`Field \"${c}\" must be non-null.`))}return i}if(ri(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof Me?n(Ti(r),e,o):n(Ti(r),e,new Me(`Expected type \"${t.name}\". `+o.message,{originalError:o}));return}return i===void 0&&n(Ti(r),e,new Me(`Expected type \"${t.name}\".`)),i}qr(!1,\"Unexpected input type: \"+Ue(t))}function Ca(e,t,n){if(e){if(e.kind===X.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&Nt(t)?void 0:i}if(Nt(t))return e.kind===X.NULL?void 0:Ca(e,t.ofType,n);if(e.kind===X.NULL)return null;if(hn(t)){const r=t.ofType;if(e.kind===X.LIST){const o=[];for(const l of e.values)if(fA(l,n)){if(Nt(r))return;o.push(null)}else{const c=Ca(l,r,n);if(c===void 0)return;o.push(c)}return o}const i=Ca(e,r,n);return i===void 0?void 0:[i]}if(rn(t)){if(e.kind!==X.OBJECT)return;const r=Object.create(null),i=Dl(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const l=i[o.name];if(!l||fA(l.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(Nt(o.type))return;continue}const c=Ca(l.value,o.type,n);if(c===void 0)return;r[o.name]=c}if(t.isOneOf){const o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(ri(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}qr(!1,\"Unexpected input type: \"+Ue(t))}}function fA(e,t){return e.kind===X.VARIABLE&&(t==null||t[e.name.value]===void 0)}function dA(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const l=S6(e,t,n,c=>{if(o!=null&&i.length>=o)throw new Me(\"Too many errors processing variables, error limit reached. Execution aborted.\");i.push(c)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function S6(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=Si(e,o.type);if(!Fi(c)){const d=dn(o.type);r(new Me(`Variable \"$${l}\" expected value of type \"${d}\" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!pA(n,l)){if(o.defaultValue)i[l]=Ca(o.defaultValue,c);else if(Nt(c)){const d=Ue(c);r(new Me(`Variable \"$${l}\" of required type \"${d}\" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&Nt(c)){const d=Ue(c);r(new Me(`Variable \"$${l}\" of non-null type \"${d}\" must not be null.`,{nodes:o}));continue}i[l]=DE(p,c,(d,m,E)=>{let b=`Variable \"$${l}\" got invalid value `+Ue(m);d.length>0&&(b+=` at \"${l}${cA(d)}\"`),r(new Me(b+\"; \"+E.message,{nodes:o,originalError:E}))})}return i}function gy(e,t,n){var r;const i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],l=Dl(o,c=>c.name.value);for(const c of e.args){const p=c.name,d=c.type,m=l[p];if(!m){if(c.defaultValue!==void 0)i[p]=c.defaultValue;else if(Nt(d))throw new Me(`Argument \"${p}\" of required type \"${Ue(d)}\" was not provided.`,{nodes:t});continue}const E=m.value;let b=E.kind===X.NULL;if(E.kind===X.VARIABLE){const w=E.name.value;if(n==null||!pA(n,w)){if(c.defaultValue!==void 0)i[p]=c.defaultValue;else if(Nt(d))throw new Me(`Argument \"${p}\" of required type \"${Ue(d)}\" was provided the variable \"$${w}\" which was not provided a runtime value.`,{nodes:E});continue}b=n[w]==null}if(b&&Nt(d))throw new Me(`Argument \"${p}\" of non-null type \"${Ue(d)}\" must not be null.`,{nodes:E});const y=Ca(E,d,n);if(y===void 0)throw new Me(`Argument \"${p}\" has invalid value ${dn(E)}.`,{nodes:E});i[p]=y}return i}function js(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return gy(e,i,n)}function pA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kE(e,t,n,r,i){const o=new Map;return vy(e,t,n,r,i,o,new Set),o}function T6(e,t,n,r,i){const o=new Map,l=new Set;for(const c of i)c.selectionSet&&vy(e,t,n,r,c.selectionSet,o,l);return o}function vy(e,t,n,r,i,o,l){for(const c of i.selections)switch(c.kind){case X.FIELD:{if(!RE(n,c))continue;const p=w6(c),d=o.get(p);d!==void 0?d.push(c):o.set(p,[c]);break}case X.INLINE_FRAGMENT:{if(!RE(n,c)||!hA(e,c,r))continue;vy(e,t,n,r,c.selectionSet,o,l);break}case X.FRAGMENT_SPREAD:{const p=c.name.value;if(l.has(p)||!RE(n,c))continue;l.add(p);const d=t[p];if(!d||!hA(e,d,r))continue;vy(e,t,n,r,d.selectionSet,o,l);break}}}function RE(e,t){const n=js(ry,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=js(ny,t,e);return(r==null?void 0:r.if)!==!1}function hA(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Si(e,r);return i===n?!0:lr(i)?e.isSubType(i,n):!1}function w6(e){return e.alias?e.alias.value:e.name.value}function mA(e){return{OperationDefinition(t){if(t.operation===\"subscription\"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),l=e.getDocument(),c=Object.create(null);for(const d of l.definitions)d.kind===X.FRAGMENT_DEFINITION&&(c[d.name.value]=d);const p=kE(n,c,o,r,t.selectionSet);if(p.size>1){const E=[...p.values()].slice(1).flat();e.reportError(new Me(i!=null?`Subscription \"${i}\" must select only one top level field.`:\"Anonymous Subscription must select only one top level field.\",{nodes:E}))}for(const d of p.values())d[0].name.value.startsWith(\"__\")&&e.reportError(new Me(i!=null?`Subscription \"${i}\" must not select an introspection top level field.`:\"Anonymous Subscription must not select an introspection top level field.\",{nodes:d}))}}}}}function ME(e,t){const n=new Map;for(const r of e){const i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}function gA(e){return{DirectiveDefinition(r){var i;const o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;const o=r.name.value,l=(i=r.fields)!==null&&i!==void 0?i:[];for(const p of l){var c;const d=p.name.value,m=(c=p.arguments)!==null&&c!==void 0?c:[];n(`${o}.${d}`,m)}return!1}function n(r,i){const o=ME(i,l=>l.name.value);for(const[l,c]of o)c.length>1&&e.reportError(new Me(`Argument \"${r}(${l}:)\" can only be defined once.`,{nodes:c.map(p=>p.name)}));return!1}}function LE(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],o=ME(i,l=>l.name.value);for(const[l,c]of o)c.length>1&&e.reportError(new Me(`There can be only one argument named \"${l}\".`,{nodes:c.map(p=>p.name)}))}}function vA(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Me(`Directive \"@${i}\" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Me(`There can be only one directive named \"@${i}\".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function IE(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const c of r)t[c.name]=!c.isRepeatable;const i=e.getDocument().definitions;for(const c of i)c.kind===X.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);const o=Object.create(null),l=Object.create(null);return{enter(c){if(!(\"directives\"in c)||!c.directives)return;let p;if(c.kind===X.SCHEMA_DEFINITION||c.kind===X.SCHEMA_EXTENSION)p=o;else if(Vd(c)||fy(c)){const d=c.name.value;p=l[d],p===void 0&&(l[d]=p=Object.create(null))}else p=Object.create(null);for(const d of c.directives){const m=d.name.value;t[m]&&(p[m]?e.reportError(new Me(`The directive \"@${m}\" can only be used once at this location.`,{nodes:[p[m],d]})):p[m]=d)}}}}function yA(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var l;const c=o.name.value;r[c]||(r[c]=Object.create(null));const p=(l=o.values)!==null&&l!==void 0?l:[],d=r[c];for(const m of p){const E=m.name.value,b=n[c];zn(b)&&b.getValue(E)?e.reportError(new Me(`Enum value \"${c}.${E}\" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:m.name})):d[E]?e.reportError(new Me(`Enum value \"${c}.${E}\" can only be defined once.`,{nodes:[d[E],m.name]})):d[E]=m.name}return!1}}function bA(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var l;const c=o.name.value;r[c]||(r[c]=Object.create(null));const p=(l=o.fields)!==null&&l!==void 0?l:[],d=r[c];for(const m of p){const E=m.name.value;x6(n[c],E)?e.reportError(new Me(`Field \"${c}.${E}\" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:m.name})):d[E]?e.reportError(new Me(`Field \"${c}.${E}\" can only be defined once.`,{nodes:[d[E],m.name]})):d[E]=m.name}return!1}}function x6(e,t){return At(e)||Rt(e)||rn(e)?e.getFields()[t]!=null:!1}function EA(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Me(`There can be only one fragment named \"${r}\".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function FE(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||qr(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new Me(`There can be only one input field named \"${i}\".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function SA(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Me(`There can be only one operation named \"${r.value}\".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function TA(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var l;const c=(l=o.operationTypes)!==null&&l!==void 0?l:[];for(const p of c){const d=p.operation,m=n[d];r[d]?e.reportError(new Me(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:p})):m?e.reportError(new Me(`There can be only one ${d} type in schema.`,{nodes:[m,p]})):n[d]=p}return!1}}function wA(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new Me(`Type \"${o}\" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new Me(`There can be only one type named \"${o}\".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function xA(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=ME(r,o=>o.variable.name.value);for(const[o,l]of i)l.length>1&&e.reportError(new Me(`There can be only one variable named \"$${o}\".`,{nodes:l.map(c=>c.variable.name)}))}}}function CA(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){const r=Fu(e.getParentInputType());if(!hn(r))return df(e,n),!1},ObjectValue(n){const r=mn(e.getInputType());if(!rn(r))return df(e,n),!1;const i=Dl(n.fields,o=>o.name.value);for(const o of Object.values(r.getFields()))if(!i[o.name]&&Xv(o)){const c=Ue(o.type);e.reportError(new Me(`Field \"${r.name}.${o.name}\" of required type \"${c}\" was not provided.`,{nodes:n}))}r.isOneOf&&C6(e,n,r,i,t)},ObjectField(n){const r=mn(e.getParentInputType());if(!e.getInputType()&&rn(r)){const o=Iu(n.name.value,Object.keys(r.getFields()));e.reportError(new Me(`Field \"${n.name.value}\" is not defined by type \"${r.name}\".`+Ol(o),{nodes:n}))}},NullValue(n){const r=e.getInputType();Nt(r)&&e.reportError(new Me(`Expected value of type \"${Ue(r)}\", found ${dn(n)}.`,{nodes:n}))},EnumValue:n=>df(e,n),IntValue:n=>df(e,n),FloatValue:n=>df(e,n),StringValue:n=>df(e,n),BooleanValue:n=>df(e,n)}}function df(e,t){const n=e.getInputType();if(!n)return;const r=mn(n);if(!ri(r)){const i=Ue(n);e.reportError(new Me(`Expected value of type \"${i}\", found ${dn(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const o=Ue(n);e.reportError(new Me(`Expected value of type \"${o}\", found ${dn(t)}.`,{nodes:t}))}}catch(i){const o=Ue(n);i instanceof Me?e.reportError(i):e.reportError(new Me(`Expected value of type \"${o}\", found ${dn(t)}; `+i.message,{nodes:t,originalError:i}))}}function C6(e,t,n,r,i){var o;const l=Object.keys(r);if(l.length!==1){e.reportError(new Me(`OneOf Input Object \"${n.name}\" must specify exactly one key.`,{nodes:[t]}));return}const p=(o=r[l[0]])===null||o===void 0?void 0:o.value,d=!p||p.kind===X.NULL,m=(p==null?void 0:p.kind)===X.VARIABLE;if(d){e.reportError(new Me(`Field \"${n.name}.${l[0]}\" must be non-null.`,{nodes:[t]}));return}if(m){const E=p.name.value;i[E].type.kind!==X.NON_NULL_TYPE&&e.reportError(new Me(`Variable \"${E}\" must be non-nullable to be used for OneOf Input Object \"${n.name}\".`,{nodes:[t]}))}}function _A(e){return{VariableDefinition(t){const n=Si(e.getSchema(),t.type);if(n!==void 0&&!Fi(n)){const r=t.variable.name.value,i=dn(t.type);e.reportError(new Me(`Variable \"$${r}\" cannot be non-input type \"${i}\".`,{nodes:t.type}))}}}}function NA(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:o,defaultValue:l}of r){const c=i.name.value,p=t[c];if(p&&o){const d=e.getSchema(),m=Si(d,p.type);if(m&&!_6(d,m,p.defaultValue,o,l)){const E=Ue(m),b=Ue(o);e.reportError(new Me(`Variable \"$${c}\" of type \"${E}\" used in position expecting type \"${b}\".`,{nodes:[p,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function _6(e,t,n,r,i){if(Nt(r)&&!Nt(t)){if(!(n!=null&&n.kind!==X.NULL)&&!(i!==void 0))return!1;const c=r.ofType;return lf(e,t,c)}return lf(e,t,r)}const AA=Object.freeze([QN]),PE=Object.freeze([wE,SA,WN,mA,CE,BN,_A,uA,qN,EA,HN,_E,oA,KN,xA,XN,ZN,xE,IE,$N,LE,CA,sA,NA,eA,FE,...AA]),N6=Object.freeze([YN,TA,wA,yA,bA,gA,vA,CE,xE,IE,aA,zN,LE,FE,lA]);class OA{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return\"ASTValidationContext\"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===X.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const o of i.selections)o.kind===X.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let o;for(;o=i.pop();)for(const l of this.getFragmentSpreads(o)){const c=l.name.value;if(r[c]!==!0){r[c]=!0;const p=this.getFragment(c);p&&(n.push(p),i.push(p.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class A6 extends OA{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return\"SDLValidationContext\"}getSchema(){return this._schema}}class DA extends OA{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return\"ValidationContext\"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new Uu(this._schema);Er(t,qu(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function sm(e,t,n=PE,r,i=new Uu(e)){var o;const l=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||Zt(!1,\"Must provide document.\"),uy(e);const c=Object.freeze({}),p=[],d=new DA(e,t,i,E=>{if(p.length>=l)throw p.push(new Me(\"Too many validation errors, error limit reached. Validation aborted.\")),c;p.push(E)}),m=oE(n.map(E=>E(d)));try{Er(t,qu(i,m))}catch(E){if(E!==c)throw E}return p}function kA(e,t,n=N6){const r=[],i=new A6(e,t,l=>{r.push(l)}),o=n.map(l=>l(i));return Er(e,oE(o)),r}function O6(e){const t=kA(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}function D6(e,t){const n=kA(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`\n\n`))}function k6(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let l=t.get(r);l===void 0&&(l=new WeakMap,t.set(r,l));let c=l.get(i);c===void 0&&(c=new WeakMap,l.set(i,c));let p=c.get(o);return p===void 0&&(p=e(r,i,o),c.set(o,p)),p}}function RA(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function R6(e,t,n){let r=n;for(const i of e)r=Ho(r)?r.then(o=>t(o,i)):t(r,i);return r}function M6(e){return e instanceof Error?e:new L6(e)}class L6 extends Error{constructor(t){super(\"Unexpected error value: \"+Ue(t)),this.name=\"NonErrorThrown\",this.thrownValue=t}}function pr(e,t,n){var r;const i=M6(e);return I6(i)?i:new Me(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function I6(e){return Array.isArray(e.path)}const F6=k6((e,t,n)=>T6(e.schema,e.fragments,e.variableValues,t,n));function yy(e){arguments.length<2||Zt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const{schema:t,document:n,variableValues:r,rootValue:i}=e;LA(t,n,r);const o=IA(e);if(!(\"schema\"in o))return{errors:o};try{const{operation:l}=o,c=P6(o,l,i);return Ho(c)?c.then(p=>by(p,o.errors),p=>(o.errors.push(p),by(null,o.errors))):by(c,o.errors)}catch(l){return o.errors.push(l),by(null,o.errors)}}function MA(e){const t=yy(e);if(Ho(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function by(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function LA(e,t,n){t||Zt(!1,\"Must provide document.\"),uy(e),n==null||Go(n)||Zt(!1,\"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.\")}function IA(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:l,variableValues:c,operationName:p,fieldResolver:d,typeResolver:m,subscribeFieldResolver:E}=e;let b;const y=Object.create(null);for(const k of i.definitions)switch(k.kind){case X.OPERATION_DEFINITION:if(p==null){if(b!==void 0)return[new Me(\"Must provide operation name if query contains multiple operations.\")];b=k}else((t=k.name)===null||t===void 0?void 0:t.value)===p&&(b=k);break;case X.FRAGMENT_DEFINITION:y[k.name.value]=k;break}if(!b)return p!=null?[new Me(`Unknown operation named \"${p}\".`)]:[new Me(\"Must provide an operation.\")];const w=(n=b.variableDefinitions)!==null&&n!==void 0?n:[],x=dA(r,w,c??{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:y,rootValue:o,contextValue:l,operation:b,variableValues:x.coerced,fieldResolver:d??Ty,typeResolver:m??UA,subscribeFieldResolver:E??Ty,errors:[]}}function P6(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new Me(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=kE(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case ni.QUERY:return Ey(e,r,n,o,i);case ni.MUTATION:return j6(e,r,n,o,i);case ni.SUBSCRIPTION:return Ey(e,r,n,o,i)}}function j6(e,t,n,r,i){return R6(i.entries(),(o,[l,c])=>{const p=Ud(r,l,t.name),d=FA(e,t,n,c,p);return d===void 0?o:Ho(d)?d.then(m=>(o[l]=m,o)):(o[l]=d,o)},Object.create(null))}function Ey(e,t,n,r,i){const o=Object.create(null);let l=!1;try{for(const[c,p]of i.entries()){const d=Ud(r,c,t.name),m=FA(e,t,n,p,d);m!==void 0&&(o[c]=m,Ho(m)&&(l=!0))}}catch(c){if(l)return RA(o).finally(()=>{throw c});throw c}return l?RA(o):o}function FA(e,t,n,r,i){var o;const l=qA(e.schema,t,r[0]);if(!l)return;const c=l.type,p=(o=l.resolve)!==null&&o!==void 0?o:e.fieldResolver,d=PA(e,l,r,t,i);try{const m=gy(l,r[0],e.variableValues),E=e.contextValue,b=p(n,m,E,d);let y;return Ho(b)?y=b.then(w=>lm(e,c,r,d,i,w)):y=lm(e,c,r,d,i,b),Ho(y)?y.then(void 0,w=>{const x=pr(w,r,Ti(i));return Sy(x,c,e)}):y}catch(m){const E=pr(m,r,Ti(i));return Sy(E,c,e)}}function PA(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Sy(e,t,n){if(Nt(t))throw e;return n.errors.push(e),null}function lm(e,t,n,r,i,o){if(o instanceof Error)throw o;if(Nt(t)){const l=lm(e,t.ofType,n,r,i,o);if(l===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return l}if(o==null)return null;if(hn(t))return V6(e,t,n,r,i,o);if(ri(t))return U6(t,o);if(lr(t))return q6(e,t,n,r,i,o);if(At(t))return jE(e,t,n,r,i,o);qr(!1,\"Cannot complete value of unexpected output type: \"+Ue(t))}function V6(e,t,n,r,i,o){if(!fE(o))throw new Me(`Expected Iterable, but did not find one for field \"${r.parentType.name}.${r.fieldName}\".`);const l=t.ofType;let c=!1;const p=Array.from(o,(d,m)=>{const E=Ud(i,m,void 0);try{let b;return Ho(d)?b=d.then(y=>lm(e,l,n,r,E,y)):b=lm(e,l,n,r,E,d),Ho(b)?(c=!0,b.then(void 0,y=>{const w=pr(y,n,Ti(E));return Sy(w,l,e)})):b}catch(b){const y=pr(b,n,Ti(E));return Sy(y,l,e)}});return c?Promise.all(p):p}function U6(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \\`${Ue(e)}.serialize(${Ue(t)})\\` to return non-nullable value, returned: ${Ue(n)}`);return n}function q6(e,t,n,r,i,o){var l;const c=(l=t.resolveType)!==null&&l!==void 0?l:e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return Ho(d)?d.then(m=>jE(e,jA(m,e,t,n,r,o),n,r,i,o)):jE(e,jA(d,e,t,n,r,o),n,r,i,o)}function jA(e,t,n,r,i,o){if(e==null)throw new Me(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\". Either the \"${n.name}\" type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.`,r);if(At(e))throw new Me(\"Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.\");if(typeof e!=\"string\")throw new Me(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\" with value ${Ue(o)}, received \"${Ue(e)}\".`);const l=t.schema.getType(e);if(l==null)throw new Me(`Abstract type \"${n.name}\" was resolved to a type \"${e}\" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw new Me(`Abstract type \"${n.name}\" was resolved to a non-object type \"${e}\".`,{nodes:r});if(!t.schema.isSubType(n,l))throw new Me(`Runtime Object type \"${l.name}\" is not a possible type for \"${n.name}\".`,{nodes:r});return l}function jE(e,t,n,r,i,o){const l=F6(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(Ho(c))return c.then(p=>{if(!p)throw VA(t,o,n);return Ey(e,t,o,i,l)});if(!c)throw VA(t,o,n)}return Ey(e,t,o,i,l)}function VA(e,t,n){return new Me(`Expected value of type \"${e.name}\" but got: ${Ue(t)}.`,{nodes:n})}const UA=function(e,t,n,r){if(Go(e)&&typeof e.__typename==\"string\")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let l=0;l<i.length;l++){const c=i[l];if(c.isTypeOf){const p=c.isTypeOf(e,t,n);if(Ho(p))o[l]=p;else if(p)return c.name}}if(o.length)return Promise.all(o).then(l=>{for(let c=0;c<l.length;c++)if(l[c])return i[c].name})},Ty=function(e,t,n,r){if(Go(e)||typeof e==\"function\"){const i=e[r.fieldName];return typeof i==\"function\"?e[r.fieldName](t,n,r):i}};function qA(e,t,n){const r=n.name.value;return r===Ta.name&&e.getQueryType()===t?Ta:r===wa.name&&e.getQueryType()===t?wa:r===xa.name?xa:t.getFields()[r]}function B6(e){return new Promise(t=>t(BA(e)))}function $6(e){const t=BA(e);if(Ho(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function BA(e){arguments.length<2||Zt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p}=e,d=ly(t);if(d.length>0)return{errors:d};let m;try{m=Li(n)}catch(b){return{errors:[b]}}const E=sm(t,m);return E.length>0?{errors:E}:yy({schema:t,document:m,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p})}function $A(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])==\"function\"}function z6(e,t){const n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await t(i.value),done:!1}}catch(o){if(typeof n.return==\"function\")try{await n.return()}catch{}throw o}}return{async next(){return r(await n.next())},async return(){return typeof n.return==\"function\"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw==\"function\")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function H6(e){arguments.length<2||Zt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const t=await zA(e);return $A(t)?z6(t,r=>yy({...e,rootValue:r})):t}function G6(e){const t=e[0];return t&&\"document\"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function zA(...e){const t=G6(e),{schema:n,document:r,variableValues:i}=t;LA(n,r,i);const o=IA(t);if(!(\"schema\"in o))return{errors:o};try{const l=await W6(o);if(!$A(l))throw new Error(`Subscription field must return Async Iterable. Received: ${Ue(l)}.`);return l}catch(l){if(l instanceof Me)return{errors:[l]};throw l}}async function W6(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw new Me(\"Schema is not configured to execute subscription operation.\",{nodes:r});const c=kE(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=qA(t,l,d[0]);if(!m){const w=d[0].name.value;throw new Me(`The subscription field \"${w}\" is not defined.`,{nodes:d})}const E=Ud(void 0,p,l.name),b=PA(e,m,d,l,E);try{var y;const w=gy(m,d[0],i),x=e.contextValue,N=await((y=m.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(o,w,x,b);if(N instanceof Error)throw N;return N}catch(w){throw pr(w,d,Ti(E))}}function HA(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||qr(!1),e.reportError(new Me(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new Me(`Directive \"@${i.name}\" argument \"${n.name}\" is deprecated. ${r}`,{nodes:t}));else{const o=e.getParentType(),l=e.getFieldDef();o!=null&&l!=null||qr(!1),e.reportError(new Me(`Field \"${o.name}.${l.name}\" argument \"${n.name}\" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=mn(e.getParentInputType());if(rn(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Me(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=mn(e.getInputType());i!=null||qr(!1),e.reportError(new Me(`The enum value \"${i.name}.${n.name}\" is deprecated. ${r}`,{nodes:t}))}}}}function Y6(e){return{Field(t){const n=mn(e.getType());n&&uf(n)&&e.reportError(new Me(`GraphQL introspection has been disabled, but the requested query contained the field \"${t.name.value}\".`,{nodes:t}))}}}function wy(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?\"description\":\"\",r=t.specifiedByUrl?\"specifiedByURL\":\"\",i=t.directiveIsRepeatable?\"isRepeatable\":\"\",o=t.schemaDescription?n:\"\";function l(p){return t.inputValueDeprecation?p:\"\"}const c=t.oneOf?\"isOneOf\":\"\";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${l(\"(includeDeprecated: true)\")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${c}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${l(\"(includeDeprecated: true)\")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${l(\"(includeDeprecated: true)\")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${l(\"isDeprecated\")}\n ${l(\"deprecationReason\")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}function VE(e,t){let n=null;for(const i of e.definitions)if(i.kind===X.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function Q6(e,t){if(t.operation===\"query\"){const n=e.getQueryType();if(!n)throw new Me(\"Schema does not define the required query root type.\",{nodes:t});return n}if(t.operation===\"mutation\"){const n=e.getMutationType();if(!n)throw new Me(\"Schema is not configured for mutations.\",{nodes:t});return n}if(t.operation===\"subscription\"){const n=e.getSubscriptionType();if(!n)throw new Me(\"Schema is not configured for subscriptions.\",{nodes:t});return n}throw new Me(\"Can only have query, mutation and subscription operations.\",{nodes:t})}function K6(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=Li(wy(n)),i=MA({schema:e,document:r});return!i.errors&&i.data||qr(!1),i.data}function UE(e,t){Go(e)&&Go(e.__schema)||Zt(!1,`Invalid or incomplete introspection result. Ensure that you are passing \"data\" property of introspection response and no \"errors\" was returned alongside: ${Ue(e)}.`);const n=e.__schema,r=Lu(n.types,j=>j.name,j=>b(j));for(const j of[...em,...im])r[j.name]&&(r[j.name]=j);const i=n.queryType?m(n.queryType):null,o=n.mutationType?m(n.mutationType):null,l=n.subscriptionType?m(n.subscriptionType):null,c=n.directives?n.directives.map(F):[];return new cf({description:n.description,query:i,mutation:o,subscription:l,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function p(j){if(j.kind===Vn.LIST){const q=j.ofType;if(!q)throw new Error(\"Decorated type deeper than introspection query.\");return new ur(p(q))}if(j.kind===Vn.NON_NULL){const q=j.ofType;if(!q)throw new Error(\"Decorated type deeper than introspection query.\");const Q=p(q);return new jt(ON(Q))}return d(j)}function d(j){const q=j.name;if(!q)throw new Error(`Unknown type reference: ${Ue(j)}.`);const Q=r[q];if(!Q)throw new Error(`Invalid or incomplete schema, unknown type: ${q}. Ensure that a full introspection query is used in order to build a client schema.`);return Q}function m(j){return _N(d(j))}function E(j){return NN(d(j))}function b(j){if(j!=null&&j.name!=null&&j.kind!=null)switch(j.kind){case Vn.SCALAR:return y(j);case Vn.OBJECT:return x(j);case Vn.INTERFACE:return k(j);case Vn.UNION:return N(j);case Vn.ENUM:return A(j);case Vn.INPUT_OBJECT:return O(j)}const q=Ue(j);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${q}.`)}function y(j){return new Ea({name:j.name,description:j.description,specifiedByURL:j.specifiedByURL})}function w(j){if(j.interfaces===null&&j.kind===Vn.INTERFACE)return[];if(!j.interfaces){const q=Ue(j);throw new Error(`Introspection result missing interfaces: ${q}.`)}return j.interfaces.map(E)}function x(j){return new ii({name:j.name,description:j.description,interfaces:()=>w(j),fields:()=>_(j)})}function k(j){return new so({name:j.name,description:j.description,interfaces:()=>w(j),fields:()=>_(j)})}function N(j){if(!j.possibleTypes){const q=Ue(j);throw new Error(`Introspection result missing possibleTypes: ${q}.`)}return new ju({name:j.name,description:j.description,types:()=>j.possibleTypes.map(m)})}function A(j){if(!j.enumValues){const q=Ue(j);throw new Error(`Introspection result missing enumValues: ${q}.`)}return new Qi({name:j.name,description:j.description,values:Lu(j.enumValues,q=>q.name,q=>({description:q.description,deprecationReason:q.deprecationReason}))})}function O(j){if(!j.inputFields){const q=Ue(j);throw new Error(`Introspection result missing inputFields: ${q}.`)}return new lo({name:j.name,description:j.description,fields:()=>V(j.inputFields),isOneOf:j.isOneOf})}function _(j){if(!j.fields)throw new Error(`Introspection result missing fields: ${Ue(j)}.`);return Lu(j.fields,q=>q.name,M)}function M(j){const q=p(j.type);if(!Rl(q)){const Q=Ue(q);throw new Error(`Introspection must provide output type for fields, but received: ${Q}.`)}if(!j.args){const Q=Ue(j);throw new Error(`Introspection result missing field args: ${Q}.`)}return{description:j.description,deprecationReason:j.deprecationReason,type:q,args:V(j.args)}}function V(j){return Lu(j,q=>q.name,P)}function P(j){const q=p(j.type);if(!Fi(q)){const ee=Ue(q);throw new Error(`Introspection must provide input type for arguments, but received: ${ee}.`)}const Q=j.defaultValue!=null?Ca(EN(j.defaultValue),q):void 0;return{description:j.description,type:q,defaultValue:Q,deprecationReason:j.deprecationReason}}function F(j){if(!j.args){const q=Ue(j);throw new Error(`Introspection result missing directive args: ${q}.`)}if(!j.locations){const q=Ue(j);throw new Error(`Introspection result missing directive locations: ${q}.`)}return new No({name:j.name,description:j.description,isRepeatable:j.isRepeatable,locations:j.locations.slice(),args:V(j.args)})}}function X6(e,t,n){vE(e),t!=null&&t.kind===X.DOCUMENT||Zt(!1,\"Must provide valid Document AST.\"),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&D6(t,e);const r=e.toConfig(),i=GA(r,t,n);return r===i?e:new cf(i)}function GA(e,t,n){var r,i,o,l;const c=[],p=Object.create(null),d=[];let m;const E=[];for(const ce of t.definitions)if(ce.kind===X.SCHEMA_DEFINITION)m=ce;else if(ce.kind===X.SCHEMA_EXTENSION)E.push(ce);else if(Vd(ce))c.push(ce);else if(fy(ce)){const he=ce.name.value,le=p[he];p[he]=le?le.concat([ce]):[ce]}else ce.kind===X.DIRECTIVE_DEFINITION&&d.push(ce);if(Object.keys(p).length===0&&c.length===0&&d.length===0&&E.length===0&&m==null)return e;const b=Object.create(null);for(const ce of e.types)b[ce.name]=A(ce);for(const ce of c){var y;const he=ce.name.value;b[he]=(y=WA[he])!==null&&y!==void 0?y:ge(ce)}const w={query:e.query&&k(e.query),mutation:e.mutation&&k(e.mutation),subscription:e.subscription&&k(e.subscription),...m&&Q([m]),...Q(E)};return{description:(r=m)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...w,types:Object.values(b),directives:[...e.directives.map(N),...d.map(W)],extensions:Object.create(null),astNode:(o=m)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(l=n==null?void 0:n.assumeValid)!==null&&l!==void 0?l:!1};function x(ce){return hn(ce)?new ur(x(ce.ofType)):Nt(ce)?new jt(x(ce.ofType)):k(ce)}function k(ce){return b[ce.name]}function N(ce){const he=ce.toConfig();return new No({...he,args:kl(he.args,q)})}function A(ce){if(uf(ce)||tm(ce))return ce;if(Ii(ce))return M(ce);if(At(ce))return V(ce);if(Rt(ce))return P(ce);if(sr(ce))return F(ce);if(zn(ce))return _(ce);if(rn(ce))return O(ce);qr(!1,\"Unexpected type: \"+Ue(ce))}function O(ce){var he;const le=ce.toConfig(),pe=(he=p[le.name])!==null&&he!==void 0?he:[];return new lo({...le,fields:()=>({...kl(le.fields,Te=>({...Te,type:x(Te.type)})),...ie(pe)}),extensionASTNodes:le.extensionASTNodes.concat(pe)})}function _(ce){var he;const le=ce.toConfig(),pe=(he=p[ce.name])!==null&&he!==void 0?he:[];return new Qi({...le,values:{...le.values,...se(pe)},extensionASTNodes:le.extensionASTNodes.concat(pe)})}function M(ce){var he;const le=ce.toConfig(),pe=(he=p[le.name])!==null&&he!==void 0?he:[];let Te=le.specifiedByURL;for(const $e of pe){var Fe;Te=(Fe=YA($e))!==null&&Fe!==void 0?Fe:Te}return new Ea({...le,specifiedByURL:Te,extensionASTNodes:le.extensionASTNodes.concat(pe)})}function V(ce){var he;const le=ce.toConfig(),pe=(he=p[le.name])!==null&&he!==void 0?he:[];return new ii({...le,interfaces:()=>[...ce.getInterfaces().map(k),...de(pe)],fields:()=>({...kl(le.fields,j),...B(pe)}),extensionASTNodes:le.extensionASTNodes.concat(pe)})}function P(ce){var he;const le=ce.toConfig(),pe=(he=p[le.name])!==null&&he!==void 0?he:[];return new so({...le,interfaces:()=>[...ce.getInterfaces().map(k),...de(pe)],fields:()=>({...kl(le.fields,j),...B(pe)}),extensionASTNodes:le.extensionASTNodes.concat(pe)})}function F(ce){var he;const le=ce.toConfig(),pe=(he=p[le.name])!==null&&he!==void 0?he:[];return new ju({...le,types:()=>[...ce.getTypes().map(k),...J(pe)],extensionASTNodes:le.extensionASTNodes.concat(pe)})}function j(ce){return{...ce,type:x(ce.type),args:ce.args&&kl(ce.args,q)}}function q(ce){return{...ce,type:x(ce.type)}}function Q(ce){const he={};for(const pe of ce){var le;const Te=(le=pe.operationTypes)!==null&&le!==void 0?le:[];for(const Fe of Te)he[Fe.operation]=ee(Fe.type)}return he}function ee(ce){var he;const le=ce.name.value,pe=(he=WA[le])!==null&&he!==void 0?he:b[le];if(pe===void 0)throw new Error(`Unknown type: \"${le}\".`);return pe}function Z(ce){return ce.kind===X.LIST_TYPE?new ur(Z(ce.type)):ce.kind===X.NON_NULL_TYPE?new jt(Z(ce.type)):ee(ce)}function W(ce){var he;return new No({name:ce.name.value,description:(he=ce.description)===null||he===void 0?void 0:he.value,locations:ce.locations.map(({value:le})=>le),isRepeatable:ce.repeatable,args:ne(ce.arguments),astNode:ce})}function B(ce){const he=Object.create(null);for(const Te of ce){var le;const Fe=(le=Te.fields)!==null&&le!==void 0?le:[];for(const $e of Fe){var pe;he[$e.name.value]={type:Z($e.type),description:(pe=$e.description)===null||pe===void 0?void 0:pe.value,args:ne($e.arguments),deprecationReason:xy($e),astNode:$e}}}return he}function ne(ce){const he=ce??[],le=Object.create(null);for(const Te of he){var pe;const Fe=Z(Te.type);le[Te.name.value]={type:Fe,description:(pe=Te.description)===null||pe===void 0?void 0:pe.value,defaultValue:Ca(Te.defaultValue,Fe),deprecationReason:xy(Te),astNode:Te}}return le}function ie(ce){const he=Object.create(null);for(const Te of ce){var le;const Fe=(le=Te.fields)!==null&&le!==void 0?le:[];for(const $e of Fe){var pe;const qe=Z($e.type);he[$e.name.value]={type:qe,description:(pe=$e.description)===null||pe===void 0?void 0:pe.value,defaultValue:Ca($e.defaultValue,qe),deprecationReason:xy($e),astNode:$e}}}return he}function se(ce){const he=Object.create(null);for(const Te of ce){var le;const Fe=(le=Te.values)!==null&&le!==void 0?le:[];for(const $e of Fe){var pe;he[$e.name.value]={description:(pe=$e.description)===null||pe===void 0?void 0:pe.value,deprecationReason:xy($e),astNode:$e}}}return he}function de(ce){return ce.flatMap(he=>{var le,pe;return(le=(pe=he.interfaces)===null||pe===void 0?void 0:pe.map(ee))!==null&&le!==void 0?le:[]})}function J(ce){return ce.flatMap(he=>{var le,pe;return(le=(pe=he.types)===null||pe===void 0?void 0:pe.map(ee))!==null&&le!==void 0?le:[]})}function ge(ce){var he;const le=ce.name.value,pe=(he=p[le])!==null&&he!==void 0?he:[];switch(ce.kind){case X.OBJECT_TYPE_DEFINITION:{var Te;const at=[ce,...pe];return new ii({name:le,description:(Te=ce.description)===null||Te===void 0?void 0:Te.value,interfaces:()=>de(at),fields:()=>B(at),astNode:ce,extensionASTNodes:pe})}case X.INTERFACE_TYPE_DEFINITION:{var Fe;const at=[ce,...pe];return new so({name:le,description:(Fe=ce.description)===null||Fe===void 0?void 0:Fe.value,interfaces:()=>de(at),fields:()=>B(at),astNode:ce,extensionASTNodes:pe})}case X.ENUM_TYPE_DEFINITION:{var $e;const at=[ce,...pe];return new Qi({name:le,description:($e=ce.description)===null||$e===void 0?void 0:$e.value,values:se(at),astNode:ce,extensionASTNodes:pe})}case X.UNION_TYPE_DEFINITION:{var qe;const at=[ce,...pe];return new ju({name:le,description:(qe=ce.description)===null||qe===void 0?void 0:qe.value,types:()=>J(at),astNode:ce,extensionASTNodes:pe})}case X.SCALAR_TYPE_DEFINITION:{var dt;return new Ea({name:le,description:(dt=ce.description)===null||dt===void 0?void 0:dt.value,specifiedByURL:YA(ce),astNode:ce,extensionASTNodes:pe})}case X.INPUT_OBJECT_TYPE_DEFINITION:{var pt;const at=[ce,...pe];return new lo({name:le,description:(pt=ce.description)===null||pt===void 0?void 0:pt.value,fields:()=>ie(at),astNode:ce,extensionASTNodes:pe,isOneOf:Z6(ce)})}}}}const WA=Dl([...em,...im],e=>e.name);function xy(e){const t=js(iy,e);return t==null?void 0:t.reason}function YA(e){const t=js(uE,e);return t==null?void 0:t.url}function Z6(e){return!!js(cE,e)}function Cy(e,t){e!=null&&e.kind===X.DOCUMENT||Zt(!1,\"Must provide valid Document AST.\"),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&O6(e);const r=GA({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const o of r.types)switch(o.name){case\"Query\":r.query=o;break;case\"Mutation\":r.mutation=o;break;case\"Subscription\":r.subscription=o;break}const i=[...r.directives,...Vu.filter(o=>r.directives.every(l=>l.name!==o.name))];return new cf({...r,directives:i})}function qE(e,t){const n=Li(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return Cy(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function J6(e){const t=e.toConfig(),n=Lu(BE(t.types),b=>b.name,E);return new cf({...t,types:Object.values(n),directives:BE(t.directives).map(l),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(b){return hn(b)?new ur(r(b.ofType)):Nt(b)?new jt(r(b.ofType)):i(b)}function i(b){return n[b.name]}function o(b){return b&&i(b)}function l(b){const y=b.toConfig();return new No({...y,locations:QA(y.locations,w=>w),args:c(y.args)})}function c(b){return _y(b,y=>({...y,type:r(y.type)}))}function p(b){return _y(b,y=>({...y,type:r(y.type),args:y.args&&c(y.args)}))}function d(b){return _y(b,y=>({...y,type:r(y.type)}))}function m(b){return BE(b).map(i)}function E(b){if(Ii(b)||uf(b))return b;if(At(b)){const y=b.toConfig();return new ii({...y,interfaces:()=>m(y.interfaces),fields:()=>p(y.fields)})}if(Rt(b)){const y=b.toConfig();return new so({...y,interfaces:()=>m(y.interfaces),fields:()=>p(y.fields)})}if(sr(b)){const y=b.toConfig();return new ju({...y,types:()=>m(y.types)})}if(zn(b)){const y=b.toConfig();return new Qi({...y,values:_y(y.values,w=>w)})}if(rn(b)){const y=b.toConfig();return new lo({...y,fields:()=>d(y.fields)})}qr(!1,\"Unexpected type: \"+Ue(b))}}function _y(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Yh))n[r]=t(e[r]);return n}function BE(e){return QA(e,t=>t.name)}function QA(e,t){return e.slice().sort((n,r)=>{const i=t(n),o=t(r);return Yh(i,o)})}function e8(e){return KA(e,t=>!oy(t),n8)}function t8(e){return KA(e,oy,uf)}function n8(e){return!tm(e)&&!uf(e)}function KA(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[r8(e),...r.map(o=>f8(o)),...i.map(o=>XA(o))].filter(Boolean).join(`\n\n`)}function r8(e){if(e.description==null&&i8(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),_a(e)+`schema {\n${t.join(`\n`)}\n}`}function i8(e){const t=e.getQueryType();if(t&&t.name!==\"Query\")return!1;const n=e.getMutationType();if(n&&n.name!==\"Mutation\")return!1;const r=e.getSubscriptionType();return!(r&&r.name!==\"Subscription\")}function XA(e){if(Ii(e))return o8(e);if(At(e))return a8(e);if(Rt(e))return s8(e);if(sr(e))return l8(e);if(zn(e))return u8(e);if(rn(e))return c8(e);qr(!1,\"Unexpected type: \"+Ue(e))}function o8(e){return _a(e)+`scalar ${e.name}`+d8(e)}function ZA(e){const t=e.getInterfaces();return t.length?\" implements \"+t.map(n=>n.name).join(\" & \"):\"\"}function a8(e){return _a(e)+`type ${e.name}`+ZA(e)+JA(e)}function s8(e){return _a(e)+`interface ${e.name}`+ZA(e)+JA(e)}function l8(e){const t=e.getTypes(),n=t.length?\" = \"+t.join(\" | \"):\"\";return _a(e)+\"union \"+e.name+n}function u8(e){const t=e.getValues().map((n,r)=>_a(n,\" \",!r)+\" \"+n.name+HE(n.deprecationReason));return _a(e)+`enum ${e.name}`+$E(t)}function c8(e){const t=Object.values(e.getFields()).map((n,r)=>_a(n,\" \",!r)+\" \"+zE(n));return _a(e)+`input ${e.name}`+(e.isOneOf?\" @oneOf\":\"\")+$E(t)}function JA(e){const t=Object.values(e.getFields()).map((n,r)=>_a(n,\" \",!r)+\" \"+n.name+eO(n.args,\" \")+\": \"+String(n.type)+HE(n.deprecationReason));return $E(t)}function $E(e){return e.length!==0?` {\n`+e.join(`\n`)+`\n}`:\"\"}function eO(e,t=\"\"){return e.length===0?\"\":e.every(n=>!n.description)?\"(\"+e.map(zE).join(\", \")+\")\":`(\n`+e.map((n,r)=>_a(n,\" \"+t,!r)+\" \"+t+zE(n)).join(`\n`)+`\n`+t+\")\"}function zE(e){const t=Ll(e.defaultValue,e.type);let n=e.name+\": \"+String(e.type);return t&&(n+=` = ${dn(t)}`),n+HE(e.deprecationReason)}function f8(e){return _a(e)+\"directive @\"+e.name+eO(e.args)+(e.isRepeatable?\" repeatable\":\"\")+\" on \"+e.locations.join(\" | \")}function HE(e){return e==null?\"\":e!==lE?` @deprecated(reason: ${dn({kind:X.STRING,value:e})})`:\" @deprecated\"}function d8(e){return e.specifiedByURL==null?\"\":` @specifiedBy(url: ${dn({kind:X.STRING,value:e.specifiedByURL})})`}function _a(e,t=\"\",n=!0){const{description:r}=e;if(r==null)return\"\";const i=dn({kind:X.STRING,value:r,block:Xj(r)});return(t&&!n?`\n`+t:t)+i.replace(/\\n/g,`\n`+t)+`\n`}function p8(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:X.DOCUMENT,definitions:t}}function h8(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case X.OPERATION_DEFINITION:t.push(i);break;case X.FRAGMENT_DEFINITION:n[i.name.value]=nO(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const c of nO(i.selectionSet))tO(o,n,c);const l=i.name?i.name.value:\"\";r[l]={kind:X.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===X.FRAGMENT_DEFINITION&&o.has(c.name.value))}}return r}function tO(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)tO(e,t,i)}}function nO(e){const t=[];return Er(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function rO(e){const t=bN(e)?e:new Wh(e),n=t.body,r=new nE(t);let i=\"\",o=!1;for(;r.advance().kind!==Ve.EOF;){const l=r.token,c=l.kind,p=!hN(l.kind);o&&(p||l.kind===Ve.SPREAD)&&(i+=\" \");const d=n.slice(l.start,l.end);c===Ve.BLOCK_STRING?i+=pN(l.value,{minimize:!0}):i+=d,o=p}return i}function m8(e){const t=iO(e);if(t)throw t;return e}function iO(e){if(typeof e==\"string\"||Zt(!1,\"Expected name to be a string.\"),e.startsWith(\"__\"))return new Me(`Name \"${e}\" must not begin with \"__\", which is reserved by GraphQL introspection.`);try{Wo(e)}catch(t){return t}}var Dr;(function(e){e.TYPE_REMOVED=\"TYPE_REMOVED\",e.TYPE_CHANGED_KIND=\"TYPE_CHANGED_KIND\",e.TYPE_REMOVED_FROM_UNION=\"TYPE_REMOVED_FROM_UNION\",e.VALUE_REMOVED_FROM_ENUM=\"VALUE_REMOVED_FROM_ENUM\",e.REQUIRED_INPUT_FIELD_ADDED=\"REQUIRED_INPUT_FIELD_ADDED\",e.IMPLEMENTED_INTERFACE_REMOVED=\"IMPLEMENTED_INTERFACE_REMOVED\",e.FIELD_REMOVED=\"FIELD_REMOVED\",e.FIELD_CHANGED_KIND=\"FIELD_CHANGED_KIND\",e.REQUIRED_ARG_ADDED=\"REQUIRED_ARG_ADDED\",e.ARG_REMOVED=\"ARG_REMOVED\",e.ARG_CHANGED_KIND=\"ARG_CHANGED_KIND\",e.DIRECTIVE_REMOVED=\"DIRECTIVE_REMOVED\",e.DIRECTIVE_ARG_REMOVED=\"DIRECTIVE_ARG_REMOVED\",e.REQUIRED_DIRECTIVE_ARG_ADDED=\"REQUIRED_DIRECTIVE_ARG_ADDED\",e.DIRECTIVE_REPEATABLE_REMOVED=\"DIRECTIVE_REPEATABLE_REMOVED\",e.DIRECTIVE_LOCATION_REMOVED=\"DIRECTIVE_LOCATION_REMOVED\"})(Dr||(Dr={}));var Za;(function(e){e.VALUE_ADDED_TO_ENUM=\"VALUE_ADDED_TO_ENUM\",e.TYPE_ADDED_TO_UNION=\"TYPE_ADDED_TO_UNION\",e.OPTIONAL_INPUT_FIELD_ADDED=\"OPTIONAL_INPUT_FIELD_ADDED\",e.OPTIONAL_ARG_ADDED=\"OPTIONAL_ARG_ADDED\",e.IMPLEMENTED_INTERFACE_ADDED=\"IMPLEMENTED_INTERFACE_ADDED\",e.ARG_DEFAULT_VALUE_CHANGE=\"ARG_DEFAULT_VALUE_CHANGE\"})(Za||(Za={}));function g8(e,t){return oO(e,t).filter(n=>n.type in Dr)}function v8(e,t){return oO(e,t).filter(n=>n.type in Za)}function oO(e,t){return[...b8(e,t),...y8(e,t)]}function y8(e,t){const n=[],r=Il(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Dr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const l=Il(i.args,o.args);for(const c of l.added)Pu(c)&&n.push({type:Dr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(const c of l.removed)n.push({type:Dr.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:Dr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const c of i.locations)o.locations.includes(c)||n.push({type:Dr.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function b8(e,t){const n=[],r=Il(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Dr.TYPE_REMOVED,description:tm(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)zn(i)&&zn(o)?n.push(...T8(i,o)):sr(i)&&sr(o)?n.push(...S8(i,o)):rn(i)&&rn(o)?n.push(...E8(i,o)):At(i)&&At(o)?n.push(...sO(i,o),...aO(i,o)):Rt(i)&&Rt(o)?n.push(...sO(i,o),...aO(i,o)):i.constructor!==o.constructor&&n.push({type:Dr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${lO(i)} to ${lO(o)}.`});return n}function E8(e,t){const n=[],r=Il(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)Xv(i)?n.push({type:Dr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Za.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(const i of r.removed)n.push({type:Dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)cm(i.type,o.type)||n.push({type:Dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function S8(e,t){const n=[],r=Il(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:Za.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Dr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function T8(e,t){const n=[],r=Il(e.getValues(),t.getValues());for(const i of r.added)n.push({type:Za.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Dr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function aO(e,t){const n=[],r=Il(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:Za.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Dr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function sO(e,t){const n=[],r=Il(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...w8(e,i,o)),um(i.type,o.type)||n.push({type:Dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function w8(e,t,n){const r=[],i=Il(t.args,n.args);for(const o of i.removed)r.push({type:Dr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,l]of i.persisted)if(!cm(o.type,l.type))r.push({type:Dr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(l.type)}.`});else if(o.defaultValue!==void 0)if(l.defaultValue===void 0)r.push({type:Za.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const p=uO(o.defaultValue,o.type),d=uO(l.defaultValue,l.type);p!==d&&r.push({type:Za.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${p} to ${d}.`})}for(const o of i.added)Pu(o)?r.push({type:Dr.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:Za.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function um(e,t){return hn(e)?hn(t)&&um(e.ofType,t.ofType)||Nt(t)&&um(e,t.ofType):Nt(e)?Nt(t)&&um(e.ofType,t.ofType):Ml(t)&&e.name===t.name||Nt(t)&&um(e,t.ofType)}function cm(e,t){return hn(e)?hn(t)&&cm(e.ofType,t.ofType):Nt(e)?Nt(t)&&cm(e.ofType,t.ofType)||!Nt(t)&&cm(e.ofType,t):Ml(t)&&e.name===t.name}function lO(e){if(Ii(e))return\"a Scalar type\";if(At(e))return\"an Object type\";if(Rt(e))return\"an Interface type\";if(sr(e))return\"a Union type\";if(zn(e))return\"an Enum type\";if(rn(e))return\"an Input type\";qr(!1,\"Unexpected type: \"+Ue(e))}function uO(e,t){const n=Ll(e,t);return n!=null||qr(!1),dn(dy(n))}function Il(e,t){const n=[],r=[],i=[],o=Dl(e,({name:c})=>c),l=Dl(t,({name:c})=>c);for(const c of e){const p=l[c.name];p===void 0?r.push(c):i.push([c,p])}for(const c of t)o[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}const x8=Object.freeze(Object.defineProperty({__proto__:null,BREAK:sf,get BreakingChangeType(){return Dr},DEFAULT_DEPRECATION_REASON:lE,get DangerousChangeType(){return Za},get DirectiveLocation(){return ct},ExecutableDefinitionsRule:wE,FieldsOnCorrectTypeRule:qN,FragmentsOnCompositeTypesRule:BN,GRAPHQL_MAX_INT:Jv,GRAPHQL_MIN_INT:ey,GraphQLBoolean:Zn,GraphQLDeprecatedDirective:iy,GraphQLDirective:No,GraphQLEnumType:Qi,GraphQLError:Me,GraphQLFloat:Zh,GraphQLID:Jh,GraphQLIncludeDirective:ny,GraphQLInputObjectType:lo,GraphQLInt:Xh,GraphQLInterfaceType:so,GraphQLList:ur,GraphQLNonNull:jt,GraphQLObjectType:ii,GraphQLOneOfDirective:cE,GraphQLScalarType:Ea,GraphQLSchema:cf,GraphQLSkipDirective:ry,GraphQLSpecifiedByDirective:uE,GraphQLString:Xn,GraphQLUnionType:ju,get Kind(){return X},KnownArgumentNamesRule:$N,KnownDirectivesRule:xE,KnownFragmentNamesRule:HN,KnownTypeNamesRule:CE,Lexer:nE,Location:uN,LoneAnonymousOperationRule:WN,LoneSchemaDefinitionRule:YN,MaxIntrospectionDepthRule:QN,NoDeprecatedCustomRule:HA,NoFragmentCyclesRule:KN,NoSchemaIntrospectionCustomRule:Y6,NoUndefinedVariablesRule:XN,NoUnusedFragmentsRule:_E,NoUnusedVariablesRule:ZN,get OperationTypeNode(){return ni},OverlappingFieldsCanBeMergedRule:eA,PossibleFragmentSpreadsRule:oA,PossibleTypeExtensionsRule:aA,ProvidedRequiredArgumentsRule:sA,ScalarLeafsRule:uA,SchemaMetaFieldDef:Ta,SingleFieldSubscriptionsRule:mA,Source:Wh,Token:Z1,get TokenKind(){return Ve},TypeInfo:Uu,get TypeKind(){return Vn},TypeMetaFieldDef:wa,TypeNameMetaFieldDef:xa,UniqueArgumentDefinitionNamesRule:gA,UniqueArgumentNamesRule:LE,UniqueDirectiveNamesRule:vA,UniqueDirectivesPerLocationRule:IE,UniqueEnumValueNamesRule:yA,UniqueFieldDefinitionNamesRule:bA,UniqueFragmentNamesRule:EA,UniqueInputFieldNamesRule:FE,UniqueOperationNamesRule:SA,UniqueOperationTypesRule:TA,UniqueTypeNamesRule:wA,UniqueVariableNamesRule:xA,ValidationContext:DA,ValuesOfCorrectTypeRule:CA,VariablesAreInputTypesRule:_A,VariablesInAllowedPositionRule:NA,__Directive:dE,__DirectiveLocation:pE,__EnumValue:mE,__Field:hE,__InputValue:rm,__Schema:ay,__Type:Sa,__TypeKind:gE,assertAbstractType:AN,assertCompositeType:IV,assertDirective:UV,assertEnumType:AV,assertEnumValueName:CN,assertInputObjectType:OV,assertInputType:RV,assertInterfaceType:NN,assertLeafType:LV,assertListType:DV,assertName:Wo,assertNamedType:PV,assertNonNullType:kV,assertNullableType:ON,assertObjectType:_N,assertOutputType:MV,assertScalarType:_V,assertSchema:vE,assertType:CV,assertUnionType:NV,assertValidName:m8,assertValidSchema:uy,assertWrappingType:FV,astFromValue:Ll,buildASTSchema:Cy,buildClientSchema:UE,buildSchema:qE,coerceInputValue:DE,concatAST:p8,createSourceEventStream:zA,defaultFieldResolver:Ty,defaultTypeResolver:UA,doTypesOverlap:Kh,execute:yy,executeSync:MA,extendSchema:X6,findBreakingChanges:g8,findDangerousChanges:v8,formatError:Wj,getArgumentValues:gy,getDirectiveValues:js,getEnterLeaveForKind:Fd,getIntrospectionQuery:wy,getLocation:qv,getNamedType:mn,getNullableType:Fu,getOperationAST:VE,getOperationRootType:Q6,getVariableValues:dA,getVisitFn:TV,graphql:B6,graphqlSync:$6,introspectionFromSchema:K6,introspectionTypes:im,isAbstractType:lr,isCompositeType:Qr,isConstValueNode:SE,isDefinitionNode:JV,isDirective:ty,isEnumType:zn,isEqualType:Zv,isExecutableDefinitionNode:EE,isInputObjectType:rn,isInputType:Fi,isInterfaceType:Rt,isIntrospectionType:uf,isLeafType:ri,isListType:hn,isNamedType:Ml,isNonNullType:Nt,isNullableType:Qv,isObjectType:At,isOutputType:Rl,isRequiredArgument:Pu,isRequiredInputField:Xv,isScalarType:Ii,isSchema:sy,isSelectionNode:e6,isSpecifiedDirective:oy,isSpecifiedScalarType:tm,isType:Pd,isTypeDefinitionNode:Vd,isTypeExtensionNode:fy,isTypeNode:t6,isTypeSubTypeOf:lf,isTypeSystemDefinitionNode:cy,isTypeSystemExtensionNode:TE,isUnionType:sr,isValidNameError:iO,isValueNode:UN,isWrappingType:Qh,lexicographicSortSchema:J6,locatedError:pr,parse:Li,parseConstValue:pV,parseType:hV,parseValue:EN,print:dn,printError:Gj,printIntrospectionSchema:t8,printLocation:aN,printSchema:e8,printSourceLocation:X1,printType:XA,recommendedRules:AA,resolveObjMapThunk:sE,resolveReadonlyArrayThunk:aE,responsePathAsArray:Ti,separateOperations:h8,specifiedDirectives:Vu,specifiedRules:PE,specifiedScalarTypes:em,stripIgnoredCharacters:rO,subscribe:H6,syntaxError:ti,typeFromAST:Si,validate:sm,validateSchema:ly,valueFromAST:Ca,valueFromASTUntyped:Yv,version:$j,versionInfo:Uv,visit:Er,visitInParallel:oE,visitWithTypeInfo:qu},Symbol.toStringTag,{value:\"Module\"}));var cO=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{d(r.next(m))}catch(E){l(E)}}function p(m){try{d(r.throw(m))}catch(E){l(E)}}function d(m){m.done?o(m.value):i(m.value).then(c,p)}d((r=r.apply(e,t||[])).next())})};function fO(e){return typeof e==\"object\"&&e!==null&&typeof e.then==\"function\"}function C8(e){return new Promise((t,n)=>{const r=e.subscribe({next(i){t(i),r.unsubscribe()},error:n,complete(){n(new Error(\"no value resolved\"))}})})}function dO(e){return typeof e==\"object\"&&e!==null&&\"subscribe\"in e&&typeof e.subscribe==\"function\"}function pO(e){return typeof e==\"object\"&&e!==null&&(e[Symbol.toStringTag]===\"AsyncGenerator\"||Symbol.asyncIterator in e)}function _8(e){var t;return cO(this,void 0,void 0,function*(){const n=(t=(\"return\"in e?e:e[Symbol.asyncIterator]()).return)===null||t===void 0?void 0:t.bind(e),i=yield(\"next\"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),i.value})}function hO(e){return cO(this,void 0,void 0,function*(){const t=yield e;return pO(t)?_8(t):dO(t)?C8(t):t})}var N8=new TextDecoder;async function A8(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(\"content-type\");if(!n||!~n.indexOf(\"multipart/\"))return e;let r=n.indexOf(\"boundary=\"),i=\"-\";if(~r){let o=r+9,l=n.indexOf(\";\",o);i=n.slice(o,l>-1?l:void 0).trim().replace(/\"/g,\"\")}return async function*(o,l,c){let p,d,m,E=o.getReader(),b=!0,y=l.length,w=\"\",x=[];try{let k;e:for(;!(k=await E.read()).done;){let N=N8.decode(k.value);p=w.length,w+=N;let A=N.indexOf(l);for(~A?p+=A:p=w.indexOf(l),x=[];~p;){let O=w.slice(0,p),_=w.slice(p+y);if(d){let M=O.indexOf(`\\r\n\\r\n`)+4,V=O.lastIndexOf(`\\r\n`,M),P=!1,F=O.slice(M,V>-1?void 0:V),j=String(O.slice(0,M)).trim().split(`\\r\n`),q={},Q=j.length;for(;m=j[--Q];m=m.split(\": \"),q[m.shift().toLowerCase()]=m.join(\": \"));if(m=q[\"content-type\"],m&&~m.indexOf(\"application/json\"))try{F=JSON.parse(F),P=!0}catch{}if(m={headers:q,body:F,json:P},b?yield m:x.push(m),_.slice(0,2)===\"--\")break e}else l=`\\r\n`+l,d=y+=2;w=_,p=w.indexOf(l)}x.length&&(yield x)}}finally{x.length&&(yield x),await E.cancel()}}(e.body,`--${i}`)}var GE=function(e){return this instanceof GE?(this.v=e,this):new GE(e)};function WE(e){return JSON.stringify(e,null,2)}function O8(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function mO(e){return e instanceof Error?O8(e):e}function fm(e){return Array.isArray(e)?WE({errors:e.map(t=>mO(t))}):WE({errors:[mO(e)]})}function YE(e){return WE(e)}function D8(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Li(t)}catch{return{insertions:r,result:t}}const o=n||k8,l=new Uu(e);return Er(i,{leave(c){l.leave(c)},enter(c){if(l.enter(c),c.kind===\"Field\"&&!c.selectionSet){const p=l.getType(),d=gO(L8(p),o);if(d&&c.loc){const m=M8(t,c.loc.start);r.push({index:c.loc.end,string:\" \"+dn(d).replaceAll(`\n`,`\n`+m)})}}}}),{insertions:r,result:R8(t,r)}}function k8(e){if(!(\"getFields\"in e))return[];const t=e.getFields();if(t.id)return[\"id\"];if(t.edges)return[\"edges\"];if(t.node)return[\"node\"];const n=[];for(const r of Object.keys(t))ri(t[r].type)&&n.push(r);return n}function gO(e,t){const n=mn(e);if(!e||ri(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!(\"getFields\"in n)))return{kind:X.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],l=o?o.type:null;return{kind:X.FIELD,name:{kind:X.NAME,value:i},selectionSet:gO(l,t)}})}}function R8(e,t){if(t.length===0)return e;let n=\"\",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function M8(e,t){let n=t,r=t;for(;n;){const i=e.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return e.slice(n,r)}function L8(e){if(e)return e}function I8(e,t){var n;const r=new Map,i=[];for(const o of e)if(o.kind===\"Field\"){const l=t(o),c=r.get(l);if(!((n=o.directives)===null||n===void 0)&&n.length){const p=Object.assign({},o);i.push(p)}else if(c!=null&&c.selectionSet&&o.selectionSet)c.selectionSet.selections=[...c.selectionSet.selections,...o.selectionSet.selections];else if(!c){const p=Object.assign({},o);r.set(l,p),i.push(p)}}else i.push(o);return i}function vO(e,t,n){var r;const i=n?mn(n).name:null,o=[],l=[];for(let c of t){if(c.kind===\"FragmentSpread\"){const p=c.name.value;if(!c.directives||c.directives.length===0){if(l.includes(p))continue;l.push(p)}const d=e[c.name.value];if(d){const{typeCondition:m,directives:E,selectionSet:b}=d;c={kind:X.INLINE_FRAGMENT,typeCondition:m,directives:E,selectionSet:b}}}if(c.kind===X.INLINE_FRAGMENT&&(!c.directives||((r=c.directives)===null||r===void 0?void 0:r.length)===0)){const p=c.typeCondition?c.typeCondition.name.value:null;if(!p||p===i){o.push(...vO(e,c.selectionSet.selections,n));continue}}o.push(c)}return o}function F8(e,t){const n=t?new Uu(t):null,r=Object.create(null);for(const c of e.definitions)c.kind===X.FRAGMENT_DEFINITION&&(r[c.name.value]=c);const i={SelectionSet(c){const p=n?n.getParentType():null;let{selections:d}=c;return d=vO(r,d,p),Object.assign(Object.assign({},c),{selections:d})},FragmentDefinition(){return null}},o=Er(e,n?qu(n,i):i);return Er(o,{SelectionSet(c){let{selections:p}=c;return p=I8(p,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},c),{selections:p})},FragmentDefinition(){return null}})}function P8(e,t,n){if(!n||n.length<1)return;const r=n.map(i=>{var o;return(o=i.name)===null||o===void 0?void 0:o.value});if(t&&r.includes(t))return t;if(t&&e){const o=e.map(l=>{var c;return(c=l.name)===null||c===void 0?void 0:c.value}).indexOf(t);if(o!==-1&&o<r.length)return r[o]}return r[0]}function j8(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 QE{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window>\"u\"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const r in localStorage)r.indexOf(`${Ny}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${Ny}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${Ny}:${t}`,r=this.storage.getItem(n);return r===\"null\"||r===\"undefined\"?(this.storage.removeItem(n),null):r||null}set(t,n){let r=!1,i=null;if(this.storage){const o=`${Ny}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(l){i=l instanceof Error?l:new Error(`${l}`),r=j8(this.storage,l)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const Ny=\"graphiql\";class yO{constructor(t,n,r=null){this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t,n){if(typeof n==\"number\"&&this.items[n]){const i=this.items[n];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const r=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);r!==-1&&(this.items.splice(r,1,t),this.save())}delete(t){const n=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let r=0;r<5;r++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(i!=null&&i.error))this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const V8=1e5;class U8{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:r,variables:i,headers:o,operationName:l})=>{if(!this.shouldSaveQuery(r,i,o,this.history.fetchRecent()))return;this.history.push({query:r,variables:i,headers:o,operationName:l});const c=this.history.items,p=this.favorite.items;this.queries=c.concat(p)},this.deleteHistory=({query:r,variables:i,headers:o,operationName:l,favorite:c},p=!1)=>{function d(m){const E=m.items.find(b=>b.query===r&&b.variables===i&&b.headers===o&&b.operationName===l);E&&m.delete(E)}(c||p)&&d(this.favorite),(!c||p)&&d(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new yO(\"queries\",this.storage,this.maxHistoryLength),this.favorite=new yO(\"favorites\",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{Li(t)}catch{return!1}return t.length>V8?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(r)===JSON.stringify(i.headers)||r&&!i.headers)||n&&!i.variables)):!0}toggleFavorite({query:t,variables:n,headers:r,operationName:i,label:o,favorite:l}){const c={query:t,variables:n,headers:r,operationName:i,label:o};l?(c.favorite=!1,this.favorite.delete(c),this.history.push(c)):(c.favorite=!0,this.favorite.push(c),this.history.delete(c)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:r,operationName:i,label:o,favorite:l},c){const p={query:t,variables:n,headers:r,operationName:i,label:o};l?this.favorite.edit(Object.assign(Object.assign({},p),{favorite:l}),c):this.history.edit(p,c),this.queries=[...this.history.items,...this.favorite.items]}}function pf(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function cr(e,t){return q8(t,bO(e.string))}function q8(e,t){if(!t||t.trim()===\"\"||t.trim()===\":\"||t.trim()===\"{\")return KE(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:B8(bO(r.label),t),entry:r}));return KE(KE(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.label.length-i.entry.label.length).map(r=>r.entry)}function KE(e,t){const n=e.filter(t);return n.length===0?e:n}function bO(e){return e.toLowerCase().replaceAll(/\\W/g,\"\")}function B8(e,t){let n=$8(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function $8(e,t){let n,r;const i=[],o=e.length,l=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=l;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=l;r++){const c=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+c),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+c))}return i[o][l]}const z8=e=>` {\n $1\n}`,Ay=(e,t,n)=>{if(!t)return n??e;const r=mn(t);return At(r)||rn(r)||hn(r)||lr(r)?e+z8():n??e},EO=(e,t,n)=>{if(hn(t)){const r=mn(t.ofType);return e+`[${Ay(\"\",r,\"$1\")}]`}return Ay(e,t,n)},H8=e=>{const t=e.args.filter(n=>n.type.toString().endsWith(\"!\"));if(t.length)return e.name+`(${t.map((n,r)=>`${n.name}: $${r+1}`)}) ${Ay(\"\",e.type,`\n`)}`};var SO;(function(e){function t(n){return typeof n==\"string\"}e.is=t})(SO||(SO={}));var XE;(function(e){function t(n){return typeof n==\"string\"}e.is=t})(XE||(XE={}));var TO;(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})(TO||(TO={}));var Oy;(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})(Oy||(Oy={}));var Ja;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Oy.MAX_VALUE),i===Number.MAX_VALUE&&(i=Oy.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return Ae.objectLiteral(i)&&Ae.uinteger(i.line)&&Ae.uinteger(i.character)}e.is=n})(Ja||(Ja={}));var Br;(function(e){function t(r,i,o,l){if(Ae.uinteger(r)&&Ae.uinteger(i)&&Ae.uinteger(o)&&Ae.uinteger(l))return{start:Ja.create(r,i),end:Ja.create(o,l)};if(Ja.is(r)&&Ja.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${l}]`)}e.create=t;function n(r){let i=r;return Ae.objectLiteral(i)&&Ja.is(i.start)&&Ja.is(i.end)}e.is=n})(Br||(Br={}));var Dy;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return Ae.objectLiteral(i)&&Br.is(i.range)&&(Ae.string(i.uri)||Ae.undefined(i.uri))}e.is=n})(Dy||(Dy={}));var wO;(function(e){function t(r,i,o,l){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:l}}e.create=t;function n(r){let i=r;return Ae.objectLiteral(i)&&Br.is(i.targetRange)&&Ae.string(i.targetUri)&&Br.is(i.targetSelectionRange)&&(Br.is(i.originSelectionRange)||Ae.undefined(i.originSelectionRange))}e.is=n})(wO||(wO={}));var ZE;(function(e){function t(r,i,o,l){return{red:r,green:i,blue:o,alpha:l}}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Ae.numberRange(i.red,0,1)&&Ae.numberRange(i.green,0,1)&&Ae.numberRange(i.blue,0,1)&&Ae.numberRange(i.alpha,0,1)}e.is=n})(ZE||(ZE={}));var xO;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Br.is(i.range)&&ZE.is(i.color)}e.is=n})(xO||(xO={}));var CO;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Ae.string(i.label)&&(Ae.undefined(i.textEdit)||Bd.is(i))&&(Ae.undefined(i.additionalTextEdits)||Ae.typedArray(i.additionalTextEdits,Bd.is))}e.is=n})(CO||(CO={}));var _O;(function(e){e.Comment=\"comment\",e.Imports=\"imports\",e.Region=\"region\"})(_O||(_O={}));var NO;(function(e){function t(r,i,o,l,c,p){const d={startLine:r,endLine:i};return Ae.defined(o)&&(d.startCharacter=o),Ae.defined(l)&&(d.endCharacter=l),Ae.defined(c)&&(d.kind=c),Ae.defined(p)&&(d.collapsedText=p),d}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Ae.uinteger(i.startLine)&&Ae.uinteger(i.startLine)&&(Ae.undefined(i.startCharacter)||Ae.uinteger(i.startCharacter))&&(Ae.undefined(i.endCharacter)||Ae.uinteger(i.endCharacter))&&(Ae.undefined(i.kind)||Ae.string(i.kind))}e.is=n})(NO||(NO={}));var JE;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Dy.is(i.location)&&Ae.string(i.message)}e.is=n})(JE||(JE={}));var AO;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(AO||(AO={}));var OO;(function(e){e.Unnecessary=1,e.Deprecated=2})(OO||(OO={}));var DO;(function(e){function t(n){const r=n;return Ae.objectLiteral(r)&&Ae.string(r.href)}e.is=t})(DO||(DO={}));var ky;(function(e){function t(r,i,o,l,c,p){let d={range:r,message:i};return Ae.defined(o)&&(d.severity=o),Ae.defined(l)&&(d.code=l),Ae.defined(c)&&(d.source=c),Ae.defined(p)&&(d.relatedInformation=p),d}e.create=t;function n(r){var i;let o=r;return Ae.defined(o)&&Br.is(o.range)&&Ae.string(o.message)&&(Ae.number(o.severity)||Ae.undefined(o.severity))&&(Ae.integer(o.code)||Ae.string(o.code)||Ae.undefined(o.code))&&(Ae.undefined(o.codeDescription)||Ae.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(Ae.string(o.source)||Ae.undefined(o.source))&&(Ae.undefined(o.relatedInformation)||Ae.typedArray(o.relatedInformation,JE.is))}e.is=n})(ky||(ky={}));var qd;(function(e){function t(r,i,...o){let l={title:r,command:i};return Ae.defined(o)&&o.length>0&&(l.arguments=o),l}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.string(i.title)&&Ae.string(i.command)}e.is=n})(qd||(qd={}));var Bd;(function(e){function t(o,l){return{range:o,newText:l}}e.replace=t;function n(o,l){return{range:{start:o,end:o},newText:l}}e.insert=n;function r(o){return{range:o,newText:\"\"}}e.del=r;function i(o){const l=o;return Ae.objectLiteral(l)&&Ae.string(l.newText)&&Br.is(l.range)}e.is=i})(Bd||(Bd={}));var eS;(function(e){function t(r,i,o){const l={label:r};return i!==void 0&&(l.needsConfirmation=i),o!==void 0&&(l.description=o),l}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Ae.string(i.label)&&(Ae.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Ae.string(i.description)||i.description===void 0)}e.is=n})(eS||(eS={}));var $d;(function(e){function t(n){const r=n;return Ae.string(r)}e.is=t})($d||($d={}));var kO;(function(e){function t(o,l,c){return{range:o,newText:l,annotationId:c}}e.replace=t;function n(o,l,c){return{range:{start:o,end:o},newText:l,annotationId:c}}e.insert=n;function r(o,l){return{range:o,newText:\"\",annotationId:l}}e.del=r;function i(o){const l=o;return Bd.is(l)&&(eS.is(l.annotationId)||$d.is(l.annotationId))}e.is=i})(kO||(kO={}));var tS;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&aS.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(tS||(tS={}));var nS;(function(e){function t(r,i,o){let l={kind:\"create\",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}e.create=t;function n(r){let i=r;return i&&i.kind===\"create\"&&Ae.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Ae.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ae.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||$d.is(i.annotationId))}e.is=n})(nS||(nS={}));var rS;(function(e){function t(r,i,o,l){let c={kind:\"rename\",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(c.options=o),l!==void 0&&(c.annotationId=l),c}e.create=t;function n(r){let i=r;return i&&i.kind===\"rename\"&&Ae.string(i.oldUri)&&Ae.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Ae.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ae.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||$d.is(i.annotationId))}e.is=n})(rS||(rS={}));var iS;(function(e){function t(r,i,o){let l={kind:\"delete\",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}e.create=t;function n(r){let i=r;return i&&i.kind===\"delete\"&&Ae.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Ae.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Ae.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||$d.is(i.annotationId))}e.is=n})(iS||(iS={}));var oS;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>Ae.string(i.kind)?nS.is(i)||rS.is(i)||iS.is(i):tS.is(i)))}e.is=t})(oS||(oS={}));var RO;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.string(i.uri)}e.is=n})(RO||(RO={}));var MO;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.string(i.uri)&&Ae.integer(i.version)}e.is=n})(MO||(MO={}));var aS;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.string(i.uri)&&(i.version===null||Ae.integer(i.version))}e.is=n})(aS||(aS={}));var LO;(function(e){function t(r,i,o,l){return{uri:r,languageId:i,version:o,text:l}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.string(i.uri)&&Ae.string(i.languageId)&&Ae.integer(i.version)&&Ae.string(i.text)}e.is=n})(LO||(LO={}));var sS;(function(e){e.PlainText=\"plaintext\",e.Markdown=\"markdown\";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(sS||(sS={}));var dm;(function(e){function t(n){const r=n;return Ae.objectLiteral(n)&&sS.is(r.kind)&&Ae.string(r.value)}e.is=t})(dm||(dm={}));var IO;(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})(IO||(IO={}));var zd;(function(e){e.PlainText=1,e.Snippet=2})(zd||(zd={}));var FO;(function(e){e.Deprecated=1})(FO||(FO={}));var PO;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){const i=r;return i&&Ae.string(i.newText)&&Br.is(i.insert)&&Br.is(i.replace)}e.is=n})(PO||(PO={}));var hf;(function(e){e.asIs=1,e.adjustIndentation=2})(hf||(hf={}));var jO;(function(e){function t(n){const r=n;return r&&(Ae.string(r.detail)||r.detail===void 0)&&(Ae.string(r.description)||r.description===void 0)}e.is=t})(jO||(jO={}));var VO;(function(e){function t(n){return{label:n}}e.create=t})(VO||(VO={}));var UO;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(UO||(UO={}));var Ry;(function(e){function t(r){return r.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,\"\\\\$&\")}e.fromPlainText=t;function n(r){const i=r;return Ae.string(i)||Ae.objectLiteral(i)&&Ae.string(i.language)&&Ae.string(i.value)}e.is=n})(Ry||(Ry={}));var qO;(function(e){function t(n){let r=n;return!!r&&Ae.objectLiteral(r)&&(dm.is(r.contents)||Ry.is(r.contents)||Ae.typedArray(r.contents,Ry.is))&&(n.range===void 0||Br.is(n.range))}e.is=t})(qO||(qO={}));var BO;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(BO||(BO={}));var $O;(function(e){function t(n,r,...i){let o={label:n};return Ae.defined(r)&&(o.documentation=r),Ae.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})($O||($O={}));var zO;(function(e){e.Text=1,e.Read=2,e.Write=3})(zO||(zO={}));var HO;(function(e){function t(n,r){let i={range:n};return Ae.number(r)&&(i.kind=r),i}e.create=t})(HO||(HO={}));var GO;(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})(GO||(GO={}));var WO;(function(e){e.Deprecated=1})(WO||(WO={}));var YO;(function(e){function t(n,r,i,o,l){let c={name:n,kind:r,location:{uri:o,range:i}};return l&&(c.containerName=l),c}e.create=t})(YO||(YO={}));var QO;(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(QO||(QO={}));var KO;(function(e){function t(r,i,o,l,c,p){let d={name:r,detail:i,kind:o,range:l,selectionRange:c};return p!==void 0&&(d.children=p),d}e.create=t;function n(r){let i=r;return i&&Ae.string(i.name)&&Ae.number(i.kind)&&Br.is(i.range)&&Br.is(i.selectionRange)&&(i.detail===void 0||Ae.string(i.detail))&&(i.deprecated===void 0||Ae.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(KO||(KO={}));var XO;(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\"})(XO||(XO={}));var My;(function(e){e.Invoked=1,e.Automatic=2})(My||(My={}));var ZO;(function(e){function t(r,i,o){let l={diagnostics:r};return i!=null&&(l.only=i),o!=null&&(l.triggerKind=o),l}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.typedArray(i.diagnostics,ky.is)&&(i.only===void 0||Ae.typedArray(i.only,Ae.string))&&(i.triggerKind===void 0||i.triggerKind===My.Invoked||i.triggerKind===My.Automatic)}e.is=n})(ZO||(ZO={}));var JO;(function(e){function t(r,i,o){let l={title:r},c=!0;return typeof i==\"string\"?(c=!1,l.kind=i):qd.is(i)?l.command=i:l.edit=i,c&&o!==void 0&&(l.kind=o),l}e.create=t;function n(r){let i=r;return i&&Ae.string(i.title)&&(i.diagnostics===void 0||Ae.typedArray(i.diagnostics,ky.is))&&(i.kind===void 0||Ae.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||qd.is(i.command))&&(i.isPreferred===void 0||Ae.boolean(i.isPreferred))&&(i.edit===void 0||oS.is(i.edit))}e.is=n})(JO||(JO={}));var eD;(function(e){function t(r,i){let o={range:r};return Ae.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Br.is(i.range)&&(Ae.undefined(i.command)||qd.is(i.command))}e.is=n})(eD||(eD={}));var tD;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Ae.uinteger(i.tabSize)&&Ae.boolean(i.insertSpaces)}e.is=n})(tD||(tD={}));var nD;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return Ae.defined(i)&&Br.is(i.range)&&(Ae.undefined(i.target)||Ae.string(i.target))}e.is=n})(nD||(nD={}));var rD;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return Ae.objectLiteral(i)&&Br.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(rD||(rD={}));var iD;(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\"})(iD||(iD={}));var oD;(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\"})(oD||(oD={}));var aD;(function(e){function t(n){const r=n;return Ae.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId==\"string\")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]==\"number\")}e.is=t})(aD||(aD={}));var sD;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&Br.is(i.range)&&Ae.string(i.text)}e.is=n})(sD||(sD={}));var lD;(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){const i=r;return i!=null&&Br.is(i.range)&&Ae.boolean(i.caseSensitiveLookup)&&(Ae.string(i.variableName)||i.variableName===void 0)}e.is=n})(lD||(lD={}));var uD;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&Br.is(i.range)&&(Ae.string(i.expression)||i.expression===void 0)}e.is=n})(uD||(uD={}));var cD;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return Ae.defined(i)&&Br.is(r.stoppedLocation)}e.is=n})(cD||(cD={}));var lS;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(lS||(lS={}));var uS;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&(i.tooltip===void 0||Ae.string(i.tooltip)||dm.is(i.tooltip))&&(i.location===void 0||Dy.is(i.location))&&(i.command===void 0||qd.is(i.command))}e.is=n})(uS||(uS={}));var fD;(function(e){function t(r,i,o){const l={position:r,label:i};return o!==void 0&&(l.kind=o),l}e.create=t;function n(r){const i=r;return Ae.objectLiteral(i)&&Ja.is(i.position)&&(Ae.string(i.label)||Ae.typedArray(i.label,uS.is))&&(i.kind===void 0||lS.is(i.kind))&&i.textEdits===void 0||Ae.typedArray(i.textEdits,Bd.is)&&(i.tooltip===void 0||Ae.string(i.tooltip)||dm.is(i.tooltip))&&(i.paddingLeft===void 0||Ae.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Ae.boolean(i.paddingRight))}e.is=n})(fD||(fD={}));var dD;(function(e){function t(n){return{kind:\"snippet\",value:n}}e.createSnippet=t})(dD||(dD={}));var pD;(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(pD||(pD={}));var hD;(function(e){function t(n){return{items:n}}e.create=t})(hD||(hD={}));var mD;(function(e){e.Invoked=0,e.Automatic=1})(mD||(mD={}));var gD;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gD||(gD={}));var vD;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(vD||(vD={}));var yD;(function(e){function t(n){const r=n;return Ae.objectLiteral(r)&&XE.is(r.uri)&&Ae.string(r.name)}e.is=t})(yD||(yD={}));var bD;(function(e){function t(o,l,c,p){return new G8(o,l,c,p)}e.create=t;function n(o){let l=o;return!!(Ae.defined(l)&&Ae.string(l.uri)&&(Ae.undefined(l.languageId)||Ae.string(l.languageId))&&Ae.uinteger(l.lineCount)&&Ae.func(l.getText)&&Ae.func(l.positionAt)&&Ae.func(l.offsetAt))}e.is=n;function r(o,l){let c=o.getText(),p=i(l,(m,E)=>{let b=m.range.start.line-E.range.start.line;return b===0?m.range.start.character-E.range.start.character:b}),d=c.length;for(let m=p.length-1;m>=0;m--){let E=p[m],b=o.offsetAt(E.range.start),y=o.offsetAt(E.range.end);if(y<=d)c=c.substring(0,b)+E.newText+c.substring(y,c.length);else throw new Error(\"Overlapping edit\");d=b}return c}e.applyEdits=r;function i(o,l){if(o.length<=1)return o;const c=o.length/2|0,p=o.slice(0,c),d=o.slice(c);i(p,l),i(d,l);let m=0,E=0,b=0;for(;m<p.length&&E<d.length;)l(p[m],d[E])<=0?o[b++]=p[m++]:o[b++]=d[E++];for(;m<p.length;)o[b++]=p[m++];for(;E<d.length;)o[b++]=d[E++];return o}})(bD||(bD={}));class G8{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o===\"\\r\"||o===`\n`,o===\"\\r\"&&i+1<n.length&&n.charAt(i+1)===`\n`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Ja.create(0,t);for(;r<i;){let l=Math.floor((r+i)/2);n[l]>t?i=l:r=l+1}let o=r-1;return Ja.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}}var Ae;(function(e){const t=Object.prototype.toString;function n(y){return typeof y<\"u\"}e.defined=n;function r(y){return typeof y>\"u\"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)===\"[object String]\"}e.string=o;function l(y){return t.call(y)===\"[object Number]\"}e.number=l;function c(y,w,x){return t.call(y)===\"[object Number]\"&&w<=y&&y<=x}e.numberRange=c;function p(y){return t.call(y)===\"[object Number]\"&&-2147483648<=y&&y<=2147483647}e.integer=p;function d(y){return t.call(y)===\"[object Number]\"&&0<=y&&y<=2147483647}e.uinteger=d;function m(y){return t.call(y)===\"[object Function]\"}e.func=m;function E(y){return y!==null&&typeof y==\"object\"}e.objectLiteral=E;function b(y,w){return Array.isArray(y)&&y.every(w)}e.typedArray=b})(Ae||(Ae={}));class cS{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\\s\\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let o=null,l=null;return typeof n==\"string\"?(l=new RegExp(n,i?\"i\":\"g\").test(this._sourceText.slice(this._pos,this._pos+n.length)),o=n):n instanceof RegExp&&(l=this._sourceText.slice(this._pos).match(n),o=l==null?void 0:l[0]),l!=null&&(typeof n==\"string\"||l instanceof Array&&this._sourceText.startsWith(l[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),l):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let o=0;for(;i.length>o;)i.charCodeAt(o)===9?r+=2:r++,o++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof t==\"string\"?r=n===t:r=t instanceof RegExp?t.test(n):t(n),r}}function hr(e){return{ofRule:e}}function tn(e,t){return{ofRule:e,isList:!0,separator:t}}function W8(e,t){const n=e.match;return e.match=r=>{let i=!1;return n&&(i=n(r)),i&&t.every(o=>o.match&&!o.match(r))},e}function Yo(e,t){return{style:t,match:n=>n.kind===e}}function yt(e,t){return{style:t||\"punctuation\",match:n=>n.kind===\"Punctuation\"&&n.value===e}}const ED=e=>e===\" \"||e===\"\t\"||e===\",\"||e===`\n`||e===\"\\r\"||e===\"\\uFEFF\"||e===\" \",SD={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:/^#.*/},TD={Document:[tn(\"Definition\")],Definition(e){switch(e.value){case\"{\":return\"ShortQuery\";case\"query\":return\"Query\";case\"mutation\":return\"Mutation\";case\"subscription\":return\"Subscription\";case\"fragment\":return X.FRAGMENT_DEFINITION;case\"schema\":return\"SchemaDef\";case\"scalar\":return\"ScalarDef\";case\"type\":return\"ObjectTypeDef\";case\"interface\":return\"InterfaceDef\";case\"union\":return\"UnionDef\";case\"enum\":return\"EnumDef\";case\"input\":return\"InputDef\";case\"extend\":return\"ExtendDef\";case\"directive\":return\"DirectiveDef\"}},ShortQuery:[\"SelectionSet\"],Query:[Pi(\"query\"),hr(Jn(\"def\")),hr(\"VariableDefinitions\"),tn(\"Directive\"),\"SelectionSet\"],Mutation:[Pi(\"mutation\"),hr(Jn(\"def\")),hr(\"VariableDefinitions\"),tn(\"Directive\"),\"SelectionSet\"],Subscription:[Pi(\"subscription\"),hr(Jn(\"def\")),hr(\"VariableDefinitions\"),tn(\"Directive\"),\"SelectionSet\"],VariableDefinitions:[yt(\"(\"),tn(\"VariableDefinition\"),yt(\")\")],VariableDefinition:[\"Variable\",yt(\":\"),\"Type\",hr(\"DefaultValue\")],Variable:[yt(\"$\",\"variable\"),Jn(\"variable\")],DefaultValue:[yt(\"=\"),\"Value\"],SelectionSet:[yt(\"{\"),tn(\"Selection\"),yt(\"}\")],Selection(e,t){return e.value===\"...\"?t.match(/[\\s\\u00a0,]*(on\\b|@|{)/,!1)?\"InlineFragment\":\"FragmentSpread\":t.match(/[\\s\\u00a0,]*:/,!1)?\"AliasedField\":\"Field\"},AliasedField:[Jn(\"property\"),yt(\":\"),Jn(\"qualifier\"),hr(\"Arguments\"),tn(\"Directive\"),hr(\"SelectionSet\")],Field:[Jn(\"property\"),hr(\"Arguments\"),tn(\"Directive\"),hr(\"SelectionSet\")],Arguments:[yt(\"(\"),tn(\"Argument\"),yt(\")\")],Argument:[Jn(\"attribute\"),yt(\":\"),\"Value\"],FragmentSpread:[yt(\"...\"),Jn(\"def\"),tn(\"Directive\")],InlineFragment:[yt(\"...\"),hr(\"TypeCondition\"),tn(\"Directive\"),\"SelectionSet\"],FragmentDefinition:[Pi(\"fragment\"),hr(W8(Jn(\"def\"),[Pi(\"on\")])),\"TypeCondition\",tn(\"Directive\"),\"SelectionSet\"],TypeCondition:[Pi(\"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:[Yo(\"Number\",\"number\")],StringValue:[{style:\"string\",match:e=>e.kind===\"String\",update(e,t){t.value.startsWith('\"\"\"')&&(e.inBlockstring=!t.value.slice(3).endsWith('\"\"\"'))}}],BooleanValue:[Yo(\"Name\",\"builtin\")],NullValue:[Yo(\"Name\",\"keyword\")],EnumValue:[Jn(\"string-2\")],ListValue:[yt(\"[\"),tn(\"Value\"),yt(\"]\")],ObjectValue:[yt(\"{\"),tn(\"ObjectField\"),yt(\"}\")],ObjectField:[Jn(\"attribute\"),yt(\":\"),\"Value\"],Type(e){return e.value===\"[\"?\"ListType\":\"NonNullType\"},ListType:[yt(\"[\"),\"Type\",yt(\"]\"),hr(yt(\"!\"))],NonNullType:[\"NamedType\",hr(yt(\"!\"))],NamedType:[Y8(\"atom\")],Directive:[yt(\"@\",\"meta\"),Jn(\"meta\"),hr(\"Arguments\")],DirectiveDef:[Pi(\"directive\"),yt(\"@\",\"meta\"),Jn(\"meta\"),hr(\"ArgumentsDef\"),Pi(\"on\"),tn(\"DirectiveLocation\",yt(\"|\"))],InterfaceDef:[Pi(\"interface\"),Jn(\"atom\"),hr(\"Implements\"),tn(\"Directive\"),yt(\"{\"),tn(\"FieldDef\"),yt(\"}\")],Implements:[Pi(\"implements\"),tn(\"NamedType\",yt(\"&\"))],DirectiveLocation:[Jn(\"string-2\")],SchemaDef:[Pi(\"schema\"),tn(\"Directive\"),yt(\"{\"),tn(\"OperationTypeDef\"),yt(\"}\")],OperationTypeDef:[Jn(\"keyword\"),yt(\":\"),Jn(\"atom\")],ScalarDef:[Pi(\"scalar\"),Jn(\"atom\"),tn(\"Directive\")],ObjectTypeDef:[Pi(\"type\"),Jn(\"atom\"),hr(\"Implements\"),tn(\"Directive\"),yt(\"{\"),tn(\"FieldDef\"),yt(\"}\")],FieldDef:[Jn(\"property\"),hr(\"ArgumentsDef\"),yt(\":\"),\"Type\",tn(\"Directive\")],ArgumentsDef:[yt(\"(\"),tn(\"InputValueDef\"),yt(\")\")],InputValueDef:[Jn(\"attribute\"),yt(\":\"),\"Type\",hr(\"DefaultValue\"),tn(\"Directive\")],UnionDef:[Pi(\"union\"),Jn(\"atom\"),tn(\"Directive\"),yt(\"=\"),tn(\"UnionMember\",yt(\"|\"))],UnionMember:[\"NamedType\"],EnumDef:[Pi(\"enum\"),Jn(\"atom\"),tn(\"Directive\"),yt(\"{\"),tn(\"EnumValueDef\"),yt(\"}\")],EnumValueDef:[Jn(\"string-2\"),tn(\"Directive\")],InputDef:[Pi(\"input\"),Jn(\"atom\"),tn(\"Directive\"),yt(\"{\"),tn(\"InputValueDef\"),yt(\"}\")],ExtendDef:[Pi(\"extend\"),\"ExtensionDefinition\"],ExtensionDefinition(e){switch(e.value){case\"schema\":return X.SCHEMA_EXTENSION;case\"scalar\":return X.SCALAR_TYPE_EXTENSION;case\"type\":return X.OBJECT_TYPE_EXTENSION;case\"interface\":return X.INTERFACE_TYPE_EXTENSION;case\"union\":return X.UNION_TYPE_EXTENSION;case\"enum\":return X.ENUM_TYPE_EXTENSION;case\"input\":return X.INPUT_OBJECT_TYPE_EXTENSION}},[X.SCHEMA_EXTENSION]:[\"SchemaDef\"],[X.SCALAR_TYPE_EXTENSION]:[\"ScalarDef\"],[X.OBJECT_TYPE_EXTENSION]:[\"ObjectTypeDef\"],[X.INTERFACE_TYPE_EXTENSION]:[\"InterfaceDef\"],[X.UNION_TYPE_EXTENSION]:[\"UnionDef\"],[X.ENUM_TYPE_EXTENSION]:[\"EnumDef\"],[X.INPUT_OBJECT_TYPE_EXTENSION]:[\"InputDef\"]};function Pi(e){return{style:\"keyword\",match:t=>t.kind===\"Name\"&&t.value===e}}function Jn(e){return{style:e,match:t=>t.kind===\"Name\",update(t,n){t.name=n.value}}}function Y8(e){return{style:e,match:t=>t.kind===\"Name\",update(t,n){var r;!((r=t.prevState)===null||r===void 0)&&r.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function pm(e={eatWhitespace:t=>t.eatWhile(ED),lexRules:SD,parseRules:TD,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return hm(e.parseRules,t,X.DOCUMENT),t},token(t,n){return Q8(t,n,e)}}}function Q8(e,t,n){var r;if(t.inBlockstring)return e.match(/.*\"\"\"/)?(t.inBlockstring=!1,\"string\"):(e.skipToEnd(),\"string\");const{lexRules:i,parseRules:o,eatWhitespace:l,editorConfig:c}=n;if(t.rule&&t.rule.length===0?dS(t):t.needsAdvance&&(t.needsAdvance=!1,pS(t,!0)),e.sol()){const m=(c==null?void 0:c.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/m)}if(l(e))return\"ws\";const p=X8(i,e);if(!p)return e.match(/\\S+/)||e.match(/\\s/),hm(fS,t,\"Invalid\"),\"invalidchar\";if(p.kind===\"Comment\")return hm(fS,t,\"Comment\"),\"comment\";const d=wD({},t);if(p.kind===\"Punctuation\"){if(/^[{([]/.test(p.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\\]]/.test(p.value)){const m=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&m.length>0&&m.at(-1)<t.indentLevel&&(t.indentLevel=m.at(-1))}}for(;t.rule;){let m=typeof t.rule==\"function\"?t.step===0?t.rule(p,e):null:t.rule[t.step];if(t.needsSeparator&&(m=m==null?void 0:m.separator),m){if(m.ofRule&&(m=m.ofRule),typeof m==\"string\"){hm(o,t,m);continue}if(!((r=m.match)===null||r===void 0)&&r.call(m,p))return m.update&&m.update(t,p),p.kind===\"Punctuation\"?pS(t,!0):t.needsAdvance=!0,m.style}K8(t)}return wD(t,d),hm(fS,t,\"Invalid\"),\"invalidchar\"}function wD(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const fS={Invalid:[],Comment:[]};function hm(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 dS(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 pS(e,t){var n;if(xD(e)&&e.rule){const r=e.rule[e.step];if(r.separator){const{separator:i}=r;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&i.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)dS(e),e.rule&&(xD(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function xD(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!=\"string\"&&e.rule[e.step];return t&&t.isList}function K8(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)dS(e);e.rule&&pS(e,!1)}function X8(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}function Ly(e,t){const n=e.split(`\n`),r=pm();let i=r.startState(),o=\"\",l=new cS(\"\");for(let c=0;c<n.length;c++){for(l=new cS(n[c]);!l.eol()&&(o=r.token(l,i),t(l,i,o,c)!==\"BREAK\"););t(l,i,o,c),i.kind||(i=r.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:i,style:o}}var mf;(function(e){e.TYPE_SYSTEM=\"TYPE_SYSTEM\",e.EXECUTABLE=\"EXECUTABLE\",e.UNKNOWN=\"UNKNOWN\"})(mf||(mf={}));const Z8=[X.SCHEMA_DEFINITION,X.OPERATION_TYPE_DEFINITION,X.SCALAR_TYPE_DEFINITION,X.OBJECT_TYPE_DEFINITION,X.INTERFACE_TYPE_DEFINITION,X.UNION_TYPE_DEFINITION,X.ENUM_TYPE_DEFINITION,X.INPUT_OBJECT_TYPE_DEFINITION,X.DIRECTIVE_DEFINITION,X.SCHEMA_EXTENSION,X.SCALAR_TYPE_EXTENSION,X.OBJECT_TYPE_EXTENSION,X.INTERFACE_TYPE_EXTENSION,X.UNION_TYPE_EXTENSION,X.ENUM_TYPE_EXTENSION,X.INPUT_OBJECT_TYPE_EXTENSION],J8=e=>{let t=mf.UNKNOWN;if(e)try{Er(Li(e),{enter(n){if(n.kind===\"Document\"){t=mf.EXECUTABLE;return}return Z8.includes(n.kind)?(t=mf.TYPE_SYSTEM,sf):!1}})}catch{return t}return t};function e9(e,t){return J8(e)}function t9(e,t,n=0){let r=null,i=null,o=null;const l=Ly(e,(c,p,d,m)=>{if(!(m!==t.line||c.getCurrentPosition()+n<t.character+1))return r=d,i=Object.assign({},p),o=c.current(),\"BREAK\"});return{start:l.start,end:l.end,string:o||l.string,state:i||l.state,style:r||l.style}}function n9(e,t,n,r,i){const o=r||t9(e,t,1);if(!o)return null;const l=o.state.kind===\"Invalid\"?o.state.prevState:o.state;if(!l)return null;const c=i9(n,o.state),p=e9(e);return{token:o,state:l,typeInfo:c,mode:p}}function CD(e,t,n){return n===Ta.name&&e.getQueryType()===t?Ta:n===wa.name&&e.getQueryType()===t?wa:n===xa.name&&Qr(t)?xa:\"getFields\"in t?t.getFields()[n]:null}function _D(e,t){const n=[];let r=e;for(;r!=null&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function r9(e){let t;return _D(e,n=>{switch(n.kind){case\"Query\":case\"ShortQuery\":case\"Mutation\":case\"Subscription\":case\"FragmentDefinition\":t=n;break}}),t}function i9(e,t){let n,r,i,o,l,c,p,d,m,E,b;return _D(t,y=>{var w;switch(y.kind){case nt.QUERY:case\"ShortQuery\":E=e.getQueryType();break;case nt.MUTATION:E=e.getMutationType();break;case nt.SUBSCRIPTION:E=e.getSubscriptionType();break;case nt.INLINE_FRAGMENT:case nt.FRAGMENT_DEFINITION:y.type&&(E=e.getType(y.type));break;case nt.FIELD:case nt.ALIASED_FIELD:{!E||!y.name?l=null:(l=m?CD(e,m,y.name):null,E=l?l.type:null);break}case nt.SELECTION_SET:m=mn(E);break;case nt.DIRECTIVE:i=y.name?e.getDirective(y.name):null;break;case nt.INTERFACE_DEF:y.name&&(p=null,b=new so({name:y.name,interfaces:[],fields:{}}));break;case nt.OBJECT_TYPE_DEF:y.name&&(b=null,p=new ii({name:y.name,interfaces:[],fields:{}}));break;case nt.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){case nt.FIELD:r=l&&l.args;break;case nt.DIRECTIVE:r=i&&i.args;break;case nt.ALIASED_FIELD:{const O=(w=y.prevState)===null||w===void 0?void 0:w.name;if(!O){r=null;break}const _=m?CD(e,m,O):null;if(!_){r=null;break}r=_.args;break}default:r=null;break}else r=null;break}case nt.ARGUMENT:if(r){for(let O=0;O<r.length;O++)if(r[O].name===y.name){n=r[O];break}}c=n==null?void 0:n.type;break;case nt.VARIABLE_DEFINITION:case nt.VARIABLE:E=c;break;case nt.ENUM_VALUE:const x=mn(c);o=x instanceof Qi?x.getValues().find(O=>O.value===y.name):null;break;case nt.LIST_VALUE:const k=Fu(c);c=k instanceof ur?k.ofType:null;break;case nt.OBJECT_VALUE:const N=mn(c);d=N instanceof lo?N.getFields():null;break;case nt.OBJECT_FIELD:const A=y.name&&d?d[y.name]:null;c=A==null?void 0:A.type,l=A,E=l?l.type:null;break;case nt.NAMED_TYPE:y.name&&(E=e.getType(y.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:l,inputType:c,objectFieldDefs:d,parentType:m,type:E,interfaceDef:b,objectTypeDef:p}}const o9={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\"},nt=Object.assign(Object.assign({},X),o9);var un;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(un||(un={}));const hS={command:\"editor.action.triggerSuggest\",title:\"Suggestions\"},a9=e=>{const t=[];if(e)try{Er(Li(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function s9(e,t,n,r,i,o){var l;const c=Object.assign(Object.assign({},o),{schema:e}),p=n9(t,n,e,r);if(!p)return[];const{state:d,typeInfo:m,mode:E,token:b}=p,{kind:y,step:w,prevState:x}=d;if(y===nt.DOCUMENT)return E===mf.TYPE_SYSTEM?l9(b):E===mf.EXECUTABLE?u9(b):c9(b);if(y===nt.EXTEND_DEF)return f9(b);if(((l=x==null?void 0:x.prevState)===null||l===void 0?void 0:l.kind)===nt.EXTENSION_DEFINITION&&d.name)return cr(b,[]);if((x==null?void 0:x.kind)===X.SCALAR_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(Ii).map(N=>({label:N.name,kind:un.Function})));if((x==null?void 0:x.kind)===X.OBJECT_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(N=>At(N)&&!N.name.startsWith(\"__\")).map(N=>({label:N.name,kind:un.Function})));if((x==null?void 0:x.kind)===X.INTERFACE_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(Rt).map(N=>({label:N.name,kind:un.Function})));if((x==null?void 0:x.kind)===X.UNION_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(sr).map(N=>({label:N.name,kind:un.Function})));if((x==null?void 0:x.kind)===X.ENUM_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(N=>zn(N)&&!N.name.startsWith(\"__\")).map(N=>({label:N.name,kind:un.Function})));if((x==null?void 0:x.kind)===X.INPUT_OBJECT_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(rn).map(N=>({label:N.name,kind:un.Function})));if(y===nt.IMPLEMENTS||y===nt.NAMED_TYPE&&(x==null?void 0:x.kind)===nt.IMPLEMENTS)return h9(b,d,e,t,m);if(y===nt.SELECTION_SET||y===nt.FIELD||y===nt.ALIASED_FIELD)return d9(b,m,c);if(y===nt.ARGUMENTS||y===nt.ARGUMENT&&w===0){const{argDefs:N}=m;if(N)return cr(b,N.map(A=>{var O;return{label:A.name,insertText:EO(A.name+\": \",A.type),insertTextMode:hf.adjustIndentation,insertTextFormat:zd.Snippet,command:hS,labelDetails:{detail:\" \"+String(A.type)},documentation:(O=A.description)!==null&&O!==void 0?O:void 0,kind:un.Variable,type:A.type}}))}if((y===nt.OBJECT_VALUE||y===nt.OBJECT_FIELD&&w===0)&&m.objectFieldDefs){const N=pf(m.objectFieldDefs),A=y===nt.OBJECT_VALUE?un.Value:un.Field;return cr(b,N.map(O=>{var _;return{label:O.name,detail:String(O.type),documentation:(_=O==null?void 0:O.description)!==null&&_!==void 0?_:void 0,kind:A,type:O.type,insertText:EO(O.name+\": \",O.type),insertTextMode:hf.adjustIndentation,insertTextFormat:zd.Snippet,command:hS}}))}if(y===nt.ENUM_VALUE||y===nt.LIST_VALUE&&w===1||y===nt.OBJECT_FIELD&&w===2||y===nt.ARGUMENT&&w===2)return p9(b,m,t,e);if(y===nt.VARIABLE&&w===1){const N=mn(m.inputType),A=AD(t,e,b);return cr(b,A.filter(O=>O.detail===(N==null?void 0:N.name)))}if(y===nt.TYPE_CONDITION&&w===1||y===nt.NAMED_TYPE&&x!=null&&x.kind===nt.TYPE_CONDITION)return m9(b,m,e);if(y===nt.FRAGMENT_SPREAD&&w===1)return g9(b,m,e,t,Array.isArray(i)?i:a9(i));const k=OD(d);return k.kind===nt.FIELD_DEF?cr(b,Object.values(e.getTypeMap()).filter(N=>Rl(N)&&!N.name.startsWith(\"__\")).map(N=>({label:N.name,kind:un.Function,insertText:N.name,insertTextMode:hf.adjustIndentation}))):k.kind===nt.INPUT_VALUE_DEF&&w===2?cr(b,Object.values(e.getTypeMap()).filter(N=>Fi(N)&&!N.name.startsWith(\"__\")).map(N=>({label:N.name,kind:un.Function,insertText:N.name,insertTextMode:hf.adjustIndentation,insertTextFormat:zd.Snippet}))):y===nt.VARIABLE_DEFINITION&&w===2||y===nt.LIST_TYPE&&w===1||y===nt.NAMED_TYPE&&x&&(x.kind===nt.VARIABLE_DEFINITION||x.kind===nt.LIST_TYPE||x.kind===nt.NON_NULL_TYPE)?b9(b,e):y===nt.DIRECTIVE?E9(b,d,e):y===nt.DIRECTIVE_DEF?S9(b,d,e):[]}const mS=[{label:\"type\",kind:un.Function},{label:\"interface\",kind:un.Function},{label:\"union\",kind:un.Function},{label:\"input\",kind:un.Function},{label:\"scalar\",kind:un.Function},{label:\"schema\",kind:un.Function}],ND=[{label:\"query\",kind:un.Function},{label:\"mutation\",kind:un.Function},{label:\"subscription\",kind:un.Function},{label:\"fragment\",kind:un.Function},{label:\"{\",kind:un.Constructor}];function l9(e){return cr(e,[{label:\"extend\",kind:un.Function},...mS])}function u9(e){return cr(e,ND)}function c9(e){return cr(e,[{label:\"extend\",kind:un.Function},...ND,...mS])}function f9(e){return cr(e,mS)}function d9(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return\"getFields\"in i&&(o=pf(i.getFields())),Qr(i)&&o.push(xa),i===((r=n==null?void 0:n.schema)===null||r===void 0?void 0:r.getQueryType())&&o.push(Ta,wa),cr(e,o.map((l,c)=>{var p;const d={sortText:String(c)+l.name,label:l.name,detail:String(l.type),documentation:(p=l.description)!==null&&p!==void 0?p:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:un.Field,labelDetails:{detail:\" \"+l.type.toString()},type:l.type};return n!=null&&n.fillLeafsOnComplete&&(d.insertText=H8(l),d.insertText||(d.insertText=Ay(l.name,l.type,l.name+(e.state.needsAdvance?\"\":`\n`))),d.insertText&&(d.insertTextFormat=zd.Snippet,d.insertTextMode=hf.adjustIndentation,d.command=hS)),d}))}return[]}function p9(e,t,n,r){const i=mn(t.inputType),o=AD(n,r,e).filter(l=>l.detail===(i==null?void 0:i.name));if(i instanceof Qi){const l=i.getValues();return cr(e,l.map(c=>{var p;return{label:c.name,detail:String(i),documentation:(p=c.description)!==null&&p!==void 0?p:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:un.EnumMember,type:i}}).concat(o))}return i===Zn?cr(e,o.concat([{label:\"true\",detail:String(Zn),documentation:\"Not false.\",kind:un.Variable,type:Zn},{label:\"false\",detail:String(Zn),documentation:\"Not true.\",kind:un.Variable,type:Zn}])):o}function h9(e,t,n,r,i){if(t.needsSeparator)return[];const o=n.getTypeMap(),l=pf(o).filter(Rt),c=l.map(({name:y})=>y),p=new Set;Ly(r,(y,w)=>{var x,k,N,A,O;if(w.name&&(w.kind===nt.INTERFACE_DEF&&!c.includes(w.name)&&p.add(w.name),w.kind===nt.NAMED_TYPE&&((x=w.prevState)===null||x===void 0?void 0:x.kind)===nt.IMPLEMENTS)){if(i.interfaceDef){if((k=i.interfaceDef)===null||k===void 0?void 0:k.getInterfaces().find(({name:P})=>P===w.name))return;const M=n.getType(w.name),V=(N=i.interfaceDef)===null||N===void 0?void 0:N.toConfig();i.interfaceDef=new so(Object.assign(Object.assign({},V),{interfaces:[...V.interfaces,M||new so({name:w.name,fields:{}})]}))}else if(i.objectTypeDef){if((A=i.objectTypeDef)===null||A===void 0?void 0:A.getInterfaces().find(({name:P})=>P===w.name))return;const M=n.getType(w.name),V=(O=i.objectTypeDef)===null||O===void 0?void 0:O.toConfig();i.objectTypeDef=new ii(Object.assign(Object.assign({},V),{interfaces:[...V.interfaces,M||new so({name:w.name,fields:{}})]}))}}});const d=i.interfaceDef||i.objectTypeDef,E=((d==null?void 0:d.getInterfaces())||[]).map(({name:y})=>y),b=l.concat([...p].map(y=>({name:y}))).filter(({name:y})=>y!==(d==null?void 0:d.name)&&!E.includes(y));return cr(e,b.map(y=>{const w={label:y.name,kind:un.Interface,type:y};return y!=null&&y.description&&(w.documentation=y.description),w}))}function m9(e,t,n,r){let i;if(t.parentType)if(lr(t.parentType)){const o=AN(t.parentType),l=n.getPossibleTypes(o),c=Object.create(null);for(const p of l)for(const d of p.getInterfaces())c[d.name]=d;i=l.concat(pf(c))}else i=[t.parentType];else{const o=n.getTypeMap();i=pf(o).filter(l=>Qr(l)&&!l.name.startsWith(\"__\"))}return cr(e,i.map(o=>{const l=mn(o);return{label:String(o),documentation:(l==null?void 0:l.description)||\"\",kind:un.Field}}))}function g9(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),l=r9(e.state),c=y9(r);i&&i.length>0&&c.push(...i);const p=c.filter(d=>o[d.typeCondition.name.value]&&!(l&&l.kind===nt.FRAGMENT_DEFINITION&&l.name===d.name.value)&&Qr(t.parentType)&&Qr(o[d.typeCondition.name.value])&&Kh(n,t.parentType,o[d.typeCondition.name.value]));return cr(e,p.map(d=>({label:d.name.value,detail:String(o[d.typeCondition.name.value]),documentation:`fragment ${d.name.value} on ${d.typeCondition.name.value}`,labelDetails:{detail:`fragment ${d.name.value} on ${d.typeCondition.name.value}`},kind:un.Field,type:o[d.typeCondition.name.value]})))}const v9=(e,t)=>{var n,r,i,o,l,c,p,d,m,E;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((i=(r=e.prevState)===null||r===void 0?void 0:r.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((c=(l=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||l===void 0?void 0:l.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((E=(m=(d=(p=e.prevState)===null||p===void 0?void 0:p.prevState)===null||d===void 0?void 0:d.prevState)===null||m===void 0?void 0:m.prevState)===null||E===void 0?void 0:E.kind)===t)return e.prevState.prevState.prevState.prevState};function AD(e,t,n){let r=null,i;const o=Object.create({});return Ly(e,(l,c)=>{var p;if((c==null?void 0:c.kind)===nt.VARIABLE&&c.name&&(r=c.name),(c==null?void 0:c.kind)===nt.NAMED_TYPE&&r){const d=v9(c,nt.TYPE);d!=null&&d.type&&(i=t.getType(d==null?void 0:d.type))}if(r&&i&&!o[r]){const d=n.string===\"$\"||((p=n==null?void 0:n.state)===null||p===void 0?void 0:p.kind)===\"Variable\"?r:\"$\"+r;o[r]={detail:i.toString(),insertText:d,label:\"$\"+r,rawInsert:d,type:i,kind:un.Variable},r=null,i=null}}),pf(o)}function y9(e){const t=[];return Ly(e,(n,r)=>{r.kind===nt.FRAGMENT_DEFINITION&&r.name&&r.type&&t.push({kind:nt.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:r.name},selectionSet:{kind:nt.SELECTION_SET,selections:[]},typeCondition:{kind:nt.NAMED_TYPE,name:{kind:X.NAME,value:r.type}}})}),t}function b9(e,t,n){const r=t.getTypeMap(),i=pf(r).filter(Fi);return cr(e,i.map(o=>({label:o.name,documentation:(o==null?void 0:o.description)||\"\",kind:un.Variable})))}function E9(e,t,n,r){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){const o=n.getDirectives().filter(l=>T9(t.prevState,l));return cr(e,o.map(l=>({label:l.name,documentation:(l==null?void 0:l.description)||\"\",kind:un.Function})))}return[]}function S9(e,t,n,r){const i=n.getDirectives().find(o=>o.name===t.name);return cr(e,(i==null?void 0:i.args.map(o=>({label:o.name,documentation:o.description||\"\",kind:un.Field})))||[])}function T9(e,t){if(!(e!=null&&e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case nt.QUERY:return i.includes(ct.QUERY);case nt.MUTATION:return i.includes(ct.MUTATION);case nt.SUBSCRIPTION:return i.includes(ct.SUBSCRIPTION);case nt.FIELD:case nt.ALIASED_FIELD:return i.includes(ct.FIELD);case nt.FRAGMENT_DEFINITION:return i.includes(ct.FRAGMENT_DEFINITION);case nt.FRAGMENT_SPREAD:return i.includes(ct.FRAGMENT_SPREAD);case nt.INLINE_FRAGMENT:return i.includes(ct.INLINE_FRAGMENT);case nt.SCHEMA_DEF:return i.includes(ct.SCHEMA);case nt.SCALAR_DEF:return i.includes(ct.SCALAR);case nt.OBJECT_TYPE_DEF:return i.includes(ct.OBJECT);case nt.FIELD_DEF:return i.includes(ct.FIELD_DEFINITION);case nt.INTERFACE_DEF:return i.includes(ct.INTERFACE);case nt.UNION_DEF:return i.includes(ct.UNION);case nt.ENUM_DEF:return i.includes(ct.ENUM);case nt.ENUM_VALUE:return i.includes(ct.ENUM_VALUE);case nt.INPUT_DEF:return i.includes(ct.INPUT_OBJECT);case nt.INPUT_VALUE_DEF:switch(r==null?void 0:r.kind){case nt.ARGUMENTS_DEF:return i.includes(ct.ARGUMENT_DEFINITION);case nt.INPUT_DEF:return i.includes(ct.INPUT_FIELD_DEFINITION)}}return!1}function OD(e){return e.prevState&&e.kind&&[nt.NAMED_TYPE,nt.LIST_TYPE,nt.TYPE,nt.NON_NULL_TYPE].includes(e.kind)?OD(e.prevState):e}var mm={exports:{}},DD;function w9(){if(DD)return mm.exports;DD=1;function e(t,n){if(t!=null)return t;var r=new Error(n!==void 0?n:\"Got unexpected \"+t);throw r.framesToPop=1,r}return mm.exports=e,mm.exports.default=e,Object.defineProperty(mm.exports,\"__esModule\",{value:!0}),mm.exports}var x9=w9();const kD=Mu(x9),C9=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;Er(e,{FragmentDefinition(l){n.set(l.name.value,!0)},FragmentSpread(l){r.has(l.name.value)||r.add(l.name.value)}});const i=new Set;for(const l of r)!n.has(l)&&t.has(l)&&i.add(kD(t.get(l)));const o=[];for(const l of i)Er(l,{FragmentSpread(c){!r.has(c.name.value)&&t.get(c.name.value)&&(i.add(kD(t.get(c.name.value))),r.add(c.name.value))}}),n.has(l.name.value)||o.push(l);return o};class RD{constructor(t,n){this.containsPosition=r=>this.start.line===r.line?this.start.character<=r.character:this.end.line===r.line?this.end.character>=r.character:this.start.line<=r.line&&this.end.line>=r.line,this.start=t,this.end=n}setStart(t,n){this.start=new gf(t,n)}setEnd(t,n){this.end=new gf(t,n)}}class gf{constructor(t,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=t,this.character=n}setLine(t){this.line=t}setCharacter(t){this.character=t}}function _9(e,t,n,r,i){const o=PE.filter(c=>!(c===_E||c===wE));return n&&Array.prototype.push.apply(o,n),sm(e,t,o).filter(c=>{if(c.message.includes(\"Unknown directive\")&&c.nodes){const p=c.nodes[0];if(p&&p.kind===X.DIRECTIVE){const d=p.name.value;if(d===\"arguments\"||d===\"argumentDefinitions\")return!1}}return!0})}function N9(e,t){const n=Object.create(null);for(const r of t.definitions)if(r.kind===\"OperationDefinition\"){const{variableDefinitions:i}=r;if(i)for(const{variable:o,type:l}of i){const c=Si(e,l);c?n[o.name.value]=c:l.kind===X.NAMED_TYPE&&l.name.value===\"Float\"&&(n[o.name.value]=Zh)}}return n}function A9(e,t){const n=t?N9(t,e):void 0,r=[];return Er(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function O9(e,t){if(t)try{const n=Li(t);return Object.assign(Object.assign({},A9(n,e)),{documentAST:n})}catch{return}}const MD={Error:\"Error\",Warning:\"Warning\"},gS={[MD.Error]:1,[MD.Warning]:2},Iy=(e,t)=>{if(!e)throw new Error(t)};function D9(e,t=null,n,r,i){var o,l;let c=null,p=\"\";i&&(p=typeof i==\"string\"?i:i.reduce((m,E)=>m+dn(E)+`\n\n`,\"\"));const d=p?`${e}\n\n${p}`:e;try{c=Li(d)}catch(m){if(m instanceof Me){const E=R9((l=(o=m.locations)===null||o===void 0?void 0:o[0])!==null&&l!==void 0?l:{line:0},d);return[{severity:gS.Error,message:m.message,source:\"GraphQL: Syntax\",range:E}]}throw m}return k9(c,t,n)}function k9(e,t=null,n,r){if(!t)return[];const i=_9(t,e,n).flatMap(l=>LD(l,gS.Error,\"Validation\")),o=sm(t,e,[HA]).flatMap(l=>LD(l,gS.Warning,\"Deprecation\"));return i.concat(o)}function LD(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const l=o.kind!==\"Variable\"&&\"name\"in o&&o.name!==void 0?o.name:\"variable\"in o&&o.variable!==void 0?o.variable:o;if(l){Iy(e.locations,\"GraphQL validation error requires locations.\");const c=e.locations[i],p=M9(l),d=c.column+(p.end-p.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new RD(new gf(c.line-1,c.column-1),new gf(c.line-1,d))})}}return r}function R9(e,t){const n=pm(),r=n.startState(),i=t.split(`\n`);Iy(i.length>=e.line,\"Query text must have more lines than where the error happened\");let o=null;for(let d=0;d<e.line;d++)for(o=new cS(i[d]);!o.eol()&&n.token(o,r)!==\"invalidchar\";);Iy(o,\"Expected Parser stream to be available.\");const l=e.line-1,c=o.getStartOfToken(),p=o.getCurrentPosition();return new RD(new gf(l,c),new gf(l,p))}function M9(e){const n=e.loc;return Iy(n,\"Expected ASTNode to have a location.\"),n}const{INLINE_FRAGMENT:Cie}=X;/*!\n * is-primitive <https://github.com/jonschlinkert/is-primitive>\n *\n * Copyright (c) 2014-present, Jon Schlinkert.\n * Released under the MIT License.\n */var vS,ID;function L9(){return ID||(ID=1,vS=function(t){return typeof t==\"object\"?t===null:typeof t!=\"function\"}),vS}/*!\n * isobject <https://github.com/jonschlinkert/isobject>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */var yS,FD;function I9(){return FD||(FD=1,yS=function(t){return t!=null&&typeof t==\"object\"&&Array.isArray(t)===!1}),yS}/*!\n * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */var bS,PD;function F9(){if(PD)return bS;PD=1;var e=I9();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)===\"[object Object]\"}return bS=function(r){var i,o;return!(t(r)===!1||(i=r.constructor,typeof i!=\"function\")||(o=i.prototype,t(o)===!1)||o.hasOwnProperty(\"isPrototypeOf\")===!1)},bS}/*!\n * set-value <https://github.com/jonschlinkert/set-value>\n *\n * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).\n * Released under the MIT License.\n */var ES,jD;function P9(){if(jD)return ES;jD=1;const{deleteProperty:e}=Reflect,t=L9(),n=F9(),r=y=>typeof y==\"object\"&&y!==null||typeof y==\"function\",i=y=>y===\"__proto__\"||y===\"constructor\"||y===\"prototype\",o=y=>{if(!t(y))throw new TypeError(\"Object keys must be strings or symbols\");if(i(y))throw new Error(`Cannot set unsafe key: \"${y}\"`)},l=y=>Array.isArray(y)?y.flat().map(String).join(\",\"):y,c=(y,w)=>{if(typeof y!=\"string\"||!w)return y;let x=y+\";\";return w.arrays!==void 0&&(x+=`arrays=${w.arrays};`),w.separator!==void 0&&(x+=`separator=${w.separator};`),w.split!==void 0&&(x+=`split=${w.split};`),w.merge!==void 0&&(x+=`merge=${w.merge};`),w.preservePaths!==void 0&&(x+=`preservePaths=${w.preservePaths};`),x},p=(y,w,x)=>{const k=l(w?c(y,w):y);o(k);const N=b.cache.get(k)||x();return b.cache.set(k,N),N},d=(y,w={})=>{const x=w.separator||\".\",k=x===\"/\"?!1:w.preservePaths;if(typeof y==\"string\"&&k!==!1&&/\\//.test(y))return[y];const N=[];let A=\"\";const O=_=>{let M;_.trim()!==\"\"&&Number.isInteger(M=Number(_))?N.push(M):N.push(_)};for(let _=0;_<y.length;_++){const M=y[_];if(M===\"\\\\\"){A+=y[++_];continue}if(M===x){O(A),A=\"\";continue}A+=M}return A&&O(A),N},m=(y,w)=>w&&typeof w.split==\"function\"?w.split(y):typeof y==\"symbol\"?[y]:Array.isArray(y)?y:p(y,w,()=>d(y,w)),E=(y,w,x,k)=>{if(o(w),x===void 0)e(y,w);else if(k&&k.merge){const N=k.merge===\"function\"?k.merge:Object.assign;N&&n(y[w])&&n(x)?y[w]=N(y[w],x):y[w]=x}else y[w]=x;return y},b=(y,w,x,k)=>{if(!w||!r(y))return y;const N=m(w,k);let A=y;for(let O=0;O<N.length;O++){const _=N[O],M=N[O+1];if(o(_),M===void 0){E(A,_,x,k);break}if(typeof M==\"number\"&&!Array.isArray(A[_])){A=A[_]=[];continue}r(A[_])||(A[_]={}),A=A[_]}return y};return b.split=m,b.cache=new Map,b.clear=()=>{b.cache=new Map},ES=b,ES}var j9=P9();const V9=Mu(j9);var SS,VD;function U9(){return VD||(VD=1,SS=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case\"INPUT\":case\"TEXTAREA\":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===\"Caret\"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),SS}var TS,UD;function q9(){if(UD)return TS;UD=1;var e=U9(),t={\"text/plain\":\"Text\",\"text/html\":\"Url\",default:\"Text\"},n=\"Copy to clipboard: #{key}, Enter\";function r(o){var l=(/mac os x/i.test(navigator.userAgent)?\"⌘\":\"Ctrl\")+\"+C\";return o.replace(/#{\\s*key\\s*}/g,l)}function i(o,l){var c,p,d,m,E,b,y=!1;l||(l={}),c=l.debug||!1;try{d=e(),m=document.createRange(),E=document.getSelection(),b=document.createElement(\"span\"),b.textContent=o,b.ariaHidden=\"true\",b.style.all=\"unset\",b.style.position=\"fixed\",b.style.top=0,b.style.clip=\"rect(0, 0, 0, 0)\",b.style.whiteSpace=\"pre\",b.style.webkitUserSelect=\"text\",b.style.MozUserSelect=\"text\",b.style.msUserSelect=\"text\",b.style.userSelect=\"text\",b.addEventListener(\"copy\",function(x){if(x.stopPropagation(),l.format)if(x.preventDefault(),typeof x.clipboardData>\"u\"){c&&console.warn(\"unable to use e.clipboardData\"),c&&console.warn(\"trying IE specific stuff\"),window.clipboardData.clearData();var k=t[l.format]||t.default;window.clipboardData.setData(k,o)}else x.clipboardData.clearData(),x.clipboardData.setData(l.format,o);l.onCopy&&(x.preventDefault(),l.onCopy(x.clipboardData))}),document.body.appendChild(b),m.selectNodeContents(b),E.addRange(m);var w=document.execCommand(\"copy\");if(!w)throw new Error(\"copy command was unsuccessful\");y=!0}catch(x){c&&console.error(\"unable to copy using execCommand: \",x),c&&console.warn(\"trying IE specific stuff\");try{window.clipboardData.setData(l.format||\"text\",o),l.onCopy&&l.onCopy(window.clipboardData),y=!0}catch(k){c&&console.error(\"unable to copy using clipboardData: \",k),c&&console.error(\"falling back to prompt\"),p=r(\"message\"in l?l.message:n),window.prompt(p,o)}}finally{E&&(typeof E.removeRange==\"function\"?E.removeRange(m):E.removeAllRanges()),b&&document.body.removeChild(b),d()}return y}return TS=i,TS}var B9=q9();const $9=Mu(B9);function qt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function qD(e,t){if(typeof e==\"function\")return e(t);e!=null&&(e.current=t)}function Fy(...e){return t=>{let n=!1;const r=e.map(i=>{const o=qD(i,t);return!n&&typeof o==\"function\"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o==\"function\"?o():qD(e[i],null)}}}}function oi(...e){return L.useCallback(Fy(...e),e)}function z9(e,t){const n=L.createContext(t),r=o=>{const{children:l,...c}=o,p=L.useMemo(()=>c,Object.values(c));return Y.jsx(n.Provider,{value:p,children:l})};r.displayName=e+\"Provider\";function i(o){const l=L.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\\`${o}\\` must be used within \\`${e}\\``)}return[r,i]}function vf(e,t=[]){let n=[];function r(o,l){const c=L.createContext(l),p=n.length;n=[...n,l];const d=E=>{var N;const{scope:b,children:y,...w}=E,x=((N=b==null?void 0:b[e])==null?void 0:N[p])||c,k=L.useMemo(()=>w,Object.values(w));return Y.jsx(x.Provider,{value:k,children:y})};d.displayName=o+\"Provider\";function m(E,b){var x;const y=((x=b==null?void 0:b[e])==null?void 0:x[p])||c,w=L.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\\`${E}\\` must be used within \\`${o}\\``)}return[d,m]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(c){const p=(c==null?void 0:c[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...c,[e]:p}}),[c,p])}};return i.scopeName=e,[r,H9(i,...t)]}function H9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((c,{useScope:p,scopeName:d})=>{const E=p(o)[`__scope${d}`];return{...c,...E}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var yf=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},G9=G1.useId||(()=>{}),W9=0;function bf(e){const[t,n]=L.useState(G9());return yf(()=>{n(r=>r??String(W9++))},[e]),t?`radix-${t}`:\"\"}function es(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Py({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Y9({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,c=es(n),p=L.useCallback(d=>{if(o){const E=typeof d==\"function\"?d(e):d;E!==e&&c(E)}else i(d)},[o,e,i,c]);return[l,p]}function Y9({defaultProp:e,onChange:t}){const n=L.useState(e),[r]=n,i=L.useRef(r),o=es(t);return L.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var jy=nN();const wS=Mu(jy);var Hd=L.forwardRef((e,t)=>{const{children:n,...r}=e,i=L.Children.toArray(n),o=i.find(Q9);if(o){const l=o.props.children,c=i.map(p=>p===o?L.Children.count(l)>1?L.Children.only(null):L.isValidElement(l)?l.props.children:null:p);return Y.jsx(xS,{...r,ref:t,children:L.isValidElement(l)?L.cloneElement(l,void 0,c):null})}return Y.jsx(xS,{...r,ref:t,children:n})});Hd.displayName=\"Slot\";var xS=L.forwardRef((e,t)=>{const{children:n,...r}=e;if(L.isValidElement(n)){const i=X9(n),o=K9(r,n.props);return n.type!==L.Fragment&&(o.ref=t?Fy(t,i):i),L.cloneElement(n,o)}return L.Children.count(n)>1?L.Children.only(null):null});xS.displayName=\"SlotClone\";var BD=({children:e})=>Y.jsx(Y.Fragment,{children:e});function Q9(e){return L.isValidElement(e)&&e.type===BD}function K9(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...c)=>{o(...c),i(...c)}:i&&(n[r]=i):r===\"style\"?n[r]={...i,...o}:r===\"className\"&&(n[r]=[i,o].filter(Boolean).join(\" \"))}return{...e,...n}}function X9(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,\"ref\"))==null?void 0:r.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,\"ref\"))==null?void 0:i.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Z9=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"span\",\"svg\",\"ul\"],kr=Z9.reduce((e,t)=>{const n=L.forwardRef((r,i)=>{const{asChild:o,...l}=r,c=o?Hd:t;return typeof window<\"u\"&&(window[Symbol.for(\"radix-ui\")]=!0),Y.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $D(e,t){e&&jy.flushSync(()=>e.dispatchEvent(t))}function J9(e,t=globalThis==null?void 0:globalThis.document){const n=es(e);L.useEffect(()=>{const r=i=>{i.key===\"Escape\"&&n(i)};return t.addEventListener(\"keydown\",r,{capture:!0}),()=>t.removeEventListener(\"keydown\",r,{capture:!0})},[n,t])}var e7=\"DismissableLayer\",CS=\"dismissableLayer.update\",t7=\"dismissableLayer.pointerDownOutside\",n7=\"dismissableLayer.focusOutside\",zD,HD=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vy=L.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...p}=e,d=L.useContext(HD),[m,E]=L.useState(null),b=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=L.useState({}),w=oi(t,P=>E(P)),x=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=x.indexOf(k),A=m?x.indexOf(m):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,_=A>=N,M=o7(P=>{const F=P.target,j=[...d.branches].some(q=>q.contains(F));!_||j||(i==null||i(P),l==null||l(P),P.defaultPrevented||c==null||c())},b),V=a7(P=>{const F=P.target;[...d.branches].some(q=>q.contains(F))||(o==null||o(P),l==null||l(P),P.defaultPrevented||c==null||c())},b);return J9(P=>{A===d.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},b),L.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(zD=b.body.style.pointerEvents,b.body.style.pointerEvents=\"none\"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),GD(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=zD)}},[m,b,n,d]),L.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),GD())},[m,d]),L.useEffect(()=>{const P=()=>y({});return document.addEventListener(CS,P),()=>document.removeEventListener(CS,P)},[]),Y.jsx(kr.div,{...p,ref:w,style:{pointerEvents:O?_?\"auto\":\"none\":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,V.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,M.onPointerDownCapture)})});Vy.displayName=e7;var r7=\"DismissableLayerBranch\",i7=L.forwardRef((e,t)=>{const n=L.useContext(HD),r=L.useRef(null),i=oi(t,r);return L.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),Y.jsx(kr.div,{...e,ref:i})});i7.displayName=r7;function o7(e,t=globalThis==null?void 0:globalThis.document){const n=es(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let p=function(){WD(t7,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType===\"touch\"?(t.removeEventListener(\"click\",i.current),i.current=p,t.addEventListener(\"click\",i.current,{once:!0})):p()}else t.removeEventListener(\"click\",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener(\"pointerdown\",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener(\"pointerdown\",o),t.removeEventListener(\"click\",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a7(e,t=globalThis==null?void 0:globalThis.document){const n=es(e),r=L.useRef(!1);return L.useEffect(()=>{const i=o=>{o.target&&!r.current&&WD(n7,n,{originalEvent:o},{discrete:!1})};return t.addEventListener(\"focusin\",i),()=>t.removeEventListener(\"focusin\",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function GD(){const e=new CustomEvent(CS);document.dispatchEvent(e)}function WD(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?$D(i,o):i.dispatchEvent(o)}var _S=\"focusScope.autoFocusOnMount\",NS=\"focusScope.autoFocusOnUnmount\",YD={bubbles:!1,cancelable:!0},s7=\"FocusScope\",AS=L.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[c,p]=L.useState(null),d=es(i),m=es(o),E=L.useRef(null),b=oi(t,x=>p(x)),y=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let x=function(O){if(y.paused||!c)return;const _=O.target;c.contains(_)?E.current=_:Bu(E.current,{select:!0})},k=function(O){if(y.paused||!c)return;const _=O.relatedTarget;_!==null&&(c.contains(_)||Bu(E.current,{select:!0}))},N=function(O){if(document.activeElement===document.body)for(const M of O)M.removedNodes.length>0&&Bu(c)};document.addEventListener(\"focusin\",x),document.addEventListener(\"focusout\",k);const A=new MutationObserver(N);return c&&A.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(\"focusin\",x),document.removeEventListener(\"focusout\",k),A.disconnect()}}},[r,c,y.paused]),L.useEffect(()=>{if(c){XD.add(y);const x=document.activeElement;if(!c.contains(x)){const N=new CustomEvent(_S,YD);c.addEventListener(_S,d),c.dispatchEvent(N),N.defaultPrevented||(l7(p7(QD(c)),{select:!0}),document.activeElement===x&&Bu(c))}return()=>{c.removeEventListener(_S,d),setTimeout(()=>{const N=new CustomEvent(NS,YD);c.addEventListener(NS,m),c.dispatchEvent(N),N.defaultPrevented||Bu(x??document.body,{select:!0}),c.removeEventListener(NS,m),XD.remove(y)},0)}}},[c,d,m,y]);const w=L.useCallback(x=>{if(!n&&!r||y.paused)return;const k=x.key===\"Tab\"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,N=document.activeElement;if(k&&N){const A=x.currentTarget,[O,_]=u7(A);O&&_?!x.shiftKey&&N===_?(x.preventDefault(),n&&Bu(O,{select:!0})):x.shiftKey&&N===O&&(x.preventDefault(),n&&Bu(_,{select:!0})):N===A&&x.preventDefault()}},[n,r,y.paused]);return Y.jsx(kr.div,{tabIndex:-1,...l,ref:b,onKeyDown:w})});AS.displayName=s7;function l7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bu(r,{select:t}),document.activeElement!==n)return}function u7(e){const t=QD(e),n=KD(t,e),r=KD(t.reverse(),e);return[n,r]}function QD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName===\"INPUT\"&&r.type===\"hidden\";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function KD(e,t){for(const n of e)if(!c7(n,{upTo:t}))return n}function c7(e,{upTo:t}){if(getComputedStyle(e).visibility===\"hidden\")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===\"none\")return!0;e=e.parentElement}return!1}function f7(e){return e instanceof HTMLInputElement&&\"select\"in e}function Bu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&f7(e)&&t&&e.select()}}var XD=d7();function d7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ZD(e,t),e.unshift(t)},remove(t){var n;e=ZD(e,t),(n=e[0])==null||n.resume()}}}function ZD(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function p7(e){return e.filter(t=>t.tagName!==\"A\")}var h7=\"Portal\",Uy=L.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,o]=L.useState(!1);yf(()=>o(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?wS.createPortal(Y.jsx(kr.div,{...r,ref:t}),l):null});Uy.displayName=h7;function m7(e,t){return L.useReducer((n,r)=>t[n][r]??n,e)}var Vs=e=>{const{present:t,children:n}=e,r=g7(t),i=typeof n==\"function\"?n({present:r.isPresent}):L.Children.only(n),o=oi(r.ref,v7(i));return typeof n==\"function\"||r.isPresent?L.cloneElement(i,{ref:o}):null};Vs.displayName=\"Presence\";function g7(e){const[t,n]=L.useState(),r=L.useRef({}),i=L.useRef(e),o=L.useRef(\"none\"),l=e?\"mounted\":\"unmounted\",[c,p]=m7(l,{mounted:{UNMOUNT:\"unmounted\",ANIMATION_OUT:\"unmountSuspended\"},unmountSuspended:{MOUNT:\"mounted\",ANIMATION_END:\"unmounted\"},unmounted:{MOUNT:\"mounted\"}});return L.useEffect(()=>{const d=qy(r.current);o.current=c===\"mounted\"?d:\"none\"},[c]),yf(()=>{const d=r.current,m=i.current;if(m!==e){const b=o.current,y=qy(d);e?p(\"MOUNT\"):y===\"none\"||(d==null?void 0:d.display)===\"none\"?p(\"UNMOUNT\"):p(m&&b!==y?\"ANIMATION_OUT\":\"UNMOUNT\"),i.current=e}},[e,p]),yf(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,E=y=>{const x=qy(r.current).includes(y.animationName);if(y.target===t&&x&&(p(\"ANIMATION_END\"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode=\"forwards\",d=m.setTimeout(()=>{t.style.animationFillMode===\"forwards\"&&(t.style.animationFillMode=k)})}},b=y=>{y.target===t&&(o.current=qy(r.current))};return t.addEventListener(\"animationstart\",b),t.addEventListener(\"animationcancel\",E),t.addEventListener(\"animationend\",E),()=>{m.clearTimeout(d),t.removeEventListener(\"animationstart\",b),t.removeEventListener(\"animationcancel\",E),t.removeEventListener(\"animationend\",E)}}else p(\"ANIMATION_END\")},[t,p]),{isPresent:[\"mounted\",\"unmountSuspended\"].includes(c),ref:L.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function qy(e){return(e==null?void 0:e.animationName)||\"none\"}function v7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,\"ref\"))==null?void 0:r.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,\"ref\"))==null?void 0:i.get,n=t&&\"isReactWarning\"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var OS=0;function JD(){L.useEffect(()=>{const e=document.querySelectorAll(\"[data-radix-focus-guard]\");return document.body.insertAdjacentElement(\"afterbegin\",e[0]??ek()),document.body.insertAdjacentElement(\"beforeend\",e[1]??ek()),OS++,()=>{OS===1&&document.querySelectorAll(\"[data-radix-focus-guard]\").forEach(t=>t.remove()),OS--}},[])}function ek(){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 DS=function(e,t){return DS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},DS(e,t)};function tk(e,t){if(typeof t!=\"function\"&&t!==null)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");DS(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xe=function(){return Xe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xe.apply(this,arguments)};function Ki(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function mr(e,t){var n=typeof Symbol==\"function\"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function ts(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError==\"function\"&&SuppressedError;var By=\"right-scroll-bar-position\",$y=\"width-before-scroll-bar\",y7=\"with-scroll-bars-hidden\",b7=\"--removed-body-scroll-bar-size\";function kS(e,t){return typeof e==\"function\"?e(t):e&&(e.current=t),e}function E7(e,t){var n=L.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var S7=typeof window<\"u\"?L.useLayoutEffect:L.useEffect,nk=new WeakMap;function T7(e,t){var n=E7(null,function(r){return e.forEach(function(i){return kS(i,r)})});return S7(function(){var r=nk.get(n);if(r){var i=new Set(r),o=new Set(e),l=n.current;i.forEach(function(c){o.has(c)||kS(c,null)}),o.forEach(function(c){i.has(c)||kS(c,l)})}nk.set(n,e)},[e]),n}function w7(e){return e}function x7(e,t){t===void 0&&(t=w7);var n=[],r=!1,i={read:function(){if(r)throw new Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var p=function(){var m=l;l=[],m.forEach(o)},d=function(){return Promise.resolve().then(p)};d(),n={push:function(m){l.push(m),d()},filter:function(m){return l=l.filter(m),n}}}};return i}function C7(e){e===void 0&&(e={});var t=x7(null);return t.options=Xe({async:!0,ssr:!1},e),t}var rk=function(e){var t=e.sideCar,n=Ki(e,[\"sideCar\"]);if(!t)throw new Error(\"Sidecar: please provide `sideCar` property to import the right car\");var r=t.read();if(!r)throw new Error(\"Sidecar medium not found\");return L.createElement(r,Xe({},n))};rk.isSideCarExport=!0;function _7(e,t){return e.useMedium(t),rk}var ik=C7(),RS=function(){},zy=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:RS,onWheelCapture:RS,onTouchMoveCapture:RS}),i=r[0],o=r[1],l=e.forwardProps,c=e.children,p=e.className,d=e.removeScrollBar,m=e.enabled,E=e.shards,b=e.sideCar,y=e.noIsolation,w=e.inert,x=e.allowPinchZoom,k=e.as,N=k===void 0?\"div\":k,A=e.gapMode,O=Ki(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),_=b,M=T7([n,t]),V=Xe(Xe({},O),i);return L.createElement(L.Fragment,null,m&&L.createElement(_,{sideCar:ik,removeScrollBar:d,shards:E,noIsolation:y,inert:w,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:A}),l?L.cloneElement(L.Children.only(c),Xe(Xe({},V),{ref:M})):L.createElement(N,Xe({},V,{className:p,ref:M}),c))});zy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zy.classNames={fullWidth:$y,zeroRight:By};var N7=function(){if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__};function A7(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=N7();return t&&e.setAttribute(\"nonce\",t),e}function O7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D7(e){var t=document.head||document.getElementsByTagName(\"head\")[0];t.appendChild(e)}var k7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=A7())&&(O7(t,n),D7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R7=function(){var e=k7();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ok=function(){var e=R7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},M7={left:0,top:0,right:0,gap:0},MS=function(e){return parseInt(e||\"\",10)||0},L7=function(e){var t=window.getComputedStyle(document.body),n=t[e===\"padding\"?\"paddingLeft\":\"marginLeft\"],r=t[e===\"padding\"?\"paddingTop\":\"marginTop\"],i=t[e===\"padding\"?\"paddingRight\":\"marginRight\"];return[MS(n),MS(r),MS(i)]},I7=function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return M7;var t=L7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F7=ok(),Gd=\"data-scroll-locked\",P7=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n=\"margin\"),`\n .`.concat(y7,` {\n overflow: hidden `).concat(r,`;\n padding-right: `).concat(c,\"px \").concat(r,`;\n }\n body[`).concat(Gd,`] {\n overflow: hidden `).concat(r,`;\n overscroll-behavior: contain;\n `).concat([t&&\"position: relative \".concat(r,\";\"),n===\"margin\"&&`\n padding-left: `.concat(i,`px;\n padding-top: `).concat(o,`px;\n padding-right: `).concat(l,`px;\n margin-left:0;\n margin-top:0;\n margin-right: `).concat(c,\"px \").concat(r,`;\n `),n===\"padding\"&&\"padding-right: \".concat(c,\"px \").concat(r,\";\")].filter(Boolean).join(\"\"),`\n }\n \n .`).concat(By,` {\n right: `).concat(c,\"px \").concat(r,`;\n }\n \n .`).concat($y,` {\n margin-right: `).concat(c,\"px \").concat(r,`;\n }\n \n .`).concat(By,\" .\").concat(By,` {\n right: 0 `).concat(r,`;\n }\n \n .`).concat($y,\" .\").concat($y,` {\n margin-right: 0 `).concat(r,`;\n }\n \n body[`).concat(Gd,`] {\n `).concat(b7,\": \").concat(c,`px;\n }\n`)},ak=function(){var e=parseInt(document.body.getAttribute(Gd)||\"0\",10);return isFinite(e)?e:0},j7=function(){L.useEffect(function(){return document.body.setAttribute(Gd,(ak()+1).toString()),function(){var e=ak()-1;e<=0?document.body.removeAttribute(Gd):document.body.setAttribute(Gd,e.toString())}},[])},V7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?\"margin\":r;j7();var o=L.useMemo(function(){return I7(i)},[i]);return L.createElement(F7,{styles:P7(o,!t,i,n?\"\":\"!important\")})},LS=!1;if(typeof window<\"u\")try{var Hy=Object.defineProperty({},\"passive\",{get:function(){return LS=!0,!0}});window.addEventListener(\"test\",Hy,Hy),window.removeEventListener(\"test\",Hy,Hy)}catch{LS=!1}var Wd=LS?{passive:!1}:!1,U7=function(e){return e.tagName===\"TEXTAREA\"},sk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==\"hidden\"&&!(n.overflowY===n.overflowX&&!U7(e)&&n[t]===\"visible\")},q7=function(e){return sk(e,\"overflowY\")},B7=function(e){return sk(e,\"overflowX\")},lk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<\"u\"&&r instanceof ShadowRoot&&(r=r.host);var i=uk(e,r);if(i){var o=ck(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},z7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uk=function(e,t){return e===\"v\"?q7(t):B7(t)},ck=function(e,t){return e===\"v\"?$7(t):z7(t)},H7=function(e,t){return e===\"h\"&&t===\"rtl\"?-1:1},G7=function(e,t,n,r,i){var o=H7(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,p=t.contains(c),d=!1,m=l>0,E=0,b=0;do{var y=ck(e,c),w=y[0],x=y[1],k=y[2],N=x-k-o*w;(w||N)&&uk(e,c)&&(E+=N,b+=w),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!p&&c!==document.body||p&&(t.contains(c)||t===c));return(m&&Math.abs(E)<1||!m&&Math.abs(b)<1)&&(d=!0),d},Gy=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fk=function(e){return[e.deltaX,e.deltaY]},dk=function(e){return e&&\"current\"in e?e.current:e},W7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Y7=function(e){return`\n .block-interactivity-`.concat(e,` {pointer-events: none;}\n .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},Q7=0,Yd=[];function K7(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(Q7++)[0],o=L.useState(ok)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(i));var x=ts([e.lockRef.current],(e.shards||[]).map(dk),!0).filter(Boolean);return x.forEach(function(k){return k.classList.add(\"allow-interactivity-\".concat(i))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(i)),x.forEach(function(k){return k.classList.remove(\"allow-interactivity-\".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=L.useCallback(function(x,k){if(\"touches\"in x&&x.touches.length===2||x.type===\"wheel\"&&x.ctrlKey)return!l.current.allowPinchZoom;var N=Gy(x),A=n.current,O=\"deltaX\"in x?x.deltaX:A[0]-N[0],_=\"deltaY\"in x?x.deltaY:A[1]-N[1],M,V=x.target,P=Math.abs(O)>Math.abs(_)?\"h\":\"v\";if(\"touches\"in x&&P===\"h\"&&V.type===\"range\")return!1;var F=lk(P,V);if(!F)return!0;if(F?M=P:(M=P===\"v\"?\"h\":\"v\",F=lk(P,V)),!F)return!1;if(!r.current&&\"changedTouches\"in x&&(O||_)&&(r.current=M),!M)return!0;var j=r.current||M;return G7(j,k,x,j===\"h\"?O:_)},[]),p=L.useCallback(function(x){var k=x;if(!(!Yd.length||Yd[Yd.length-1]!==o)){var N=\"deltaY\"in k?fk(k):Gy(k),A=t.current.filter(function(M){return M.name===k.type&&(M.target===k.target||k.target===M.shadowParent)&&W7(M.delta,N)})[0];if(A&&A.should){k.cancelable&&k.preventDefault();return}if(!A){var O=(l.current.shards||[]).map(dk).filter(Boolean).filter(function(M){return M.contains(k.target)}),_=O.length>0?c(k,O[0]):!l.current.noIsolation;_&&k.cancelable&&k.preventDefault()}}},[]),d=L.useCallback(function(x,k,N,A){var O={name:x,delta:k,target:N,should:A,shadowParent:X7(N)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(_){return _!==O})},1)},[]),m=L.useCallback(function(x){n.current=Gy(x),r.current=void 0},[]),E=L.useCallback(function(x){d(x.type,fk(x),x.target,c(x,e.lockRef.current))},[]),b=L.useCallback(function(x){d(x.type,Gy(x),x.target,c(x,e.lockRef.current))},[]);L.useEffect(function(){return Yd.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:b}),document.addEventListener(\"wheel\",p,Wd),document.addEventListener(\"touchmove\",p,Wd),document.addEventListener(\"touchstart\",m,Wd),function(){Yd=Yd.filter(function(x){return x!==o}),document.removeEventListener(\"wheel\",p,Wd),document.removeEventListener(\"touchmove\",p,Wd),document.removeEventListener(\"touchstart\",m,Wd)}},[]);var y=e.removeScrollBar,w=e.inert;return L.createElement(L.Fragment,null,w?L.createElement(o,{styles:Y7(i)}):null,y?L.createElement(V7,{gapMode:e.gapMode}):null)}function X7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Z7=_7(ik,K7);var IS=L.forwardRef(function(e,t){return L.createElement(zy,Xe({},e,{ref:t,sideCar:Z7}))});IS.classNames=zy.classNames;var J7=function(e){if(typeof document>\"u\")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qd=new WeakMap,Wy=new WeakMap,Yy={},FS=0,pk=function(e){return e&&(e.host||pk(e.parentNode))},eU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pk(n);return r&&e.contains(r)?r:(console.error(\"aria-hidden\",n,\"in not contained inside\",e,\". Doing nothing\"),null)}).filter(function(n){return!!n})},tU=function(e,t,n,r){var i=eU(t,Array.isArray(e)?e:[e]);Yy[n]||(Yy[n]=new WeakMap);var o=Yy[n],l=[],c=new Set,p=new Set(i),d=function(E){!E||c.has(E)||(c.add(E),d(E.parentNode))};i.forEach(d);var m=function(E){!E||p.has(E)||Array.prototype.forEach.call(E.children,function(b){if(c.has(b))m(b);else try{var y=b.getAttribute(r),w=y!==null&&y!==\"false\",x=(Qd.get(b)||0)+1,k=(o.get(b)||0)+1;Qd.set(b,x),o.set(b,k),l.push(b),x===1&&w&&Wy.set(b,!0),k===1&&b.setAttribute(n,\"true\"),w||b.setAttribute(r,\"true\")}catch(N){console.error(\"aria-hidden: cannot operate on \",b,N)}})};return m(t),c.clear(),FS++,function(){l.forEach(function(E){var b=Qd.get(E)-1,y=o.get(E)-1;Qd.set(E,b),o.set(E,y),b||(Wy.has(E)||E.removeAttribute(r),Wy.delete(E)),y||E.removeAttribute(n)}),FS--,FS||(Qd=new WeakMap,Qd=new WeakMap,Wy=new WeakMap,Yy={})}},hk=function(e,t,n){n===void 0&&(n=\"data-aria-hidden\");var r=Array.from(Array.isArray(e)?e:[e]),i=J7(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(\"[aria-live]\"))),tU(r,i,n,\"aria-hidden\")):function(){return null}},PS=\"Dialog\",[mk,_ie]=vf(PS),[nU,ns]=mk(PS),gk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=L.useRef(null),p=L.useRef(null),[d=!1,m]=Py({prop:r,defaultProp:i,onChange:o});return Y.jsx(nU,{scope:t,triggerRef:c,contentRef:p,contentId:bf(),titleId:bf(),descriptionId:bf(),open:d,onOpenChange:m,onOpenToggle:L.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};gk.displayName=PS;var vk=\"DialogTrigger\",yk=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ns(vk,n),o=oi(t,i.triggerRef);return Y.jsx(kr.button,{type:\"button\",\"aria-haspopup\":\"dialog\",\"aria-expanded\":i.open,\"aria-controls\":i.contentId,\"data-state\":US(i.open),...r,ref:o,onClick:qt(e.onClick,i.onOpenToggle)})});yk.displayName=vk;var jS=\"DialogPortal\",[rU,bk]=mk(jS,{forceMount:void 0}),Ek=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=ns(jS,t);return Y.jsx(rU,{scope:t,forceMount:n,children:L.Children.map(r,l=>Y.jsx(Vs,{present:n||o.open,children:Y.jsx(Uy,{asChild:!0,container:i,children:l})}))})};Ek.displayName=jS;var Qy=\"DialogOverlay\",Sk=L.forwardRef((e,t)=>{const n=bk(Qy,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ns(Qy,e.__scopeDialog);return o.modal?Y.jsx(Vs,{present:r||o.open,children:Y.jsx(iU,{...i,ref:t})}):null});Sk.displayName=Qy;var iU=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ns(Qy,n);return Y.jsx(IS,{as:Hd,allowPinchZoom:!0,shards:[i.contentRef],children:Y.jsx(kr.div,{\"data-state\":US(i.open),...r,ref:t,style:{pointerEvents:\"auto\",...r.style}})})}),Ef=\"DialogContent\",Tk=L.forwardRef((e,t)=>{const n=bk(Ef,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ns(Ef,e.__scopeDialog);return Y.jsx(Vs,{present:r||o.open,children:o.modal?Y.jsx(oU,{...i,ref:t}):Y.jsx(aU,{...i,ref:t})})});Tk.displayName=Ef;var oU=L.forwardRef((e,t)=>{const n=ns(Ef,e.__scopeDialog),r=L.useRef(null),i=oi(t,n.contentRef,r);return L.useEffect(()=>{const o=r.current;if(o)return hk(o)},[]),Y.jsx(wk,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:qt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:qt(e.onFocusOutside,o=>o.preventDefault())})}),aU=L.forwardRef((e,t)=>{const n=ns(Ef,e.__scopeDialog),r=L.useRef(!1),i=L.useRef(!1);return Y.jsx(wk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var p,d;(p=e.onInteractOutside)==null||p.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type===\"pointerdown\"&&(i.current=!0));const l=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(l))&&o.preventDefault(),o.detail.originalEvent.type===\"focusin\"&&i.current&&o.preventDefault()}})}),wk=L.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,c=ns(Ef,n),p=L.useRef(null),d=oi(t,p);return JD(),Y.jsxs(Y.Fragment,{children:[Y.jsx(AS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:Y.jsx(Vy,{role:\"dialog\",id:c.contentId,\"aria-describedby\":c.descriptionId,\"aria-labelledby\":c.titleId,\"data-state\":US(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),Y.jsxs(Y.Fragment,{children:[Y.jsx(sU,{titleId:c.titleId}),Y.jsx(uU,{contentRef:p,descriptionId:c.descriptionId})]})]})}),VS=\"DialogTitle\",xk=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ns(VS,n);return Y.jsx(kr.h2,{id:i.titleId,...r,ref:t})});xk.displayName=VS;var Ck=\"DialogDescription\",_k=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ns(Ck,n);return Y.jsx(kr.p,{id:i.descriptionId,...r,ref:t})});_k.displayName=Ck;var Nk=\"DialogClose\",Ak=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ns(Nk,n);return Y.jsx(kr.button,{type:\"button\",...r,ref:t,onClick:qt(e.onClick,()=>i.onOpenChange(!1))})});Ak.displayName=Nk;function US(e){return e?\"open\":\"closed\"}var Ok=\"DialogTitleWarning\",[Nie,Dk]=z9(Ok,{contentName:Ef,titleName:VS,docsSlug:\"dialog\"}),sU=({titleId:e})=>{const t=Dk(Ok),n=`\\`${t.contentName}\\` requires a \\`${t.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${t.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lU=\"DialogDescriptionWarning\",uU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${Dk(lU).contentName}}.`;return L.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute(\"aria-describedby\");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},cU=gk,fU=yk,dU=Ek,pU=Sk,hU=Tk,mU=xk,gU=_k,vU=Ak,yU=\"VisuallyHidden\",kk=L.forwardRef((e,t)=>Y.jsx(kr.span,{...e,ref:t,style:{position:\"absolute\",border:0,width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",wordWrap:\"normal\",...e.style}}));kk.displayName=yU;var Rk=kk;function Mk(e){const t=e+\"CollectionProvider\",[n,r]=vf(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=y=>{const{scope:w,children:x}=y,k=Oe.useRef(null),N=Oe.useRef(new Map).current;return Y.jsx(i,{scope:w,itemMap:N,collectionRef:k,children:x})};l.displayName=t;const c=e+\"CollectionSlot\",p=Oe.forwardRef((y,w)=>{const{scope:x,children:k}=y,N=o(c,x),A=oi(w,N.collectionRef);return Y.jsx(Hd,{ref:A,children:k})});p.displayName=c;const d=e+\"CollectionItemSlot\",m=\"data-radix-collection-item\",E=Oe.forwardRef((y,w)=>{const{scope:x,children:k,...N}=y,A=Oe.useRef(null),O=oi(w,A),_=o(d,x);return Oe.useEffect(()=>(_.itemMap.set(A,{ref:A,...N}),()=>void _.itemMap.delete(A))),Y.jsx(Hd,{[m]:\"\",ref:O,children:k})});E.displayName=d;function b(y){const w=o(e+\"CollectionConsumer\",y);return Oe.useCallback(()=>{const k=w.collectionRef.current;if(!k)return[];const N=Array.from(k.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((_,M)=>N.indexOf(_.ref.current)-N.indexOf(M.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:p,ItemSlot:E},b,r]}var bU=L.createContext(void 0);function Lk(e){const t=L.useContext(bU);return e||t||\"ltr\"}const EU=[\"top\",\"right\",\"bottom\",\"left\"],$u=Math.min,Qo=Math.max,Ky=Math.round,Xy=Math.floor,Us=e=>({x:e,y:e}),SU={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"},TU={start:\"end\",end:\"start\"};function qS(e,t,n){return Qo(e,$u(t,n))}function Fl(e,t){return typeof e==\"function\"?e(t):e}function Pl(e){return e.split(\"-\")[0]}function Kd(e){return e.split(\"-\")[1]}function BS(e){return e===\"x\"?\"y\":\"x\"}function $S(e){return e===\"y\"?\"height\":\"width\"}function zu(e){return[\"top\",\"bottom\"].includes(Pl(e))?\"y\":\"x\"}function zS(e){return BS(zu(e))}function wU(e,t,n){n===void 0&&(n=!1);const r=Kd(e),i=zS(e),o=$S(i);let l=i===\"x\"?r===(n?\"end\":\"start\")?\"right\":\"left\":r===\"start\"?\"bottom\":\"top\";return t.reference[o]>t.floating[o]&&(l=Zy(l)),[l,Zy(l)]}function xU(e){const t=Zy(e);return[HS(e),t,HS(t)]}function HS(e){return e.replace(/start|end/g,t=>TU[t])}function CU(e,t,n){const r=[\"left\",\"right\"],i=[\"right\",\"left\"],o=[\"top\",\"bottom\"],l=[\"bottom\",\"top\"];switch(e){case\"top\":case\"bottom\":return n?t?i:r:t?r:i;case\"left\":case\"right\":return t?o:l;default:return[]}}function _U(e,t,n,r){const i=Kd(e);let o=CU(Pl(e),n===\"start\",r);return i&&(o=o.map(l=>l+\"-\"+i),t&&(o=o.concat(o.map(HS)))),o}function Zy(e){return e.replace(/left|right|bottom|top/g,t=>SU[t])}function NU(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ik(e){return typeof e!=\"number\"?NU(e):{top:e,right:e,bottom:e,left:e}}function Jy(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fk(e,t,n){let{reference:r,floating:i}=e;const o=zu(t),l=zS(t),c=$S(l),p=Pl(t),d=o===\"y\",m=r.x+r.width/2-i.width/2,E=r.y+r.height/2-i.height/2,b=r[c]/2-i[c]/2;let y;switch(p){case\"top\":y={x:m,y:r.y-i.height};break;case\"bottom\":y={x:m,y:r.y+r.height};break;case\"right\":y={x:r.x+r.width,y:E};break;case\"left\":y={x:r.x-i.width,y:E};break;default:y={x:r.x,y:r.y}}switch(Kd(t)){case\"start\":y[l]-=b*(n&&d?-1:1);break;case\"end\":y[l]+=b*(n&&d?-1:1);break}return y}const AU=async(e,t,n)=>{const{placement:r=\"bottom\",strategy:i=\"absolute\",middleware:o=[],platform:l}=n,c=o.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:E}=Fk(d,r,p),b=r,y={},w=0;for(let x=0;x<c.length;x++){const{name:k,fn:N}=c[x],{x:A,y:O,data:_,reset:M}=await N({x:m,y:E,initialPlacement:r,placement:b,strategy:i,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});m=A??m,E=O??E,y={...y,[k]:{...y[k],..._}},M&&w<=50&&(w++,typeof M==\"object\"&&(M.placement&&(b=M.placement),M.rects&&(d=M.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:m,y:E}=Fk(d,b,p)),x=-1)}return{x:m,y:E,placement:b,strategy:i,middlewareData:y}};async function gm(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:c,strategy:p}=e,{boundary:d=\"clippingAncestors\",rootBoundary:m=\"viewport\",elementContext:E=\"floating\",altBoundary:b=!1,padding:y=0}=Fl(t,e),w=Ik(y),k=c[b?E===\"floating\"?\"reference\":\"floating\":E],N=Jy(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:p})),A=E===\"floating\"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),_=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},M=Jy(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:O,strategy:p}):A);return{top:(N.top-M.top+w.top)/_.y,bottom:(M.bottom-N.bottom+w.bottom)/_.y,left:(N.left-M.left+w.left)/_.x,right:(M.right-N.right+w.right)/_.x}}const OU=e=>({name:\"arrow\",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:p}=t,{element:d,padding:m=0}=Fl(e,t)||{};if(d==null)return{};const E=Ik(m),b={x:n,y:r},y=zS(i),w=$S(y),x=await l.getDimensions(d),k=y===\"y\",N=k?\"top\":\"left\",A=k?\"bottom\":\"right\",O=k?\"clientHeight\":\"clientWidth\",_=o.reference[w]+o.reference[y]-b[y]-o.floating[w],M=b[y]-o.reference[y],V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let P=V?V[O]:0;(!P||!await(l.isElement==null?void 0:l.isElement(V)))&&(P=c.floating[O]||o.floating[w]);const F=_/2-M/2,j=P/2-x[w]/2-1,q=$u(E[N],j),Q=$u(E[A],j),ee=q,Z=P-x[w]-Q,W=P/2-x[w]/2+F,B=qS(ee,W,Z),ne=!p.arrow&&Kd(i)!=null&&W!==B&&o.reference[w]/2-(W<ee?q:Q)-x[w]/2<0,ie=ne?W<ee?W-ee:W-Z:0;return{[y]:b[y]+ie,data:{[y]:B,centerOffset:W-B-ie,...ne&&{alignmentOffset:ie}},reset:ne}}}),DU=function(e){return e===void 0&&(e={}),{name:\"flip\",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:p,elements:d}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:b,fallbackStrategy:y=\"bestFit\",fallbackAxisSideDirection:w=\"none\",flipAlignment:x=!0,...k}=Fl(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const N=Pl(i),A=zu(c),O=Pl(c)===c,_=await(p.isRTL==null?void 0:p.isRTL(d.floating)),M=b||(O||!x?[Zy(c)]:xU(c)),V=w!==\"none\";!b&&V&&M.push(..._U(c,x,w,_));const P=[c,...M],F=await gm(t,k),j=[];let q=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&j.push(F[N]),E){const W=wU(i,l,_);j.push(F[W[0]],F[W[1]])}if(q=[...q,{placement:i,overflows:j}],!j.every(W=>W<=0)){var Q,ee;const W=(((Q=o.flip)==null?void 0:Q.index)||0)+1,B=P[W];if(B)return{data:{index:W,overflows:q},reset:{placement:B}};let ne=(ee=q.filter(ie=>ie.overflows[0]<=0).sort((ie,se)=>ie.overflows[1]-se.overflows[1])[0])==null?void 0:ee.placement;if(!ne)switch(y){case\"bestFit\":{var Z;const ie=(Z=q.filter(se=>{if(V){const de=zu(se.placement);return de===A||de===\"y\"}return!0}).map(se=>[se.placement,se.overflows.filter(de=>de>0).reduce((de,J)=>de+J,0)]).sort((se,de)=>se[1]-de[1])[0])==null?void 0:Z[0];ie&&(ne=ie);break}case\"initialPlacement\":ne=c;break}if(i!==ne)return{reset:{placement:ne}}}return{}}}};function Pk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jk(e){return EU.some(t=>e[t]>=0)}const kU=function(e){return e===void 0&&(e={}),{name:\"hide\",options:e,async fn(t){const{rects:n}=t,{strategy:r=\"referenceHidden\",...i}=Fl(e,t);switch(r){case\"referenceHidden\":{const o=await gm(t,{...i,elementContext:\"reference\"}),l=Pk(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jk(l)}}}case\"escaped\":{const o=await gm(t,{...i,altBoundary:!0}),l=Pk(o,n.floating);return{data:{escapedOffsets:l,escaped:jk(l)}}}default:return{}}}}};async function RU(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Pl(n),c=Kd(n),p=zu(n)===\"y\",d=[\"left\",\"top\"].includes(l)?-1:1,m=o&&p?-1:1,E=Fl(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:w}=typeof E==\"number\"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return c&&typeof w==\"number\"&&(y=c===\"end\"?w*-1:w),p?{x:y*m,y:b*d}:{x:b*d,y:y*m}}const MU=function(e){return e===void 0&&(e=0),{name:\"offset\",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:c}=t,p=await RU(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+p.x,y:o+p.y,data:{...p,placement:l}}}}},LU=function(e){return e===void 0&&(e={}),{name:\"shift\",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:k=>{let{x:N,y:A}=k;return{x:N,y:A}}},...p}=Fl(e,t),d={x:n,y:r},m=await gm(t,p),E=zu(Pl(i)),b=BS(E);let y=d[b],w=d[E];if(o){const k=b===\"y\"?\"top\":\"left\",N=b===\"y\"?\"bottom\":\"right\",A=y+m[k],O=y-m[N];y=qS(A,y,O)}if(l){const k=E===\"y\"?\"top\":\"left\",N=E===\"y\"?\"bottom\":\"right\",A=w+m[k],O=w-m[N];w=qS(A,w,O)}const x=c.fn({...t,[b]:y,[E]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[b]:o,[E]:l}}}}}},IU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:p=!0,crossAxis:d=!0}=Fl(e,t),m={x:n,y:r},E=zu(i),b=BS(E);let y=m[b],w=m[E];const x=Fl(c,t),k=typeof x==\"number\"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(p){const O=b===\"y\"?\"height\":\"width\",_=o.reference[b]-o.floating[O]+k.mainAxis,M=o.reference[b]+o.reference[O]-k.mainAxis;y<_?y=_:y>M&&(y=M)}if(d){var N,A;const O=b===\"y\"?\"width\":\"height\",_=[\"top\",\"left\"].includes(Pl(i)),M=o.reference[E]-o.floating[O]+(_&&((N=l.offset)==null?void 0:N[E])||0)+(_?0:k.crossAxis),V=o.reference[E]+o.reference[O]+(_?0:((A=l.offset)==null?void 0:A[E])||0)-(_?k.crossAxis:0);w<M?w=M:w>V&&(w=V)}return{[b]:y,[E]:w}}}},FU=function(e){return e===void 0&&(e={}),{name:\"size\",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:p=()=>{},...d}=Fl(e,t),m=await gm(t,d),E=Pl(i),b=Kd(i),y=zu(i)===\"y\",{width:w,height:x}=o.floating;let k,N;E===\"top\"||E===\"bottom\"?(k=E,N=b===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?\"start\":\"end\")?\"left\":\"right\"):(N=E,k=b===\"end\"?\"top\":\"bottom\");const A=x-m.top-m.bottom,O=w-m.left-m.right,_=$u(x-m[k],A),M=$u(w-m[N],O),V=!t.middlewareData.shift;let P=_,F=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=A),V&&!b){const q=Qo(m.left,0),Q=Qo(m.right,0),ee=Qo(m.top,0),Z=Qo(m.bottom,0);y?F=w-2*(q!==0||Q!==0?q+Q:Qo(m.left,m.right)):P=x-2*(ee!==0||Z!==0?ee+Z:Qo(m.top,m.bottom))}await p({...t,availableWidth:F,availableHeight:P});const j=await l.getDimensions(c.floating);return w!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function e0(){return typeof window<\"u\"}function Xd(e){return Vk(e)?(e.nodeName||\"\").toLowerCase():\"#document\"}function Ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qs(e){var t;return(t=(Vk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vk(e){return e0()?e instanceof Node||e instanceof Ko(e).Node:!1}function rs(e){return e0()?e instanceof Element||e instanceof Ko(e).Element:!1}function Bs(e){return e0()?e instanceof HTMLElement||e instanceof Ko(e).HTMLElement:!1}function Uk(e){return!e0()||typeof ShadowRoot>\"u\"?!1:e instanceof ShadowRoot||e instanceof Ko(e).ShadowRoot}function vm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=is(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![\"inline\",\"contents\"].includes(i)}function PU(e){return[\"table\",\"td\",\"th\"].includes(Xd(e))}function t0(e){return[\":popover-open\",\":modal\"].some(t=>{try{return e.matches(t)}catch{return!1}})}function GS(e){const t=WS(),n=rs(e)?is(e):e;return[\"transform\",\"translate\",\"scale\",\"rotate\",\"perspective\"].some(r=>n[r]?n[r]!==\"none\":!1)||(n.containerType?n.containerType!==\"normal\":!1)||!t&&(n.backdropFilter?n.backdropFilter!==\"none\":!1)||!t&&(n.filter?n.filter!==\"none\":!1)||[\"transform\",\"translate\",\"scale\",\"rotate\",\"perspective\",\"filter\"].some(r=>(n.willChange||\"\").includes(r))||[\"paint\",\"layout\",\"strict\",\"content\"].some(r=>(n.contain||\"\").includes(r))}function jU(e){let t=Hu(e);for(;Bs(t)&&!Zd(t);){if(GS(t))return t;if(t0(t))return null;t=Hu(t)}return null}function WS(){return typeof CSS>\"u\"||!CSS.supports?!1:CSS.supports(\"-webkit-backdrop-filter\",\"none\")}function Zd(e){return[\"html\",\"body\",\"#document\"].includes(Xd(e))}function is(e){return Ko(e).getComputedStyle(e)}function n0(e){return rs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hu(e){if(Xd(e)===\"html\")return e;const t=e.assignedSlot||e.parentNode||Uk(e)&&e.host||qs(e);return Uk(t)?t.host:t}function qk(e){const t=Hu(e);return Zd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bs(t)&&vm(t)?t:qk(t)}function ym(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qk(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Ko(i);if(o){const c=YS(l);return t.concat(l,l.visualViewport||[],vm(i)?i:[],c&&n?ym(c):[])}return t.concat(i,ym(i,[],n))}function YS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bk(e){const t=is(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Bs(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=Ky(n)!==o||Ky(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function QS(e){return rs(e)?e:e.contextElement}function Jd(e){const t=QS(e);if(!Bs(t))return Us(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Bk(t);let l=(o?Ky(n.width):n.width)/r,c=(o?Ky(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const VU=Us(0);function $k(e){const t=Ko(e);return!WS()||!t.visualViewport?VU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ko(e)?!1:t}function Sf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=QS(e);let l=Us(1);t&&(r?rs(r)&&(l=Jd(r)):l=Jd(e));const c=UU(o,n,r)?$k(o):Us(0);let p=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,m=i.width/l.x,E=i.height/l.y;if(o){const b=Ko(o),y=r&&rs(r)?Ko(r):r;let w=b,x=YS(w);for(;x&&r&&y!==w;){const k=Jd(x),N=x.getBoundingClientRect(),A=is(x),O=N.left+(x.clientLeft+parseFloat(A.paddingLeft))*k.x,_=N.top+(x.clientTop+parseFloat(A.paddingTop))*k.y;p*=k.x,d*=k.y,m*=k.x,E*=k.y,p+=O,d+=_,w=Ko(x),x=YS(w)}}return Jy({width:m,height:E,x:p,y:d})}function KS(e,t){const n=n0(e).scrollLeft;return t?t.left+n:Sf(qs(e)).left+n}function zk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:KS(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function qU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i===\"fixed\",l=qs(r),c=t?t0(t.floating):!1;if(r===l||c&&o)return n;let p={scrollLeft:0,scrollTop:0},d=Us(1);const m=Us(0),E=Bs(r);if((E||!E&&!o)&&((Xd(r)!==\"body\"||vm(l))&&(p=n0(r)),Bs(r))){const y=Sf(r);d=Jd(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const b=l&&!E&&!o?zk(l,p,!0):Us(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+m.x+b.x,y:n.y*d.y-p.scrollTop*d.y+m.y+b.y}}function BU(e){return Array.from(e.getClientRects())}function $U(e){const t=qs(e),n=n0(e),r=e.ownerDocument.body,i=Qo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+KS(e);const c=-n.scrollTop;return is(r).direction===\"rtl\"&&(l+=Qo(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function zU(e,t){const n=Ko(e),r=qs(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,p=0;if(i){o=i.width,l=i.height;const d=WS();(!d||d&&t===\"fixed\")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:o,height:l,x:c,y:p}}function HU(e,t){const n=Sf(e,!0,t===\"fixed\"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Bs(e)?Jd(e):Us(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,p=i*o.x,d=r*o.y;return{width:l,height:c,x:p,y:d}}function Hk(e,t,n){let r;if(t===\"viewport\")r=zU(e,n);else if(t===\"document\")r=$U(qs(e));else if(rs(t))r=HU(t,n);else{const i=$k(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Jy(r)}function Gk(e,t){const n=Hu(e);return n===t||!rs(n)||Zd(n)?!1:is(n).position===\"fixed\"||Gk(n,t)}function GU(e,t){const n=t.get(e);if(n)return n;let r=ym(e,[],!1).filter(c=>rs(c)&&Xd(c)!==\"body\"),i=null;const o=is(e).position===\"fixed\";let l=o?Hu(e):e;for(;rs(l)&&!Zd(l);){const c=is(l),p=GS(l);!p&&c.position===\"fixed\"&&(i=null),(o?!p&&!i:!p&&c.position===\"static\"&&!!i&&[\"absolute\",\"fixed\"].includes(i.position)||vm(l)&&!p&&Gk(e,l))?r=r.filter(m=>m!==l):i=c,l=Hu(l)}return t.set(e,r),r}function WU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n===\"clippingAncestors\"?t0(t)?[]:GU(t,this._c):[].concat(n),r],c=l[0],p=l.reduce((d,m)=>{const E=Hk(t,m,i);return d.top=Qo(E.top,d.top),d.right=$u(E.right,d.right),d.bottom=$u(E.bottom,d.bottom),d.left=Qo(E.left,d.left),d},Hk(t,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function YU(e){const{width:t,height:n}=Bk(e);return{width:t,height:n}}function QU(e,t,n){const r=Bs(t),i=qs(t),o=n===\"fixed\",l=Sf(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const p=Us(0);if(r||!r&&!o)if((Xd(t)!==\"body\"||vm(i))&&(c=n0(t)),r){const b=Sf(t,!0,o,t);p.x=b.x+t.clientLeft,p.y=b.y+t.clientTop}else i&&(p.x=KS(i));const d=i&&!r&&!o?zk(i,c):Us(0),m=l.left+c.scrollLeft-p.x-d.x,E=l.top+c.scrollTop-p.y-d.y;return{x:m,y:E,width:l.width,height:l.height}}function XS(e){return is(e).position===\"static\"}function Wk(e,t){if(!Bs(e)||is(e).position===\"fixed\")return null;if(t)return t(e);let n=e.offsetParent;return qs(e)===n&&(n=n.ownerDocument.body),n}function Yk(e,t){const n=Ko(e);if(t0(e))return n;if(!Bs(e)){let i=Hu(e);for(;i&&!Zd(i);){if(rs(i)&&!XS(i))return i;i=Hu(i)}return n}let r=Wk(e,t);for(;r&&PU(r)&&XS(r);)r=Wk(r,t);return r&&Zd(r)&&XS(r)&&!GS(r)?n:r||jU(e)||n}const KU=async function(e){const t=this.getOffsetParent||Yk,n=this.getDimensions,r=await n(e.floating);return{reference:QU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function XU(e){return is(e).direction===\"rtl\"}const ZU={convertOffsetParentRelativeRectToViewportRelativeRect:qU,getDocumentElement:qs,getClippingRect:WU,getOffsetParent:Yk,getElementRects:KU,getClientRects:BU,getDimensions:YU,getScale:Jd,isElement:rs,isRTL:XU};function Qk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JU(e,t){let n=null,r;const i=qs(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,p){c===void 0&&(c=!1),p===void 0&&(p=1),o();const d=e.getBoundingClientRect(),{left:m,top:E,width:b,height:y}=d;if(c||t(),!b||!y)return;const w=Xy(E),x=Xy(i.clientWidth-(m+b)),k=Xy(i.clientHeight-(E+y)),N=Xy(m),O={rootMargin:-w+\"px \"+-x+\"px \"+-k+\"px \"+-N+\"px\",threshold:Qo(0,$u(1,p))||1};let _=!0;function M(V){const P=V[0].intersectionRatio;if(P!==p){if(!_)return l();P?l(!1,P):r=setTimeout(()=>{l(!1,1e-7)},1e3)}P===1&&!Qk(d,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(M,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,O)}n.observe(e)}return l(!0),o}function eq(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver==\"function\",layoutShift:c=typeof IntersectionObserver==\"function\",animationFrame:p=!1}=r,d=QS(e),m=i||o?[...d?ym(d):[],...ym(t)]:[];m.forEach(N=>{i&&N.addEventListener(\"scroll\",n,{passive:!0}),o&&N.addEventListener(\"resize\",n)});const E=d&&c?JU(d,n):null;let b=-1,y=null;l&&(y=new ResizeObserver(N=>{let[A]=N;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),n()}),d&&!p&&y.observe(d),y.observe(t));let w,x=p?Sf(e):null;p&&k();function k(){const N=Sf(e);x&&!Qk(x,N)&&n(),x=N,w=requestAnimationFrame(k)}return n(),()=>{var N;m.forEach(A=>{i&&A.removeEventListener(\"scroll\",n),o&&A.removeEventListener(\"resize\",n)}),E==null||E(),(N=y)==null||N.disconnect(),y=null,p&&cancelAnimationFrame(w)}}const tq=MU,nq=LU,rq=DU,iq=FU,oq=kU,Kk=OU,aq=IU,sq=(e,t,n)=>{const r=new Map,i={platform:ZU,...n},o={...i.platform,_c:r};return AU(e,t,{...i,platform:o})};var r0=typeof document<\"u\"?L.useLayoutEffect:L.useEffect;function i0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==\"function\"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==\"object\"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!i0(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o===\"_owner\"&&e.$$typeof)&&!i0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Xk(e){return typeof window>\"u\"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zk(e,t){const n=Xk(e);return Math.round(t*n)/n}function ZS(e){const t=L.useRef(e);return r0(()=>{t.current=e}),t}function lq(e){e===void 0&&(e={});const{placement:t=\"bottom\",strategy:n=\"absolute\",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:p,open:d}=e,[m,E]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=L.useState(r);i0(b,r)||y(r);const[w,x]=L.useState(null),[k,N]=L.useState(null),A=L.useCallback(se=>{se!==V.current&&(V.current=se,x(se))},[]),O=L.useCallback(se=>{se!==P.current&&(P.current=se,N(se))},[]),_=o||w,M=l||k,V=L.useRef(null),P=L.useRef(null),F=L.useRef(m),j=p!=null,q=ZS(p),Q=ZS(i),ee=ZS(d),Z=L.useCallback(()=>{if(!V.current||!P.current)return;const se={placement:t,strategy:n,middleware:b};Q.current&&(se.platform=Q.current),sq(V.current,P.current,se).then(de=>{const J={...de,isPositioned:ee.current!==!1};W.current&&!i0(F.current,J)&&(F.current=J,jy.flushSync(()=>{E(J)}))})},[b,t,n,Q,ee]);r0(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,E(se=>({...se,isPositioned:!1})))},[d]);const W=L.useRef(!1);r0(()=>(W.current=!0,()=>{W.current=!1}),[]),r0(()=>{if(_&&(V.current=_),M&&(P.current=M),_&&M){if(q.current)return q.current(_,M,Z);Z()}},[_,M,Z,q,j]);const B=L.useMemo(()=>({reference:V,floating:P,setReference:A,setFloating:O}),[A,O]),ne=L.useMemo(()=>({reference:_,floating:M}),[_,M]),ie=L.useMemo(()=>{const se={position:n,left:0,top:0};if(!ne.floating)return se;const de=Zk(ne.floating,m.x),J=Zk(ne.floating,m.y);return c?{...se,transform:\"translate(\"+de+\"px, \"+J+\"px)\",...Xk(ne.floating)>=1.5&&{willChange:\"transform\"}}:{position:n,left:de,top:J}},[n,c,ne.floating,m.x,m.y]);return L.useMemo(()=>({...m,update:Z,refs:B,elements:ne,floatingStyles:ie}),[m,Z,B,ne,ie])}const uq=e=>{function t(n){return{}.hasOwnProperty.call(n,\"current\")}return{name:\"arrow\",options:e,fn(n){const{element:r,padding:i}=typeof e==\"function\"?e(n):e;return r&&t(r)?r.current!=null?Kk({element:r.current,padding:i}).fn(n):{}:r?Kk({element:r,padding:i}).fn(n):{}}}},cq=(e,t)=>({...tq(e),options:[e,t]}),fq=(e,t)=>({...nq(e),options:[e,t]}),dq=(e,t)=>({...aq(e),options:[e,t]}),pq=(e,t)=>({...rq(e),options:[e,t]}),hq=(e,t)=>({...iq(e),options:[e,t]}),mq=(e,t)=>({...oq(e),options:[e,t]}),gq=(e,t)=>({...uq(e),options:[e,t]});var vq=\"Arrow\",Jk=L.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return Y.jsx(kr.svg,{...o,ref:t,width:r,height:i,viewBox:\"0 0 30 10\",preserveAspectRatio:\"none\",children:e.asChild?n:Y.jsx(\"polygon\",{points:\"0,0 30,0 15,10\"})})});Jk.displayName=vq;var yq=Jk;function bq(e){const[t,n]=L.useState(void 0);return yf(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,c;if(\"borderBoxSize\"in o){const p=o.borderBoxSize,d=Array.isArray(p)?p[0]:p;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:\"border-box\"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var JS=\"Popper\",[e2,o0]=vf(JS),[Eq,t2]=e2(JS),n2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return Y.jsx(Eq,{scope:t,anchor:r,onAnchorChange:i,children:n})};n2.displayName=JS;var r2=\"PopperAnchor\",i2=L.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=t2(r2,n),l=L.useRef(null),c=oi(t,l);return L.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:Y.jsx(kr.div,{...i,ref:c})});i2.displayName=r2;var eT=\"PopperContent\",[Sq,Tq]=e2(eT),o2=L.forwardRef((e,t)=>{var Fe,$e,qe,dt,pt,at;const{__scopePopper:n,side:r=\"bottom\",sideOffset:i=0,align:o=\"center\",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:E=\"partial\",hideWhenDetached:b=!1,updatePositionStrategy:y=\"optimized\",onPlaced:w,...x}=e,k=t2(eT,n),[N,A]=L.useState(null),O=oi(t,Ce=>A(Ce)),[_,M]=L.useState(null),V=bq(_),P=(V==null?void 0:V.width)??0,F=(V==null?void 0:V.height)??0,j=r+(o!==\"center\"?\"-\"+o:\"\"),q=typeof m==\"number\"?m:{top:0,right:0,bottom:0,left:0,...m},Q=Array.isArray(d)?d:[d],ee=Q.length>0,Z={padding:q,boundary:Q.filter(xq),altBoundary:ee},{refs:W,floatingStyles:B,placement:ne,isPositioned:ie,middlewareData:se}=lq({strategy:\"fixed\",placement:j,whileElementsMounted:(...Ce)=>eq(...Ce,{animationFrame:y===\"always\"}),elements:{reference:k.anchor},middleware:[cq({mainAxis:i+F,alignmentAxis:l}),p&&fq({mainAxis:!0,crossAxis:!1,limiter:E===\"partial\"?dq():void 0,...Z}),p&&pq({...Z}),hq({...Z,apply:({elements:Ce,rects:ye,availableWidth:Re,availableHeight:ve})=>{const{width:ae,height:Ie}=ye.reference,tt=Ce.floating.style;tt.setProperty(\"--radix-popper-available-width\",`${Re}px`),tt.setProperty(\"--radix-popper-available-height\",`${ve}px`),tt.setProperty(\"--radix-popper-anchor-width\",`${ae}px`),tt.setProperty(\"--radix-popper-anchor-height\",`${Ie}px`)}}),_&&gq({element:_,padding:c}),Cq({arrowWidth:P,arrowHeight:F}),b&&mq({strategy:\"referenceHidden\",...Z})]}),[de,J]=l2(ne),ge=es(w);yf(()=>{ie&&(ge==null||ge())},[ie,ge]);const ce=(Fe=se.arrow)==null?void 0:Fe.x,he=($e=se.arrow)==null?void 0:$e.y,le=((qe=se.arrow)==null?void 0:qe.centerOffset)!==0,[pe,Te]=L.useState();return yf(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),Y.jsx(\"div\",{ref:W.setFloating,\"data-radix-popper-content-wrapper\":\"\",style:{...B,transform:ie?B.transform:\"translate(0, -200%)\",minWidth:\"max-content\",zIndex:pe,\"--radix-popper-transform-origin\":[(dt=se.transformOrigin)==null?void 0:dt.x,(pt=se.transformOrigin)==null?void 0:pt.y].join(\" \"),...((at=se.hide)==null?void 0:at.referenceHidden)&&{visibility:\"hidden\",pointerEvents:\"none\"}},dir:e.dir,children:Y.jsx(Sq,{scope:n,placedSide:de,onArrowChange:M,arrowX:ce,arrowY:he,shouldHideArrow:le,children:Y.jsx(kr.div,{\"data-side\":de,\"data-align\":J,...x,ref:O,style:{...x.style,animation:ie?void 0:\"none\"}})})})});o2.displayName=eT;var a2=\"PopperArrow\",wq={top:\"bottom\",right:\"left\",bottom:\"top\",left:\"right\"},s2=L.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=Tq(a2,r),l=wq[o.placedSide];return Y.jsx(\"span\",{ref:o.onArrowChange,style:{position:\"absolute\",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:\"\",right:\"0 0\",bottom:\"center 0\",left:\"100% 0\"}[o.placedSide],transform:{top:\"translateY(100%)\",right:\"translateY(50%) rotate(90deg) translateX(-50%)\",bottom:\"rotate(180deg)\",left:\"translateY(50%) rotate(-90deg) translateX(50%)\"}[o.placedSide],visibility:o.shouldHideArrow?\"hidden\":void 0},children:Y.jsx(yq,{...i,ref:n,style:{...i.style,display:\"block\"}})})});s2.displayName=a2;function xq(e){return e!==null}var Cq=e=>({name:\"transformOrigin\",options:e,fn(t){var k,N,A;const{placement:n,rects:r,middlewareData:i}=t,l=((k=i.arrow)==null?void 0:k.centerOffset)!==0,c=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[d,m]=l2(n),E={start:\"0%\",center:\"50%\",end:\"100%\"}[m],b=(((N=i.arrow)==null?void 0:N.x)??0)+c/2,y=(((A=i.arrow)==null?void 0:A.y)??0)+p/2;let w=\"\",x=\"\";return d===\"bottom\"?(w=l?E:`${b}px`,x=`${-p}px`):d===\"top\"?(w=l?E:`${b}px`,x=`${r.floating.height+p}px`):d===\"right\"?(w=`${-p}px`,x=l?E:`${y}px`):d===\"left\"&&(w=`${r.floating.width+p}px`,x=l?E:`${y}px`),{data:{x:w,y:x}}}});function l2(e){const[t,n=\"center\"]=e.split(\"-\");return[t,n]}var u2=n2,c2=i2,f2=o2,d2=s2,tT=\"rovingFocusGroup.onEntryFocus\",_q={bubbles:!1,cancelable:!0},a0=\"RovingFocusGroup\",[nT,p2,Nq]=Mk(a0),[Aq,h2]=vf(a0,[Nq]),[Oq,Dq]=Aq(a0),m2=L.forwardRef((e,t)=>Y.jsx(nT.Provider,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(nT.Slot,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(kq,{...e,ref:t})})}));m2.displayName=a0;var kq=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:p,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...E}=e,b=L.useRef(null),y=oi(t,b),w=Lk(o),[x=null,k]=Py({prop:l,defaultProp:c,onChange:p}),[N,A]=L.useState(!1),O=es(d),_=p2(n),M=L.useRef(!1),[V,P]=L.useState(0);return L.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(tT,O),()=>F.removeEventListener(tT,O)},[O]),Y.jsx(Oq,{scope:n,orientation:r,dir:w,loop:i,currentTabStopId:x,onItemFocus:L.useCallback(F=>k(F),[k]),onItemShiftTab:L.useCallback(()=>A(!0),[]),onFocusableItemAdd:L.useCallback(()=>P(F=>F+1),[]),onFocusableItemRemove:L.useCallback(()=>P(F=>F-1),[]),children:Y.jsx(kr.div,{tabIndex:N||V===0?-1:0,\"data-orientation\":r,...E,ref:y,style:{outline:\"none\",...e.style},onMouseDown:qt(e.onMouseDown,()=>{M.current=!0}),onFocus:qt(e.onFocus,F=>{const j=!M.current;if(F.target===F.currentTarget&&j&&!N){const q=new CustomEvent(tT,_q);if(F.currentTarget.dispatchEvent(q),!q.defaultPrevented){const Q=_().filter(ne=>ne.focusable),ee=Q.find(ne=>ne.active),Z=Q.find(ne=>ne.id===x),B=[ee,Z,...Q].filter(Boolean).map(ne=>ne.ref.current);y2(B,m)}}M.current=!1}),onBlur:qt(e.onBlur,()=>A(!1))})})}),g2=\"RovingFocusGroupItem\",v2=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...l}=e,c=bf(),p=o||c,d=Dq(g2,n),m=d.currentTabStopId===p,E=p2(n),{onFocusableItemAdd:b,onFocusableItemRemove:y}=d;return L.useEffect(()=>{if(r)return b(),()=>y()},[r,b,y]),Y.jsx(nT.ItemSlot,{scope:n,id:p,focusable:r,active:i,children:Y.jsx(kr.span,{tabIndex:m?0:-1,\"data-orientation\":d.orientation,...l,ref:t,onMouseDown:qt(e.onMouseDown,w=>{r?d.onItemFocus(p):w.preventDefault()}),onFocus:qt(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:qt(e.onKeyDown,w=>{if(w.key===\"Tab\"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const x=Lq(w,d.orientation,d.dir);if(x!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let N=E().filter(A=>A.focusable).map(A=>A.ref.current);if(x===\"last\")N.reverse();else if(x===\"prev\"||x===\"next\"){x===\"prev\"&&N.reverse();const A=N.indexOf(w.currentTarget);N=d.loop?Iq(N,A+1):N.slice(A+1)}setTimeout(()=>y2(N))}})})})});v2.displayName=g2;var Rq={ArrowLeft:\"prev\",ArrowUp:\"prev\",ArrowRight:\"next\",ArrowDown:\"next\",PageUp:\"first\",Home:\"first\",PageDown:\"last\",End:\"last\"};function Mq(e,t){return t!==\"rtl\"?e:e===\"ArrowLeft\"?\"ArrowRight\":e===\"ArrowRight\"?\"ArrowLeft\":e}function Lq(e,t,n){const r=Mq(e.key,n);if(!(t===\"vertical\"&&[\"ArrowLeft\",\"ArrowRight\"].includes(r))&&!(t===\"horizontal\"&&[\"ArrowUp\",\"ArrowDown\"].includes(r)))return Rq[r]}function y2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Iq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Fq=m2,Pq=v2,rT=[\"Enter\",\" \"],jq=[\"ArrowDown\",\"PageUp\",\"Home\"],b2=[\"ArrowUp\",\"PageDown\",\"End\"],Vq=[...jq,...b2],Uq={ltr:[...rT,\"ArrowRight\"],rtl:[...rT,\"ArrowLeft\"]},qq={ltr:[\"ArrowLeft\"],rtl:[\"ArrowRight\"]},bm=\"Menu\",[Em,Bq,$q]=Mk(bm),[Tf,E2]=vf(bm,[$q,o0,h2]),s0=o0(),S2=h2(),[zq,wf]=Tf(bm),[Hq,Sm]=Tf(bm),T2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:l=!0}=e,c=s0(t),[p,d]=L.useState(null),m=L.useRef(!1),E=es(o),b=Lk(i);return L.useEffect(()=>{const y=()=>{m.current=!0,document.addEventListener(\"pointerdown\",w,{capture:!0,once:!0}),document.addEventListener(\"pointermove\",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener(\"keydown\",y,{capture:!0}),()=>{document.removeEventListener(\"keydown\",y,{capture:!0}),document.removeEventListener(\"pointerdown\",w,{capture:!0}),document.removeEventListener(\"pointermove\",w,{capture:!0})}},[]),Y.jsx(u2,{...c,children:Y.jsx(zq,{scope:t,open:n,onOpenChange:E,content:p,onContentChange:d,children:Y.jsx(Hq,{scope:t,onClose:L.useCallback(()=>E(!1),[E]),isUsingKeyboardRef:m,dir:b,modal:l,children:r})})})};T2.displayName=bm;var Gq=\"MenuAnchor\",iT=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=s0(n);return Y.jsx(c2,{...i,...r,ref:t})});iT.displayName=Gq;var oT=\"MenuPortal\",[Wq,w2]=Tf(oT,{forceMount:void 0}),x2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=wf(oT,t);return Y.jsx(Wq,{scope:t,forceMount:n,children:Y.jsx(Vs,{present:n||o.open,children:Y.jsx(Uy,{asChild:!0,container:i,children:r})})})};x2.displayName=oT;var Na=\"MenuContent\",[Yq,aT]=Tf(Na),C2=L.forwardRef((e,t)=>{const n=w2(Na,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=wf(Na,e.__scopeMenu),l=Sm(Na,e.__scopeMenu);return Y.jsx(Em.Provider,{scope:e.__scopeMenu,children:Y.jsx(Vs,{present:r||o.open,children:Y.jsx(Em.Slot,{scope:e.__scopeMenu,children:l.modal?Y.jsx(Qq,{...i,ref:t}):Y.jsx(Kq,{...i,ref:t})})})})}),Qq=L.forwardRef((e,t)=>{const n=wf(Na,e.__scopeMenu),r=L.useRef(null),i=oi(t,r);return L.useEffect(()=>{const o=r.current;if(o)return hk(o)},[]),Y.jsx(sT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:qt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kq=L.forwardRef((e,t)=>{const n=wf(Na,e.__scopeMenu);return Y.jsx(sT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),sT=L.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:b,onDismiss:y,disableOutsideScroll:w,...x}=e,k=wf(Na,n),N=Sm(Na,n),A=s0(n),O=S2(n),_=Bq(n),[M,V]=L.useState(null),P=L.useRef(null),F=oi(t,P,k.onContentChange),j=L.useRef(0),q=L.useRef(\"\"),Q=L.useRef(0),ee=L.useRef(null),Z=L.useRef(\"right\"),W=L.useRef(0),B=w?IS:L.Fragment,ne=w?{as:Hd,allowPinchZoom:!0}:void 0,ie=de=>{var Fe,$e;const J=q.current+de,ge=_().filter(qe=>!qe.disabled),ce=document.activeElement,he=(Fe=ge.find(qe=>qe.ref.current===ce))==null?void 0:Fe.textValue,le=ge.map(qe=>qe.textValue),pe=lB(le,J,he),Te=($e=ge.find(qe=>qe.textValue===pe))==null?void 0:$e.ref.current;(function qe(dt){q.current=dt,window.clearTimeout(j.current),dt!==\"\"&&(j.current=window.setTimeout(()=>qe(\"\"),1e3))})(J),Te&&setTimeout(()=>Te.focus())};L.useEffect(()=>()=>window.clearTimeout(j.current),[]),JD();const se=L.useCallback(de=>{var ge,ce;return Z.current===((ge=ee.current)==null?void 0:ge.side)&&cB(de,(ce=ee.current)==null?void 0:ce.area)},[]);return Y.jsx(Yq,{scope:n,searchRef:q,onItemEnter:L.useCallback(de=>{se(de)&&de.preventDefault()},[se]),onItemLeave:L.useCallback(de=>{var J;se(de)||((J=P.current)==null||J.focus(),V(null))},[se]),onTriggerLeave:L.useCallback(de=>{se(de)&&de.preventDefault()},[se]),pointerGraceTimerRef:Q,onPointerGraceIntentChange:L.useCallback(de=>{ee.current=de},[]),children:Y.jsx(B,{...ne,children:Y.jsx(AS,{asChild:!0,trapped:i,onMountAutoFocus:qt(o,de=>{var J;de.preventDefault(),(J=P.current)==null||J.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:Y.jsx(Vy,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:b,onDismiss:y,children:Y.jsx(Fq,{asChild:!0,...O,dir:N.dir,orientation:\"vertical\",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:V,onEntryFocus:qt(p,de=>{N.isUsingKeyboardRef.current||de.preventDefault()}),preventScrollOnEntryFocus:!0,children:Y.jsx(f2,{role:\"menu\",\"aria-orientation\":\"vertical\",\"data-state\":B2(k.open),\"data-radix-menu-content\":\"\",dir:N.dir,...A,...x,ref:F,style:{outline:\"none\",...x.style},onKeyDown:qt(x.onKeyDown,de=>{const ge=de.target.closest(\"[data-radix-menu-content]\")===de.currentTarget,ce=de.ctrlKey||de.altKey||de.metaKey,he=de.key.length===1;ge&&(de.key===\"Tab\"&&de.preventDefault(),!ce&&he&&ie(de.key));const le=P.current;if(de.target!==le||!Vq.includes(de.key))return;de.preventDefault();const Te=_().filter(Fe=>!Fe.disabled).map(Fe=>Fe.ref.current);b2.includes(de.key)&&Te.reverse(),aB(Te)}),onBlur:qt(e.onBlur,de=>{de.currentTarget.contains(de.target)||(window.clearTimeout(j.current),q.current=\"\")}),onPointerMove:qt(e.onPointerMove,wm(de=>{const J=de.target,ge=W.current!==de.clientX;if(de.currentTarget.contains(J)&&ge){const ce=de.clientX>W.current?\"right\":\"left\";Z.current=ce,W.current=de.clientX}}))})})})})})})});C2.displayName=Na;var Xq=\"MenuGroup\",lT=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(kr.div,{role:\"group\",...r,ref:t})});lT.displayName=Xq;var Zq=\"MenuLabel\",_2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(kr.div,{...r,ref:t})});_2.displayName=Zq;var l0=\"MenuItem\",N2=\"menu.itemSelect\",u0=L.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=L.useRef(null),l=Sm(l0,e.__scopeMenu),c=aT(l0,e.__scopeMenu),p=oi(t,o),d=L.useRef(!1),m=()=>{const E=o.current;if(!n&&E){const b=new CustomEvent(N2,{bubbles:!0,cancelable:!0});E.addEventListener(N2,y=>r==null?void 0:r(y),{once:!0}),$D(E,b),b.defaultPrevented?d.current=!1:l.onClose()}};return Y.jsx(A2,{...i,ref:p,disabled:n,onClick:qt(e.onClick,m),onPointerDown:E=>{var b;(b=e.onPointerDown)==null||b.call(e,E),d.current=!0},onPointerUp:qt(e.onPointerUp,E=>{var b;d.current||(b=E.currentTarget)==null||b.click()}),onKeyDown:qt(e.onKeyDown,E=>{const b=c.searchRef.current!==\"\";n||b&&E.key===\" \"||rT.includes(E.key)&&(E.currentTarget.click(),E.preventDefault())})})});u0.displayName=l0;var A2=L.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,l=aT(l0,n),c=S2(n),p=L.useRef(null),d=oi(t,p),[m,E]=L.useState(!1),[b,y]=L.useState(\"\");return L.useEffect(()=>{const w=p.current;w&&y((w.textContent??\"\").trim())},[o.children]),Y.jsx(Em.ItemSlot,{scope:n,disabled:r,textValue:i??b,children:Y.jsx(Pq,{asChild:!0,...c,focusable:!r,children:Y.jsx(kr.div,{role:\"menuitem\",\"data-highlighted\":m?\"\":void 0,\"aria-disabled\":r||void 0,\"data-disabled\":r?\"\":void 0,...o,ref:d,onPointerMove:qt(e.onPointerMove,wm(w=>{r?l.onItemLeave(w):(l.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:qt(e.onPointerLeave,wm(w=>l.onItemLeave(w))),onFocus:qt(e.onFocus,()=>E(!0)),onBlur:qt(e.onBlur,()=>E(!1))})})})}),Jq=\"MenuCheckboxItem\",O2=L.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return Y.jsx(L2,{scope:e.__scopeMenu,checked:n,children:Y.jsx(u0,{role:\"menuitemcheckbox\",\"aria-checked\":c0(n)?\"mixed\":n,...i,ref:t,\"data-state\":cT(n),onSelect:qt(i.onSelect,()=>r==null?void 0:r(c0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});O2.displayName=Jq;var D2=\"MenuRadioGroup\",[eB,tB]=Tf(D2,{value:void 0,onValueChange:()=>{}}),k2=L.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=es(r);return Y.jsx(eB,{scope:e.__scopeMenu,value:n,onValueChange:o,children:Y.jsx(lT,{...i,ref:t})})});k2.displayName=D2;var R2=\"MenuRadioItem\",M2=L.forwardRef((e,t)=>{const{value:n,...r}=e,i=tB(R2,e.__scopeMenu),o=n===i.value;return Y.jsx(L2,{scope:e.__scopeMenu,checked:o,children:Y.jsx(u0,{role:\"menuitemradio\",\"aria-checked\":o,...r,ref:t,\"data-state\":cT(o),onSelect:qt(r.onSelect,()=>{var l;return(l=i.onValueChange)==null?void 0:l.call(i,n)},{checkForDefaultPrevented:!1})})})});M2.displayName=R2;var uT=\"MenuItemIndicator\",[L2,nB]=Tf(uT,{checked:!1}),I2=L.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=nB(uT,n);return Y.jsx(Vs,{present:r||c0(o.checked)||o.checked===!0,children:Y.jsx(kr.span,{...i,ref:t,\"data-state\":cT(o.checked)})})});I2.displayName=uT;var rB=\"MenuSeparator\",F2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(kr.div,{role:\"separator\",\"aria-orientation\":\"horizontal\",...r,ref:t})});F2.displayName=rB;var iB=\"MenuArrow\",P2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=s0(n);return Y.jsx(d2,{...i,...r,ref:t})});P2.displayName=iB;var oB=\"MenuSub\",[Aie,j2]=Tf(oB),Tm=\"MenuSubTrigger\",V2=L.forwardRef((e,t)=>{const n=wf(Tm,e.__scopeMenu),r=Sm(Tm,e.__scopeMenu),i=j2(Tm,e.__scopeMenu),o=aT(Tm,e.__scopeMenu),l=L.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:p}=o,d={__scopeMenu:e.__scopeMenu},m=L.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return L.useEffect(()=>m,[m]),L.useEffect(()=>{const E=c.current;return()=>{window.clearTimeout(E),p(null)}},[c,p]),Y.jsx(iT,{asChild:!0,...d,children:Y.jsx(A2,{id:i.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":n.open,\"aria-controls\":i.contentId,\"data-state\":B2(n.open),...e,ref:Fy(t,i.onTriggerChange),onClick:E=>{var b;(b=e.onClick)==null||b.call(e,E),!(e.disabled||E.defaultPrevented)&&(E.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:qt(e.onPointerMove,wm(E=>{o.onItemEnter(E),!E.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(o.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:qt(e.onPointerLeave,wm(E=>{var y,w;m();const b=(y=n.content)==null?void 0:y.getBoundingClientRect();if(b){const x=(w=n.content)==null?void 0:w.dataset.side,k=x===\"right\",N=k?-5:5,A=b[k?\"left\":\"right\"],O=b[k?\"right\":\"left\"];o.onPointerGraceIntentChange({area:[{x:E.clientX+N,y:E.clientY},{x:A,y:b.top},{x:O,y:b.top},{x:O,y:b.bottom},{x:A,y:b.bottom}],side:x}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(E),E.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:qt(e.onKeyDown,E=>{var y;const b=o.searchRef.current!==\"\";e.disabled||b&&E.key===\" \"||Uq[r.dir].includes(E.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),E.preventDefault())})})})});V2.displayName=Tm;var U2=\"MenuSubContent\",q2=L.forwardRef((e,t)=>{const n=w2(Na,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=wf(Na,e.__scopeMenu),l=Sm(Na,e.__scopeMenu),c=j2(U2,e.__scopeMenu),p=L.useRef(null),d=oi(t,p);return Y.jsx(Em.Provider,{scope:e.__scopeMenu,children:Y.jsx(Vs,{present:r||o.open,children:Y.jsx(Em.Slot,{scope:e.__scopeMenu,children:Y.jsx(sT,{id:c.contentId,\"aria-labelledby\":c.triggerId,...i,ref:d,align:\"start\",side:l.dir===\"rtl\"?\"left\":\"right\",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var E;l.isUsingKeyboardRef.current&&((E=p.current)==null||E.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:qt(e.onFocusOutside,m=>{m.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:qt(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:qt(e.onKeyDown,m=>{var y;const E=m.currentTarget.contains(m.target),b=qq[l.dir].includes(m.key);E&&b&&(o.onOpenChange(!1),(y=c.trigger)==null||y.focus(),m.preventDefault())})})})})})});q2.displayName=U2;function B2(e){return e?\"open\":\"closed\"}function c0(e){return e===\"indeterminate\"}function cT(e){return c0(e)?\"indeterminate\":e?\"checked\":\"unchecked\"}function aB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function sB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lB(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=sB(e,Math.max(o,0));i.length===1&&(l=l.filter(d=>d!==n));const p=l.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return p!==n?p:void 0}function uB(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o].x,p=t[o].y,d=t[l].x,m=t[l].y;p>r!=m>r&&n<(d-c)*(r-p)/(m-p)+c&&(i=!i)}return i}function cB(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return uB(n,t)}function wm(e){return t=>t.pointerType===\"mouse\"?e(t):void 0}var fB=T2,dB=iT,pB=x2,hB=C2,mB=lT,gB=_2,vB=u0,yB=O2,bB=k2,EB=M2,SB=I2,TB=F2,wB=P2,xB=V2,CB=q2,fT=\"DropdownMenu\",[_B,Oie]=vf(fT,[E2]),uo=E2(),[NB,$2]=_B(fT),z2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,p=uo(t),d=L.useRef(null),[m=!1,E]=Py({prop:i,defaultProp:o,onChange:l});return Y.jsx(NB,{scope:t,triggerId:bf(),triggerRef:d,contentId:bf(),open:m,onOpenChange:E,onOpenToggle:L.useCallback(()=>E(b=>!b),[E]),modal:c,children:Y.jsx(fB,{...p,open:m,onOpenChange:E,dir:r,modal:c,children:n})})};z2.displayName=fT;var H2=\"DropdownMenuTrigger\",G2=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=$2(H2,n),l=uo(n);return Y.jsx(dB,{asChild:!0,...l,children:Y.jsx(kr.button,{type:\"button\",id:o.triggerId,\"aria-haspopup\":\"menu\",\"aria-expanded\":o.open,\"aria-controls\":o.open?o.contentId:void 0,\"data-state\":o.open?\"open\":\"closed\",\"data-disabled\":r?\"\":void 0,disabled:r,...i,ref:Fy(t,o.triggerRef),onPointerDown:qt(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:qt(e.onKeyDown,c=>{r||([\"Enter\",\" \"].includes(c.key)&&o.onOpenToggle(),c.key===\"ArrowDown\"&&o.onOpenChange(!0),[\"Enter\",\" \",\"ArrowDown\"].includes(c.key)&&c.preventDefault())})})})});G2.displayName=H2;var AB=\"DropdownMenuPortal\",W2=e=>{const{__scopeDropdownMenu:t,...n}=e,r=uo(t);return Y.jsx(pB,{...r,...n})};W2.displayName=AB;var Y2=\"DropdownMenuContent\",Q2=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=$2(Y2,n),o=uo(n),l=L.useRef(!1);return Y.jsx(hB,{id:i.contentId,\"aria-labelledby\":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:qt(e.onCloseAutoFocus,c=>{var p;l.current||(p=i.triggerRef.current)==null||p.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:qt(e.onInteractOutside,c=>{const p=c.detail.originalEvent,d=p.button===0&&p.ctrlKey===!0,m=p.button===2||d;(!i.modal||m)&&(l.current=!0)}),style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});Q2.displayName=Y2;var OB=\"DropdownMenuGroup\",DB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(mB,{...i,...r,ref:t})});DB.displayName=OB;var kB=\"DropdownMenuLabel\",RB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(gB,{...i,...r,ref:t})});RB.displayName=kB;var MB=\"DropdownMenuItem\",K2=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(vB,{...i,...r,ref:t})});K2.displayName=MB;var LB=\"DropdownMenuCheckboxItem\",IB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(yB,{...i,...r,ref:t})});IB.displayName=LB;var FB=\"DropdownMenuRadioGroup\",PB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(bB,{...i,...r,ref:t})});PB.displayName=FB;var jB=\"DropdownMenuRadioItem\",VB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(EB,{...i,...r,ref:t})});VB.displayName=jB;var UB=\"DropdownMenuItemIndicator\",qB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(SB,{...i,...r,ref:t})});qB.displayName=UB;var BB=\"DropdownMenuSeparator\",$B=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(TB,{...i,...r,ref:t})});$B.displayName=BB;var zB=\"DropdownMenuArrow\",HB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(wB,{...i,...r,ref:t})});HB.displayName=zB;var GB=\"DropdownMenuSubTrigger\",WB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(xB,{...i,...r,ref:t})});WB.displayName=GB;var YB=\"DropdownMenuSubContent\",QB=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(CB,{...i,...r,ref:t,style:{...e.style,\"--radix-dropdown-menu-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-dropdown-menu-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-dropdown-menu-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-dropdown-menu-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-dropdown-menu-trigger-height\":\"var(--radix-popper-anchor-height)\"}})});QB.displayName=YB;var KB=z2,XB=G2,ZB=W2,JB=Q2,e$=K2,dT={};const t$={Aacute:\"Á\",aacute:\"á\",Abreve:\"Ă\",abreve:\"ă\",ac:\"∾\",acd:\"∿\",acE:\"∾̳\",Acirc:\"Â\",acirc:\"â\",acute:\"´\",Acy:\"А\",acy:\"а\",AElig:\"Æ\",aelig:\"æ\",af:\"⁡\",Afr:\"𝔄\",afr:\"𝔞\",Agrave:\"À\",agrave:\"à\",alefsym:\"ℵ\",aleph:\"ℵ\",Alpha:\"Α\",alpha:\"α\",Amacr:\"Ā\",amacr:\"ā\",amalg:\"⨿\",amp:\"&\",AMP:\"&\",andand:\"⩕\",And:\"⩓\",and:\"∧\",andd:\"⩜\",andslope:\"⩘\",andv:\"⩚\",ang:\"∠\",ange:\"⦤\",angle:\"∠\",angmsdaa:\"⦨\",angmsdab:\"⦩\",angmsdac:\"⦪\",angmsdad:\"⦫\",angmsdae:\"⦬\",angmsdaf:\"⦭\",angmsdag:\"⦮\",angmsdah:\"⦯\",angmsd:\"∡\",angrt:\"∟\",angrtvb:\"⊾\",angrtvbd:\"⦝\",angsph:\"∢\",angst:\"Å\",angzarr:\"⍼\",Aogon:\"Ą\",aogon:\"ą\",Aopf:\"𝔸\",aopf:\"𝕒\",apacir:\"⩯\",ap:\"≈\",apE:\"⩰\",ape:\"≊\",apid:\"≋\",apos:\"'\",ApplyFunction:\"⁡\",approx:\"≈\",approxeq:\"≊\",Aring:\"Å\",aring:\"å\",Ascr:\"𝒜\",ascr:\"𝒶\",Assign:\"≔\",ast:\"*\",asymp:\"≈\",asympeq:\"≍\",Atilde:\"Ã\",atilde:\"ã\",Auml:\"Ä\",auml:\"ä\",awconint:\"∳\",awint:\"⨑\",backcong:\"≌\",backepsilon:\"϶\",backprime:\"‵\",backsim:\"∽\",backsimeq:\"⋍\",Backslash:\"∖\",Barv:\"⫧\",barvee:\"⊽\",barwed:\"⌅\",Barwed:\"⌆\",barwedge:\"⌅\",bbrk:\"⎵\",bbrktbrk:\"⎶\",bcong:\"≌\",Bcy:\"Б\",bcy:\"б\",bdquo:\"„\",becaus:\"∵\",because:\"∵\",Because:\"∵\",bemptyv:\"⦰\",bepsi:\"϶\",bernou:\"ℬ\",Bernoullis:\"ℬ\",Beta:\"Β\",beta:\"β\",beth:\"ℶ\",between:\"≬\",Bfr:\"𝔅\",bfr:\"𝔟\",bigcap:\"⋂\",bigcirc:\"◯\",bigcup:\"⋃\",bigodot:\"⨀\",bigoplus:\"⨁\",bigotimes:\"⨂\",bigsqcup:\"⨆\",bigstar:\"★\",bigtriangledown:\"▽\",bigtriangleup:\"△\",biguplus:\"⨄\",bigvee:\"⋁\",bigwedge:\"⋀\",bkarow:\"⤍\",blacklozenge:\"⧫\",blacksquare:\"▪\",blacktriangle:\"▴\",blacktriangledown:\"▾\",blacktriangleleft:\"◂\",blacktriangleright:\"▸\",blank:\"␣\",blk12:\"▒\",blk14:\"░\",blk34:\"▓\",block:\"█\",bne:\"=⃥\",bnequiv:\"≡⃥\",bNot:\"⫭\",bnot:\"⌐\",Bopf:\"𝔹\",bopf:\"𝕓\",bot:\"⊥\",bottom:\"⊥\",bowtie:\"⋈\",boxbox:\"⧉\",boxdl:\"┐\",boxdL:\"╕\",boxDl:\"╖\",boxDL:\"╗\",boxdr:\"┌\",boxdR:\"╒\",boxDr:\"╓\",boxDR:\"╔\",boxh:\"─\",boxH:\"═\",boxhd:\"┬\",boxHd:\"╤\",boxhD:\"╥\",boxHD:\"╦\",boxhu:\"┴\",boxHu:\"╧\",boxhU:\"╨\",boxHU:\"╩\",boxminus:\"⊟\",boxplus:\"⊞\",boxtimes:\"⊠\",boxul:\"┘\",boxuL:\"╛\",boxUl:\"╜\",boxUL:\"╝\",boxur:\"└\",boxuR:\"╘\",boxUr:\"╙\",boxUR:\"╚\",boxv:\"│\",boxV:\"║\",boxvh:\"┼\",boxvH:\"╪\",boxVh:\"╫\",boxVH:\"╬\",boxvl:\"┤\",boxvL:\"╡\",boxVl:\"╢\",boxVL:\"╣\",boxvr:\"├\",boxvR:\"╞\",boxVr:\"╟\",boxVR:\"╠\",bprime:\"‵\",breve:\"˘\",Breve:\"˘\",brvbar:\"¦\",bscr:\"𝒷\",Bscr:\"ℬ\",bsemi:\"⁏\",bsim:\"∽\",bsime:\"⋍\",bsolb:\"⧅\",bsol:\"\\\\\",bsolhsub:\"⟈\",bull:\"•\",bullet:\"•\",bump:\"≎\",bumpE:\"⪮\",bumpe:\"≏\",Bumpeq:\"≎\",bumpeq:\"≏\",Cacute:\"Ć\",cacute:\"ć\",capand:\"⩄\",capbrcup:\"⩉\",capcap:\"⩋\",cap:\"∩\",Cap:\"⋒\",capcup:\"⩇\",capdot:\"⩀\",CapitalDifferentialD:\"ⅅ\",caps:\"∩︀\",caret:\"⁁\",caron:\"ˇ\",Cayleys:\"ℭ\",ccaps:\"⩍\",Ccaron:\"Č\",ccaron:\"č\",Ccedil:\"Ç\",ccedil:\"ç\",Ccirc:\"Ĉ\",ccirc:\"ĉ\",Cconint:\"∰\",ccups:\"⩌\",ccupssm:\"⩐\",Cdot:\"Ċ\",cdot:\"ċ\",cedil:\"¸\",Cedilla:\"¸\",cemptyv:\"⦲\",cent:\"¢\",centerdot:\"·\",CenterDot:\"·\",cfr:\"𝔠\",Cfr:\"ℭ\",CHcy:\"Ч\",chcy:\"ч\",check:\"✓\",checkmark:\"✓\",Chi:\"Χ\",chi:\"χ\",circ:\"ˆ\",circeq:\"≗\",circlearrowleft:\"↺\",circlearrowright:\"↻\",circledast:\"⊛\",circledcirc:\"⊚\",circleddash:\"⊝\",CircleDot:\"⊙\",circledR:\"®\",circledS:\"Ⓢ\",CircleMinus:\"⊖\",CirclePlus:\"⊕\",CircleTimes:\"⊗\",cir:\"○\",cirE:\"⧃\",cire:\"≗\",cirfnint:\"⨐\",cirmid:\"⫯\",cirscir:\"⧂\",ClockwiseContourIntegral:\"∲\",CloseCurlyDoubleQuote:\"”\",CloseCurlyQuote:\"’\",clubs:\"♣\",clubsuit:\"♣\",colon:\":\",Colon:\"∷\",Colone:\"⩴\",colone:\"≔\",coloneq:\"≔\",comma:\",\",commat:\"@\",comp:\"∁\",compfn:\"∘\",complement:\"∁\",complexes:\"ℂ\",cong:\"≅\",congdot:\"⩭\",Congruent:\"≡\",conint:\"∮\",Conint:\"∯\",ContourIntegral:\"∮\",copf:\"𝕔\",Copf:\"ℂ\",coprod:\"∐\",Coproduct:\"∐\",copy:\"©\",COPY:\"©\",copysr:\"℗\",CounterClockwiseContourIntegral:\"∳\",crarr:\"↵\",cross:\"✗\",Cross:\"⨯\",Cscr:\"𝒞\",cscr:\"𝒸\",csub:\"⫏\",csube:\"⫑\",csup:\"⫐\",csupe:\"⫒\",ctdot:\"⋯\",cudarrl:\"⤸\",cudarrr:\"⤵\",cuepr:\"⋞\",cuesc:\"⋟\",cularr:\"↶\",cularrp:\"⤽\",cupbrcap:\"⩈\",cupcap:\"⩆\",CupCap:\"≍\",cup:\"∪\",Cup:\"⋓\",cupcup:\"⩊\",cupdot:\"⊍\",cupor:\"⩅\",cups:\"∪︀\",curarr:\"↷\",curarrm:\"⤼\",curlyeqprec:\"⋞\",curlyeqsucc:\"⋟\",curlyvee:\"⋎\",curlywedge:\"⋏\",curren:\"¤\",curvearrowleft:\"↶\",curvearrowright:\"↷\",cuvee:\"⋎\",cuwed:\"⋏\",cwconint:\"∲\",cwint:\"∱\",cylcty:\"⌭\",dagger:\"†\",Dagger:\"‡\",daleth:\"ℸ\",darr:\"↓\",Darr:\"↡\",dArr:\"⇓\",dash:\"‐\",Dashv:\"⫤\",dashv:\"⊣\",dbkarow:\"⤏\",dblac:\"˝\",Dcaron:\"Ď\",dcaron:\"ď\",Dcy:\"Д\",dcy:\"д\",ddagger:\"‡\",ddarr:\"⇊\",DD:\"ⅅ\",dd:\"ⅆ\",DDotrahd:\"⤑\",ddotseq:\"⩷\",deg:\"°\",Del:\"∇\",Delta:\"Δ\",delta:\"δ\",demptyv:\"⦱\",dfisht:\"⥿\",Dfr:\"𝔇\",dfr:\"𝔡\",dHar:\"⥥\",dharl:\"⇃\",dharr:\"⇂\",DiacriticalAcute:\"´\",DiacriticalDot:\"˙\",DiacriticalDoubleAcute:\"˝\",DiacriticalGrave:\"`\",DiacriticalTilde:\"˜\",diam:\"⋄\",diamond:\"⋄\",Diamond:\"⋄\",diamondsuit:\"♦\",diams:\"♦\",die:\"¨\",DifferentialD:\"ⅆ\",digamma:\"ϝ\",disin:\"⋲\",div:\"÷\",divide:\"÷\",divideontimes:\"⋇\",divonx:\"⋇\",DJcy:\"Ђ\",djcy:\"ђ\",dlcorn:\"⌞\",dlcrop:\"⌍\",dollar:\"$\",Dopf:\"𝔻\",dopf:\"𝕕\",Dot:\"¨\",dot:\"˙\",DotDot:\"⃜\",doteq:\"≐\",doteqdot:\"≑\",DotEqual:\"≐\",dotminus:\"∸\",dotplus:\"∔\",dotsquare:\"⊡\",doublebarwedge:\"⌆\",DoubleContourIntegral:\"∯\",DoubleDot:\"¨\",DoubleDownArrow:\"⇓\",DoubleLeftArrow:\"⇐\",DoubleLeftRightArrow:\"⇔\",DoubleLeftTee:\"⫤\",DoubleLongLeftArrow:\"⟸\",DoubleLongLeftRightArrow:\"⟺\",DoubleLongRightArrow:\"⟹\",DoubleRightArrow:\"⇒\",DoubleRightTee:\"⊨\",DoubleUpArrow:\"⇑\",DoubleUpDownArrow:\"⇕\",DoubleVerticalBar:\"∥\",DownArrowBar:\"⤓\",downarrow:\"↓\",DownArrow:\"↓\",Downarrow:\"⇓\",DownArrowUpArrow:\"⇵\",DownBreve:\"̑\",downdownarrows:\"⇊\",downharpoonleft:\"⇃\",downharpoonright:\"⇂\",DownLeftRightVector:\"⥐\",DownLeftTeeVector:\"⥞\",DownLeftVectorBar:\"⥖\",DownLeftVector:\"↽\",DownRightTeeVector:\"⥟\",DownRightVectorBar:\"⥗\",DownRightVector:\"⇁\",DownTeeArrow:\"↧\",DownTee:\"⊤\",drbkarow:\"⤐\",drcorn:\"⌟\",drcrop:\"⌌\",Dscr:\"𝒟\",dscr:\"𝒹\",DScy:\"Ѕ\",dscy:\"ѕ\",dsol:\"⧶\",Dstrok:\"Đ\",dstrok:\"đ\",dtdot:\"⋱\",dtri:\"▿\",dtrif:\"▾\",duarr:\"⇵\",duhar:\"⥯\",dwangle:\"⦦\",DZcy:\"Џ\",dzcy:\"џ\",dzigrarr:\"⟿\",Eacute:\"É\",eacute:\"é\",easter:\"⩮\",Ecaron:\"Ě\",ecaron:\"ě\",Ecirc:\"Ê\",ecirc:\"ê\",ecir:\"≖\",ecolon:\"≕\",Ecy:\"Э\",ecy:\"э\",eDDot:\"⩷\",Edot:\"Ė\",edot:\"ė\",eDot:\"≑\",ee:\"ⅇ\",efDot:\"≒\",Efr:\"𝔈\",efr:\"𝔢\",eg:\"⪚\",Egrave:\"È\",egrave:\"è\",egs:\"⪖\",egsdot:\"⪘\",el:\"⪙\",Element:\"∈\",elinters:\"⏧\",ell:\"ℓ\",els:\"⪕\",elsdot:\"⪗\",Emacr:\"Ē\",emacr:\"ē\",empty:\"∅\",emptyset:\"∅\",EmptySmallSquare:\"◻\",emptyv:\"∅\",EmptyVerySmallSquare:\"▫\",emsp13:\" \",emsp14:\" \",emsp:\" \",ENG:\"Ŋ\",eng:\"ŋ\",ensp:\" \",Eogon:\"Ę\",eogon:\"ę\",Eopf:\"𝔼\",eopf:\"𝕖\",epar:\"⋕\",eparsl:\"⧣\",eplus:\"⩱\",epsi:\"ε\",Epsilon:\"Ε\",epsilon:\"ε\",epsiv:\"ϵ\",eqcirc:\"≖\",eqcolon:\"≕\",eqsim:\"≂\",eqslantgtr:\"⪖\",eqslantless:\"⪕\",Equal:\"⩵\",equals:\"=\",EqualTilde:\"≂\",equest:\"≟\",Equilibrium:\"⇌\",equiv:\"≡\",equivDD:\"⩸\",eqvparsl:\"⧥\",erarr:\"⥱\",erDot:\"≓\",escr:\"ℯ\",Escr:\"ℰ\",esdot:\"≐\",Esim:\"⩳\",esim:\"≂\",Eta:\"Η\",eta:\"η\",ETH:\"Ð\",eth:\"ð\",Euml:\"Ë\",euml:\"ë\",euro:\"€\",excl:\"!\",exist:\"∃\",Exists:\"∃\",expectation:\"ℰ\",exponentiale:\"ⅇ\",ExponentialE:\"ⅇ\",fallingdotseq:\"≒\",Fcy:\"Ф\",fcy:\"ф\",female:\"♀\",ffilig:\"ffi\",fflig:\"ff\",ffllig:\"ffl\",Ffr:\"𝔉\",ffr:\"𝔣\",filig:\"fi\",FilledSmallSquare:\"◼\",FilledVerySmallSquare:\"▪\",fjlig:\"fj\",flat:\"♭\",fllig:\"fl\",fltns:\"▱\",fnof:\"ƒ\",Fopf:\"𝔽\",fopf:\"𝕗\",forall:\"∀\",ForAll:\"∀\",fork:\"⋔\",forkv:\"⫙\",Fouriertrf:\"ℱ\",fpartint:\"⨍\",frac12:\"½\",frac13:\"⅓\",frac14:\"¼\",frac15:\"⅕\",frac16:\"⅙\",frac18:\"⅛\",frac23:\"⅔\",frac25:\"⅖\",frac34:\"¾\",frac35:\"⅗\",frac38:\"⅜\",frac45:\"⅘\",frac56:\"⅚\",frac58:\"⅝\",frac78:\"⅞\",frasl:\"⁄\",frown:\"⌢\",fscr:\"𝒻\",Fscr:\"ℱ\",gacute:\"ǵ\",Gamma:\"Γ\",gamma:\"γ\",Gammad:\"Ϝ\",gammad:\"ϝ\",gap:\"⪆\",Gbreve:\"Ğ\",gbreve:\"ğ\",Gcedil:\"Ģ\",Gcirc:\"Ĝ\",gcirc:\"ĝ\",Gcy:\"Г\",gcy:\"г\",Gdot:\"Ġ\",gdot:\"ġ\",ge:\"≥\",gE:\"≧\",gEl:\"⪌\",gel:\"⋛\",geq:\"≥\",geqq:\"≧\",geqslant:\"⩾\",gescc:\"⪩\",ges:\"⩾\",gesdot:\"⪀\",gesdoto:\"⪂\",gesdotol:\"⪄\",gesl:\"⋛︀\",gesles:\"⪔\",Gfr:\"𝔊\",gfr:\"𝔤\",gg:\"≫\",Gg:\"⋙\",ggg:\"⋙\",gimel:\"ℷ\",GJcy:\"Ѓ\",gjcy:\"ѓ\",gla:\"⪥\",gl:\"≷\",glE:\"⪒\",glj:\"⪤\",gnap:\"⪊\",gnapprox:\"⪊\",gne:\"⪈\",gnE:\"≩\",gneq:\"⪈\",gneqq:\"≩\",gnsim:\"⋧\",Gopf:\"𝔾\",gopf:\"𝕘\",grave:\"`\",GreaterEqual:\"≥\",GreaterEqualLess:\"⋛\",GreaterFullEqual:\"≧\",GreaterGreater:\"⪢\",GreaterLess:\"≷\",GreaterSlantEqual:\"⩾\",GreaterTilde:\"≳\",Gscr:\"𝒢\",gscr:\"ℊ\",gsim:\"≳\",gsime:\"⪎\",gsiml:\"⪐\",gtcc:\"⪧\",gtcir:\"⩺\",gt:\">\",GT:\">\",Gt:\"≫\",gtdot:\"⋗\",gtlPar:\"⦕\",gtquest:\"⩼\",gtrapprox:\"⪆\",gtrarr:\"⥸\",gtrdot:\"⋗\",gtreqless:\"⋛\",gtreqqless:\"⪌\",gtrless:\"≷\",gtrsim:\"≳\",gvertneqq:\"≩︀\",gvnE:\"≩︀\",Hacek:\"ˇ\",hairsp:\" \",half:\"½\",hamilt:\"ℋ\",HARDcy:\"Ъ\",hardcy:\"ъ\",harrcir:\"⥈\",harr:\"↔\",hArr:\"⇔\",harrw:\"↭\",Hat:\"^\",hbar:\"ℏ\",Hcirc:\"Ĥ\",hcirc:\"ĥ\",hearts:\"♥\",heartsuit:\"♥\",hellip:\"…\",hercon:\"⊹\",hfr:\"𝔥\",Hfr:\"ℌ\",HilbertSpace:\"ℋ\",hksearow:\"⤥\",hkswarow:\"⤦\",hoarr:\"⇿\",homtht:\"∻\",hookleftarrow:\"↩\",hookrightarrow:\"↪\",hopf:\"𝕙\",Hopf:\"ℍ\",horbar:\"―\",HorizontalLine:\"─\",hscr:\"𝒽\",Hscr:\"ℋ\",hslash:\"ℏ\",Hstrok:\"Ħ\",hstrok:\"ħ\",HumpDownHump:\"≎\",HumpEqual:\"≏\",hybull:\"⁃\",hyphen:\"‐\",Iacute:\"Í\",iacute:\"í\",ic:\"⁣\",Icirc:\"Î\",icirc:\"î\",Icy:\"И\",icy:\"и\",Idot:\"İ\",IEcy:\"Е\",iecy:\"е\",iexcl:\"¡\",iff:\"⇔\",ifr:\"𝔦\",Ifr:\"ℑ\",Igrave:\"Ì\",igrave:\"ì\",ii:\"ⅈ\",iiiint:\"⨌\",iiint:\"∭\",iinfin:\"⧜\",iiota:\"℩\",IJlig:\"IJ\",ijlig:\"ij\",Imacr:\"Ī\",imacr:\"ī\",image:\"ℑ\",ImaginaryI:\"ⅈ\",imagline:\"ℐ\",imagpart:\"ℑ\",imath:\"ı\",Im:\"ℑ\",imof:\"⊷\",imped:\"Ƶ\",Implies:\"⇒\",incare:\"℅\",in:\"∈\",infin:\"∞\",infintie:\"⧝\",inodot:\"ı\",intcal:\"⊺\",int:\"∫\",Int:\"∬\",integers:\"ℤ\",Integral:\"∫\",intercal:\"⊺\",Intersection:\"⋂\",intlarhk:\"⨗\",intprod:\"⨼\",InvisibleComma:\"⁣\",InvisibleTimes:\"⁢\",IOcy:\"Ё\",iocy:\"ё\",Iogon:\"Į\",iogon:\"į\",Iopf:\"𝕀\",iopf:\"𝕚\",Iota:\"Ι\",iota:\"ι\",iprod:\"⨼\",iquest:\"¿\",iscr:\"𝒾\",Iscr:\"ℐ\",isin:\"∈\",isindot:\"⋵\",isinE:\"⋹\",isins:\"⋴\",isinsv:\"⋳\",isinv:\"∈\",it:\"⁢\",Itilde:\"Ĩ\",itilde:\"ĩ\",Iukcy:\"І\",iukcy:\"і\",Iuml:\"Ï\",iuml:\"ï\",Jcirc:\"Ĵ\",jcirc:\"ĵ\",Jcy:\"Й\",jcy:\"й\",Jfr:\"𝔍\",jfr:\"𝔧\",jmath:\"ȷ\",Jopf:\"𝕁\",jopf:\"𝕛\",Jscr:\"𝒥\",jscr:\"𝒿\",Jsercy:\"Ј\",jsercy:\"ј\",Jukcy:\"Є\",jukcy:\"є\",Kappa:\"Κ\",kappa:\"κ\",kappav:\"ϰ\",Kcedil:\"Ķ\",kcedil:\"ķ\",Kcy:\"К\",kcy:\"к\",Kfr:\"𝔎\",kfr:\"𝔨\",kgreen:\"ĸ\",KHcy:\"Х\",khcy:\"х\",KJcy:\"Ќ\",kjcy:\"ќ\",Kopf:\"𝕂\",kopf:\"𝕜\",Kscr:\"𝒦\",kscr:\"𝓀\",lAarr:\"⇚\",Lacute:\"Ĺ\",lacute:\"ĺ\",laemptyv:\"⦴\",lagran:\"ℒ\",Lambda:\"Λ\",lambda:\"λ\",lang:\"⟨\",Lang:\"⟪\",langd:\"⦑\",langle:\"⟨\",lap:\"⪅\",Laplacetrf:\"ℒ\",laquo:\"«\",larrb:\"⇤\",larrbfs:\"⤟\",larr:\"←\",Larr:\"↞\",lArr:\"⇐\",larrfs:\"⤝\",larrhk:\"↩\",larrlp:\"↫\",larrpl:\"⤹\",larrsim:\"⥳\",larrtl:\"↢\",latail:\"⤙\",lAtail:\"⤛\",lat:\"⪫\",late:\"⪭\",lates:\"⪭︀\",lbarr:\"⤌\",lBarr:\"⤎\",lbbrk:\"❲\",lbrace:\"{\",lbrack:\"[\",lbrke:\"⦋\",lbrksld:\"⦏\",lbrkslu:\"⦍\",Lcaron:\"Ľ\",lcaron:\"ľ\",Lcedil:\"Ļ\",lcedil:\"ļ\",lceil:\"⌈\",lcub:\"{\",Lcy:\"Л\",lcy:\"л\",ldca:\"⤶\",ldquo:\"“\",ldquor:\"„\",ldrdhar:\"⥧\",ldrushar:\"⥋\",ldsh:\"↲\",le:\"≤\",lE:\"≦\",LeftAngleBracket:\"⟨\",LeftArrowBar:\"⇤\",leftarrow:\"←\",LeftArrow:\"←\",Leftarrow:\"⇐\",LeftArrowRightArrow:\"⇆\",leftarrowtail:\"↢\",LeftCeiling:\"⌈\",LeftDoubleBracket:\"⟦\",LeftDownTeeVector:\"⥡\",LeftDownVectorBar:\"⥙\",LeftDownVector:\"⇃\",LeftFloor:\"⌊\",leftharpoondown:\"↽\",leftharpoonup:\"↼\",leftleftarrows:\"⇇\",leftrightarrow:\"↔\",LeftRightArrow:\"↔\",Leftrightarrow:\"⇔\",leftrightarrows:\"⇆\",leftrightharpoons:\"⇋\",leftrightsquigarrow:\"↭\",LeftRightVector:\"⥎\",LeftTeeArrow:\"↤\",LeftTee:\"⊣\",LeftTeeVector:\"⥚\",leftthreetimes:\"⋋\",LeftTriangleBar:\"⧏\",LeftTriangle:\"⊲\",LeftTriangleEqual:\"⊴\",LeftUpDownVector:\"⥑\",LeftUpTeeVector:\"⥠\",LeftUpVectorBar:\"⥘\",LeftUpVector:\"↿\",LeftVectorBar:\"⥒\",LeftVector:\"↼\",lEg:\"⪋\",leg:\"⋚\",leq:\"≤\",leqq:\"≦\",leqslant:\"⩽\",lescc:\"⪨\",les:\"⩽\",lesdot:\"⩿\",lesdoto:\"⪁\",lesdotor:\"⪃\",lesg:\"⋚︀\",lesges:\"⪓\",lessapprox:\"⪅\",lessdot:\"⋖\",lesseqgtr:\"⋚\",lesseqqgtr:\"⪋\",LessEqualGreater:\"⋚\",LessFullEqual:\"≦\",LessGreater:\"≶\",lessgtr:\"≶\",LessLess:\"⪡\",lesssim:\"≲\",LessSlantEqual:\"⩽\",LessTilde:\"≲\",lfisht:\"⥼\",lfloor:\"⌊\",Lfr:\"𝔏\",lfr:\"𝔩\",lg:\"≶\",lgE:\"⪑\",lHar:\"⥢\",lhard:\"↽\",lharu:\"↼\",lharul:\"⥪\",lhblk:\"▄\",LJcy:\"Љ\",ljcy:\"љ\",llarr:\"⇇\",ll:\"≪\",Ll:\"⋘\",llcorner:\"⌞\",Lleftarrow:\"⇚\",llhard:\"⥫\",lltri:\"◺\",Lmidot:\"Ŀ\",lmidot:\"ŀ\",lmoustache:\"⎰\",lmoust:\"⎰\",lnap:\"⪉\",lnapprox:\"⪉\",lne:\"⪇\",lnE:\"≨\",lneq:\"⪇\",lneqq:\"≨\",lnsim:\"⋦\",loang:\"⟬\",loarr:\"⇽\",lobrk:\"⟦\",longleftarrow:\"⟵\",LongLeftArrow:\"⟵\",Longleftarrow:\"⟸\",longleftrightarrow:\"⟷\",LongLeftRightArrow:\"⟷\",Longleftrightarrow:\"⟺\",longmapsto:\"⟼\",longrightarrow:\"⟶\",LongRightArrow:\"⟶\",Longrightarrow:\"⟹\",looparrowleft:\"↫\",looparrowright:\"↬\",lopar:\"⦅\",Lopf:\"𝕃\",lopf:\"𝕝\",loplus:\"⨭\",lotimes:\"⨴\",lowast:\"∗\",lowbar:\"_\",LowerLeftArrow:\"↙\",LowerRightArrow:\"↘\",loz:\"◊\",lozenge:\"◊\",lozf:\"⧫\",lpar:\"(\",lparlt:\"⦓\",lrarr:\"⇆\",lrcorner:\"⌟\",lrhar:\"⇋\",lrhard:\"⥭\",lrm:\"‎\",lrtri:\"⊿\",lsaquo:\"‹\",lscr:\"𝓁\",Lscr:\"ℒ\",lsh:\"↰\",Lsh:\"↰\",lsim:\"≲\",lsime:\"⪍\",lsimg:\"⪏\",lsqb:\"[\",lsquo:\"‘\",lsquor:\"‚\",Lstrok:\"Ł\",lstrok:\"ł\",ltcc:\"⪦\",ltcir:\"⩹\",lt:\"<\",LT:\"<\",Lt:\"≪\",ltdot:\"⋖\",lthree:\"⋋\",ltimes:\"⋉\",ltlarr:\"⥶\",ltquest:\"⩻\",ltri:\"◃\",ltrie:\"⊴\",ltrif:\"◂\",ltrPar:\"⦖\",lurdshar:\"⥊\",luruhar:\"⥦\",lvertneqq:\"≨︀\",lvnE:\"≨︀\",macr:\"¯\",male:\"♂\",malt:\"✠\",maltese:\"✠\",Map:\"⤅\",map:\"↦\",mapsto:\"↦\",mapstodown:\"↧\",mapstoleft:\"↤\",mapstoup:\"↥\",marker:\"▮\",mcomma:\"⨩\",Mcy:\"М\",mcy:\"м\",mdash:\"—\",mDDot:\"∺\",measuredangle:\"∡\",MediumSpace:\" \",Mellintrf:\"ℳ\",Mfr:\"𝔐\",mfr:\"𝔪\",mho:\"℧\",micro:\"µ\",midast:\"*\",midcir:\"⫰\",mid:\"∣\",middot:\"·\",minusb:\"⊟\",minus:\"−\",minusd:\"∸\",minusdu:\"⨪\",MinusPlus:\"∓\",mlcp:\"⫛\",mldr:\"…\",mnplus:\"∓\",models:\"⊧\",Mopf:\"𝕄\",mopf:\"𝕞\",mp:\"∓\",mscr:\"𝓂\",Mscr:\"ℳ\",mstpos:\"∾\",Mu:\"Μ\",mu:\"μ\",multimap:\"⊸\",mumap:\"⊸\",nabla:\"∇\",Nacute:\"Ń\",nacute:\"ń\",nang:\"∠⃒\",nap:\"≉\",napE:\"⩰̸\",napid:\"≋̸\",napos:\"ʼn\",napprox:\"≉\",natural:\"♮\",naturals:\"ℕ\",natur:\"♮\",nbsp:\" \",nbump:\"≎̸\",nbumpe:\"≏̸\",ncap:\"⩃\",Ncaron:\"Ň\",ncaron:\"ň\",Ncedil:\"Ņ\",ncedil:\"ņ\",ncong:\"≇\",ncongdot:\"⩭̸\",ncup:\"⩂\",Ncy:\"Н\",ncy:\"н\",ndash:\"–\",nearhk:\"⤤\",nearr:\"↗\",neArr:\"⇗\",nearrow:\"↗\",ne:\"≠\",nedot:\"≐̸\",NegativeMediumSpace:\"​\",NegativeThickSpace:\"​\",NegativeThinSpace:\"​\",NegativeVeryThinSpace:\"​\",nequiv:\"≢\",nesear:\"⤨\",nesim:\"≂̸\",NestedGreaterGreater:\"≫\",NestedLessLess:\"≪\",NewLine:`\n`,nexist:\"∄\",nexists:\"∄\",Nfr:\"𝔑\",nfr:\"𝔫\",ngE:\"≧̸\",nge:\"≱\",ngeq:\"≱\",ngeqq:\"≧̸\",ngeqslant:\"⩾̸\",nges:\"⩾̸\",nGg:\"⋙̸\",ngsim:\"≵\",nGt:\"≫⃒\",ngt:\"≯\",ngtr:\"≯\",nGtv:\"≫̸\",nharr:\"↮\",nhArr:\"⇎\",nhpar:\"⫲\",ni:\"∋\",nis:\"⋼\",nisd:\"⋺\",niv:\"∋\",NJcy:\"Њ\",njcy:\"њ\",nlarr:\"↚\",nlArr:\"⇍\",nldr:\"‥\",nlE:\"≦̸\",nle:\"≰\",nleftarrow:\"↚\",nLeftarrow:\"⇍\",nleftrightarrow:\"↮\",nLeftrightarrow:\"⇎\",nleq:\"≰\",nleqq:\"≦̸\",nleqslant:\"⩽̸\",nles:\"⩽̸\",nless:\"≮\",nLl:\"⋘̸\",nlsim:\"≴\",nLt:\"≪⃒\",nlt:\"≮\",nltri:\"⋪\",nltrie:\"⋬\",nLtv:\"≪̸\",nmid:\"∤\",NoBreak:\"⁠\",NonBreakingSpace:\" \",nopf:\"𝕟\",Nopf:\"ℕ\",Not:\"⫬\",not:\"¬\",NotCongruent:\"≢\",NotCupCap:\"≭\",NotDoubleVerticalBar:\"∦\",NotElement:\"∉\",NotEqual:\"≠\",NotEqualTilde:\"≂̸\",NotExists:\"∄\",NotGreater:\"≯\",NotGreaterEqual:\"≱\",NotGreaterFullEqual:\"≧̸\",NotGreaterGreater:\"≫̸\",NotGreaterLess:\"≹\",NotGreaterSlantEqual:\"⩾̸\",NotGreaterTilde:\"≵\",NotHumpDownHump:\"≎̸\",NotHumpEqual:\"≏̸\",notin:\"∉\",notindot:\"⋵̸\",notinE:\"⋹̸\",notinva:\"∉\",notinvb:\"⋷\",notinvc:\"⋶\",NotLeftTriangleBar:\"⧏̸\",NotLeftTriangle:\"⋪\",NotLeftTriangleEqual:\"⋬\",NotLess:\"≮\",NotLessEqual:\"≰\",NotLessGreater:\"≸\",NotLessLess:\"≪̸\",NotLessSlantEqual:\"⩽̸\",NotLessTilde:\"≴\",NotNestedGreaterGreater:\"⪢̸\",NotNestedLessLess:\"⪡̸\",notni:\"∌\",notniva:\"∌\",notnivb:\"⋾\",notnivc:\"⋽\",NotPrecedes:\"⊀\",NotPrecedesEqual:\"⪯̸\",NotPrecedesSlantEqual:\"⋠\",NotReverseElement:\"∌\",NotRightTriangleBar:\"⧐̸\",NotRightTriangle:\"⋫\",NotRightTriangleEqual:\"⋭\",NotSquareSubset:\"⊏̸\",NotSquareSubsetEqual:\"⋢\",NotSquareSuperset:\"⊐̸\",NotSquareSupersetEqual:\"⋣\",NotSubset:\"⊂⃒\",NotSubsetEqual:\"⊈\",NotSucceeds:\"⊁\",NotSucceedsEqual:\"⪰̸\",NotSucceedsSlantEqual:\"⋡\",NotSucceedsTilde:\"≿̸\",NotSuperset:\"⊃⃒\",NotSupersetEqual:\"⊉\",NotTilde:\"≁\",NotTildeEqual:\"≄\",NotTildeFullEqual:\"≇\",NotTildeTilde:\"≉\",NotVerticalBar:\"∤\",nparallel:\"∦\",npar:\"∦\",nparsl:\"⫽⃥\",npart:\"∂̸\",npolint:\"⨔\",npr:\"⊀\",nprcue:\"⋠\",nprec:\"⊀\",npreceq:\"⪯̸\",npre:\"⪯̸\",nrarrc:\"⤳̸\",nrarr:\"↛\",nrArr:\"⇏\",nrarrw:\"↝̸\",nrightarrow:\"↛\",nRightarrow:\"⇏\",nrtri:\"⋫\",nrtrie:\"⋭\",nsc:\"⊁\",nsccue:\"⋡\",nsce:\"⪰̸\",Nscr:\"𝒩\",nscr:\"𝓃\",nshortmid:\"∤\",nshortparallel:\"∦\",nsim:\"≁\",nsime:\"≄\",nsimeq:\"≄\",nsmid:\"∤\",nspar:\"∦\",nsqsube:\"⋢\",nsqsupe:\"⋣\",nsub:\"⊄\",nsubE:\"⫅̸\",nsube:\"⊈\",nsubset:\"⊂⃒\",nsubseteq:\"⊈\",nsubseteqq:\"⫅̸\",nsucc:\"⊁\",nsucceq:\"⪰̸\",nsup:\"⊅\",nsupE:\"⫆̸\",nsupe:\"⊉\",nsupset:\"⊃⃒\",nsupseteq:\"⊉\",nsupseteqq:\"⫆̸\",ntgl:\"≹\",Ntilde:\"Ñ\",ntilde:\"ñ\",ntlg:\"≸\",ntriangleleft:\"⋪\",ntrianglelefteq:\"⋬\",ntriangleright:\"⋫\",ntrianglerighteq:\"⋭\",Nu:\"Ν\",nu:\"ν\",num:\"#\",numero:\"№\",numsp:\" \",nvap:\"≍⃒\",nvdash:\"⊬\",nvDash:\"⊭\",nVdash:\"⊮\",nVDash:\"⊯\",nvge:\"≥⃒\",nvgt:\">⃒\",nvHarr:\"⤄\",nvinfin:\"⧞\",nvlArr:\"⤂\",nvle:\"≤⃒\",nvlt:\"<⃒\",nvltrie:\"⊴⃒\",nvrArr:\"⤃\",nvrtrie:\"⊵⃒\",nvsim:\"∼⃒\",nwarhk:\"⤣\",nwarr:\"↖\",nwArr:\"⇖\",nwarrow:\"↖\",nwnear:\"⤧\",Oacute:\"Ó\",oacute:\"ó\",oast:\"⊛\",Ocirc:\"Ô\",ocirc:\"ô\",ocir:\"⊚\",Ocy:\"О\",ocy:\"о\",odash:\"⊝\",Odblac:\"Ő\",odblac:\"ő\",odiv:\"⨸\",odot:\"⊙\",odsold:\"⦼\",OElig:\"Œ\",oelig:\"œ\",ofcir:\"⦿\",Ofr:\"𝔒\",ofr:\"𝔬\",ogon:\"˛\",Ograve:\"Ò\",ograve:\"ò\",ogt:\"⧁\",ohbar:\"⦵\",ohm:\"Ω\",oint:\"∮\",olarr:\"↺\",olcir:\"⦾\",olcross:\"⦻\",oline:\"‾\",olt:\"⧀\",Omacr:\"Ō\",omacr:\"ō\",Omega:\"Ω\",omega:\"ω\",Omicron:\"Ο\",omicron:\"ο\",omid:\"⦶\",ominus:\"⊖\",Oopf:\"𝕆\",oopf:\"𝕠\",opar:\"⦷\",OpenCurlyDoubleQuote:\"“\",OpenCurlyQuote:\"‘\",operp:\"⦹\",oplus:\"⊕\",orarr:\"↻\",Or:\"⩔\",or:\"∨\",ord:\"⩝\",order:\"ℴ\",orderof:\"ℴ\",ordf:\"ª\",ordm:\"º\",origof:\"⊶\",oror:\"⩖\",orslope:\"⩗\",orv:\"⩛\",oS:\"Ⓢ\",Oscr:\"𝒪\",oscr:\"ℴ\",Oslash:\"Ø\",oslash:\"ø\",osol:\"⊘\",Otilde:\"Õ\",otilde:\"õ\",otimesas:\"⨶\",Otimes:\"⨷\",otimes:\"⊗\",Ouml:\"Ö\",ouml:\"ö\",ovbar:\"⌽\",OverBar:\"‾\",OverBrace:\"⏞\",OverBracket:\"⎴\",OverParenthesis:\"⏜\",para:\"¶\",parallel:\"∥\",par:\"∥\",parsim:\"⫳\",parsl:\"⫽\",part:\"∂\",PartialD:\"∂\",Pcy:\"П\",pcy:\"п\",percnt:\"%\",period:\".\",permil:\"‰\",perp:\"⊥\",pertenk:\"‱\",Pfr:\"𝔓\",pfr:\"𝔭\",Phi:\"Φ\",phi:\"φ\",phiv:\"ϕ\",phmmat:\"ℳ\",phone:\"☎\",Pi:\"Π\",pi:\"π\",pitchfork:\"⋔\",piv:\"ϖ\",planck:\"ℏ\",planckh:\"ℎ\",plankv:\"ℏ\",plusacir:\"⨣\",plusb:\"⊞\",pluscir:\"⨢\",plus:\"+\",plusdo:\"∔\",plusdu:\"⨥\",pluse:\"⩲\",PlusMinus:\"±\",plusmn:\"±\",plussim:\"⨦\",plustwo:\"⨧\",pm:\"±\",Poincareplane:\"ℌ\",pointint:\"⨕\",popf:\"𝕡\",Popf:\"ℙ\",pound:\"£\",prap:\"⪷\",Pr:\"⪻\",pr:\"≺\",prcue:\"≼\",precapprox:\"⪷\",prec:\"≺\",preccurlyeq:\"≼\",Precedes:\"≺\",PrecedesEqual:\"⪯\",PrecedesSlantEqual:\"≼\",PrecedesTilde:\"≾\",preceq:\"⪯\",precnapprox:\"⪹\",precneqq:\"⪵\",precnsim:\"⋨\",pre:\"⪯\",prE:\"⪳\",precsim:\"≾\",prime:\"′\",Prime:\"″\",primes:\"ℙ\",prnap:\"⪹\",prnE:\"⪵\",prnsim:\"⋨\",prod:\"∏\",Product:\"∏\",profalar:\"⌮\",profline:\"⌒\",profsurf:\"⌓\",prop:\"∝\",Proportional:\"∝\",Proportion:\"∷\",propto:\"∝\",prsim:\"≾\",prurel:\"⊰\",Pscr:\"𝒫\",pscr:\"𝓅\",Psi:\"Ψ\",psi:\"ψ\",puncsp:\" \",Qfr:\"𝔔\",qfr:\"𝔮\",qint:\"⨌\",qopf:\"𝕢\",Qopf:\"ℚ\",qprime:\"⁗\",Qscr:\"𝒬\",qscr:\"𝓆\",quaternions:\"ℍ\",quatint:\"⨖\",quest:\"?\",questeq:\"≟\",quot:'\"',QUOT:'\"',rAarr:\"⇛\",race:\"∽̱\",Racute:\"Ŕ\",racute:\"ŕ\",radic:\"√\",raemptyv:\"⦳\",rang:\"⟩\",Rang:\"⟫\",rangd:\"⦒\",range:\"⦥\",rangle:\"⟩\",raquo:\"»\",rarrap:\"⥵\",rarrb:\"⇥\",rarrbfs:\"⤠\",rarrc:\"⤳\",rarr:\"→\",Rarr:\"↠\",rArr:\"⇒\",rarrfs:\"⤞\",rarrhk:\"↪\",rarrlp:\"↬\",rarrpl:\"⥅\",rarrsim:\"⥴\",Rarrtl:\"⤖\",rarrtl:\"↣\",rarrw:\"↝\",ratail:\"⤚\",rAtail:\"⤜\",ratio:\"∶\",rationals:\"ℚ\",rbarr:\"⤍\",rBarr:\"⤏\",RBarr:\"⤐\",rbbrk:\"❳\",rbrace:\"}\",rbrack:\"]\",rbrke:\"⦌\",rbrksld:\"⦎\",rbrkslu:\"⦐\",Rcaron:\"Ř\",rcaron:\"ř\",Rcedil:\"Ŗ\",rcedil:\"ŗ\",rceil:\"⌉\",rcub:\"}\",Rcy:\"Р\",rcy:\"р\",rdca:\"⤷\",rdldhar:\"⥩\",rdquo:\"”\",rdquor:\"”\",rdsh:\"↳\",real:\"ℜ\",realine:\"ℛ\",realpart:\"ℜ\",reals:\"ℝ\",Re:\"ℜ\",rect:\"▭\",reg:\"®\",REG:\"®\",ReverseElement:\"∋\",ReverseEquilibrium:\"⇋\",ReverseUpEquilibrium:\"⥯\",rfisht:\"⥽\",rfloor:\"⌋\",rfr:\"𝔯\",Rfr:\"ℜ\",rHar:\"⥤\",rhard:\"⇁\",rharu:\"⇀\",rharul:\"⥬\",Rho:\"Ρ\",rho:\"ρ\",rhov:\"ϱ\",RightAngleBracket:\"⟩\",RightArrowBar:\"⇥\",rightarrow:\"→\",RightArrow:\"→\",Rightarrow:\"⇒\",RightArrowLeftArrow:\"⇄\",rightarrowtail:\"↣\",RightCeiling:\"⌉\",RightDoubleBracket:\"⟧\",RightDownTeeVector:\"⥝\",RightDownVectorBar:\"⥕\",RightDownVector:\"⇂\",RightFloor:\"⌋\",rightharpoondown:\"⇁\",rightharpoonup:\"⇀\",rightleftarrows:\"⇄\",rightleftharpoons:\"⇌\",rightrightarrows:\"⇉\",rightsquigarrow:\"↝\",RightTeeArrow:\"↦\",RightTee:\"⊢\",RightTeeVector:\"⥛\",rightthreetimes:\"⋌\",RightTriangleBar:\"⧐\",RightTriangle:\"⊳\",RightTriangleEqual:\"⊵\",RightUpDownVector:\"⥏\",RightUpTeeVector:\"⥜\",RightUpVectorBar:\"⥔\",RightUpVector:\"↾\",RightVectorBar:\"⥓\",RightVector:\"⇀\",ring:\"˚\",risingdotseq:\"≓\",rlarr:\"⇄\",rlhar:\"⇌\",rlm:\"‏\",rmoustache:\"⎱\",rmoust:\"⎱\",rnmid:\"⫮\",roang:\"⟭\",roarr:\"⇾\",robrk:\"⟧\",ropar:\"⦆\",ropf:\"𝕣\",Ropf:\"ℝ\",roplus:\"⨮\",rotimes:\"⨵\",RoundImplies:\"⥰\",rpar:\")\",rpargt:\"⦔\",rppolint:\"⨒\",rrarr:\"⇉\",Rrightarrow:\"⇛\",rsaquo:\"›\",rscr:\"𝓇\",Rscr:\"ℛ\",rsh:\"↱\",Rsh:\"↱\",rsqb:\"]\",rsquo:\"’\",rsquor:\"’\",rthree:\"⋌\",rtimes:\"⋊\",rtri:\"▹\",rtrie:\"⊵\",rtrif:\"▸\",rtriltri:\"⧎\",RuleDelayed:\"⧴\",ruluhar:\"⥨\",rx:\"℞\",Sacute:\"Ś\",sacute:\"ś\",sbquo:\"‚\",scap:\"⪸\",Scaron:\"Š\",scaron:\"š\",Sc:\"⪼\",sc:\"≻\",sccue:\"≽\",sce:\"⪰\",scE:\"⪴\",Scedil:\"Ş\",scedil:\"ş\",Scirc:\"Ŝ\",scirc:\"ŝ\",scnap:\"⪺\",scnE:\"⪶\",scnsim:\"⋩\",scpolint:\"⨓\",scsim:\"≿\",Scy:\"С\",scy:\"с\",sdotb:\"⊡\",sdot:\"⋅\",sdote:\"⩦\",searhk:\"⤥\",searr:\"↘\",seArr:\"⇘\",searrow:\"↘\",sect:\"§\",semi:\";\",seswar:\"⤩\",setminus:\"∖\",setmn:\"∖\",sext:\"✶\",Sfr:\"𝔖\",sfr:\"𝔰\",sfrown:\"⌢\",sharp:\"♯\",SHCHcy:\"Щ\",shchcy:\"щ\",SHcy:\"Ш\",shcy:\"ш\",ShortDownArrow:\"↓\",ShortLeftArrow:\"←\",shortmid:\"∣\",shortparallel:\"∥\",ShortRightArrow:\"→\",ShortUpArrow:\"↑\",shy:\"­\",Sigma:\"Σ\",sigma:\"σ\",sigmaf:\"ς\",sigmav:\"ς\",sim:\"∼\",simdot:\"⩪\",sime:\"≃\",simeq:\"≃\",simg:\"⪞\",simgE:\"⪠\",siml:\"⪝\",simlE:\"⪟\",simne:\"≆\",simplus:\"⨤\",simrarr:\"⥲\",slarr:\"←\",SmallCircle:\"∘\",smallsetminus:\"∖\",smashp:\"⨳\",smeparsl:\"⧤\",smid:\"∣\",smile:\"⌣\",smt:\"⪪\",smte:\"⪬\",smtes:\"⪬︀\",SOFTcy:\"Ь\",softcy:\"ь\",solbar:\"⌿\",solb:\"⧄\",sol:\"/\",Sopf:\"𝕊\",sopf:\"𝕤\",spades:\"♠\",spadesuit:\"♠\",spar:\"∥\",sqcap:\"⊓\",sqcaps:\"⊓︀\",sqcup:\"⊔\",sqcups:\"⊔︀\",Sqrt:\"√\",sqsub:\"⊏\",sqsube:\"⊑\",sqsubset:\"⊏\",sqsubseteq:\"⊑\",sqsup:\"⊐\",sqsupe:\"⊒\",sqsupset:\"⊐\",sqsupseteq:\"⊒\",square:\"□\",Square:\"□\",SquareIntersection:\"⊓\",SquareSubset:\"⊏\",SquareSubsetEqual:\"⊑\",SquareSuperset:\"⊐\",SquareSupersetEqual:\"⊒\",SquareUnion:\"⊔\",squarf:\"▪\",squ:\"□\",squf:\"▪\",srarr:\"→\",Sscr:\"𝒮\",sscr:\"𝓈\",ssetmn:\"∖\",ssmile:\"⌣\",sstarf:\"⋆\",Star:\"⋆\",star:\"☆\",starf:\"★\",straightepsilon:\"ϵ\",straightphi:\"ϕ\",strns:\"¯\",sub:\"⊂\",Sub:\"⋐\",subdot:\"⪽\",subE:\"⫅\",sube:\"⊆\",subedot:\"⫃\",submult:\"⫁\",subnE:\"⫋\",subne:\"⊊\",subplus:\"⪿\",subrarr:\"⥹\",subset:\"⊂\",Subset:\"⋐\",subseteq:\"⊆\",subseteqq:\"⫅\",SubsetEqual:\"⊆\",subsetneq:\"⊊\",subsetneqq:\"⫋\",subsim:\"⫇\",subsub:\"⫕\",subsup:\"⫓\",succapprox:\"⪸\",succ:\"≻\",succcurlyeq:\"≽\",Succeeds:\"≻\",SucceedsEqual:\"⪰\",SucceedsSlantEqual:\"≽\",SucceedsTilde:\"≿\",succeq:\"⪰\",succnapprox:\"⪺\",succneqq:\"⪶\",succnsim:\"⋩\",succsim:\"≿\",SuchThat:\"∋\",sum:\"∑\",Sum:\"∑\",sung:\"♪\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",sup:\"⊃\",Sup:\"⋑\",supdot:\"⪾\",supdsub:\"⫘\",supE:\"⫆\",supe:\"⊇\",supedot:\"⫄\",Superset:\"⊃\",SupersetEqual:\"⊇\",suphsol:\"⟉\",suphsub:\"⫗\",suplarr:\"⥻\",supmult:\"⫂\",supnE:\"⫌\",supne:\"⊋\",supplus:\"⫀\",supset:\"⊃\",Supset:\"⋑\",supseteq:\"⊇\",supseteqq:\"⫆\",supsetneq:\"⊋\",supsetneqq:\"⫌\",supsim:\"⫈\",supsub:\"⫔\",supsup:\"⫖\",swarhk:\"⤦\",swarr:\"↙\",swArr:\"⇙\",swarrow:\"↙\",swnwar:\"⤪\",szlig:\"ß\",Tab:\"\t\",target:\"⌖\",Tau:\"Τ\",tau:\"τ\",tbrk:\"⎴\",Tcaron:\"Ť\",tcaron:\"ť\",Tcedil:\"Ţ\",tcedil:\"ţ\",Tcy:\"Т\",tcy:\"т\",tdot:\"⃛\",telrec:\"⌕\",Tfr:\"𝔗\",tfr:\"𝔱\",there4:\"∴\",therefore:\"∴\",Therefore:\"∴\",Theta:\"Θ\",theta:\"θ\",thetasym:\"ϑ\",thetav:\"ϑ\",thickapprox:\"≈\",thicksim:\"∼\",ThickSpace:\"  \",ThinSpace:\" \",thinsp:\" \",thkap:\"≈\",thksim:\"∼\",THORN:\"Þ\",thorn:\"þ\",tilde:\"˜\",Tilde:\"∼\",TildeEqual:\"≃\",TildeFullEqual:\"≅\",TildeTilde:\"≈\",timesbar:\"⨱\",timesb:\"⊠\",times:\"×\",timesd:\"⨰\",tint:\"∭\",toea:\"⤨\",topbot:\"⌶\",topcir:\"⫱\",top:\"⊤\",Topf:\"𝕋\",topf:\"𝕥\",topfork:\"⫚\",tosa:\"⤩\",tprime:\"‴\",trade:\"™\",TRADE:\"™\",triangle:\"▵\",triangledown:\"▿\",triangleleft:\"◃\",trianglelefteq:\"⊴\",triangleq:\"≜\",triangleright:\"▹\",trianglerighteq:\"⊵\",tridot:\"◬\",trie:\"≜\",triminus:\"⨺\",TripleDot:\"⃛\",triplus:\"⨹\",trisb:\"⧍\",tritime:\"⨻\",trpezium:\"⏢\",Tscr:\"𝒯\",tscr:\"𝓉\",TScy:\"Ц\",tscy:\"ц\",TSHcy:\"Ћ\",tshcy:\"ћ\",Tstrok:\"Ŧ\",tstrok:\"ŧ\",twixt:\"≬\",twoheadleftarrow:\"↞\",twoheadrightarrow:\"↠\",Uacute:\"Ú\",uacute:\"ú\",uarr:\"↑\",Uarr:\"↟\",uArr:\"⇑\",Uarrocir:\"⥉\",Ubrcy:\"Ў\",ubrcy:\"ў\",Ubreve:\"Ŭ\",ubreve:\"ŭ\",Ucirc:\"Û\",ucirc:\"û\",Ucy:\"У\",ucy:\"у\",udarr:\"⇅\",Udblac:\"Ű\",udblac:\"ű\",udhar:\"⥮\",ufisht:\"⥾\",Ufr:\"𝔘\",ufr:\"𝔲\",Ugrave:\"Ù\",ugrave:\"ù\",uHar:\"⥣\",uharl:\"↿\",uharr:\"↾\",uhblk:\"▀\",ulcorn:\"⌜\",ulcorner:\"⌜\",ulcrop:\"⌏\",ultri:\"◸\",Umacr:\"Ū\",umacr:\"ū\",uml:\"¨\",UnderBar:\"_\",UnderBrace:\"⏟\",UnderBracket:\"⎵\",UnderParenthesis:\"⏝\",Union:\"⋃\",UnionPlus:\"⊎\",Uogon:\"Ų\",uogon:\"ų\",Uopf:\"𝕌\",uopf:\"𝕦\",UpArrowBar:\"⤒\",uparrow:\"↑\",UpArrow:\"↑\",Uparrow:\"⇑\",UpArrowDownArrow:\"⇅\",updownarrow:\"↕\",UpDownArrow:\"↕\",Updownarrow:\"⇕\",UpEquilibrium:\"⥮\",upharpoonleft:\"↿\",upharpoonright:\"↾\",uplus:\"⊎\",UpperLeftArrow:\"↖\",UpperRightArrow:\"↗\",upsi:\"υ\",Upsi:\"ϒ\",upsih:\"ϒ\",Upsilon:\"Υ\",upsilon:\"υ\",UpTeeArrow:\"↥\",UpTee:\"⊥\",upuparrows:\"⇈\",urcorn:\"⌝\",urcorner:\"⌝\",urcrop:\"⌎\",Uring:\"Ů\",uring:\"ů\",urtri:\"◹\",Uscr:\"𝒰\",uscr:\"𝓊\",utdot:\"⋰\",Utilde:\"Ũ\",utilde:\"ũ\",utri:\"▵\",utrif:\"▴\",uuarr:\"⇈\",Uuml:\"Ü\",uuml:\"ü\",uwangle:\"⦧\",vangrt:\"⦜\",varepsilon:\"ϵ\",varkappa:\"ϰ\",varnothing:\"∅\",varphi:\"ϕ\",varpi:\"ϖ\",varpropto:\"∝\",varr:\"↕\",vArr:\"⇕\",varrho:\"ϱ\",varsigma:\"ς\",varsubsetneq:\"⊊︀\",varsubsetneqq:\"⫋︀\",varsupsetneq:\"⊋︀\",varsupsetneqq:\"⫌︀\",vartheta:\"ϑ\",vartriangleleft:\"⊲\",vartriangleright:\"⊳\",vBar:\"⫨\",Vbar:\"⫫\",vBarv:\"⫩\",Vcy:\"В\",vcy:\"в\",vdash:\"⊢\",vDash:\"⊨\",Vdash:\"⊩\",VDash:\"⊫\",Vdashl:\"⫦\",veebar:\"⊻\",vee:\"∨\",Vee:\"⋁\",veeeq:\"≚\",vellip:\"⋮\",verbar:\"|\",Verbar:\"‖\",vert:\"|\",Vert:\"‖\",VerticalBar:\"∣\",VerticalLine:\"|\",VerticalSeparator:\"❘\",VerticalTilde:\"≀\",VeryThinSpace:\" \",Vfr:\"𝔙\",vfr:\"𝔳\",vltri:\"⊲\",vnsub:\"⊂⃒\",vnsup:\"⊃⃒\",Vopf:\"𝕍\",vopf:\"𝕧\",vprop:\"∝\",vrtri:\"⊳\",Vscr:\"𝒱\",vscr:\"𝓋\",vsubnE:\"⫋︀\",vsubne:\"⊊︀\",vsupnE:\"⫌︀\",vsupne:\"⊋︀\",Vvdash:\"⊪\",vzigzag:\"⦚\",Wcirc:\"Ŵ\",wcirc:\"ŵ\",wedbar:\"⩟\",wedge:\"∧\",Wedge:\"⋀\",wedgeq:\"≙\",weierp:\"℘\",Wfr:\"𝔚\",wfr:\"𝔴\",Wopf:\"𝕎\",wopf:\"𝕨\",wp:\"℘\",wr:\"≀\",wreath:\"≀\",Wscr:\"𝒲\",wscr:\"𝓌\",xcap:\"⋂\",xcirc:\"◯\",xcup:\"⋃\",xdtri:\"▽\",Xfr:\"𝔛\",xfr:\"𝔵\",xharr:\"⟷\",xhArr:\"⟺\",Xi:\"Ξ\",xi:\"ξ\",xlarr:\"⟵\",xlArr:\"⟸\",xmap:\"⟼\",xnis:\"⋻\",xodot:\"⨀\",Xopf:\"𝕏\",xopf:\"𝕩\",xoplus:\"⨁\",xotime:\"⨂\",xrarr:\"⟶\",xrArr:\"⟹\",Xscr:\"𝒳\",xscr:\"𝓍\",xsqcup:\"⨆\",xuplus:\"⨄\",xutri:\"△\",xvee:\"⋁\",xwedge:\"⋀\",Yacute:\"Ý\",yacute:\"ý\",YAcy:\"Я\",yacy:\"я\",Ycirc:\"Ŷ\",ycirc:\"ŷ\",Ycy:\"Ы\",ycy:\"ы\",yen:\"¥\",Yfr:\"𝔜\",yfr:\"𝔶\",YIcy:\"Ї\",yicy:\"ї\",Yopf:\"𝕐\",yopf:\"𝕪\",Yscr:\"𝒴\",yscr:\"𝓎\",YUcy:\"Ю\",yucy:\"ю\",yuml:\"ÿ\",Yuml:\"Ÿ\",Zacute:\"Ź\",zacute:\"ź\",Zcaron:\"Ž\",zcaron:\"ž\",Zcy:\"З\",zcy:\"з\",Zdot:\"Ż\",zdot:\"ż\",zeetrf:\"ℨ\",ZeroWidthSpace:\"​\",Zeta:\"Ζ\",zeta:\"ζ\",zfr:\"𝔷\",Zfr:\"ℨ\",ZHcy:\"Ж\",zhcy:\"ж\",zigrarr:\"⇝\",zopf:\"𝕫\",Zopf:\"ℤ\",Zscr:\"𝒵\",zscr:\"𝓏\",zwj:\"‍\",zwnj:\"‌\"};var pT,X2;function Z2(){return X2||(X2=1,pT=t$),pT}var hT,J2;function mT(){return J2||(J2=1,hT=/[!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}\\xA1\\xA7\\xAB\\xB6\\xB7\\xBB\\xBF\\u037E\\u0387\\u055A-\\u055F\\u0589\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3\\u05F4\\u0609\\u060A\\u060C\\u060D\\u061B\\u061E\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C84\\u0DF4\\u0E4F\\u0E5A\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166D\\u166E\\u169B\\u169C\\u16EB-\\u16ED\\u1735\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944\\u1945\\u1A1E\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B5A-\\u1B60\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D\\u207E\\u208D\\u208E\\u2308-\\u230B\\u2329\\u232A\\u2768-\\u2775\\u27C5\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC\\u29FD\\u2CF9-\\u2CFC\\u2CFE\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4E\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE\\uA9DF\\uAA5C-\\uAA5F\\uAADE\\uAADF\\uAAF0\\uAAF1\\uABEB\\uFD3E\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A\\uFF1B\\uFF1F\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65]|\\uD800[\\uDD00-\\uDD02\\uDF9F\\uDFD0]|\\uD801\\uDD6F|\\uD802[\\uDC57\\uDD1F\\uDD3F\\uDE50-\\uDE58\\uDE7F\\uDEF0-\\uDEF6\\uDF39-\\uDF3F\\uDF99-\\uDF9C]|\\uD803[\\uDF55-\\uDF59]|\\uD804[\\uDC47-\\uDC4D\\uDCBB\\uDCBC\\uDCBE-\\uDCC1\\uDD40-\\uDD43\\uDD74\\uDD75\\uDDC5-\\uDDC8\\uDDCD\\uDDDB\\uDDDD-\\uDDDF\\uDE38-\\uDE3D\\uDEA9]|\\uD805[\\uDC4B-\\uDC4F\\uDC5B\\uDC5D\\uDCC6\\uDDC1-\\uDDD7\\uDE41-\\uDE43\\uDE60-\\uDE6C\\uDF3C-\\uDF3E]|\\uD806[\\uDC3B\\uDE3F-\\uDE46\\uDE9A-\\uDE9C\\uDE9E-\\uDEA2]|\\uD807[\\uDC41-\\uDC45\\uDC70\\uDC71\\uDEF7\\uDEF8]|\\uD809[\\uDC70-\\uDC74]|\\uD81A[\\uDE6E\\uDE6F\\uDEF5\\uDF37-\\uDF3B\\uDF44]|\\uD81B[\\uDE97-\\uDE9A]|\\uD82F\\uDC9F|\\uD836[\\uDE87-\\uDE8B]|\\uD83A[\\uDD5E\\uDD5F]/),hT}var ep={},gT,eR;function n$(){if(eR)return gT;eR=1;var e={};function t(r){var i,o,l=e[r];if(l)return l;for(l=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),/^[0-9a-z]$/i.test(o)?l.push(o):l.push(\"%\"+(\"0\"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)l[r.charCodeAt(i)]=r[i];return l}function n(r,i,o){var l,c,p,d,m,E=\"\";for(typeof i!=\"string\"&&(o=i,i=n.defaultChars),typeof o>\"u\"&&(o=!0),m=t(i),l=0,c=r.length;l<c;l++){if(p=r.charCodeAt(l),o&&p===37&&l+2<c&&/^[0-9a-f]{2}$/i.test(r.slice(l+1,l+3))){E+=r.slice(l,l+3),l+=2;continue}if(p<128){E+=m[p];continue}if(p>=55296&&p<=57343){if(p>=55296&&p<=56319&&l+1<c&&(d=r.charCodeAt(l+1),d>=56320&&d<=57343)){E+=encodeURIComponent(r[l]+r[l+1]),l++;continue}E+=\"%EF%BF%BD\";continue}E+=encodeURIComponent(r[l])}return E}return n.defaultChars=\";/?:@&=+$,-_.!~*'()#\",n.componentChars=\"-_.!~*'()\",gT=n,gT}var vT,tR;function r$(){if(tR)return vT;tR=1;var e={};function t(r){var i,o,l=e[r];if(l)return l;for(l=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),l.push(o);for(i=0;i<r.length;i++)o=r.charCodeAt(i),l[o]=\"%\"+(\"0\"+o.toString(16).toUpperCase()).slice(-2);return l}function n(r,i){var o;return typeof i!=\"string\"&&(i=n.defaultChars),o=t(i),r.replace(/(%[a-f0-9]{2})+/gi,function(l){var c,p,d,m,E,b,y,w=\"\";for(c=0,p=l.length;c<p;c+=3){if(d=parseInt(l.slice(c+1,c+3),16),d<128){w+=o[d];continue}if((d&224)===192&&c+3<p&&(m=parseInt(l.slice(c+4,c+6),16),(m&192)===128)){y=d<<6&1984|m&63,y<128?w+=\"��\":w+=String.fromCharCode(y),c+=3;continue}if((d&240)===224&&c+6<p&&(m=parseInt(l.slice(c+4,c+6),16),E=parseInt(l.slice(c+7,c+9),16),(m&192)===128&&(E&192)===128)){y=d<<12&61440|m<<6&4032|E&63,y<2048||y>=55296&&y<=57343?w+=\"���\":w+=String.fromCharCode(y),c+=6;continue}if((d&248)===240&&c+9<p&&(m=parseInt(l.slice(c+4,c+6),16),E=parseInt(l.slice(c+7,c+9),16),b=parseInt(l.slice(c+10,c+12),16),(m&192)===128&&(E&192)===128&&(b&192)===128)){y=d<<18&1835008|m<<12&258048|E<<6&4032|b&63,y<65536||y>1114111?w+=\"����\":(y-=65536,w+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}w+=\"�\"}return w})}return n.defaultChars=\";/?:@&=+$,#\",n.componentChars=\"\",vT=n,vT}var yT,nR;function i$(){return nR||(nR=1,yT=function(t){var n=\"\";return n+=t.protocol||\"\",n+=t.slashes?\"//\":\"\",n+=t.auth?t.auth+\"@\":\"\",t.hostname&&t.hostname.indexOf(\":\")!==-1?n+=\"[\"+t.hostname+\"]\":n+=t.hostname||\"\",n+=t.port?\":\"+t.port:\"\",n+=t.pathname||\"\",n+=t.search||\"\",n+=t.hash||\"\",n}),yT}var bT,rR;function o$(){if(rR)return bT;rR=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,i=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`\n`,\"\t\"],o=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(i),l=[\"'\"].concat(o),c=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(l),p=[\"/\",\"?\",\"#\"],d=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,\"javascript:\":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0};function w(x,k){if(x&&x instanceof e)return x;var N=new e;return N.parse(x,k),N}return e.prototype.parse=function(x,k){var N,A,O,_,M,V=x;if(V=V.trim(),!k&&x.split(\"#\").length===1){var P=r.exec(V);if(P)return this.pathname=P[1],P[2]&&(this.search=P[2]),this}var F=t.exec(V);if(F&&(F=F[0],O=F.toLowerCase(),this.protocol=F,V=V.substr(F.length)),(k||F||V.match(/^\\/\\/[^@\\/]+@[^@\\/]+/))&&(M=V.substr(0,2)===\"//\",M&&!(F&&b[F])&&(V=V.substr(2),this.slashes=!0)),!b[F]&&(M||F&&!y[F])){var j=-1;for(N=0;N<p.length;N++)_=V.indexOf(p[N]),_!==-1&&(j===-1||_<j)&&(j=_);var q,Q;for(j===-1?Q=V.lastIndexOf(\"@\"):Q=V.lastIndexOf(\"@\",j),Q!==-1&&(q=V.slice(0,Q),V=V.slice(Q+1),this.auth=q),j=-1,N=0;N<c.length;N++)_=V.indexOf(c[N]),_!==-1&&(j===-1||_<j)&&(j=_);j===-1&&(j=V.length),V[j-1]===\":\"&&j--;var ee=V.slice(0,j);V=V.slice(j),this.parseHost(ee),this.hostname=this.hostname||\"\";var Z=this.hostname[0]===\"[\"&&this.hostname[this.hostname.length-1]===\"]\";if(!Z){var W=this.hostname.split(/\\./);for(N=0,A=W.length;N<A;N++){var B=W[N];if(B&&!B.match(m)){for(var ne=\"\",ie=0,se=B.length;ie<se;ie++)B.charCodeAt(ie)>127?ne+=\"x\":ne+=B[ie];if(!ne.match(m)){var de=W.slice(0,N),J=W.slice(N+1),ge=B.match(E);ge&&(de.push(ge[1]),J.unshift(ge[2])),J.length&&(V=J.join(\".\")+V),this.hostname=de.join(\".\");break}}}}this.hostname.length>d&&(this.hostname=\"\"),Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ce=V.indexOf(\"#\");ce!==-1&&(this.hash=V.substr(ce),V=V.slice(0,ce));var he=V.indexOf(\"?\");return he!==-1&&(this.search=V.substr(he),V=V.slice(0,he)),V&&(this.pathname=V),y[O]&&this.hostname&&!this.pathname&&(this.pathname=\"\"),this},e.prototype.parseHost=function(x){var k=n.exec(x);k&&(k=k[0],k!==\":\"&&(this.port=k.substr(1)),x=x.substr(0,x.length-k.length)),x&&(this.hostname=x)},bT=w,bT}var iR;function oR(){return iR||(iR=1,ep.encode=n$(),ep.decode=r$(),ep.format=i$(),ep.parse=o$()),ep}var xf={},ET,aR;function sR(){return aR||(aR=1,ET=/[\\0-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/),ET}var ST,lR;function uR(){return lR||(lR=1,ST=/[\\0-\\x1F\\x7F-\\x9F]/),ST}var TT,cR;function a$(){return cR||(cR=1,TT=/[\\xAD\\u0600-\\u0605\\u061C\\u06DD\\u070F\\u08E2\\u180E\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u206F\\uFEFF\\uFFF9-\\uFFFB]|\\uD804[\\uDCBD\\uDCCD]|\\uD82F[\\uDCA0-\\uDCA3]|\\uD834[\\uDD73-\\uDD7A]|\\uDB40[\\uDC01\\uDC20-\\uDC7F]/),TT}var wT,fR;function dR(){return fR||(fR=1,wT=/[ \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]/),wT}var pR;function s$(){return pR||(pR=1,xf.Any=sR(),xf.Cc=uR(),xf.Cf=a$(),xf.P=mT(),xf.Z=dR()),xf}var hR;function kn(){return hR||(hR=1,function(e){function t(W){return Object.prototype.toString.call(W)}function n(W){return t(W)===\"[object String]\"}var r=Object.prototype.hasOwnProperty;function i(W,B){return r.call(W,B)}function o(W){var B=Array.prototype.slice.call(arguments,1);return B.forEach(function(ne){if(ne){if(typeof ne!=\"object\")throw new TypeError(ne+\"must be object\");Object.keys(ne).forEach(function(ie){W[ie]=ne[ie]})}}),W}function l(W,B,ne){return[].concat(W.slice(0,B),ne,W.slice(B+1))}function c(W){return!(W>=55296&&W<=57343||W>=64976&&W<=65007||(W&65535)===65535||(W&65535)===65534||W>=0&&W<=8||W===11||W>=14&&W<=31||W>=127&&W<=159||W>1114111)}function p(W){if(W>65535){W-=65536;var B=55296+(W>>10),ne=56320+(W&1023);return String.fromCharCode(B,ne)}return String.fromCharCode(W)}var d=/\\\\([!\"#$%&'()*+,\\-.\\/:;<=>?@[\\\\\\]^_`{|}~])/g,m=/&([a-z#][a-z0-9]{1,31});/gi,E=new RegExp(d.source+\"|\"+m.source,\"gi\"),b=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=Z2();function w(W,B){var ne=0;return i(y,B)?y[B]:B.charCodeAt(0)===35&&b.test(B)&&(ne=B[1].toLowerCase()===\"x\"?parseInt(B.slice(2),16):parseInt(B.slice(1),10),c(ne))?p(ne):W}function x(W){return W.indexOf(\"\\\\\")<0?W:W.replace(d,\"$1\")}function k(W){return W.indexOf(\"\\\\\")<0&&W.indexOf(\"&\")<0?W:W.replace(E,function(B,ne,ie){return ne||w(B,ie)})}var N=/[&<>\"]/,A=/[&<>\"]/g,O={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\"};function _(W){return O[W]}function M(W){return N.test(W)?W.replace(A,_):W}var V=/[.?*+^$[\\]\\\\(){}|-]/g;function P(W){return W.replace(V,\"\\\\$&\")}function F(W){switch(W){case 9:case 32:return!0}return!1}function j(W){if(W>=8192&&W<=8202)return!0;switch(W){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var q=mT();function Q(W){return q.test(W)}function ee(W){switch(W){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Z(W){return W=W.trim().replace(/\\s+/g,\" \"),\"ẞ\".toLowerCase()===\"Ṿ\"&&(W=W.replace(/ẞ/g,\"ß\")),W.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=oR(),e.lib.ucmicro=s$(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=x,e.unescapeAll=k,e.isValidEntityCode=c,e.fromCodePoint=p,e.escapeHtml=M,e.arrayReplaceAt=l,e.isSpace=F,e.isWhiteSpace=j,e.isMdAsciiPunct=ee,e.isPunctChar=Q,e.escapeRE=P,e.normalizeReference=Z}(dT)),dT}var xm={},xT,mR;function l$(){return mR||(mR=1,xT=function(t,n,r){var i,o,l,c,p=-1,d=t.posMax,m=t.pos;for(t.pos=n+1,i=1;t.pos<d;){if(l=t.src.charCodeAt(t.pos),l===93&&(i--,i===0)){o=!0;break}if(c=t.pos,t.md.inline.skipToken(t),l===91){if(c===t.pos-1)i++;else if(r)return t.pos=m,-1}}return o&&(p=t.pos),t.pos=m,p}),xT}var CT,gR;function u$(){if(gR)return CT;gR=1;var e=kn().unescapeAll;return CT=function(n,r,i){var o,l,c=0,p=r,d={ok:!1,pos:0,lines:0,str:\"\"};if(n.charCodeAt(r)===60){for(r++;r<i;){if(o=n.charCodeAt(r),o===10||o===60)return d;if(o===62)return d.pos=r+1,d.str=e(n.slice(p+1,r)),d.ok=!0,d;if(o===92&&r+1<i){r+=2;continue}r++}return d}for(l=0;r<i&&(o=n.charCodeAt(r),!(o===32||o<32||o===127));){if(o===92&&r+1<i){if(n.charCodeAt(r+1)===32)break;r+=2;continue}if(o===40&&(l++,l>32))return d;if(o===41){if(l===0)break;l--}r++}return p===r||l!==0||(d.str=e(n.slice(p,r)),d.lines=c,d.pos=r,d.ok=!0),d},CT}var _T,vR;function c$(){if(vR)return _T;vR=1;var e=kn().unescapeAll;return _T=function(n,r,i){var o,l,c=0,p=r,d={ok:!1,pos:0,lines:0,str:\"\"};if(r>=i||(l=n.charCodeAt(r),l!==34&&l!==39&&l!==40))return d;for(r++,l===40&&(l=41);r<i;){if(o=n.charCodeAt(r),o===l)return d.pos=r+1,d.lines=c,d.str=e(n.slice(p+1,r)),d.ok=!0,d;if(o===40&&l===41)return d;o===10?c++:o===92&&r+1<i&&(r++,n.charCodeAt(r)===10&&c++),r++}return d},_T}var yR;function f$(){return yR||(yR=1,xm.parseLinkLabel=l$(),xm.parseLinkDestination=u$(),xm.parseLinkTitle=c$()),xm}var NT,bR;function d$(){if(bR)return NT;bR=1;var e=kn().assign,t=kn().unescapeAll,n=kn().escapeHtml,r={};r.code_inline=function(o,l,c,p,d){var m=o[l];return\"<code\"+d.renderAttrs(m)+\">\"+n(o[l].content)+\"</code>\"},r.code_block=function(o,l,c,p,d){var m=o[l];return\"<pre\"+d.renderAttrs(m)+\"><code>\"+n(o[l].content)+`</code></pre>\n`},r.fence=function(o,l,c,p,d){var m=o[l],E=m.info?t(m.info).trim():\"\",b=\"\",y=\"\",w,x,k,N,A;return E&&(k=E.split(/(\\s+)/g),b=k[0],y=k.slice(2).join(\"\")),c.highlight?w=c.highlight(m.content,b,y)||n(m.content):w=n(m.content),w.indexOf(\"<pre\")===0?w+`\n`:E?(x=m.attrIndex(\"class\"),N=m.attrs?m.attrs.slice():[],x<0?N.push([\"class\",c.langPrefix+b]):(N[x]=N[x].slice(),N[x][1]+=\" \"+c.langPrefix+b),A={attrs:N},\"<pre><code\"+d.renderAttrs(A)+\">\"+w+`</code></pre>\n`):\"<pre><code\"+d.renderAttrs(m)+\">\"+w+`</code></pre>\n`},r.image=function(o,l,c,p,d){var m=o[l];return m.attrs[m.attrIndex(\"alt\")][1]=d.renderInlineAsText(m.children,c,p),d.renderToken(o,l,c)},r.hardbreak=function(o,l,c){return c.xhtmlOut?`<br />\n`:`<br>\n`},r.softbreak=function(o,l,c){return c.breaks?c.xhtmlOut?`<br />\n`:`<br>\n`:`\n`},r.text=function(o,l){return n(o[l].content)},r.html_block=function(o,l){return o[l].content},r.html_inline=function(o,l){return o[l].content};function i(){this.rules=e({},r)}return i.prototype.renderAttrs=function(l){var c,p,d;if(!l.attrs)return\"\";for(d=\"\",c=0,p=l.attrs.length;c<p;c++)d+=\" \"+n(l.attrs[c][0])+'=\"'+n(l.attrs[c][1])+'\"';return d},i.prototype.renderToken=function(l,c,p){var d,m=\"\",E=!1,b=l[c];return b.hidden?\"\":(b.block&&b.nesting!==-1&&c&&l[c-1].hidden&&(m+=`\n`),m+=(b.nesting===-1?\"</\":\"<\")+b.tag,m+=this.renderAttrs(b),b.nesting===0&&p.xhtmlOut&&(m+=\" /\"),b.block&&(E=!0,b.nesting===1&&c+1<l.length&&(d=l[c+1],(d.type===\"inline\"||d.hidden||d.nesting===-1&&d.tag===b.tag)&&(E=!1))),m+=E?`>\n`:\">\",m)},i.prototype.renderInline=function(o,l,c){for(var p,d=\"\",m=this.rules,E=0,b=o.length;E<b;E++)p=o[E].type,typeof m[p]<\"u\"?d+=m[p](o,E,l,c,this):d+=this.renderToken(o,E,l);return d},i.prototype.renderInlineAsText=function(o,l,c){for(var p=\"\",d=0,m=o.length;d<m;d++)o[d].type===\"text\"?p+=o[d].content:o[d].type===\"image\"?p+=this.renderInlineAsText(o[d].children,l,c):o[d].type===\"softbreak\"&&(p+=`\n`);return p},i.prototype.render=function(o,l,c){var p,d,m,E=\"\",b=this.rules;for(p=0,d=o.length;p<d;p++)m=o[p].type,m===\"inline\"?E+=this.renderInline(o[p].children,l,c):typeof b[m]<\"u\"?E+=b[o[p].type](o,p,l,c,this):E+=this.renderToken(o,p,l,c);return E},NT=i,NT}var AT,ER;function OT(){if(ER)return AT;ER=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[\"\"];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(i){n.indexOf(i)<0&&n.push(i)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(i){i.enabled&&(r&&i.alt.indexOf(r)<0||t.__cache__[r].push(i.fn))})})},e.prototype.at=function(t,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error(\"Parser rule not found: \"+t);this.__rules__[i].fn=n,this.__rules__[i].alt=o.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,i){var o=this.__find__(t),l=i||{};if(o===-1)throw new Error(\"Parser rule not found: \"+t);this.__rules__.splice(o,0,{name:n,enabled:!0,fn:r,alt:l.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,i){var o=this.__find__(t),l=i||{};if(o===-1)throw new Error(\"Parser rule not found: \"+t);this.__rules__.splice(o+1,0,{name:n,enabled:!0,fn:r,alt:l.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var i=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error(\"Rules manager: invalid rule name \"+i)}this.__rules__[o].enabled=!0,r.push(i)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error(\"Rules manager: invalid rule name \"+i)}this.__rules__[o].enabled=!1,r.push(i)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},AT=e,AT}var DT,SR;function p$(){if(SR)return DT;SR=1;var e=/\\r\\n?|\\n/g,t=/\\0/g;return DT=function(r){var i;i=r.src.replace(e,`\n`),i=i.replace(t,\"�\"),r.src=i},DT}var kT,TR;function h$(){return TR||(TR=1,kT=function(t){var n;t.inlineMode?(n=new t.Token(\"inline\",\"\",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),kT}var RT,wR;function m$(){return wR||(wR=1,RT=function(t){var n=t.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type===\"inline\"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),RT}var MT,xR;function g$(){if(xR)return MT;xR=1;var e=kn().arrayReplaceAt;function t(r){return/^<a[>\\s]/i.test(r)}function n(r){return/^<\\/a\\s*>/i.test(r)}return MT=function(i){var o,l,c,p,d,m,E,b,y,w,x,k,N,A,O,_,M=i.tokens,V;if(i.md.options.linkify){for(l=0,c=M.length;l<c;l++)if(!(M[l].type!==\"inline\"||!i.md.linkify.pretest(M[l].content)))for(p=M[l].children,N=0,o=p.length-1;o>=0;o--){if(m=p[o],m.type===\"link_close\"){for(o--;p[o].level!==m.level&&p[o].type!==\"link_open\";)o--;continue}if(m.type===\"html_inline\"&&(t(m.content)&&N>0&&N--,n(m.content)&&N++),!(N>0)&&m.type===\"text\"&&i.md.linkify.test(m.content)){for(y=m.content,V=i.md.linkify.match(y),E=[],k=m.level,x=0,b=0;b<V.length;b++)A=V[b].url,O=i.md.normalizeLink(A),i.md.validateLink(O)&&(_=V[b].text,V[b].schema?V[b].schema===\"mailto:\"&&!/^mailto:/i.test(_)?_=i.md.normalizeLinkText(\"mailto:\"+_).replace(/^mailto:/,\"\"):_=i.md.normalizeLinkText(_):_=i.md.normalizeLinkText(\"http://\"+_).replace(/^http:\\/\\//,\"\"),w=V[b].index,w>x&&(d=new i.Token(\"text\",\"\",0),d.content=y.slice(x,w),d.level=k,E.push(d)),d=new i.Token(\"link_open\",\"a\",1),d.attrs=[[\"href\",O]],d.level=k++,d.markup=\"linkify\",d.info=\"auto\",E.push(d),d=new i.Token(\"text\",\"\",0),d.content=_,d.level=k,E.push(d),d=new i.Token(\"link_close\",\"a\",-1),d.level=--k,d.markup=\"linkify\",d.info=\"auto\",E.push(d),x=V[b].lastIndex);x<y.length&&(d=new i.Token(\"text\",\"\",0),d.content=y.slice(x),d.level=k,E.push(d)),M[l].children=p=e(p,o,E)}}}},MT}var LT,CR;function v$(){if(CR)return LT;CR=1;var e=/\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/,t=/\\((c|tm|r|p)\\)/i,n=/\\((c|tm|r|p)\\)/ig,r={c:\"©\",r:\"®\",p:\"§\",tm:\"™\"};function i(c,p){return r[p.toLowerCase()]}function o(c){var p,d,m=0;for(p=c.length-1;p>=0;p--)d=c[p],d.type===\"text\"&&!m&&(d.content=d.content.replace(n,i)),d.type===\"link_open\"&&d.info===\"auto\"&&m--,d.type===\"link_close\"&&d.info===\"auto\"&&m++}function l(c){var p,d,m=0;for(p=c.length-1;p>=0;p--)d=c[p],d.type===\"text\"&&!m&&e.test(d.content)&&(d.content=d.content.replace(/\\+-/g,\"±\").replace(/\\.{2,}/g,\"…\").replace(/([?!])…/g,\"$1..\").replace(/([?!]){4,}/g,\"$1$1$1\").replace(/,{2,}/g,\",\").replace(/(^|[^-])---(?=[^-]|$)/mg,\"$1—\").replace(/(^|\\s)--(?=\\s|$)/mg,\"$1–\").replace(/(^|[^-\\s])--(?=[^-\\s]|$)/mg,\"$1–\")),d.type===\"link_open\"&&d.info===\"auto\"&&m--,d.type===\"link_close\"&&d.info===\"auto\"&&m++}return LT=function(p){var d;if(p.md.options.typographer)for(d=p.tokens.length-1;d>=0;d--)p.tokens[d].type===\"inline\"&&(t.test(p.tokens[d].content)&&o(p.tokens[d].children),e.test(p.tokens[d].content)&&l(p.tokens[d].children))},LT}var IT,_R;function y$(){if(_R)return IT;_R=1;var e=kn().isWhiteSpace,t=kn().isPunctChar,n=kn().isMdAsciiPunct,r=/['\"]/,i=/['\"]/g,o=\"’\";function l(p,d,m){return p.substr(0,d)+m+p.substr(d+1)}function c(p,d){var m,E,b,y,w,x,k,N,A,O,_,M,V,P,F,j,q,Q,ee,Z,W;for(ee=[],m=0;m<p.length;m++){for(E=p[m],k=p[m].level,q=ee.length-1;q>=0&&!(ee[q].level<=k);q--);if(ee.length=q+1,E.type===\"text\"){b=E.content,w=0,x=b.length;e:for(;w<x&&(i.lastIndex=w,y=i.exec(b),!!y);){if(F=j=!0,w=y.index+1,Q=y[0]===\"'\",A=32,y.index-1>=0)A=b.charCodeAt(y.index-1);else for(q=m-1;q>=0&&!(p[q].type===\"softbreak\"||p[q].type===\"hardbreak\");q--)if(p[q].content){A=p[q].content.charCodeAt(p[q].content.length-1);break}if(O=32,w<x)O=b.charCodeAt(w);else for(q=m+1;q<p.length&&!(p[q].type===\"softbreak\"||p[q].type===\"hardbreak\");q++)if(p[q].content){O=p[q].content.charCodeAt(0);break}if(_=n(A)||t(String.fromCharCode(A)),M=n(O)||t(String.fromCharCode(O)),V=e(A),P=e(O),P?F=!1:M&&(V||_||(F=!1)),V?j=!1:_&&(P||M||(j=!1)),O===34&&y[0]==='\"'&&A>=48&&A<=57&&(j=F=!1),F&&j&&(F=_,j=M),!F&&!j){Q&&(E.content=l(E.content,y.index,o));continue}if(j){for(q=ee.length-1;q>=0&&(N=ee[q],!(ee[q].level<k));q--)if(N.single===Q&&ee[q].level===k){N=ee[q],Q?(Z=d.md.options.quotes[2],W=d.md.options.quotes[3]):(Z=d.md.options.quotes[0],W=d.md.options.quotes[1]),E.content=l(E.content,y.index,W),p[N.token].content=l(p[N.token].content,N.pos,Z),w+=W.length-1,N.token===m&&(w+=Z.length-1),b=E.content,x=b.length,ee.length=q;continue e}}F?ee.push({token:m,pos:y.index,single:Q,level:k}):j&&Q&&(E.content=l(E.content,y.index,o))}}}}return IT=function(d){var m;if(d.md.options.typographer)for(m=d.tokens.length-1;m>=0;m--)d.tokens[m].type!==\"inline\"||!r.test(d.tokens[m].content)||c(d.tokens[m].children,d)},IT}var FT,NR;function PT(){if(NR)return FT;NR=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content=\"\",this.markup=\"\",this.info=\"\",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,i,o;if(!this.attrs)return-1;for(r=this.attrs,i=0,o=r.length;i<o;i++)if(r[i][0]===n)return i;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var i=this.attrIndex(n),o=[n,r];i<0?this.attrPush(o):this.attrs[i]=o},e.prototype.attrGet=function(n){var r=this.attrIndex(n),i=null;return r>=0&&(i=this.attrs[r][1]),i},e.prototype.attrJoin=function(n,r){var i=this.attrIndex(n);i<0?this.attrPush([n,r]):this.attrs[i][1]=this.attrs[i][1]+\" \"+r},FT=e,FT}var jT,AR;function b$(){if(AR)return jT;AR=1;var e=PT();function t(n,r,i){this.src=n,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,jT=t,jT}var VT,OR;function E$(){if(OR)return VT;OR=1;var e=OT(),t=[[\"normalize\",p$()],[\"block\",h$()],[\"inline\",m$()],[\"linkify\",g$()],[\"replacements\",v$()],[\"smartquotes\",y$()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var i,o,l;for(l=this.ruler.getRules(\"\"),i=0,o=l.length;i<o;i++)l[i](r)},n.prototype.State=b$(),VT=n,VT}var UT,DR;function S$(){if(DR)return UT;DR=1;var e=kn().isSpace;function t(r,i){var o=r.bMarks[i]+r.tShift[i],l=r.eMarks[i];return r.src.substr(o,l-o)}function n(r){var i=[],o=0,l=r.length,c,p=!1,d=0,m=\"\";for(c=r.charCodeAt(o);o<l;)c===124&&(p?(m+=r.substring(d,o-1),d=o):(i.push(m+r.substring(d,o)),m=\"\",d=o+1)),p=c===92,o++,c=r.charCodeAt(o);return i.push(m+r.substring(d)),i}return UT=function(i,o,l,c){var p,d,m,E,b,y,w,x,k,N,A,O,_,M,V,P,F,j;if(o+2>l||(y=o+1,i.sCount[y]<i.blkIndent)||i.sCount[y]-i.blkIndent>=4||(m=i.bMarks[y]+i.tShift[y],m>=i.eMarks[y])||(F=i.src.charCodeAt(m++),F!==124&&F!==45&&F!==58)||m>=i.eMarks[y]||(j=i.src.charCodeAt(m++),j!==124&&j!==45&&j!==58&&!e(j))||F===45&&e(j))return!1;for(;m<i.eMarks[y];){if(p=i.src.charCodeAt(m),p!==124&&p!==45&&p!==58&&!e(p))return!1;m++}for(d=t(i,o+1),w=d.split(\"|\"),N=[],E=0;E<w.length;E++){if(A=w[E].trim(),!A){if(E===0||E===w.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?N.push(A.charCodeAt(0)===58?\"center\":\"right\"):A.charCodeAt(0)===58?N.push(\"left\"):N.push(\"\")}if(d=t(i,o).trim(),d.indexOf(\"|\")===-1||i.sCount[o]-i.blkIndent>=4||(w=n(d),w.length&&w[0]===\"\"&&w.shift(),w.length&&w[w.length-1]===\"\"&&w.pop(),x=w.length,x===0||x!==N.length))return!1;if(c)return!0;for(M=i.parentType,i.parentType=\"table\",P=i.md.block.ruler.getRules(\"blockquote\"),k=i.push(\"table_open\",\"table\",1),k.map=O=[o,0],k=i.push(\"thead_open\",\"thead\",1),k.map=[o,o+1],k=i.push(\"tr_open\",\"tr\",1),k.map=[o,o+1],E=0;E<w.length;E++)k=i.push(\"th_open\",\"th\",1),N[E]&&(k.attrs=[[\"style\",\"text-align:\"+N[E]]]),k=i.push(\"inline\",\"\",0),k.content=w[E].trim(),k.children=[],k=i.push(\"th_close\",\"th\",-1);for(k=i.push(\"tr_close\",\"tr\",-1),k=i.push(\"thead_close\",\"thead\",-1),y=o+2;y<l&&!(i.sCount[y]<i.blkIndent);y++){for(V=!1,E=0,b=P.length;E<b;E++)if(P[E](i,y,l,!0)){V=!0;break}if(V||(d=t(i,y).trim(),!d)||i.sCount[y]-i.blkIndent>=4)break;for(w=n(d),w.length&&w[0]===\"\"&&w.shift(),w.length&&w[w.length-1]===\"\"&&w.pop(),y===o+2&&(k=i.push(\"tbody_open\",\"tbody\",1),k.map=_=[o+2,0]),k=i.push(\"tr_open\",\"tr\",1),k.map=[y,y+1],E=0;E<x;E++)k=i.push(\"td_open\",\"td\",1),N[E]&&(k.attrs=[[\"style\",\"text-align:\"+N[E]]]),k=i.push(\"inline\",\"\",0),k.content=w[E]?w[E].trim():\"\",k.children=[],k=i.push(\"td_close\",\"td\",-1);k=i.push(\"tr_close\",\"tr\",-1)}return _&&(k=i.push(\"tbody_close\",\"tbody\",-1),_[1]=y),k=i.push(\"table_close\",\"table\",-1),O[1]=y,i.parentType=M,i.line=y,!0},UT}var qT,kR;function T$(){return kR||(kR=1,qT=function(t,n,r){var i,o,l;if(t.sCount[n]-t.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,o=i;continue}break}return t.line=o,l=t.push(\"code_block\",\"code\",0),l.content=t.getLines(n,o,4+t.blkIndent,!1)+`\n`,l.map=[n,t.line],!0}),qT}var BT,RR;function w$(){return RR||(RR=1,BT=function(t,n,r,i){var o,l,c,p,d,m,E,b=!1,y=t.bMarks[n]+t.tShift[n],w=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>w||(o=t.src.charCodeAt(y),o!==126&&o!==96)||(d=y,y=t.skipChars(y,o),l=y-d,l<3)||(E=t.src.slice(d,y),c=t.src.slice(y,w),o===96&&c.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(p=n;p++,!(p>=r||(y=d=t.bMarks[p]+t.tShift[p],w=t.eMarks[p],y<w&&t.sCount[p]<t.blkIndent));)if(t.src.charCodeAt(y)===o&&!(t.sCount[p]-t.blkIndent>=4)&&(y=t.skipChars(y,o),!(y-d<l)&&(y=t.skipSpaces(y),!(y<w)))){b=!0;break}return l=t.sCount[n],t.line=p+(b?1:0),m=t.push(\"fence\",\"code\",0),m.info=c,m.content=t.getLines(n+1,p,l,!0),m.markup=E,m.map=[n,t.line],!0}),BT}var $T,MR;function x$(){if(MR)return $T;MR=1;var e=kn().isSpace;return $T=function(n,r,i,o){var l,c,p,d,m,E,b,y,w,x,k,N,A,O,_,M,V,P,F,j,q=n.lineMax,Q=n.bMarks[r]+n.tShift[r],ee=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(Q++)!==62)return!1;if(o)return!0;for(d=w=n.sCount[r]+1,n.src.charCodeAt(Q)===32?(Q++,d++,w++,l=!1,M=!0):n.src.charCodeAt(Q)===9?(M=!0,(n.bsCount[r]+w)%4===3?(Q++,d++,w++,l=!1):l=!0):M=!1,x=[n.bMarks[r]],n.bMarks[r]=Q;Q<ee&&(c=n.src.charCodeAt(Q),e(c));){c===9?w+=4-(w+n.bsCount[r]+(l?1:0))%4:w++;Q++}for(k=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(M?1:0),E=Q>=ee,O=[n.sCount[r]],n.sCount[r]=w-d,_=[n.tShift[r]],n.tShift[r]=Q-n.bMarks[r],P=n.md.block.ruler.getRules(\"blockquote\"),A=n.parentType,n.parentType=\"blockquote\",y=r+1;y<i&&(j=n.sCount[y]<n.blkIndent,Q=n.bMarks[y]+n.tShift[y],ee=n.eMarks[y],!(Q>=ee));y++){if(n.src.charCodeAt(Q++)===62&&!j){for(d=w=n.sCount[y]+1,n.src.charCodeAt(Q)===32?(Q++,d++,w++,l=!1,M=!0):n.src.charCodeAt(Q)===9?(M=!0,(n.bsCount[y]+w)%4===3?(Q++,d++,w++,l=!1):l=!0):M=!1,x.push(n.bMarks[y]),n.bMarks[y]=Q;Q<ee&&(c=n.src.charCodeAt(Q),e(c));){c===9?w+=4-(w+n.bsCount[y]+(l?1:0))%4:w++;Q++}E=Q>=ee,k.push(n.bsCount[y]),n.bsCount[y]=n.sCount[y]+1+(M?1:0),O.push(n.sCount[y]),n.sCount[y]=w-d,_.push(n.tShift[y]),n.tShift[y]=Q-n.bMarks[y];continue}if(E)break;for(V=!1,p=0,m=P.length;p<m;p++)if(P[p](n,y,i,!0)){V=!0;break}if(V){n.lineMax=y,n.blkIndent!==0&&(x.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),O.push(n.sCount[y]),n.sCount[y]-=n.blkIndent);break}x.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),O.push(n.sCount[y]),n.sCount[y]=-1}for(N=n.blkIndent,n.blkIndent=0,F=n.push(\"blockquote_open\",\"blockquote\",1),F.markup=\">\",F.map=b=[r,0],n.md.block.tokenize(n,r,y),F=n.push(\"blockquote_close\",\"blockquote\",-1),F.markup=\">\",n.lineMax=q,n.parentType=A,b[1]=n.line,p=0;p<_.length;p++)n.bMarks[p+r]=x[p],n.tShift[p+r]=_[p],n.sCount[p+r]=O[p],n.bsCount[p+r]=k[p];return n.blkIndent=N,!0},$T}var zT,LR;function C$(){if(LR)return zT;LR=1;var e=kn().isSpace;return zT=function(n,r,i,o){var l,c,p,d,m=n.bMarks[r]+n.tShift[r],E=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(l=n.src.charCodeAt(m++),l!==42&&l!==45&&l!==95))return!1;for(c=1;m<E;){if(p=n.src.charCodeAt(m++),p!==l&&!e(p))return!1;p===l&&c++}return c<3?!1:(o||(n.line=r+1,d=n.push(\"hr\",\"hr\",0),d.map=[r,n.line],d.markup=Array(c+1).join(String.fromCharCode(l))),!0)},zT}var HT,IR;function _$(){if(IR)return HT;IR=1;var e=kn().isSpace;function t(i,o){var l,c,p,d;return c=i.bMarks[o]+i.tShift[o],p=i.eMarks[o],l=i.src.charCodeAt(c++),l!==42&&l!==45&&l!==43||c<p&&(d=i.src.charCodeAt(c),!e(d))?-1:c}function n(i,o){var l,c=i.bMarks[o]+i.tShift[o],p=c,d=i.eMarks[o];if(p+1>=d||(l=i.src.charCodeAt(p++),l<48||l>57))return-1;for(;;){if(p>=d)return-1;if(l=i.src.charCodeAt(p++),l>=48&&l<=57){if(p-c>=10)return-1;continue}if(l===41||l===46)break;return-1}return p<d&&(l=i.src.charCodeAt(p),!e(l))?-1:p}function r(i,o){var l,c,p=i.level+2;for(l=o+2,c=i.tokens.length-2;l<c;l++)i.tokens[l].level===p&&i.tokens[l].type===\"paragraph_open\"&&(i.tokens[l+2].hidden=!0,i.tokens[l].hidden=!0,l+=2)}return HT=function(o,l,c,p){var d,m,E,b,y,w,x,k,N,A,O,_,M,V,P,F,j,q,Q,ee,Z,W,B,ne,ie,se,de,J,ge=!1,ce=!0;if(o.sCount[l]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[l]-o.listIndent>=4&&o.sCount[l]<o.blkIndent)return!1;if(p&&o.parentType===\"paragraph\"&&o.sCount[l]>=o.blkIndent&&(ge=!0),(B=n(o,l))>=0){if(x=!0,ie=o.bMarks[l]+o.tShift[l],M=Number(o.src.slice(ie,B-1)),ge&&M!==1)return!1}else if((B=t(o,l))>=0)x=!1;else return!1;if(ge&&o.skipSpaces(B)>=o.eMarks[l])return!1;if(_=o.src.charCodeAt(B-1),p)return!0;for(O=o.tokens.length,x?(J=o.push(\"ordered_list_open\",\"ol\",1),M!==1&&(J.attrs=[[\"start\",M]])):J=o.push(\"bullet_list_open\",\"ul\",1),J.map=A=[l,0],J.markup=String.fromCharCode(_),P=l,ne=!1,de=o.md.block.ruler.getRules(\"list\"),q=o.parentType,o.parentType=\"list\";P<c;){for(W=B,V=o.eMarks[P],w=F=o.sCount[P]+B-(o.bMarks[l]+o.tShift[l]);W<V;){if(d=o.src.charCodeAt(W),d===9)F+=4-(F+o.bsCount[P])%4;else if(d===32)F++;else break;W++}if(m=W,m>=V?y=1:y=F-w,y>4&&(y=1),b=w+y,J=o.push(\"list_item_open\",\"li\",1),J.markup=String.fromCharCode(_),J.map=k=[l,0],x&&(J.info=o.src.slice(ie,B-1)),Z=o.tight,ee=o.tShift[l],Q=o.sCount[l],j=o.listIndent,o.listIndent=o.blkIndent,o.blkIndent=b,o.tight=!0,o.tShift[l]=m-o.bMarks[l],o.sCount[l]=F,m>=V&&o.isEmpty(l+1)?o.line=Math.min(o.line+2,c):o.md.block.tokenize(o,l,c,!0),(!o.tight||ne)&&(ce=!1),ne=o.line-l>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=j,o.tShift[l]=ee,o.sCount[l]=Q,o.tight=Z,J=o.push(\"list_item_close\",\"li\",-1),J.markup=String.fromCharCode(_),P=l=o.line,k[1]=P,m=o.bMarks[l],P>=c||o.sCount[P]<o.blkIndent||o.sCount[l]-o.blkIndent>=4)break;for(se=!1,E=0,N=de.length;E<N;E++)if(de[E](o,P,c,!0)){se=!0;break}if(se)break;if(x){if(B=n(o,P),B<0)break;ie=o.bMarks[P]+o.tShift[P]}else if(B=t(o,P),B<0)break;if(_!==o.src.charCodeAt(B-1))break}return x?J=o.push(\"ordered_list_close\",\"ol\",-1):J=o.push(\"bullet_list_close\",\"ul\",-1),J.markup=String.fromCharCode(_),A[1]=P,o.line=P,o.parentType=q,ce&&r(o,O),!0},HT}var GT,FR;function N$(){if(FR)return GT;FR=1;var e=kn().normalizeReference,t=kn().isSpace;return GT=function(r,i,o,l){var c,p,d,m,E,b,y,w,x,k,N,A,O,_,M,V,P=0,F=r.bMarks[i]+r.tShift[i],j=r.eMarks[i],q=i+1;if(r.sCount[i]-r.blkIndent>=4||r.src.charCodeAt(F)!==91)return!1;for(;++F<j;)if(r.src.charCodeAt(F)===93&&r.src.charCodeAt(F-1)!==92){if(F+1===j||r.src.charCodeAt(F+1)!==58)return!1;break}for(m=r.lineMax,M=r.md.block.ruler.getRules(\"reference\"),k=r.parentType,r.parentType=\"reference\";q<m&&!r.isEmpty(q);q++)if(!(r.sCount[q]-r.blkIndent>3)&&!(r.sCount[q]<0)){for(_=!1,b=0,y=M.length;b<y;b++)if(M[b](r,q,m,!0)){_=!0;break}if(_)break}for(O=r.getLines(i,q,r.blkIndent,!1).trim(),j=O.length,F=1;F<j;F++){if(c=O.charCodeAt(F),c===91)return!1;if(c===93){x=F;break}else c===10?P++:c===92&&(F++,F<j&&O.charCodeAt(F)===10&&P++)}if(x<0||O.charCodeAt(x+1)!==58)return!1;for(F=x+2;F<j;F++)if(c=O.charCodeAt(F),c===10)P++;else if(!t(c))break;if(N=r.md.helpers.parseLinkDestination(O,F,j),!N.ok||(E=r.md.normalizeLink(N.str),!r.md.validateLink(E)))return!1;for(F=N.pos,P+=N.lines,p=F,d=P,A=F;F<j;F++)if(c=O.charCodeAt(F),c===10)P++;else if(!t(c))break;for(N=r.md.helpers.parseLinkTitle(O,F,j),F<j&&A!==F&&N.ok?(V=N.str,F=N.pos,P+=N.lines):(V=\"\",F=p,P=d);F<j&&(c=O.charCodeAt(F),!!t(c));)F++;if(F<j&&O.charCodeAt(F)!==10&&V)for(V=\"\",F=p,P=d;F<j&&(c=O.charCodeAt(F),!!t(c));)F++;return F<j&&O.charCodeAt(F)!==10||(w=e(O.slice(1,x)),!w)?!1:(l||(typeof r.env.references>\"u\"&&(r.env.references={}),typeof r.env.references[w]>\"u\"&&(r.env.references[w]={title:V,href:E}),r.parentType=k,r.line=i+P+1),!0)},GT}var WT,PR;function A$(){return PR||(PR=1,WT=[\"address\",\"article\",\"aside\",\"base\",\"basefont\",\"blockquote\",\"body\",\"caption\",\"center\",\"col\",\"colgroup\",\"dd\",\"details\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"frame\",\"frameset\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hr\",\"html\",\"iframe\",\"legend\",\"li\",\"link\",\"main\",\"menu\",\"menuitem\",\"nav\",\"noframes\",\"ol\",\"optgroup\",\"option\",\"p\",\"param\",\"section\",\"source\",\"summary\",\"table\",\"tbody\",\"td\",\"tfoot\",\"th\",\"thead\",\"title\",\"tr\",\"track\",\"ul\"]),WT}var f0={},jR;function VR(){if(jR)return f0;jR=1;var e=\"[a-zA-Z_:][a-zA-Z0-9:._-]*\",t=\"[^\\\"'=<>`\\\\x00-\\\\x20]+\",n=\"'[^']*'\",r='\"[^\"]*\"',i=\"(?:\"+t+\"|\"+n+\"|\"+r+\")\",o=\"(?:\\\\s+\"+e+\"(?:\\\\s*=\\\\s*\"+i+\")?)\",l=\"<[A-Za-z][A-Za-z0-9\\\\-]*\"+o+\"*\\\\s*\\\\/?>\",c=\"<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>\",p=\"<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->\",d=\"<[?][\\\\s\\\\S]*?[?]>\",m=\"<![A-Z]+\\\\s+[^>]*>\",E=\"<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?\\\\]\\\\]>\",b=new RegExp(\"^(?:\"+l+\"|\"+c+\"|\"+p+\"|\"+d+\"|\"+m+\"|\"+E+\")\"),y=new RegExp(\"^(?:\"+l+\"|\"+c+\")\");return f0.HTML_TAG_RE=b,f0.HTML_OPEN_CLOSE_TAG_RE=y,f0}var YT,UR;function O$(){if(UR)return YT;UR=1;var e=A$(),t=VR().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style|textarea)(?=(\\s|>|$))/i,/<\\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\\?/,/\\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\\[CDATA\\[/,/\\]\\]>/,!0],[new RegExp(\"^</?(\"+e.join(\"|\")+\")(?=(\\\\s|/?>|$))\",\"i\"),/^$/,!0],[new RegExp(t.source+\"\\\\s*$\"),/^$/,!1]];return YT=function(i,o,l,c){var p,d,m,E,b=i.bMarks[o]+i.tShift[o],y=i.eMarks[o];if(i.sCount[o]-i.blkIndent>=4||!i.md.options.html||i.src.charCodeAt(b)!==60)return!1;for(E=i.src.slice(b,y),p=0;p<n.length&&!n[p][0].test(E);p++);if(p===n.length)return!1;if(c)return n[p][2];if(d=o+1,!n[p][1].test(E)){for(;d<l&&!(i.sCount[d]<i.blkIndent);d++)if(b=i.bMarks[d]+i.tShift[d],y=i.eMarks[d],E=i.src.slice(b,y),n[p][1].test(E)){E.length!==0&&d++;break}}return i.line=d,m=i.push(\"html_block\",\"\",0),m.map=[o,d],m.content=i.getLines(o,d,i.blkIndent,!0),!0},YT}var QT,qR;function D$(){if(qR)return QT;qR=1;var e=kn().isSpace;return QT=function(n,r,i,o){var l,c,p,d,m=n.bMarks[r]+n.tShift[r],E=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(l=n.src.charCodeAt(m),l!==35||m>=E))return!1;for(c=1,l=n.src.charCodeAt(++m);l===35&&m<E&&c<=6;)c++,l=n.src.charCodeAt(++m);return c>6||m<E&&!e(l)?!1:(o||(E=n.skipSpacesBack(E,m),p=n.skipCharsBack(E,35,m),p>m&&e(n.src.charCodeAt(p-1))&&(E=p),n.line=r+1,d=n.push(\"heading_open\",\"h\"+String(c),1),d.markup=\"########\".slice(0,c),d.map=[r,n.line],d=n.push(\"inline\",\"\",0),d.content=n.src.slice(m,E).trim(),d.map=[r,n.line],d.children=[],d=n.push(\"heading_close\",\"h\"+String(c),-1),d.markup=\"########\".slice(0,c)),!0)},QT}var KT,BR;function k$(){return BR||(BR=1,KT=function(t,n,r){var i,o,l,c,p,d,m,E,b,y=n+1,w,x=t.md.block.ruler.getRules(\"paragraph\");if(t.sCount[n]-t.blkIndent>=4)return!1;for(w=t.parentType,t.parentType=\"paragraph\";y<r&&!t.isEmpty(y);y++)if(!(t.sCount[y]-t.blkIndent>3)){if(t.sCount[y]>=t.blkIndent&&(d=t.bMarks[y]+t.tShift[y],m=t.eMarks[y],d<m&&(b=t.src.charCodeAt(d),(b===45||b===61)&&(d=t.skipChars(d,b),d=t.skipSpaces(d),d>=m)))){E=b===61?1:2;break}if(!(t.sCount[y]<0)){for(o=!1,l=0,c=x.length;l<c;l++)if(x[l](t,y,r,!0)){o=!0;break}if(o)break}}return E?(i=t.getLines(n,y,t.blkIndent,!1).trim(),t.line=y+1,p=t.push(\"heading_open\",\"h\"+String(E),1),p.markup=String.fromCharCode(b),p.map=[n,t.line],p=t.push(\"inline\",\"\",0),p.content=i,p.map=[n,t.line-1],p.children=[],p=t.push(\"heading_close\",\"h\"+String(E),-1),p.markup=String.fromCharCode(b),t.parentType=w,!0):!1}),KT}var XT,$R;function R$(){return $R||($R=1,XT=function(t,n){var r,i,o,l,c,p,d=n+1,m=t.md.block.ruler.getRules(\"paragraph\"),E=t.lineMax;for(p=t.parentType,t.parentType=\"paragraph\";d<E&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)&&!(t.sCount[d]<0)){for(i=!1,o=0,l=m.length;o<l;o++)if(m[o](t,d,E,!0)){i=!0;break}if(i)break}return r=t.getLines(n,d,t.blkIndent,!1).trim(),t.line=d,c=t.push(\"paragraph_open\",\"p\",1),c.map=[n,t.line],c=t.push(\"inline\",\"\",0),c.content=r,c.map=[n,t.line],c.children=[],c=t.push(\"paragraph_close\",\"p\",-1),t.parentType=p,!0}),XT}var ZT,zR;function M$(){if(zR)return ZT;zR=1;var e=PT(),t=kn().isSpace;function n(r,i,o,l){var c,p,d,m,E,b,y,w;for(this.src=r,this.md=i,this.env=o,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=\"root\",this.level=0,this.result=\"\",p=this.src,w=!1,d=m=b=y=0,E=p.length;m<E;m++){if(c=p.charCodeAt(m),!w)if(t(c)){b++,c===9?y+=4-y%4:y++;continue}else w=!0;(c===10||m===E-1)&&(c!==10&&m++,this.bMarks.push(d),this.eMarks.push(m),this.tShift.push(b),this.sCount.push(y),this.bsCount.push(0),w=!1,b=0,y=0,d=m+1)}this.bMarks.push(p.length),this.eMarks.push(p.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,i,o){var l=new e(r,i,o);return l.block=!0,o<0&&this.level--,l.level=this.level,o>0&&this.level++,this.tokens.push(l),l},n.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]},n.prototype.skipEmptyLines=function(i){for(var o=this.lineMax;i<o&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i},n.prototype.skipSpaces=function(i){for(var o,l=this.src.length;i<l&&(o=this.src.charCodeAt(i),!!t(o));i++);return i},n.prototype.skipSpacesBack=function(i,o){if(i<=o)return i;for(;i>o;)if(!t(this.src.charCodeAt(--i)))return i+1;return i},n.prototype.skipChars=function(i,o){for(var l=this.src.length;i<l&&this.src.charCodeAt(i)===o;i++);return i},n.prototype.skipCharsBack=function(i,o,l){if(i<=l)return i;for(;i>l;)if(o!==this.src.charCodeAt(--i))return i+1;return i},n.prototype.getLines=function(i,o,l,c){var p,d,m,E,b,y,w,x=i;if(i>=o)return\"\";for(y=new Array(o-i),p=0;x<o;x++,p++){for(d=0,w=E=this.bMarks[x],x+1<o||c?b=this.eMarks[x]+1:b=this.eMarks[x];E<b&&d<l;){if(m=this.src.charCodeAt(E),t(m))m===9?d+=4-(d+this.bsCount[x])%4:d++;else if(E-w<this.tShift[x])d++;else break;E++}d>l?y[p]=new Array(d-l+1).join(\" \")+this.src.slice(E,b):y[p]=this.src.slice(E,b)}return y.join(\"\")},n.prototype.Token=e,ZT=n,ZT}var JT,HR;function L$(){if(HR)return JT;HR=1;var e=OT(),t=[[\"table\",S$(),[\"paragraph\",\"reference\"]],[\"code\",T$()],[\"fence\",w$(),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"blockquote\",x$(),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"hr\",C$(),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"list\",_$(),[\"paragraph\",\"reference\",\"blockquote\"]],[\"reference\",N$()],[\"html_block\",O$(),[\"paragraph\",\"reference\",\"blockquote\"]],[\"heading\",D$(),[\"paragraph\",\"reference\",\"blockquote\"]],[\"lheading\",k$()],[\"paragraph\",R$()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,i,o){for(var l,c,p=this.ruler.getRules(\"\"),d=p.length,m=i,E=!1,b=r.md.options.maxNesting;m<o&&(r.line=m=r.skipEmptyLines(m),!(m>=o||r.sCount[m]<r.blkIndent));){if(r.level>=b){r.line=o;break}for(c=0;c<d&&(l=p[c](r,m,o,!1),!l);c++);r.tight=!E,r.isEmpty(r.line-1)&&(E=!0),m=r.line,m<o&&r.isEmpty(m)&&(E=!0,m++,r.line=m)}},n.prototype.parse=function(r,i,o,l){var c;r&&(c=new this.State(r,i,o,l),this.tokenize(c,c.line,c.lineMax))},n.prototype.State=M$(),JT=n,JT}var ew,GR;function I$(){if(GR)return ew;GR=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return ew=function(n,r){for(var i=n.pos;i<n.posMax&&!e(n.src.charCodeAt(i));)i++;return i===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,i)),n.pos=i,!0)},ew}var tw,WR;function F$(){if(WR)return tw;WR=1;var e=kn().isSpace;return tw=function(n,r){var i,o,l,c=n.pos;if(n.src.charCodeAt(c)!==10)return!1;if(i=n.pending.length-1,o=n.posMax,!r)if(i>=0&&n.pending.charCodeAt(i)===32)if(i>=1&&n.pending.charCodeAt(i-1)===32){for(l=i-1;l>=1&&n.pending.charCodeAt(l-1)===32;)l--;n.pending=n.pending.slice(0,l),n.push(\"hardbreak\",\"br\",0)}else n.pending=n.pending.slice(0,-1),n.push(\"softbreak\",\"br\",0);else n.push(\"softbreak\",\"br\",0);for(c++;c<o&&e(n.src.charCodeAt(c));)c++;return n.pos=c,!0},tw}var nw,YR;function P$(){if(YR)return nw;YR=1;for(var e=kn().isSpace,t=[],n=0;n<256;n++)t.push(0);return\"\\\\!\\\"#$%&'()*+,./:;<=>?@[]^_`{|}~-\".split(\"\").forEach(function(r){t[r.charCodeAt(0)]=1}),nw=function(i,o){var l,c=i.pos,p=i.posMax;if(i.src.charCodeAt(c)!==92)return!1;if(c++,c<p){if(l=i.src.charCodeAt(c),l<256&&t[l]!==0)return o||(i.pending+=i.src[c]),i.pos+=2,!0;if(l===10){for(o||i.push(\"hardbreak\",\"br\",0),c++;c<p&&(l=i.src.charCodeAt(c),!!e(l));)c++;return i.pos=c,!0}}return o||(i.pending+=\"\\\\\"),i.pos++,!0},nw}var rw,QR;function j$(){return QR||(QR=1,rw=function(t,n){var r,i,o,l,c,p,d,m,E=t.pos,b=t.src.charCodeAt(E);if(b!==96)return!1;for(r=E,E++,i=t.posMax;E<i&&t.src.charCodeAt(E)===96;)E++;if(o=t.src.slice(r,E),d=o.length,t.backticksScanned&&(t.backticks[d]||0)<=r)return n||(t.pending+=o),t.pos+=d,!0;for(c=p=E;(c=t.src.indexOf(\"`\",p))!==-1;){for(p=c+1;p<i&&t.src.charCodeAt(p)===96;)p++;if(m=p-c,m===d)return n||(l=t.push(\"code_inline\",\"code\",0),l.markup=o,l.content=t.src.slice(E,c).replace(/\\n/g,\" \").replace(/^ (.+) $/,\"$1\")),t.pos=p,!0;t.backticks[m]=c}return t.backticksScanned=!0,n||(t.pending+=o),t.pos+=d,!0}),rw}var d0={},KR;function XR(){if(KR)return d0;KR=1,d0.tokenize=function(n,r){var i,o,l,c,p,d=n.pos,m=n.src.charCodeAt(d);if(r||m!==126||(o=n.scanDelims(n.pos,!0),c=o.length,p=String.fromCharCode(m),c<2))return!1;for(c%2&&(l=n.push(\"text\",\"\",0),l.content=p,c--),i=0;i<c;i+=2)l=n.push(\"text\",\"\",0),l.content=p+p,n.delimiters.push({marker:m,length:0,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,l,c,p=[],d=n.length;for(r=0;r<d;r++)o=n[r],o.marker===126&&o.end!==-1&&(l=n[o.end],c=t.tokens[o.token],c.type=\"s_open\",c.tag=\"s\",c.nesting=1,c.markup=\"~~\",c.content=\"\",c=t.tokens[l.token],c.type=\"s_close\",c.tag=\"s\",c.nesting=-1,c.markup=\"~~\",c.content=\"\",t.tokens[l.token-1].type===\"text\"&&t.tokens[l.token-1].content===\"~\"&&p.push(l.token-1));for(;p.length;){for(r=p.pop(),i=r+1;i<t.tokens.length&&t.tokens[i].type===\"s_close\";)i++;i--,r!==i&&(c=t.tokens[i],t.tokens[i]=t.tokens[r],t.tokens[r]=c)}}return d0.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},d0}var p0={},ZR;function JR(){if(ZR)return p0;ZR=1,p0.tokenize=function(n,r){var i,o,l,c=n.pos,p=n.src.charCodeAt(c);if(r||p!==95&&p!==42)return!1;for(o=n.scanDelims(n.pos,p===42),i=0;i<o.length;i++)l=n.push(\"text\",\"\",0),l.content=String.fromCharCode(p),n.delimiters.push({marker:p,length:o.length,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,l,c,p,d=n.length;for(r=d-1;r>=0;r--)i=n[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=n[i.end],p=r>0&&n[r-1].end===i.end+1&&n[r-1].marker===i.marker&&n[r-1].token===i.token-1&&n[i.end+1].token===o.token+1,c=String.fromCharCode(i.marker),l=t.tokens[i.token],l.type=p?\"strong_open\":\"em_open\",l.tag=p?\"strong\":\"em\",l.nesting=1,l.markup=p?c+c:c,l.content=\"\",l=t.tokens[o.token],l.type=p?\"strong_close\":\"em_close\",l.tag=p?\"strong\":\"em\",l.nesting=-1,l.markup=p?c+c:c,l.content=\"\",p&&(t.tokens[n[r-1].token].content=\"\",t.tokens[n[i.end+1].token].content=\"\",r--))}return p0.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},p0}var iw,eM;function V$(){if(eM)return iw;eM=1;var e=kn().normalizeReference,t=kn().isSpace;return iw=function(r,i){var o,l,c,p,d,m,E,b,y,w=\"\",x=\"\",k=r.pos,N=r.posMax,A=r.pos,O=!0;if(r.src.charCodeAt(r.pos)!==91||(d=r.pos+1,p=r.md.helpers.parseLinkLabel(r,r.pos,!0),p<0))return!1;if(m=p+1,m<N&&r.src.charCodeAt(m)===40){for(O=!1,m++;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(m>=N)return!1;if(A=m,E=r.md.helpers.parseLinkDestination(r.src,m,r.posMax),E.ok){for(w=r.md.normalizeLink(E.str),r.md.validateLink(w)?m=E.pos:w=\"\",A=m;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(E=r.md.helpers.parseLinkTitle(r.src,m,r.posMax),m<N&&A!==m&&E.ok)for(x=E.str,m=E.pos;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);}(m>=N||r.src.charCodeAt(m)!==41)&&(O=!0),m++}if(O){if(typeof r.env.references>\"u\")return!1;if(m<N&&r.src.charCodeAt(m)===91?(A=m+1,m=r.md.helpers.parseLinkLabel(r,m),m>=0?c=r.src.slice(A,m++):m=p+1):m=p+1,c||(c=r.src.slice(d,p)),b=r.env.references[e(c)],!b)return r.pos=k,!1;w=b.href,x=b.title}return i||(r.pos=d,r.posMax=p,y=r.push(\"link_open\",\"a\",1),y.attrs=o=[[\"href\",w]],x&&o.push([\"title\",x]),r.md.inline.tokenize(r),y=r.push(\"link_close\",\"a\",-1)),r.pos=m,r.posMax=N,!0},iw}var ow,tM;function U$(){if(tM)return ow;tM=1;var e=kn().normalizeReference,t=kn().isSpace;return ow=function(r,i){var o,l,c,p,d,m,E,b,y,w,x,k,N,A=\"\",O=r.pos,_=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(m=r.pos+2,d=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),d<0))return!1;if(E=d+1,E<_&&r.src.charCodeAt(E)===40){for(E++;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);if(E>=_)return!1;for(N=E,y=r.md.helpers.parseLinkDestination(r.src,E,r.posMax),y.ok&&(A=r.md.normalizeLink(y.str),r.md.validateLink(A)?E=y.pos:A=\"\"),N=E;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);if(y=r.md.helpers.parseLinkTitle(r.src,E,r.posMax),E<_&&N!==E&&y.ok)for(w=y.str,E=y.pos;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);else w=\"\";if(E>=_||r.src.charCodeAt(E)!==41)return r.pos=O,!1;E++}else{if(typeof r.env.references>\"u\")return!1;if(E<_&&r.src.charCodeAt(E)===91?(N=E+1,E=r.md.helpers.parseLinkLabel(r,E),E>=0?p=r.src.slice(N,E++):E=d+1):E=d+1,p||(p=r.src.slice(m,d)),b=r.env.references[e(p)],!b)return r.pos=O,!1;A=b.href,w=b.title}return i||(c=r.src.slice(m,d),r.md.inline.parse(c,r.md,r.env,k=[]),x=r.push(\"image\",\"img\",0),x.attrs=o=[[\"src\",A],[\"alt\",\"\"]],x.children=k,x.content=c,w&&o.push([\"title\",w])),r.pos=E,r.posMax=_,!0},ow}var aw,nM;function q$(){if(nM)return aw;nM=1;var e=/^([a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\\-]{1,31}):([^<>\\x00-\\x20]*)$/;return aw=function(r,i){var o,l,c,p,d,m,E=r.pos;if(r.src.charCodeAt(E)!==60)return!1;for(d=r.pos,m=r.posMax;;){if(++E>=m||(p=r.src.charCodeAt(E),p===60))return!1;if(p===62)break}return o=r.src.slice(d+1,E),t.test(o)?(l=r.md.normalizeLink(o),r.md.validateLink(l)?(i||(c=r.push(\"link_open\",\"a\",1),c.attrs=[[\"href\",l]],c.markup=\"autolink\",c.info=\"auto\",c=r.push(\"text\",\"\",0),c.content=r.md.normalizeLinkText(o),c=r.push(\"link_close\",\"a\",-1),c.markup=\"autolink\",c.info=\"auto\"),r.pos+=o.length+2,!0):!1):e.test(o)?(l=r.md.normalizeLink(\"mailto:\"+o),r.md.validateLink(l)?(i||(c=r.push(\"link_open\",\"a\",1),c.attrs=[[\"href\",l]],c.markup=\"autolink\",c.info=\"auto\",c=r.push(\"text\",\"\",0),c.content=r.md.normalizeLinkText(o),c=r.push(\"link_close\",\"a\",-1),c.markup=\"autolink\",c.info=\"auto\"),r.pos+=o.length+2,!0):!1):!1},aw}var sw,rM;function B$(){if(rM)return sw;rM=1;var e=VR().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return sw=function(r,i){var o,l,c,p,d=r.pos;return!r.md.options.html||(c=r.posMax,r.src.charCodeAt(d)!==60||d+2>=c)||(o=r.src.charCodeAt(d+1),o!==33&&o!==63&&o!==47&&!t(o))||(l=r.src.slice(d).match(e),!l)?!1:(i||(p=r.push(\"html_inline\",\"\",0),p.content=r.src.slice(d,d+l[0].length)),r.pos+=l[0].length,!0)},sw}var lw,iM;function $$(){if(iM)return lw;iM=1;var e=Z2(),t=kn().has,n=kn().isValidEntityCode,r=kn().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return lw=function(c,p){var d,m,E,b=c.pos,y=c.posMax;if(c.src.charCodeAt(b)!==38)return!1;if(b+1<y){if(d=c.src.charCodeAt(b+1),d===35){if(E=c.src.slice(b).match(i),E)return p||(m=E[1][0].toLowerCase()===\"x\"?parseInt(E[1].slice(1),16):parseInt(E[1],10),c.pending+=n(m)?r(m):r(65533)),c.pos+=E[0].length,!0}else if(E=c.src.slice(b).match(o),E&&t(e,E[1]))return p||(c.pending+=e[E[1]]),c.pos+=E[0].length,!0}return p||(c.pending+=\"&\"),c.pos++,!0},lw}var uw,oM;function z$(){if(oM)return uw;oM=1;function e(t,n){var r,i,o,l,c,p,d,m,E={},b=n.length;if(b){var y=0,w=-2,x=[];for(r=0;r<b;r++)if(o=n[r],x.push(0),(n[y].marker!==o.marker||w!==o.token-1)&&(y=r),w=o.token,o.length=o.length||0,!!o.close){for(E.hasOwnProperty(o.marker)||(E[o.marker]=[-1,-1,-1,-1,-1,-1]),c=E[o.marker][(o.open?3:0)+o.length%3],i=y-x[y]-1,p=i;i>c;i-=x[i]+1)if(l=n[i],l.marker===o.marker&&l.open&&l.end<0&&(d=!1,(l.close||o.open)&&(l.length+o.length)%3===0&&(l.length%3!==0||o.length%3!==0)&&(d=!0),!d)){m=i>0&&!n[i-1].open?x[i-1]+1:0,x[r]=r-i+m,x[i]=m,o.open=!1,l.end=r,l.close=!1,p=-1,w=-2;break}p!==-1&&(E[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}}return uw=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},uw}var cw,aM;function H$(){return aM||(aM=1,cw=function(t){var n,r,i=0,o=t.tokens,l=t.tokens.length;for(n=r=0;n<l;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type===\"text\"&&n+1<l&&o[n+1].type===\"text\"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)}),cw}var fw,sM;function G$(){if(sM)return fw;sM=1;var e=PT(),t=kn().isWhiteSpace,n=kn().isPunctChar,r=kn().isMdAsciiPunct;function i(o,l,c,p){this.src=o,this.env=c,this.md=l,this.tokens=p,this.tokens_meta=Array(p.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=\"\",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}return i.prototype.pushPending=function(){var o=new e(\"text\",\"\",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending=\"\",o},i.prototype.push=function(o,l,c){this.pending&&this.pushPending();var p=new e(o,l,c),d=null;return c<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),p.level=this.level,c>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],d={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(p),this.tokens_meta.push(d),p},i.prototype.scanDelims=function(o,l){var c=o,p,d,m,E,b,y,w,x,k,N=!0,A=!0,O=this.posMax,_=this.src.charCodeAt(o);for(p=o>0?this.src.charCodeAt(o-1):32;c<O&&this.src.charCodeAt(c)===_;)c++;return m=c-o,d=c<O?this.src.charCodeAt(c):32,w=r(p)||n(String.fromCharCode(p)),k=r(d)||n(String.fromCharCode(d)),y=t(p),x=t(d),x?N=!1:k&&(y||w||(N=!1)),y?A=!1:w&&(x||k||(A=!1)),l?(E=N,b=A):(E=N&&(!A||w),b=A&&(!N||k)),{can_open:E,can_close:b,length:m}},i.prototype.Token=e,fw=i,fw}var dw,lM;function W$(){if(lM)return dw;lM=1;var e=OT(),t=[[\"text\",I$()],[\"newline\",F$()],[\"escape\",P$()],[\"backticks\",j$()],[\"strikethrough\",XR().tokenize],[\"emphasis\",JR().tokenize],[\"link\",V$()],[\"image\",U$()],[\"autolink\",q$()],[\"html_inline\",B$()],[\"entity\",$$()]],n=[[\"balance_pairs\",z$()],[\"strikethrough\",XR().postProcess],[\"emphasis\",JR().postProcess],[\"text_collapse\",H$()]];function r(){var i;for(this.ruler=new e,i=0;i<t.length;i++)this.ruler.push(t[i][0],t[i][1]);for(this.ruler2=new e,i=0;i<n.length;i++)this.ruler2.push(n[i][0],n[i][1])}return r.prototype.skipToken=function(i){var o,l,c=i.pos,p=this.ruler.getRules(\"\"),d=p.length,m=i.md.options.maxNesting,E=i.cache;if(typeof E[c]<\"u\"){i.pos=E[c];return}if(i.level<m)for(l=0;l<d&&(i.level++,o=p[l](i,!0),i.level--,!o);l++);else i.pos=i.posMax;o||i.pos++,E[c]=i.pos},r.prototype.tokenize=function(i){for(var o,l,c=this.ruler.getRules(\"\"),p=c.length,d=i.posMax,m=i.md.options.maxNesting;i.pos<d;){if(i.level<m)for(l=0;l<p&&(o=c[l](i,!1),!o);l++);if(o){if(i.pos>=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()},r.prototype.parse=function(i,o,l,c){var p,d,m,E=new this.State(i,o,l,c);for(this.tokenize(E),d=this.ruler2.getRules(\"\"),m=d.length,p=0;p<m;p++)d[p](E)},r.prototype.State=G$(),dw=r,dw}var pw,uM;function Y$(){return uM||(uM=1,pw=function(e){var t={};t.src_Any=sR().source,t.src_Cc=uR().source,t.src_Z=dR().source,t.src_P=mT().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(\"|\"),t.src_ZCc=[t.src_Z,t.src_Cc].join(\"|\");var n=\"[><|]\";return t.src_pseudo_letter=\"(?:(?!\"+n+\"|\"+t.src_ZPCc+\")\"+t.src_Any+\")\",t.src_ip4=\"(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\",t.src_auth=\"(?:(?:(?!\"+t.src_ZCc+\"|[@/\\\\[\\\\]()]).)+@)?\",t.src_port=\"(?::(?:6(?:[0-4]\\\\d{3}|5(?:[0-4]\\\\d{2}|5(?:[0-2]\\\\d|3[0-5])))|[1-5]?\\\\d{1,4}))?\",t.src_host_terminator=\"(?=$|\"+n+\"|\"+t.src_ZPCc+\")(?!-|_|:\\\\d|\\\\.-|\\\\.(?!$|\"+t.src_ZPCc+\"))\",t.src_path=\"(?:[/?#](?:(?!\"+t.src_ZCc+\"|\"+n+`|[()[\\\\]{}.,\"'?!\\\\-;]).|\\\\[(?:(?!`+t.src_ZCc+\"|\\\\]).)*\\\\]|\\\\((?:(?!\"+t.src_ZCc+\"|[)]).)*\\\\)|\\\\{(?:(?!\"+t.src_ZCc+'|[}]).)*\\\\}|\\\\\"(?:(?!'+t.src_ZCc+`|[\"]).)+\\\\\"|\\\\'(?:(?!`+t.src_ZCc+\"|[']).)+\\\\'|\\\\'(?=\"+t.src_pseudo_letter+\"|[-]).|\\\\.{2,}[a-zA-Z0-9%/&]|\\\\.(?!\"+t.src_ZCc+\"|[.]).|\"+(e&&e[\"---\"]?\"\\\\-(?!--(?:[^-]|$))(?:-*)|\":\"\\\\-+|\")+\",(?!\"+t.src_ZCc+\").|;(?!\"+t.src_ZCc+\").|\\\\!+(?!\"+t.src_ZCc+\"|[!]).|\\\\?(?!\"+t.src_ZCc+\"|[?]).)+|\\\\/)?\",t.src_email_name='[\\\\-;:&=\\\\+\\\\$,\\\\.a-zA-Z0-9_][\\\\-;:&=\\\\+\\\\$,\\\\\"\\\\.a-zA-Z0-9_]*',t.src_xn=\"xn--[a-z0-9\\\\-]{1,59}\",t.src_domain_root=\"(?:\"+t.src_xn+\"|\"+t.src_pseudo_letter+\"{1,63})\",t.src_domain=\"(?:\"+t.src_xn+\"|(?:\"+t.src_pseudo_letter+\")|(?:\"+t.src_pseudo_letter+\"(?:-|\"+t.src_pseudo_letter+\"){0,61}\"+t.src_pseudo_letter+\"))\",t.src_host=\"(?:(?:(?:(?:\"+t.src_domain+\")\\\\.)*\"+t.src_domain+\"))\",t.tpl_host_fuzzy=\"(?:\"+t.src_ip4+\"|(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%)))\",t.tpl_host_no_ip_fuzzy=\"(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%))\",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=\"localhost|www\\\\.|\\\\.\\\\d{1,3}\\\\.|(?:\\\\.(?:%TLDS%)(?:\"+t.src_ZPCc+\"|>|$))\",t.tpl_email_fuzzy=\"(^|\"+n+'|\"|\\\\(|'+t.src_ZCc+\")(\"+t.src_email_name+\"@\"+t.tpl_host_fuzzy_strict+\")\",t.tpl_link_fuzzy=\"(^|(?![.:/\\\\-_@])(?:[$+<=>^`||]|\"+t.src_ZPCc+\"))((?![$+<=>^`||])\"+t.tpl_host_port_fuzzy_strict+t.src_path+\")\",t.tpl_link_no_ip_fuzzy=\"(^|(?![.:/\\\\-_@])(?:[$+<=>^`||]|\"+t.src_ZPCc+\"))((?![$+<=>^`||])\"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+\")\",t}),pw}var hw,cM;function Q$(){if(cM)return hw;cM=1;function e(O){var _=Array.prototype.slice.call(arguments,1);return _.forEach(function(M){M&&Object.keys(M).forEach(function(V){O[V]=M[V]})}),O}function t(O){return Object.prototype.toString.call(O)}function n(O){return t(O)===\"[object String]\"}function r(O){return t(O)===\"[object Object]\"}function i(O){return t(O)===\"[object RegExp]\"}function o(O){return t(O)===\"[object Function]\"}function l(O){return O.replace(/[.?*+^$[\\]\\\\(){}|-]/g,\"\\\\$&\")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(O){return Object.keys(O||{}).reduce(function(_,M){return _||c.hasOwnProperty(M)},!1)}var d={\"http:\":{validate:function(O,_,M){var V=O.slice(_);return M.re.http||(M.re.http=new RegExp(\"^\\\\/\\\\/\"+M.re.src_auth+M.re.src_host_port_strict+M.re.src_path,\"i\")),M.re.http.test(V)?V.match(M.re.http)[0].length:0}},\"https:\":\"http:\",\"ftp:\":\"http:\",\"//\":{validate:function(O,_,M){var V=O.slice(_);return M.re.no_http||(M.re.no_http=new RegExp(\"^\"+M.re.src_auth+\"(?:localhost|(?:(?:\"+M.re.src_domain+\")\\\\.)+\"+M.re.src_domain_root+\")\"+M.re.src_port+M.re.src_host_terminator+M.re.src_path,\"i\")),M.re.no_http.test(V)?_>=3&&O[_-3]===\":\"||_>=3&&O[_-3]===\"/\"?0:V.match(M.re.no_http)[0].length:0}},\"mailto:\":{validate:function(O,_,M){var V=O.slice(_);return M.re.mailto||(M.re.mailto=new RegExp(\"^\"+M.re.src_email_name+\"@\"+M.re.src_host_strict,\"i\")),M.re.mailto.test(V)?V.match(M.re.mailto)[0].length:0}}},m=\"a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]\",E=\"biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф\".split(\"|\");function b(O){O.__index__=-1,O.__text_cache__=\"\"}function y(O){return function(_,M){var V=_.slice(M);return O.test(V)?V.match(O)[0].length:0}}function w(){return function(O,_){_.normalize(O)}}function x(O){var _=O.re=Y$()(O.__opts__),M=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||M.push(m),M.push(_.src_xn),_.src_tlds=M.join(\"|\");function V(q){return q.replace(\"%TLDS%\",_.src_tlds)}_.email_fuzzy=RegExp(V(_.tpl_email_fuzzy),\"i\"),_.link_fuzzy=RegExp(V(_.tpl_link_fuzzy),\"i\"),_.link_no_ip_fuzzy=RegExp(V(_.tpl_link_no_ip_fuzzy),\"i\"),_.host_fuzzy_test=RegExp(V(_.tpl_host_fuzzy_test),\"i\");var P=[];O.__compiled__={};function F(q,Q){throw new Error('(LinkifyIt) Invalid schema \"'+q+'\": '+Q)}Object.keys(O.__schemas__).forEach(function(q){var Q=O.__schemas__[q];if(Q!==null){var ee={validate:null,link:null};if(O.__compiled__[q]=ee,r(Q)){i(Q.validate)?ee.validate=y(Q.validate):o(Q.validate)?ee.validate=Q.validate:F(q,Q),o(Q.normalize)?ee.normalize=Q.normalize:Q.normalize?F(q,Q):ee.normalize=w();return}if(n(Q)){P.push(q);return}F(q,Q)}}),P.forEach(function(q){O.__compiled__[O.__schemas__[q]]&&(O.__compiled__[q].validate=O.__compiled__[O.__schemas__[q]].validate,O.__compiled__[q].normalize=O.__compiled__[O.__schemas__[q]].normalize)}),O.__compiled__[\"\"]={validate:null,normalize:w()};var j=Object.keys(O.__compiled__).filter(function(q){return q.length>0&&O.__compiled__[q]}).map(l).join(\"|\");O.re.schema_test=RegExp(\"(^|(?!_)(?:[><|]|\"+_.src_ZPCc+\"))(\"+j+\")\",\"i\"),O.re.schema_search=RegExp(\"(^|(?!_)(?:[><|]|\"+_.src_ZPCc+\"))(\"+j+\")\",\"ig\"),O.re.pretest=RegExp(\"(\"+O.re.schema_test.source+\")|(\"+O.re.host_fuzzy_test.source+\")|@\",\"i\"),b(O)}function k(O,_){var M=O.__index__,V=O.__last_index__,P=O.__text_cache__.slice(M,V);this.schema=O.__schema__.toLowerCase(),this.index=M+_,this.lastIndex=V+_,this.raw=P,this.text=P,this.url=P}function N(O,_){var M=new k(O,_);return O.__compiled__[M.schema].normalize(M,O),M}function A(O,_){if(!(this instanceof A))return new A(O,_);_||p(O)&&(_=O,O={}),this.__opts__=e({},c,_),this.__index__=-1,this.__last_index__=-1,this.__schema__=\"\",this.__text_cache__=\"\",this.__schemas__=e({},d,O),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},x(this)}return A.prototype.add=function(_,M){return this.__schemas__[_]=M,x(this),this},A.prototype.set=function(_){return this.__opts__=e(this.__opts__,_),this},A.prototype.test=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return!1;var M,V,P,F,j,q,Q,ee,Z;if(this.re.schema_test.test(_)){for(Q=this.re.schema_search,Q.lastIndex=0;(M=Q.exec(_))!==null;)if(F=this.testSchemaAt(_,M[2],Q.lastIndex),F){this.__schema__=M[2],this.__index__=M.index+M[1].length,this.__last_index__=M.index+M[0].length+F;break}}return this.__opts__.fuzzyLink&&this.__compiled__[\"http:\"]&&(ee=_.search(this.re.host_fuzzy_test),ee>=0&&(this.__index__<0||ee<this.__index__)&&(V=_.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(j=V.index+V[1].length,(this.__index__<0||j<this.__index__)&&(this.__schema__=\"\",this.__index__=j,this.__last_index__=V.index+V[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[\"mailto:\"]&&(Z=_.indexOf(\"@\"),Z>=0&&(P=_.match(this.re.email_fuzzy))!==null&&(j=P.index+P[1].length,q=P.index+P[0].length,(this.__index__<0||j<this.__index__||j===this.__index__&&q>this.__last_index__)&&(this.__schema__=\"mailto:\",this.__index__=j,this.__last_index__=q))),this.__index__>=0},A.prototype.pretest=function(_){return this.re.pretest.test(_)},A.prototype.testSchemaAt=function(_,M,V){return this.__compiled__[M.toLowerCase()]?this.__compiled__[M.toLowerCase()].validate(_,V,this):0},A.prototype.match=function(_){var M=0,V=[];this.__index__>=0&&this.__text_cache__===_&&(V.push(N(this,M)),M=this.__last_index__);for(var P=M?_.slice(M):_;this.test(P);)V.push(N(this,M)),P=P.slice(this.__last_index__),M+=this.__last_index__;return V.length?V:null},A.prototype.tlds=function(_,M){return _=Array.isArray(_)?_:[_],M?(this.__tlds__=this.__tlds__.concat(_).sort().filter(function(V,P,F){return V!==F[P-1]}).reverse(),x(this),this):(this.__tlds__=_.slice(),this.__tlds_replaced__=!0,x(this),this)},A.prototype.normalize=function(_){_.schema||(_.url=\"http://\"+_.url),_.schema===\"mailto:\"&&!/^mailto:/i.test(_.url)&&(_.url=\"mailto:\"+_.url)},A.prototype.onCompile=function(){},hw=A,hw}const tp=2147483647,$s=36,mw=1,Cm=26,K$=38,X$=700,fM=72,dM=128,pM=\"-\",Z$=/^xn--/,J$=/[^\\0-\\x7F]/,ez=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,tz={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},gw=$s-mw,zs=Math.floor,vw=String.fromCharCode;function Gu(e){throw new RangeError(tz[e])}function nz(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function hM(e,t){const n=e.split(\"@\");let r=\"\";n.length>1&&(r=n[0]+\"@\",e=n[1]),e=e.replace(ez,\".\");const i=e.split(\".\"),o=nz(i,t).join(\".\");return r+o}function yw(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const mM=e=>String.fromCodePoint(...e),rz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:$s},gM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},vM=function(e,t,n){let r=0;for(e=n?zs(e/X$):e>>1,e+=zs(e/t);e>gw*Cm>>1;r+=$s)e=zs(e/gw);return zs(r+(gw+1)*e/(e+K$))},bw=function(e){const t=[],n=e.length;let r=0,i=dM,o=fM,l=e.lastIndexOf(pM);l<0&&(l=0);for(let c=0;c<l;++c)e.charCodeAt(c)>=128&&Gu(\"not-basic\"),t.push(e.charCodeAt(c));for(let c=l>0?l+1:0;c<n;){const p=r;for(let m=1,E=$s;;E+=$s){c>=n&&Gu(\"invalid-input\");const b=rz(e.charCodeAt(c++));b>=$s&&Gu(\"invalid-input\"),b>zs((tp-r)/m)&&Gu(\"overflow\"),r+=b*m;const y=E<=o?mw:E>=o+Cm?Cm:E-o;if(b<y)break;const w=$s-y;m>zs(tp/w)&&Gu(\"overflow\"),m*=w}const d=t.length+1;o=vM(r-p,d,p==0),zs(r/d)>tp-i&&Gu(\"overflow\"),i+=zs(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Ew=function(e){const t=[];e=yw(e);const n=e.length;let r=dM,i=0,o=fM;for(const p of e)p<128&&t.push(vw(p));const l=t.length;let c=l;for(l&&t.push(pM);c<n;){let p=tp;for(const m of e)m>=r&&m<p&&(p=m);const d=c+1;p-r>zs((tp-i)/d)&&Gu(\"overflow\"),i+=(p-r)*d,r=p;for(const m of e)if(m<r&&++i>tp&&Gu(\"overflow\"),m===r){let E=i;for(let b=$s;;b+=$s){const y=b<=o?mw:b>=o+Cm?Cm:b-o;if(E<y)break;const w=E-y,x=$s-y;t.push(vw(gM(y+w%x,0))),E=zs(w/x)}t.push(vw(gM(E,0))),o=vM(i,d,c===l),i=0,++c}++i,++r}return t.join(\"\")},yM=function(e){return hM(e,function(t){return Z$.test(t)?bw(t.slice(4).toLowerCase()):t})},bM=function(e){return hM(e,function(t){return J$.test(t)?\"xn--\"+Ew(t):t})},iz=W_(Object.freeze(Object.defineProperty({__proto__:null,decode:bw,default:{version:\"2.3.1\",ucs2:{decode:yw,encode:mM},decode:bw,encode:Ew,toASCII:bM,toUnicode:yM},encode:Ew,toASCII:bM,toUnicode:yM,ucs2decode:yw,ucs2encode:mM},Symbol.toStringTag,{value:\"Module\"})));var Sw,EM;function oz(){return EM||(EM=1,Sw={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Sw}var Tw,SM;function az(){return SM||(SM=1,Tw={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"paragraph\"]},inline:{rules:[\"text\"],rules2:[\"balance_pairs\",\"text_collapse\"]}}}),Tw}var ww,TM;function sz(){return TM||(TM=1,ww={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"blockquote\",\"code\",\"fence\",\"heading\",\"hr\",\"html_block\",\"lheading\",\"list\",\"reference\",\"paragraph\"]},inline:{rules:[\"autolink\",\"backticks\",\"emphasis\",\"entity\",\"escape\",\"html_inline\",\"image\",\"link\",\"newline\",\"text\"],rules2:[\"balance_pairs\",\"emphasis\",\"text_collapse\"]}}}),ww}var xw,wM;function lz(){if(wM)return xw;wM=1;var e=kn(),t=f$(),n=d$(),r=E$(),i=L$(),o=W$(),l=Q$(),c=oR(),p=iz,d={default:oz(),zero:az(),commonmark:sz()},m=/^(vbscript|javascript|file|data):/,E=/^data:image\\/(gif|png|jpeg|webp);/;function b(N){var A=N.trim().toLowerCase();return m.test(A)?!!E.test(A):!0}var y=[\"http:\",\"https:\",\"mailto:\"];function w(N){var A=c.parse(N,!0);if(A.hostname&&(!A.protocol||y.indexOf(A.protocol)>=0))try{A.hostname=p.toASCII(A.hostname)}catch{}return c.encode(c.format(A))}function x(N){var A=c.parse(N,!0);if(A.hostname&&(!A.protocol||y.indexOf(A.protocol)>=0))try{A.hostname=p.toUnicode(A.hostname)}catch{}return c.decode(c.format(A),c.decode.defaultChars+\"%\")}function k(N,A){if(!(this instanceof k))return new k(N,A);A||e.isString(N)||(A=N||{},N=\"default\"),this.inline=new o,this.block=new i,this.core=new r,this.renderer=new n,this.linkify=new l,this.validateLink=b,this.normalizeLink=w,this.normalizeLinkText=x,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(N),A&&this.set(A)}return k.prototype.set=function(N){return e.assign(this.options,N),this},k.prototype.configure=function(N){var A=this,O;if(e.isString(N)&&(O=N,N=d[O],!N))throw new Error('Wrong `markdown-it` preset \"'+O+'\", check name');if(!N)throw new Error(\"Wrong `markdown-it` preset, can't be empty\");return N.options&&A.set(N.options),N.components&&Object.keys(N.components).forEach(function(_){N.components[_].rules&&A[_].ruler.enableOnly(N.components[_].rules),N.components[_].rules2&&A[_].ruler2.enableOnly(N.components[_].rules2)}),this},k.prototype.enable=function(N,A){var O=[];Array.isArray(N)||(N=[N]),[\"core\",\"block\",\"inline\"].forEach(function(M){O=O.concat(this[M].ruler.enable(N,!0))},this),O=O.concat(this.inline.ruler2.enable(N,!0));var _=N.filter(function(M){return O.indexOf(M)<0});if(_.length&&!A)throw new Error(\"MarkdownIt. Failed to enable unknown rule(s): \"+_);return this},k.prototype.disable=function(N,A){var O=[];Array.isArray(N)||(N=[N]),[\"core\",\"block\",\"inline\"].forEach(function(M){O=O.concat(this[M].ruler.disable(N,!0))},this),O=O.concat(this.inline.ruler2.disable(N,!0));var _=N.filter(function(M){return O.indexOf(M)<0});if(_.length&&!A)throw new Error(\"MarkdownIt. Failed to disable unknown rule(s): \"+_);return this},k.prototype.use=function(N){var A=[this].concat(Array.prototype.slice.call(arguments,1));return N.apply(N,A),this},k.prototype.parse=function(N,A){if(typeof N!=\"string\")throw new Error(\"Input data should be a String\");var O=new this.core.State(N,this,A);return this.core.process(O),O.tokens},k.prototype.render=function(N,A){return A=A||{},this.renderer.render(this.parse(N,A),this.options,A)},k.prototype.parseInline=function(N,A){var O=new this.core.State(N,this,A);return O.inlineMode=!0,this.core.process(O),O.tokens},k.prototype.renderInline=function(N,A){return A=A||{},this.renderer.render(this.parseInline(N,A),this.options,A)},xw=k,xw}var Cw,xM;function uz(){return xM||(xM=1,Cw=lz()),Cw}var cz=uz();const fz=Mu(cz);var dz=\"production\",CM=typeof process>\"u\"||process.env===void 0?dz:\"production\",jl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},_m={measureLayout:jl([\"layout\",\"layoutId\",\"drag\"]),animation:jl([\"animate\",\"exit\",\"variants\",\"whileHover\",\"whileTap\",\"whileFocus\",\"whileDrag\",\"whileInView\"]),exit:jl([\"exit\"]),drag:jl([\"drag\",\"dragControls\"]),focus:jl([\"whileFocus\"]),hover:jl([\"whileHover\",\"onHoverStart\",\"onHoverEnd\"]),tap:jl([\"whileTap\",\"onTap\",\"onTapStart\",\"onTapCancel\"]),pan:jl([\"onPan\",\"onPanStart\",\"onPanSessionStart\",\"onPanEnd\"]),inView:jl([\"whileInView\",\"onViewportEnter\",\"onViewportLeave\"])};function pz(e){for(var t in e)e[t]!==null&&(t===\"projectionNodeConstructor\"?_m.projectionNodeConstructor=e[t]:_m[t].Component=e[t])}var h0=function(){},_M=L.createContext({strict:!1}),NM=Object.keys(_m),hz=NM.length;function mz(e,t,n){var r=[],i=L.useContext(_M);if(!t)return null;CM!==\"production\"&&n&&i.strict;for(var o=0;o<hz;o++){var l=NM[o],c=_m[l],p=c.isEnabled,d=c.Component;p(e)&&d&&r.push(L.createElement(d,Xe({key:l},e,{visualElement:t})))}return r}var m0=L.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:\"never\"}),g0=L.createContext({});function gz(){return L.useContext(g0).visualElement}var v0=L.createContext(null),np=typeof document<\"u\",_w=np?L.useLayoutEffect:L.useEffect,Nw={current:null},AM=!1;function vz(){if(AM=!0,!!np)if(window.matchMedia){var e=window.matchMedia(\"(prefers-reduced-motion)\"),t=function(){return Nw.current=e.matches};e.addListener(t),t()}else Nw.current=!1}function yz(){!AM&&vz();var e=mr(L.useState(Nw.current),1),t=e[0];return t}function bz(){var e=yz(),t=L.useContext(m0).reducedMotion;return t===\"never\"?!1:t===\"always\"?!0:e}function Ez(e,t,n,r){var i=L.useContext(_M),o=gz(),l=L.useContext(v0),c=bz(),p=L.useRef(void 0);r||(r=i.renderer),!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceId:l==null?void 0:l.id,blockInitialAnimation:(l==null?void 0:l.initial)===!1,shouldReduceMotion:c}));var d=p.current;return _w(function(){d==null||d.syncRender()}),L.useEffect(function(){var m;(m=d==null?void 0:d.animationState)===null||m===void 0||m.animateChanges()}),_w(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function rp(e){return typeof e==\"object\"&&Object.prototype.hasOwnProperty.call(e,\"current\")}function Sz(e,t,n){return L.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==\"function\"?n(r):rp(n)&&(n.current=r))},[t])}function OM(e){return Array.isArray(e)}function os(e){return typeof e==\"string\"||OM(e)}function Tz(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function wz(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function DM(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t==\"function\"&&(t=t(n??e.custom,r,i)),typeof t==\"string\"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t==\"function\"&&(t=t(n??e.custom,r,i)),t}function y0(e,t,n){var r=e.getProps();return DM(r,t,n??r.custom,Tz(e),wz(e))}function b0(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)==\"function\"||os(e.initial)||os(e.animate)||os(e.whileHover)||os(e.whileDrag)||os(e.whileTap)||os(e.whileFocus)||os(e.exit)}function kM(e){return!!(b0(e)||e.variants)}function xz(e,t){if(b0(e)){var n=e.initial,r=e.animate;return{initial:n===!1||os(n)?n:void 0,animate:os(r)?r:void 0}}return e.inherit!==!1?t:{}}function Cz(e){var t=xz(e,L.useContext(g0)),n=t.initial,r=t.animate;return L.useMemo(function(){return{initial:n,animate:r}},[RM(n),RM(r)])}function RM(e){return Array.isArray(e)?e.join(\" \"):e}function Wu(e){var t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}var Nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_z=1;function Nz(){return Wu(function(){if(Nm.hasEverUpdated)return _z++})}var MM=L.createContext({}),LM=L.createContext({});function Az(e,t,n,r){var i,o=t.layoutId,l=t.layout,c=t.drag,p=t.dragConstraints,d=t.layoutScroll,m=L.useContext(LM);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||p&&rp(p),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof l==\"string\"?l:\"both\",initialPromotionConfig:m,layoutScroll:d}))}var Oz=function(e){tk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Oe.Component);function Dz(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,l=e.Component;t&&pz(t);function c(p,d){var m=kz(p);p=Xe(Xe({},p),{layoutId:m});var E=L.useContext(m0),b=null,y=Cz(p),w=E.isStatic?void 0:Nz(),x=o(p,E.isStatic);return!E.isStatic&&np&&(y.visualElement=Ez(l,x,Xe(Xe({},E),p),n),Az(w,p,y.visualElement,r||_m.projectionNodeConstructor),b=mz(p,y.visualElement,t)),L.createElement(Oz,{visualElement:y.visualElement,props:Xe(Xe({},E),p)},b,L.createElement(g0.Provider,{value:y},i(l,p,w,Sz(x,y.visualElement,d),x,E.isStatic,y.visualElement)))}return L.forwardRef(c)}function kz(e){var t,n=e.layoutId,r=(t=L.useContext(MM))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+\"-\"+n:n}function Rz(e){function t(r,i){return i===void 0&&(i={}),Dz(e(r,i))}if(typeof Proxy>\"u\")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var Mz=[\"animate\",\"circle\",\"defs\",\"desc\",\"ellipse\",\"g\",\"image\",\"line\",\"filter\",\"marker\",\"mask\",\"metadata\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"rect\",\"stop\",\"svg\",\"switch\",\"symbol\",\"text\",\"tspan\",\"use\",\"view\"];function Aw(e){return typeof e!=\"string\"||e.includes(\"-\")?!1:!!(Mz.indexOf(e)>-1||/[A-Z]/.test(e))}var E0={};function Lz(e){Object.assign(E0,e)}var Ow=[\"\",\"X\",\"Y\",\"Z\"],Iz=[\"translate\",\"scale\",\"rotate\",\"skew\"],Am=[\"transformPerspective\",\"x\",\"y\",\"z\"];Iz.forEach(function(e){return Ow.forEach(function(t){return Am.push(e+t)})});function Fz(e,t){return Am.indexOf(e)-Am.indexOf(t)}var Pz=new Set(Am);function Om(e){return Pz.has(e)}var jz=new Set([\"originX\",\"originY\",\"originZ\"]);function IM(e){return jz.has(e)}function FM(e,t){var n=t.layout,r=t.layoutId;return Om(e)||IM(e)||(n||r!==void 0)&&(!!E0[e]||e===\"opacity\")}var Hs=function(e){return!!(e!==null&&typeof e==\"object\"&&e.getVelocity)},Vz={x:\"translateX\",y:\"translateY\",z:\"translateZ\",transformPerspective:\"perspective\"};function Uz(e,t,n,r){var i=e.transform,o=e.transformKeys,l=t.enableHardwareAcceleration,c=l===void 0?!0:l,p=t.allowTransformNone,d=p===void 0?!0:p,m=\"\";o.sort(Fz);for(var E=!1,b=o.length,y=0;y<b;y++){var w=o[y];m+=\"\".concat(Vz[w]||w,\"(\").concat(i[w],\") \"),w===\"z\"&&(E=!0)}return!E&&c?m+=\"translateZ(0)\":m=m.trim(),r?m=r(i,n?\"\":m):d&&n&&(m=\"none\"),m}function qz(e){var t=e.originX,n=t===void 0?\"50%\":t,r=e.originY,i=r===void 0?\"50%\":r,o=e.originZ,l=o===void 0?0:o;return\"\".concat(n,\" \").concat(i,\" \").concat(l)}function PM(e){return e.startsWith(\"--\")}var Bz=function(e,t){return t&&typeof e==\"number\"?t.transform(e):e};const jM=(e,t)=>n=>Math.max(Math.min(n,t),e),Dm=e=>e%1?Number(e.toFixed(5)):e,km=/(-)?([\\d]*\\.?[\\d])+/g,Dw=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2,3}\\s*\\/*\\s*[\\d\\.]+%?\\))/gi,$z=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2,3}\\s*\\/*\\s*[\\d\\.]+%?\\))$/i;function Rm(e){return typeof e==\"string\"}const Cf={test:e=>typeof e==\"number\",parse:parseFloat,transform:e=>e},Mm=Object.assign(Object.assign({},Cf),{transform:jM(0,1)}),S0=Object.assign(Object.assign({},Cf),{default:1}),Lm=e=>({test:t=>Rm(t)&&t.endsWith(e)&&t.split(\" \").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yu=Lm(\"deg\"),Gs=Lm(\"%\"),Ft=Lm(\"px\"),zz=Lm(\"vh\"),Hz=Lm(\"vw\"),VM=Object.assign(Object.assign({},Gs),{parse:e=>Gs.parse(e)/100,transform:e=>Gs.transform(e*100)}),kw=(e,t)=>n=>!!(Rm(n)&&$z.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UM=(e,t,n)=>r=>{if(!Rm(r))return r;const[i,o,l,c]=r.match(km);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},_f={test:kw(\"hsl\",\"hue\"),parse:UM(\"hue\",\"saturation\",\"lightness\"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>\"hsla(\"+Math.round(e)+\", \"+Gs.transform(Dm(t))+\", \"+Gs.transform(Dm(n))+\", \"+Dm(Mm.transform(r))+\")\"},Gz=jM(0,255),Rw=Object.assign(Object.assign({},Cf),{transform:e=>Math.round(Gz(e))}),Qu={test:kw(\"rgb\",\"red\"),parse:UM(\"red\",\"green\",\"blue\"),transform:({red:e,green:t,blue:n,alpha:r=1})=>\"rgba(\"+Rw.transform(e)+\", \"+Rw.transform(t)+\", \"+Rw.transform(n)+\", \"+Dm(Mm.transform(r))+\")\"};function Wz(e){let t=\"\",n=\"\",r=\"\",i=\"\";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Mw={test:kw(\"#\"),parse:Wz,transform:Qu.transform},co={test:e=>Qu.test(e)||Mw.test(e)||_f.test(e),parse:e=>Qu.test(e)?Qu.parse(e):_f.test(e)?_f.parse(e):Mw.parse(e),transform:e=>Rm(e)?e:e.hasOwnProperty(\"red\")?Qu.transform(e):_f.transform(e)},qM=\"${c}\",BM=\"${n}\";function Yz(e){var t,n,r,i;return isNaN(e)&&Rm(e)&&((n=(t=e.match(km))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Dw))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function $M(e){typeof e==\"number\"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Dw);r&&(n=r.length,e=e.replace(Dw,qM),t.push(...r.map(co.parse)));const i=e.match(km);return i&&(e=e.replace(km,BM),t.push(...i.map(Cf.parse))),{values:t,numColors:n,tokenised:e}}function zM(e){return $M(e).values}function HM(e){const{values:t,numColors:n,tokenised:r}=$M(e),i=t.length;return o=>{let l=r;for(let c=0;c<i;c++)l=l.replace(c<n?qM:BM,c<n?co.transform(o[c]):Dm(o[c]));return l}}const Qz=e=>typeof e==\"number\"?0:e;function Kz(e){const t=zM(e);return HM(e)(t.map(Qz))}const Vl={test:Yz,parse:zM,createTransformer:HM,getAnimatableNone:Kz},Xz=new Set([\"brightness\",\"contrast\",\"saturate\",\"opacity\"]);function Zz(e){let[t,n]=e.slice(0,-1).split(\"(\");if(t===\"drop-shadow\")return e;const[r]=n.match(km)||[];if(!r)return e;const i=n.replace(r,\"\");let o=Xz.has(t)?1:0;return r!==n&&(o*=100),t+\"(\"+o+i+\")\"}const Jz=/([a-z-]*)\\(.*?\\)/g,Lw=Object.assign(Object.assign({},Vl),{getAnimatableNone:e=>{const t=e.match(Jz);return t?t.map(Zz).join(\" \"):e}});var GM=Xe(Xe({},Cf),{transform:Math.round}),WM={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,size:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,rotate:Yu,rotateX:Yu,rotateY:Yu,rotateZ:Yu,scale:S0,scaleX:S0,scaleY:S0,scaleZ:S0,skew:Yu,skewX:Yu,skewY:Yu,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:Mm,originX:VM,originY:VM,originZ:Ft,zIndex:GM,fillOpacity:Mm,strokeOpacity:Mm,numOctaves:GM};function Iw(e,t,n,r){var i,o=e.style,l=e.vars,c=e.transform,p=e.transformKeys,d=e.transformOrigin;p.length=0;var m=!1,E=!1,b=!0;for(var y in t){var w=t[y];if(PM(y)){l[y]=w;continue}var x=WM[y],k=Bz(w,x);if(Om(y)){if(m=!0,c[y]=k,p.push(y),!b)continue;w!==((i=x.default)!==null&&i!==void 0?i:0)&&(b=!1)}else IM(y)?(d[y]=k,E=!0):o[y]=k}m?o.transform=Uz(e,n,b,r):r?o.transform=r({},\"\"):!t.transform&&o.transform&&(o.transform=\"none\"),E&&(o.transformOrigin=qz(d))}var Fw=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function YM(e,t,n){for(var r in t)!Hs(t[r])&&!FM(r,n)&&(e[r]=t[r])}function eH(e,t,n){var r=e.transformTemplate;return L.useMemo(function(){var i=Fw();Iw(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,l=i.style;return Xe(Xe({},o),l)},[t])}function tH(e,t,n){var r=e.style||{},i={};return YM(i,r,e),Object.assign(i,eH(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function nH(e,t,n){var r={},i=tH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout=\"none\",i.touchAction=e.drag===!0?\"none\":\"pan-\".concat(e.drag===\"x\"?\"y\":\"x\")),r.style=i,r}var rH=new Set([\"initial\",\"animate\",\"exit\",\"style\",\"variants\",\"transition\",\"transformTemplate\",\"transformValues\",\"custom\",\"inherit\",\"layout\",\"layoutId\",\"layoutDependency\",\"onLayoutAnimationStart\",\"onLayoutAnimationComplete\",\"onLayoutMeasure\",\"onBeforeLayoutMeasure\",\"onAnimationStart\",\"onAnimationComplete\",\"onUpdate\",\"onDragStart\",\"onDrag\",\"onDragEnd\",\"onMeasureDragConstraints\",\"onDirectionLock\",\"onDragTransitionEnd\",\"drag\",\"dragControls\",\"dragListener\",\"dragConstraints\",\"dragDirectionLock\",\"dragSnapToOrigin\",\"_dragX\",\"_dragY\",\"dragElastic\",\"dragMomentum\",\"dragPropagation\",\"dragTransition\",\"whileDrag\",\"onPan\",\"onPanStart\",\"onPanEnd\",\"onPanSessionStart\",\"onTap\",\"onTapStart\",\"onTapCancel\",\"onHoverStart\",\"onHoverEnd\",\"whileFocus\",\"whileTap\",\"whileHover\",\"whileInView\",\"onViewportEnter\",\"onViewportLeave\",\"viewport\",\"layoutScroll\"]);function T0(e){return rH.has(e)}var QM=function(e){return!T0(e)};function iH(e){e&&(QM=function(t){return t.startsWith(\"on\")?!T0(t):e(t)})}try{iH(require(\"@emotion/is-prop-valid\").default)}catch{}function oH(e,t,n){var r={};for(var i in e)(QM(i)||n===!0&&T0(i)||!t&&!T0(i)||e.draggable&&i.startsWith(\"onDrag\"))&&(r[i]=e[i]);return r}function KM(e,t,n){return typeof e==\"string\"?e:Ft.transform(t+n*e)}function aH(e,t,n){var r=KM(t,e.x,e.width),i=KM(n,e.y,e.height);return\"\".concat(r,\" \").concat(i)}var sH={offset:\"strokeDashoffset\",array:\"strokeDasharray\"};function lH(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=sH;e[o.offset]=Ft.transform(-r);var l=Ft.transform(t),c=Ft.transform(n);e[o.array]=\"\".concat(l,\" \").concat(c)}function Pw(e,t,n,r){var i=t.attrX,o=t.attrY,l=t.originX,c=t.originY,p=t.pathLength,d=t.pathSpacing,m=d===void 0?1:d,E=t.pathOffset,b=E===void 0?0:E,y=Ki(t,[\"attrX\",\"attrY\",\"originX\",\"originY\",\"pathLength\",\"pathSpacing\",\"pathOffset\"]);Iw(e,y,n,r),e.attrs=e.style,e.style={};var w=e.attrs,x=e.style,k=e.dimensions;w.transform&&(k&&(x.transform=w.transform),delete w.transform),k&&(l!==void 0||c!==void 0||x.transform)&&(x.transformOrigin=aH(k,l!==void 0?l:.5,c!==void 0?c:.5)),i!==void 0&&(w.x=i),o!==void 0&&(w.y=o),p!==void 0&&lH(w,p,m,b)}var XM=function(){return Xe(Xe({},Fw()),{attrs:{}})};function uH(e,t){var n=L.useMemo(function(){var i=XM();return Pw(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Xe(Xe({},i.attrs),{style:Xe({},i.style)})},[t]);if(e.style){var r={};YM(r,e.style,e),n.style=Xe(Xe({},r),n.style)}return n}function cH(e){e===void 0&&(e=!1);var t=function(n,r,i,o,l,c){var p=l.latestValues,d=Aw(n)?uH:nH,m=d(r,p,c),E=oH(r,typeof n==\"string\",e),b=Xe(Xe(Xe({},E),m),{ref:o});return i&&(b[\"data-projection-id\"]=i),L.createElement(n,b)};return t}var fH=/([a-z])([A-Z])/g,dH=\"$1-$2\",ZM=function(e){return e.replace(fH,dH).toLowerCase()};function JM(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var l in o)e.style.setProperty(l,o[l])}var eL=new Set([\"baseFrequency\",\"diffuseConstant\",\"kernelMatrix\",\"kernelUnitLength\",\"keySplines\",\"keyTimes\",\"limitingConeAngle\",\"markerHeight\",\"markerWidth\",\"numOctaves\",\"targetX\",\"targetY\",\"surfaceScale\",\"specularConstant\",\"specularExponent\",\"stdDeviation\",\"tableValues\",\"viewBox\",\"gradientTransform\",\"pathLength\"]);function tL(e,t,n,r){JM(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(eL.has(i)?i:ZM(i),t.attrs[i])}function jw(e){var t=e.style,n={};for(var r in t)(Hs(t[r])||FM(r,e))&&(n[r]=t[r]);return n}function nL(e){var t=jw(e);for(var n in e)if(Hs(e[n])){var r=n===\"x\"||n===\"y\"?\"attr\"+n.toUpperCase():n;t[r]=e[n]}return t}function Vw(e){return typeof e==\"object\"&&typeof e.start==\"function\"}var Im=function(e){return Array.isArray(e)},pH=function(e){return!!(e&&typeof e==\"object\"&&e.mix&&e.toValue)},rL=function(e){return Im(e)?e[e.length-1]||0:e};function w0(e){var t=Hs(e)?e.get():e;return pH(t)?t.toValue():t}function iL(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,l=e.onMount,c={latestValues:hH(t,n,r,i),renderState:o()};return l&&(c.mount=function(p){return l(t,p,c)}),c}var oL=function(e){return function(t,n){var r=L.useContext(g0),i=L.useContext(v0);return n?iL(e,t,r,i):Wu(function(){return iL(e,t,r,i)})}};function hH(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,l=r(e);for(var c in l)i[c]=w0(l[c]);var p=e.initial,d=e.animate,m=b0(e),E=kM(e);t&&E&&!m&&e.inherit!==!1&&(p??(p=t.initial),d??(d=t.animate));var b=o||p===!1,y=b?d:p;if(y&&typeof y!=\"boolean\"&&!Vw(y)){var w=Array.isArray(y)?y:[y];w.forEach(function(x){var k=DM(e,x);if(k){var N=k.transitionEnd;k.transition;var A=Ki(k,[\"transitionEnd\",\"transition\"]);for(var O in A){var _=A[O];if(Array.isArray(_)){var M=b?_.length-1:0;_=_[M]}_!==null&&(i[O]=_)}for(var O in N)i[O]=N[O]}})}return i}var mH={useVisualState:oL({scrapeMotionValuesFromProps:nL,createRenderState:XM,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox==\"function\"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Pw(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),tL(t,r)}})},gH={useVisualState:oL({scrapeMotionValuesFromProps:jw,createRenderState:Fw})};function vH(e,t,n,r,i){var o=t.forwardMotionProps,l=o===void 0?!1:o,c=Aw(e)?mH:gH;return Xe(Xe({},c),{preloadedFeatures:n,useRender:cH(l),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var er;(function(e){e.Animate=\"animate\",e.Hover=\"whileHover\",e.Tap=\"whileTap\",e.Drag=\"whileDrag\",e.Focus=\"whileFocus\",e.InView=\"whileInView\",e.Exit=\"exit\"})(er||(er={}));function x0(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Uw(e,t,n,r){L.useEffect(function(){var i=e.current;if(n&&i)return x0(i,t,n,r)},[e,t,n,r])}function yH(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(er.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(er.Focus,!1)};Uw(n,\"focus\",t?r:void 0),Uw(n,\"blur\",t?i:void 0)}function aL(e){return typeof PointerEvent<\"u\"&&e instanceof PointerEvent?e.pointerType===\"mouse\":e instanceof MouseEvent}function sL(e){var t=!!e.touches;return t}function bH(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var EH={pageX:0,pageY:0};function SH(e,t){t===void 0&&(t=\"page\");var n=e.touches[0]||e.changedTouches[0],r=n||EH;return{x:r[t+\"X\"],y:r[t+\"Y\"]}}function TH(e,t){return t===void 0&&(t=\"page\"),{x:e[t+\"X\"],y:e[t+\"Y\"]}}function qw(e,t){return t===void 0&&(t=\"page\"),{point:sL(e)?SH(e,t):TH(e,t)}}var lL=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,qw(r))};return t?bH(n):n},wH=function(){return np&&window.onpointerdown===null},xH=function(){return np&&window.ontouchstart===null},CH=function(){return np&&window.onmousedown===null},_H={pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointercancel:\"mousecancel\",pointerover:\"mouseover\",pointerout:\"mouseout\",pointerenter:\"mouseenter\",pointerleave:\"mouseleave\"},NH={pointerdown:\"touchstart\",pointermove:\"touchmove\",pointerup:\"touchend\",pointercancel:\"touchcancel\"};function uL(e){return wH()?e:xH()?NH[e]:CH()?_H[e]:e}function ip(e,t,n,r){return x0(e,uL(t),lL(n,t===\"pointerdown\"),r)}function C0(e,t,n,r){return Uw(e,uL(t),n&&lL(n,t===\"pointerdown\"),r)}function cL(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var fL=cL(\"dragHorizontal\"),dL=cL(\"dragVertical\");function pL(e){var t=!1;if(e===\"y\")t=dL();else if(e===\"x\")t=fL();else{var n=fL(),r=dL();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function hL(){var e=pL(!0);return e?(e(),!1):!0}function mL(e,t,n){return function(r,i){var o;!aL(r)||hL()||((o=e.animationState)===null||o===void 0||o.setActive(er.Hover,t),n==null||n(r,i))}}function AH(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;C0(i,\"pointerenter\",t||r?mL(i,!0,t):void 0,{passive:!t}),C0(i,\"pointerleave\",n||r?mL(i,!1,n):void 0,{passive:!n})}var gL=function(e,t){return t?e===t?!0:gL(e,t.parentElement):!1};function vL(e){return L.useEffect(function(){return function(){return e()}},[])}const _0=(e,t,n)=>Math.min(Math.max(n,e),t),yL=.001,OH=.01,DH=10,kH=.05,RH=1;function MH({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,l=1-t;l=_0(kH,RH,l),e=_0(OH,DH,e/1e3),l<1?(i=d=>{const m=d*l,E=m*e,b=m-n,y=Bw(d,l),w=Math.exp(-E);return yL-b/y*w},o=d=>{const E=d*l*e,b=E*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,w=Math.exp(-E),x=Bw(Math.pow(d,2),l);return(-i(d)+yL>0?-1:1)*((b-y)*w)/x}):(i=d=>{const m=Math.exp(-d*e),E=(d-n)*e+1;return-.001+m*E},o=d=>{const m=Math.exp(-d*e),E=(n-d)*(e*e);return m*E});const c=5/e,p=IH(i,o,c);if(e=e*1e3,isNaN(p))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(p,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const LH=12;function IH(e,t,n){let r=n;for(let i=1;i<LH;i++)r=r-e(r)/t(r);return r}function Bw(e,t){return e*Math.sqrt(1-t*t)}const FH=[\"duration\",\"bounce\"],PH=[\"stiffness\",\"damping\",\"mass\"];function bL(e,t){return t.some(n=>e[n]!==void 0)}function jH(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!bL(e,PH)&&bL(e,FH)){const n=MH(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function $w(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Ki(e,[\"from\",\"to\",\"restSpeed\",\"restDelta\"]);const l={done:!1,value:t};let{stiffness:c,damping:p,mass:d,velocity:m,duration:E,isResolvedFromDuration:b}=jH(o),y=EL,w=EL;function x(){const k=m?-(m/1e3):0,N=n-t,A=p/(2*Math.sqrt(c*d)),O=Math.sqrt(c/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),A<1){const _=Bw(O,A);y=M=>{const V=Math.exp(-A*O*M);return n-V*((k+A*O*N)/_*Math.sin(_*M)+N*Math.cos(_*M))},w=M=>{const V=Math.exp(-A*O*M);return A*O*V*(Math.sin(_*M)*(k+A*O*N)/_+N*Math.cos(_*M))-V*(Math.cos(_*M)*(k+A*O*N)-_*N*Math.sin(_*M))}}else if(A===1)y=_=>n-Math.exp(-O*_)*(N+(k+O*N)*_);else{const _=O*Math.sqrt(A*A-1);y=M=>{const V=Math.exp(-A*O*M),P=Math.min(_*M,300);return n-V*((k+A*O*N)*Math.sinh(P)+_*N*Math.cosh(P))/_}}}return x(),{next:k=>{const N=y(k);if(b)l.done=k>=E;else{const A=w(k)*1e3,O=Math.abs(A)<=r,_=Math.abs(n-N)<=i;l.done=O&&_}return l.value=l.done?n:N,l},flipTarget:()=>{m=-m,[t,n]=[n,t],x()}}}$w.needsInterpolation=(e,t)=>typeof e==\"string\"||typeof t==\"string\";const EL=e=>0,Fm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Sr=(e,t,n)=>-n*e+n*t+e;function zw(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 SL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,p=2*n-c;i=zw(p,c,e+1/3),o=zw(p,c,e),l=zw(p,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}const VH=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},UH=[Mw,Qu,_f],TL=e=>UH.find(t=>t.test(e)),wL=(e,t)=>{let n=TL(e),r=TL(t),i=n.parse(e),o=r.parse(t);n===_f&&(i=SL(i),n=Qu),r===_f&&(o=SL(o),r=Qu);const l=Object.assign({},i);return c=>{for(const p in l)p!==\"alpha\"&&(l[p]=VH(i[p],o[p],c));return l.alpha=Sr(i.alpha,o.alpha,c),n.transform(l)}},Hw=e=>typeof e==\"number\",qH=(e,t)=>n=>t(e(n)),N0=(...e)=>e.reduce(qH);function xL(e,t){return Hw(e)?n=>Sr(e,t,n):co.test(e)?wL(e,t):NL(e,t)}const CL=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,l)=>xL(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}},BH=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=xL(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function _L(e){const t=Vl.parse(e),n=t.length;let r=0,i=0,o=0;for(let l=0;l<n;l++)r||typeof t[l]==\"number\"?r++:t[l].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const NL=(e,t)=>{const n=Vl.createTransformer(t),r=_L(e),i=_L(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?N0(CL(r.parsed,i.parsed),n):l=>`${l>0?t:e}`},$H=(e,t)=>n=>Sr(e,t,n);function zH(e){if(typeof e==\"number\")return $H;if(typeof e==\"string\")return co.test(e)?wL:NL;if(Array.isArray(e))return CL;if(typeof e==\"object\")return BH}function HH(e,t,n){const r=[],i=n||zH(e[0]),o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const p=Array.isArray(t)?t[l]:t;c=N0(p,c)}r.push(c)}return r}function GH([e,t],[n]){return r=>n(Fm(e,t,r))}function WH(e,t){const n=e.length,r=n-1;return i=>{let o=0,l=!1;if(i<=e[0]?l=!0:i>=e[r]&&(o=r-1,l=!0),!l){let p=1;for(;p<n&&!(e[p]>i||p===r);p++);o=p-1}const c=Fm(e[o],e[o+1],i);return t[o](c)}}function Gw(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;h0(o===t.length),h0(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const l=HH(t,r,i),c=o===2?GH(e,l):WH(e,l);return n?p=>c(_0(e[0],e[o-1],p)):c}const A0=e=>t=>1-e(1-t),Ww=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,YH=e=>t=>Math.pow(t,e),AL=e=>t=>t*t*((e+1)*t-e),QH=e=>{const t=AL(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},OL=1.525,KH=4/11,XH=8/11,ZH=9/10,Yw=e=>e,Qw=YH(2),JH=A0(Qw),DL=Ww(Qw),kL=e=>1-Math.sin(Math.acos(e)),Kw=A0(kL),eG=Ww(Kw),Xw=AL(OL),tG=A0(Xw),nG=Ww(Xw),rG=QH(OL),iG=4356/361,oG=35442/1805,aG=16061/1805,O0=e=>{if(e===1||e===0)return e;const t=e*e;return e<KH?7.5625*t:e<XH?9.075*t-9.9*e+3.4:e<ZH?iG*t-oG*e+aG:10.8*e*e-20.52*e+10.72},sG=A0(O0),lG=e=>e<.5?.5*(1-O0(1-e*2)):.5*O0(e*2-1)+.5;function uG(e,t){return e.map(()=>t||DL).splice(0,e.length-1)}function cG(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function fG(e,t){return e.map(n=>n*t)}function D0({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},l=Array.isArray(t)?t:[e,t],c=fG(r&&r.length===l.length?r:cG(l),i);function p(){return Gw(c,l,{ease:Array.isArray(n)?n:uG(l,n)})}let d=p();return{next:m=>(o.value=d(m),o.done=m>=i,o),flipTarget:()=>{l.reverse(),d=p()}}}function dG({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const l={done:!1,value:t};let c=n*e;const p=t+c,d=o===void 0?p:o(p);return d!==p&&(c=d-t),{next:m=>{const E=-c*Math.exp(-m/r);return l.done=!(E>i||E<-i),l.value=l.done?d:d+E,l},flipTarget:()=>{}}}const RL={keyframes:D0,spring:$w,decay:dG};function pG(e){if(Array.isArray(e.to))return D0;if(RL[e.type])return RL[e.type];const t=new Set(Object.keys(e));return t.has(\"ease\")||t.has(\"duration\")&&!t.has(\"dampingRatio\")?D0:t.has(\"dampingRatio\")||t.has(\"stiffness\")||t.has(\"mass\")||t.has(\"damping\")||t.has(\"restSpeed\")||t.has(\"restDelta\")?$w:D0}const ML=1/60*1e3,hG=typeof performance<\"u\"?()=>performance.now():()=>Date.now(),LL=typeof window<\"u\"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(hG()),ML);function mG(e){let t=[],n=[],r=0,i=!1,o=!1;const l=new WeakSet,c={schedule:(p,d=!1,m=!1)=>{const E=m&&i,b=E?t:n;return d&&l.add(p),b.indexOf(p)===-1&&(b.push(p),E&&i&&(r=t.length)),p},cancel:p=>{const d=n.indexOf(p);d!==-1&&n.splice(d,1),l.delete(p)},process:p=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const m=t[d];m(p),l.has(m)&&(c.schedule(m),e())}i=!1,o&&(o=!1,c.process(p))}};return c}const gG=40;let Zw=!0,Pm=!1,Jw=!1;const op={delta:0,timestamp:0},jm=[\"read\",\"update\",\"preRender\",\"render\",\"postRender\"],k0=jm.reduce((e,t)=>(e[t]=mG(()=>Pm=!0),e),{}),as=jm.reduce((e,t)=>{const n=k0[t];return e[t]=(r,i=!1,o=!1)=>(Pm||yG(),n.schedule(r,i,o)),e},{}),ap=jm.reduce((e,t)=>(e[t]=k0[t].cancel,e),{}),ex=jm.reduce((e,t)=>(e[t]=()=>k0[t].process(op),e),{}),vG=e=>k0[e].process(op),IL=e=>{Pm=!1,op.delta=Zw?ML:Math.max(Math.min(e-op.timestamp,gG),1),op.timestamp=e,Jw=!0,jm.forEach(vG),Jw=!1,Pm&&(Zw=!1,LL(IL))},yG=()=>{Pm=!0,Zw=!0,Jw||LL(IL)},R0=()=>op;function FL(e,t,n=0){return e-t-n}function bG(e,t,n=0,r=!0){return r?FL(t+-e,t,n):t-(e-t)+n}function EG(e,t,n,r){return r?e>=t+n:e<=-n}const SG=e=>{const t=({delta:n})=>e(n);return{start:()=>as.update(t,!0),stop:()=>ap.update(t)}};function PL(e){var t,n,{from:r,autoplay:i=!0,driver:o=SG,elapsed:l=0,repeat:c=0,repeatType:p=\"loop\",repeatDelay:d=0,onPlay:m,onStop:E,onComplete:b,onRepeat:y,onUpdate:w}=e,x=Ki(e,[\"from\",\"autoplay\",\"driver\",\"elapsed\",\"repeat\",\"repeatType\",\"repeatDelay\",\"onPlay\",\"onStop\",\"onComplete\",\"onRepeat\",\"onUpdate\"]);let{to:k}=x,N,A=0,O=x.duration,_,M=!1,V=!0,P;const F=pG(x);!((n=(t=F).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(P=Gw([0,100],[r,k],{clamp:!1}),r=0,k=100);const j=F(Object.assign(Object.assign({},x),{from:r,to:k}));function q(){A++,p===\"reverse\"?(V=A%2===0,l=bG(l,O,d,V)):(l=FL(l,O,d),p===\"mirror\"&&j.flipTarget()),M=!1,y&&y()}function Q(){N.stop(),b&&b()}function ee(W){if(V||(W=-W),l+=W,!M){const B=j.next(Math.max(0,l));_=B.value,P&&(_=P(_)),M=V?B.done:l<=0}w==null||w(_),M&&(A===0&&(O??(O=l)),A<c?EG(l,O,d,V)&&q():Q())}function Z(){m==null||m(),N=o(ee),N.start()}return i&&Z(),{stop:()=>{E==null||E(),N.stop()}}}function jL(e,t){return t?e*(1e3/t):0}function TG({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:l=500,bounceDamping:c=10,restDelta:p=1,modifyTarget:d,driver:m,onUpdate:E,onComplete:b,onStop:y}){let w;function x(O){return n!==void 0&&O<n||r!==void 0&&O>r}function k(O){return n===void 0?r:r===void 0||Math.abs(n-O)<Math.abs(r-O)?n:r}function N(O){w==null||w.stop(),w=PL(Object.assign(Object.assign({},O),{driver:m,onUpdate:_=>{var M;E==null||E(_),(M=O.onUpdate)===null||M===void 0||M.call(O,_)},onComplete:b,onStop:y}))}function A(O){N(Object.assign({type:\"spring\",stiffness:l,damping:c,restDelta:p},O))}if(x(e))A({from:e,velocity:t,to:k(e)});else{let O=i*t+e;typeof d<\"u\"&&(O=d(O));const _=k(O),M=_===n?-1:1;let V,P;const F=j=>{V=P,P=j,t=jL(j-V,R0().delta),(M===1&&j>_||M===-1&&j<_)&&A({from:j,to:_,velocity:t})};N({type:\"decay\",from:e,velocity:t,timeConstant:o,power:i,restDelta:p,modifyTarget:d,onUpdate:x(O)?F:void 0})}return{stop:()=>w==null?void 0:w.stop()}}const tx=e=>e.hasOwnProperty(\"x\")&&e.hasOwnProperty(\"y\"),VL=e=>tx(e)&&e.hasOwnProperty(\"z\"),M0=(e,t)=>Math.abs(e-t);function UL(e,t){if(Hw(e)&&Hw(t))return M0(e,t);if(tx(e)&&tx(t)){const n=M0(e.x,t.x),r=M0(e.y,t.y),i=VL(e)&&VL(t)?M0(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const qL=(e,t)=>1-3*t+3*e,BL=(e,t)=>3*t-6*e,$L=e=>3*e,L0=(e,t,n)=>((qL(t,n)*e+BL(t,n))*e+$L(t))*e,zL=(e,t,n)=>3*qL(t,n)*e*e+2*BL(t,n)*e+$L(t),wG=1e-7,xG=10;function CG(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=L0(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>wG&&++c<xG);return l}const _G=8,NG=.001;function AG(e,t,n,r){for(let i=0;i<_G;++i){const o=zL(t,n,r);if(o===0)return t;const l=L0(t,n,r)-e;t-=l/o}return t}const I0=11,F0=1/(I0-1);function OG(e,t,n,r){if(e===t&&n===r)return Yw;const i=new Float32Array(I0);for(let l=0;l<I0;++l)i[l]=L0(l*F0,e,n);function o(l){let c=0,p=1;const d=I0-1;for(;p!==d&&i[p]<=l;++p)c+=F0;--p;const m=(l-i[p])/(i[p+1]-i[p]),E=c+m*F0,b=zL(E,e,n);return b>=NG?AG(l,E,e,n):b===0?E:CG(l,c,c+F0,e,n)}return l=>l===0||l===1?l:L0(o(l),t,r)}function DG(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,l=t||n||r||i,c=L.useRef(!1),p=L.useRef(null),d={passive:!(n||t||r||w)};function m(){var x;(x=p.current)===null||x===void 0||x.call(p),p.current=null}function E(){var x;return m(),c.current=!1,(x=o.animationState)===null||x===void 0||x.setActive(er.Tap,!1),!hL()}function b(x,k){E()&&(gL(o.getInstance(),x.target)?t==null||t(x,k):r==null||r(x,k))}function y(x,k){E()&&(r==null||r(x,k))}function w(x,k){var N;m(),!c.current&&(c.current=!0,p.current=N0(ip(window,\"pointerup\",b,d),ip(window,\"pointercancel\",y,d)),(N=o.animationState)===null||N===void 0||N.setActive(er.Tap,!0),n==null||n(x,k))}C0(o,\"pointerdown\",l?w:void 0,d),vL(m)}var HL=new Set;function kG(e,t,n){HL.has(t)||(console.warn(t),HL.add(t))}var nx=new WeakMap,rx=new WeakMap,RG=function(e){var t;(t=nx.get(e.target))===null||t===void 0||t(e)},MG=function(e){e.forEach(RG)};function LG(e){var t=e.root,n=Ki(e,[\"root\"]),r=t||document;rx.has(r)||rx.set(r,{});var i=rx.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(MG,Xe({root:t},n))),i[o]}function IG(e,t,n){var r=LG(t);return nx.set(e,n),r.observe(e),function(){nx.delete(e),r.unobserve(e)}}function FG(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,l=o===void 0?{}:o,c=L.useRef({hasEnteredView:!1,isInView:!1}),p=!!(n||r||i);l.once&&c.current.hasEnteredView&&(p=!1);var d=typeof IntersectionObserver>\"u\"?VG:jG;d(p,c.current,t,l)}var PG={some:0,all:1};function jG(e,t,n,r){var i=r.root,o=r.margin,l=r.amount,c=l===void 0?\"some\":l,p=r.once;L.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof c==\"number\"?c:PG[c]},m=function(E){var b,y=E.isIntersecting;if(t.isInView!==y&&(t.isInView=y,!(p&&!y&&t.hasEnteredView))){y&&(t.hasEnteredView=!0),(b=n.animationState)===null||b===void 0||b.setActive(er.InView,y);var w=n.getProps(),x=y?w.onViewportEnter:w.onViewportLeave;x==null||x(E)}};return IG(n.getInstance(),d,m)}},[e,i,o,c])}function VG(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;L.useEffect(function(){!e||!o||(CM!==\"production\"&&kG(!1,\"IntersectionObserver not available on this device. whileInView animations will trigger on mount.\"),requestAnimationFrame(function(){var l;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c==null||c(null),(l=n.animationState)===null||l===void 0||l.setActive(er.InView,!0)}))},[e])}var Ku=function(e){return function(t){return e(t),null}},UG={inView:Ku(FG),tap:Ku(DG),focus:Ku(yH),hover:Ku(AH)},qG=0,BG=function(){return qG++},$G=function(){return Wu(BG)};function GL(){var e=L.useContext(v0);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=$G();L.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function WL(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var P0=function(e){return e*1e3},zG={linear:Yw,easeIn:Qw,easeInOut:DL,easeOut:JH,circIn:kL,circInOut:eG,circOut:Kw,backIn:Xw,backInOut:nG,backOut:tG,anticipate:rG,bounceIn:sG,bounceInOut:lG,bounceOut:O0},YL=function(e){if(Array.isArray(e)){h0(e.length===4);var t=mr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return OG(n,r,i,o)}else if(typeof e==\"string\")return zG[e];return e},HG=function(e){return Array.isArray(e)&&typeof e[0]!=\"number\"},QL=function(e,t){return e===\"zIndex\"?!1:!!(typeof t==\"number\"||Array.isArray(t)||typeof t==\"string\"&&Vl.test(t)&&!t.startsWith(\"url(\"))},Nf=function(){return{type:\"spring\",stiffness:500,damping:25,restSpeed:10}},j0=function(e){return{type:\"spring\",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},ix=function(){return{type:\"keyframes\",ease:\"linear\",duration:.3}},GG=function(e){return{type:\"keyframes\",duration:.8,values:e}},KL={x:Nf,y:Nf,z:Nf,rotate:Nf,rotateX:Nf,rotateY:Nf,rotateZ:Nf,scaleX:j0,scaleY:j0,scale:j0,opacity:ix,backgroundColor:ix,color:ix,default:j0},WG=function(e,t){var n;return Im(t)?n=GG:n=KL[e]||KL.default,Xe({to:t},n(t))},YG=Xe(Xe({},WM),{color:co,backgroundColor:co,outlineColor:co,fill:co,stroke:co,borderColor:co,borderTopColor:co,borderRightColor:co,borderBottomColor:co,borderLeftColor:co,filter:Lw,WebkitFilter:Lw}),ox=function(e){return YG[e]};function ax(e,t){var n,r=ox(e);return r!==Lw&&(r=Vl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function QG(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ki(e,[\"when\",\"delay\",\"delayChildren\",\"staggerChildren\",\"staggerDirection\",\"repeat\",\"repeatType\",\"repeatDelay\",\"from\"]);return!!Object.keys(t).length}function KG(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,l=Ki(e,[\"ease\",\"times\",\"yoyo\",\"flip\",\"loop\"]),c=Xe({},l);return n&&(c.offset=n),l.duration&&(c.duration=P0(l.duration)),l.repeatDelay&&(c.repeatDelay=P0(l.repeatDelay)),t&&(c.ease=HG(t)?t.map(YL):YL(t)),l.type===\"tween\"&&(c.type=\"keyframes\"),(r||o||i)&&(r?c.repeatType=\"reverse\":o?c.repeatType=\"loop\":i&&(c.repeatType=\"mirror\"),c.repeat=o||r||i||l.repeat),l.type!==\"spring\"&&(c.type=\"keyframes\"),c}function XG(e,t){var n,r,i=sx(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function ZG(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=ts([],mr(e.to),!1),e.to[0]=e.from),e}function JG(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),ZG(t),QG(e)||(e=Xe(Xe({},e),WG(n,t.to))),Xe(Xe({},t),KG(e))}function eW(e,t,n,r,i){var o,l=sx(r,e),c=(o=l.from)!==null&&o!==void 0?o:t.get(),p=QL(e,n);c===\"none\"&&p&&typeof n==\"string\"?c=ax(e,n):XL(c)&&typeof n==\"string\"?c=ZL(n):!Array.isArray(n)&&XL(n)&&typeof c==\"string\"&&(n=ZL(c));var d=QL(e,c);function m(){var b={from:c,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(y){return t.set(y)}};return l.type===\"inertia\"||l.type===\"decay\"?TG(Xe(Xe({},b),l)):PL(Xe(Xe({},JG(l,b,e)),{onUpdate:function(y){var w;b.onUpdate(y),(w=l.onUpdate)===null||w===void 0||w.call(l,y)},onComplete:function(){var y;b.onComplete(),(y=l.onComplete)===null||y===void 0||y.call(l)}}))}function E(){var b,y,w=rL(n);return t.set(w),i(),(b=l==null?void 0:l.onUpdate)===null||b===void 0||b.call(l,w),(y=l==null?void 0:l.onComplete)===null||y===void 0||y.call(l),{stop:function(){}}}return!d||!p||l.type===!1?E:m}function XL(e){return e===0||typeof e==\"string\"&&parseFloat(e)===0&&e.indexOf(\" \")===-1}function ZL(e){return typeof e==\"number\"?0:ax(\"\",e)}function sx(e,t){return e[t]||e.default||e}function lx(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,l,c=eW(e,t,n,r,i),p=XG(r,e),d=function(){return l=c()};return p?o=window.setTimeout(d,P0(p)):d(),function(){clearTimeout(o),l==null||l.stop()}})}var tW=function(e){return/^\\-?\\d*\\.?\\d+$/.test(e)},nW=function(e){return/^0[^.\\s]+$/.test(e)};function ux(e,t){e.indexOf(t)===-1&&e.push(t)}function cx(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function rW(e,t,n){var r=mr(e),i=r.slice(0),o=t<0?i.length+t:t;if(o>=0&&o<i.length){var l=n<0?i.length+n:n,c=mr(i.splice(t,1),1),p=c[0];i.splice(l,0,p)}return i}var Vm=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return ux(this.subscriptions,t),function(){return cx(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var l=this.subscriptions[o];l&&l(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),iW=function(e){return!isNaN(parseFloat(e))},oW=function(){function e(t){var n=this;this.version=\"6.5.1\",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Vm,this.velocityUpdateSubscribers=new Vm,this.renderSubscribers=new Vm,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=R0(),l=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=l,n.lastUpdated=c,as.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return as.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=iW(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?jL(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Af(e){return new oW(e)}var JL=function(e){return function(t){return t.test(e)}},aW={test:function(e){return e===\"auto\"},parse:function(e){return e}},eI=[Cf,Ft,Gs,Yu,Hz,zz,aW],Um=function(e){return eI.find(JL(e))},sW=ts(ts([],mr(eI),!1),[co,Vl],!1),lW=function(e){return sW.find(JL(e))};function uW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function cW(e,t){var n=y0(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var l=Ki(r,[\"transitionEnd\",\"transition\"]);l=Xe(Xe({},l),o);for(var c in l){var p=rL(l[c]);uW(e,c,p)}}function fW(e,t,n){var r,i,o,l,c=Object.keys(t).filter(function(y){return!e.hasValue(y)}),p=c.length;if(p)for(var d=0;d<p;d++){var m=c[d],E=t[m],b=null;Array.isArray(E)&&(b=E[0]),b===null&&(b=(i=(r=n[m])!==null&&r!==void 0?r:e.readValue(m))!==null&&i!==void 0?i:t[m]),b!=null&&(typeof b==\"string\"&&(tW(b)||nW(b))?b=parseFloat(b):!lW(b)&&Vl.test(E)&&(b=ax(m,E)),e.addValue(m,Af(b)),(o=(l=n)[m])!==null&&o!==void 0||(l[m]=b),e.setBaseTarget(m,b))}}function dW(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function pW(e,t,n){var r,i,o={};for(var l in e)o[l]=(r=dW(l,t))!==null&&r!==void 0?r:(i=n.getValue(l))===null||i===void 0?void 0:i.get();return o}function hW(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(l){return fx(e,l,n)});r=Promise.all(i)}else if(typeof t==\"string\")r=fx(e,t,n);else{var o=typeof t==\"function\"?y0(e,t,n.custom):t;r=tI(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function fx(e,t,n){var r;n===void 0&&(n={});var i=y0(e,t,n.custom),o=(i||{}).transition,l=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(l=n.transitionOverride);var c=i?function(){return tI(e,i,n)}:function(){return Promise.resolve()},p=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(y){y===void 0&&(y=0);var w=l.delayChildren,x=w===void 0?0:w,k=l.staggerChildren,N=l.staggerDirection;return mW(e,t,x+y,k,N,n)}:function(){return Promise.resolve()},d=l.when;if(d){var m=mr(d===\"beforeChildren\"?[c,p]:[p,c],2),E=m[0],b=m[1];return E().then(b)}else return Promise.all([c(),p(n.delay)])}function tI(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,l=o===void 0?0:o,c=i.transitionOverride,p=i.type,d=e.makeTargetAnimatable(t),m=d.transition,E=m===void 0?e.getDefaultTransition():m,b=d.transitionEnd,y=Ki(d,[\"transition\",\"transitionEnd\"]);c&&(E=c);var w=[],x=p&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[p]);for(var k in y){var N=e.getValue(k),A=y[k];if(!(!N||A===void 0||x&&vW(x,k))){var O=Xe({delay:l},E);e.shouldReduceMotion&&Om(k)&&(O=Xe(Xe({},O),{type:!1,delay:0}));var _=lx(k,N,A,O);w.push(_)}}return Promise.all(w).then(function(){b&&cW(e,b)})}function mW(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var l=[],c=(e.variantChildren.size-1)*r,p=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),c-d*r};return Array.from(e.variantChildren).sort(gW).forEach(function(d,m){l.push(fx(d,t,Xe(Xe({},o),{delay:n+p(m)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(l)}function gW(e,t){return e.sortNodePosition(t)}function vW(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var dx=[er.Animate,er.InView,er.Focus,er.Hover,er.Tap,er.Drag,er.Exit],yW=ts([],mr(dx),!1).reverse(),bW=dx.length;function EW(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return hW(e,r,i)}))}}function SW(e){var t=EW(e),n=wW(),r={},i=!0,o=function(m,E){var b=y0(e,E);if(b){b.transition;var y=b.transitionEnd,w=Ki(b,[\"transition\",\"transitionEnd\"]);m=Xe(Xe(Xe({},m),w),y)}return m};function l(m){return r[m]!==void 0}function c(m){t=m(e)}function p(m,E){for(var b,y=e.getProps(),w=e.getVariantContext(!0)||{},x=[],k=new Set,N={},A=1/0,O=function(P){var F=yW[P],j=n[F],q=(b=y[F])!==null&&b!==void 0?b:w[F],Q=os(q),ee=F===E?j.isActive:null;ee===!1&&(A=P);var Z=q===w[F]&&q!==y[F]&&Q;if(Z&&i&&e.manuallyAnimateOnMount&&(Z=!1),j.protectedKeys=Xe({},N),!j.isActive&&ee===null||!q&&!j.prevProp||Vw(q)||typeof q==\"boolean\")return\"continue\";var W=TW(j.prevProp,q),B=W||F===E&&j.isActive&&!Z&&Q||P>A&&Q,ne=Array.isArray(q)?q:[q],ie=ne.reduce(o,{});ee===!1&&(ie={});var se=j.prevResolvedValues,de=se===void 0?{}:se,J=Xe(Xe({},de),ie),ge=function(pe){B=!0,k.delete(pe),j.needsAnimating[pe]=!0};for(var ce in J){var he=ie[ce],le=de[ce];N.hasOwnProperty(ce)||(he!==le?Im(he)&&Im(le)?!WL(he,le)||W?ge(ce):j.protectedKeys[ce]=!0:he!==void 0?ge(ce):k.add(ce):he!==void 0&&k.has(ce)?ge(ce):j.protectedKeys[ce]=!0)}j.prevProp=q,j.prevResolvedValues=ie,j.isActive&&(N=Xe(Xe({},N),ie)),i&&e.blockInitialAnimation&&(B=!1),B&&!Z&&x.push.apply(x,ts([],mr(ne.map(function(pe){return{animation:pe,options:Xe({type:F},m)}})),!1))},_=0;_<bW;_++)O(_);if(r=Xe({},N),k.size){var M={};k.forEach(function(P){var F=e.getBaseTarget(P);F!==void 0&&(M[P]=F)}),x.push({animation:M})}var V=!!x.length;return i&&y.initial===!1&&!e.manuallyAnimateOnMount&&(V=!1),i=!1,V?t(x):Promise.resolve()}function d(m,E,b){var y;if(n[m].isActive===E)return Promise.resolve();(y=e.variantChildren)===null||y===void 0||y.forEach(function(k){var N;return(N=k.animationState)===null||N===void 0?void 0:N.setActive(m,E)}),n[m].isActive=E;var w=p(b,m);for(var x in n)n[x].protectedKeys={};return w}return{isAnimated:l,animateChanges:p,setActive:d,setAnimateFunction:c,getState:function(){return n}}}function TW(e,t){return typeof t==\"string\"?t!==e:OM(t)?!WL(t,e):!1}function Of(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wW(){var e;return e={},e[er.Animate]=Of(!0),e[er.InView]=Of(),e[er.Hover]=Of(),e[er.Tap]=Of(),e[er.Drag]=Of(),e[er.Focus]=Of(),e[er.Exit]=Of(),e}var xW={animation:Ku(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=SW(t)),Vw(n)&&L.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ku(function(e){var t=e.custom,n=e.visualElement,r=mr(GL(),2),i=r[0],o=r[1],l=L.useContext(v0);L.useEffect(function(){var c,p;n.isPresent=i;var d=(c=n.animationState)===null||c===void 0?void 0:c.setActive(er.Exit,!i,{custom:(p=l==null?void 0:l.custom)!==null&&p!==void 0?p:t});!i&&(d==null||d.then(o))},[i])})},nI=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,l=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var b=hx(i.lastMoveEventInfo,i.history),y=i.startEvent!==null,w=UL(b.offset,{x:0,y:0})>=3;if(!(!y&&!w)){var x=b.point,k=R0().timestamp;i.history.push(Xe(Xe({},x),{timestamp:k}));var N=i.handlers,A=N.onStart,O=N.onMove;y||(A&&A(i.lastMoveEvent,b),i.startEvent=i.lastMoveEvent),O&&O(i.lastMoveEvent,b)}}},this.handlePointerMove=function(b,y){if(i.lastMoveEvent=b,i.lastMoveEventInfo=px(y,i.transformPagePoint),aL(b)&&b.buttons===0){i.handlePointerUp(b,y);return}as.update(i.updatePoint,!0)},this.handlePointerUp=function(b,y){i.end();var w=i.handlers,x=w.onEnd,k=w.onSessionEnd,N=hx(px(y,i.transformPagePoint),i.history);i.startEvent&&x&&x(b,N),k&&k(b,N)},!(sL(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=l;var c=qw(t),p=px(c,this.transformPagePoint),d=p.point,m=R0().timestamp;this.history=[Xe(Xe({},d),{timestamp:m})];var E=n.onSessionStart;E&&E(t,hx(p,this.history)),this.removeListeners=N0(ip(window,\"pointermove\",this.handlePointerMove),ip(window,\"pointerup\",this.handlePointerUp),ip(window,\"pointercancel\",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),ap.update(this.updatePoint)},e}();function px(e,t){return t?{point:t(e.point)}:e}function rI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hx(e,t){var n=e.point;return{point:n,delta:rI(n,iI(t)),offset:rI(n,CW(t)),velocity:_W(t,.1)}}function CW(e){return e[0]}function iI(e){return e[e.length-1]}function _W(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=iI(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>P0(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Ul(e){return e.max-e.min}function oI(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),UL(e,t)<n}function aI(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=Sr(t.min,t.max,e.origin),e.scale=Ul(n)/Ul(t),(oI(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Sr(n.min,n.max,e.origin)-e.originPoint,(oI(e.translate)||isNaN(e.translate))&&(e.translate=0)}function qm(e,t,n,r){aI(e.x,t.x,n.x,r==null?void 0:r.originX),aI(e.y,t.y,n.y,r==null?void 0:r.originY)}function sI(e,t,n){e.min=n.min+t.min,e.max=e.min+Ul(t)}function NW(e,t,n){sI(e.x,t.x,n.x),sI(e.y,t.y,n.y)}function lI(e,t,n){e.min=t.min-n.min,e.max=e.min+Ul(t)}function Bm(e,t,n){lI(e.x,t.x,n.x),lI(e.y,t.y,n.y)}function AW(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?Sr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?Sr(i,e,n.max):Math.min(e,i)),e}function uI(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function OW(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:uI(e.x,r,o),y:uI(e.y,n,i)}}function cI(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=mr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function DW(e,t){return{x:cI(e.x,t.x),y:cI(e.y,t.y)}}function kW(e,t){var n=.5,r=Ul(e),i=Ul(t);return i>r?n=Fm(t.min,t.max-r,e.min):r>i&&(n=Fm(e.min,e.max-i,t.min)),_0(0,1,n)}function RW(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var mx=.35;function MW(e){return e===void 0&&(e=mx),e===!1?e=0:e===!0&&(e=mx),{x:fI(e,\"left\",\"right\"),y:fI(e,\"top\",\"bottom\")}}function fI(e,t,n){return{min:dI(e,t),max:dI(e,n)}}function dI(e,t){var n;return typeof e==\"number\"?e:(n=e[t])!==null&&n!==void 0?n:0}var pI=function(){return{translate:0,scale:1,origin:0,originPoint:0}},$m=function(){return{x:pI(),y:pI()}},hI=function(){return{min:0,max:0}},Xi=function(){return{x:hI(),y:hI()}};function Ws(e){return[e(\"x\"),e(\"y\")]}function mI(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function LW(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function IW(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gx(e){return e===void 0||e===1}function gI(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!gx(t)||!gx(n)||!gx(r)}function Xu(e){return gI(e)||vI(e.x)||vI(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function vI(e){return e&&e!==\"0%\"}function V0(e,t,n){var r=e-n,i=t*r;return n+i}function yI(e,t,n,r,i){return i!==void 0&&(e=V0(e,i,r)),V0(e,n,r)+t}function vx(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=yI(e.min,t,n,r,i),e.max=yI(e.max,t,n,r,i)}function bI(e,t){var n=t.x,r=t.y;vx(e.x,n.translate,n.scale,n.originPoint),vx(e.y,r.translate,r.scale,r.originPoint)}function FW(e,t,n,r){var i,o;r===void 0&&(r=!1);var l=n.length;if(l){t.x=t.y=1;for(var c,p,d=0;d<l;d++)c=n[d],p=c.projectionDelta,((o=(i=c.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!==\"contents\"&&(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&sp(e,{x:-c.scroll.x,y:-c.scroll.y}),p&&(t.x*=p.x.scale,t.y*=p.y.scale,bI(e,p)),r&&Xu(c.latestValues)&&sp(e,c.latestValues))}}function Zu(e,t){e.min=e.min+t,e.max=e.max+t}function EI(e,t,n){var r=mr(n,3),i=r[0],o=r[1],l=r[2],c=t[l]!==void 0?t[l]:.5,p=Sr(e.min,e.max,c);vx(e,t[i],t[o],p,t.scale)}var PW=[\"x\",\"scaleX\",\"originX\"],jW=[\"y\",\"scaleY\",\"originY\"];function sp(e,t){EI(e.x,t,PW),EI(e.y,t,jW)}function SI(e,t){return mI(IW(e.getBoundingClientRect(),t))}function VW(e,t,n){var r=SI(e,n),i=t.scroll;return i&&(Zu(r.x,i.x),Zu(r.y,i.y)),r}var UW=new WeakMap,qW=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xi(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,l=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var c=function(E){r.stopAnimation(),l&&r.snapToCursor(qw(E,\"page\").point)},p=function(E,b){var y,w=r.getProps(),x=w.drag,k=w.dragPropagation,N=w.onDragStart;x&&!k&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=pL(x),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ws(function(A){var O,_,M=r.getAxisMotionValue(A).get()||0;if(Gs.test(M)){var V=(_=(O=r.visualElement.projection)===null||O===void 0?void 0:O.layout)===null||_===void 0?void 0:_.actual[A];if(V){var P=Ul(V);M=P*(parseFloat(M)/100)}}r.originPoint[A]=M}),N==null||N(E,b),(y=r.visualElement.animationState)===null||y===void 0||y.setActive(er.Drag,!0))},d=function(E,b){var y=r.getProps(),w=y.dragPropagation,x=y.dragDirectionLock,k=y.onDirectionLock,N=y.onDrag;if(!(!w&&!r.openGlobalLock)){var A=b.offset;if(x&&r.currentDirection===null){r.currentDirection=BW(A),r.currentDirection!==null&&(k==null||k(r.currentDirection));return}r.updateAxis(\"x\",b.point,A),r.updateAxis(\"y\",b.point,A),r.visualElement.syncRender(),N==null||N(E,b)}},m=function(E,b){return r.stop(E,b)};this.panSession=new nI(t,{onSessionStart:c,onStart:p,onMove:d,onSessionEnd:m},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(er.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!U0(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=AW(l,this.constraints[t],this.elastic[t])),o.set(l)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,l=this.constraints;r&&rp(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=OW(o.actual,r):this.constraints=!1,this.elastic=MW(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ws(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=RW(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!rp(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var l=VW(i,o.root,this.visualElement.getTransformPagePoint()),c=DW(o.layout.actual,l);if(r){var p=r(LW(c));this.hasMutatedConstraints=!!p,p&&(c=mI(p))}return c},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,l=r.dragElastic,c=r.dragTransition,p=r.dragSnapToOrigin,d=r.onDragTransitionEnd,m=this.constraints||{},E=Ws(function(b){var y;if(U0(b,i,n.currentDirection)){var w=(y=m==null?void 0:m[b])!==null&&y!==void 0?y:{};p&&(w={min:0,max:0});var x=l?200:1e6,k=l?40:1e7,N=Xe(Xe({type:\"inertia\",velocity:o?t[b]:0,bounceStiffness:x,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10},c),w);return n.startAxisValueAnimation(b,N)}});return Promise.all(E).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return lx(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ws(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i=\"_drag\"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Ws(function(r){var i=n.getProps().drag;if(U0(r,i,n.currentDirection)){var o=n.visualElement.projection,l=n.getAxisMotionValue(r);if(o&&o.layout){var c=o.layout.actual[r],p=c.min,d=c.max;l.set(t[r]-Sr(p,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,l=this.visualElement.projection;if(!(!rp(o)||!l||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Ws(function(d){var m=t.getAxisMotionValue(d);if(m){var E=m.get();c[d]=kW({min:E,max:E},t.constraints[d])}});var p=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=p?p({},\"\"):\"none\",(n=l.root)===null||n===void 0||n.updateScroll(),l.updateLayout(),this.resolveConstraints(),Ws(function(d){if(U0(d,i,null)){var m=t.getAxisMotionValue(d),E=t.constraints[d],b=E.min,y=E.max;m.set(Sr(b,y,c[d]))}})}},e.prototype.addListeners=function(){var t=this,n;UW.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=ip(r,\"pointerdown\",function(d){var m=t.getProps(),E=m.drag,b=m.dragListener,y=b===void 0?!0:b;E&&y&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;rp(d)&&(t.constraints=t.resolveRefConstraints())},l=this.visualElement.projection,c=l.addEventListener(\"measure\",o);l&&!l.layout&&((n=l.root)===null||n===void 0||n.updateScroll(),l.updateLayout()),o();var p=x0(window,\"resize\",function(){return t.scalePositionWithinConstraints()});return l.addEventListener(\"didUpdate\",function(d){var m=d.delta,E=d.hasLayoutChanged;t.isDragging&&E&&(Ws(function(b){var y=t.getAxisMotionValue(b);y&&(t.originPoint[b]+=m[b].translate,y.set(y.get()+m[b].translate))}),t.visualElement.syncRender())}),function(){p(),i(),c()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,l=t.dragPropagation,c=l===void 0?!1:l,p=t.dragConstraints,d=p===void 0?!1:p,m=t.dragElastic,E=m===void 0?mx:m,b=t.dragMomentum,y=b===void 0?!0:b;return Xe(Xe({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:E,dragMomentum:y})},e}();function U0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BW(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n=\"y\":Math.abs(e.x)>t&&(n=\"x\"),n}function $W(e){var t=e.dragControls,n=e.visualElement,r=Wu(function(){return new qW(n)});L.useEffect(function(){return t&&t.subscribe(r)},[r,t]),L.useEffect(function(){return r.addListeners()},[r])}function zW(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,l=t||n||r||i,c=L.useRef(null),p=L.useContext(m0).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(E,b){c.current=null,r&&r(E,b)}};L.useEffect(function(){c.current!==null&&c.current.updateHandlers(d)});function m(E){c.current=new nI(E,d,{transformPagePoint:p})}C0(o,\"pointerdown\",l&&m),vL(function(){return c.current&&c.current.end()})}var HW={pan:Ku(zW),drag:Ku($W)},q0=[\"LayoutMeasure\",\"BeforeLayoutMeasure\",\"LayoutUpdate\",\"ViewportBoxUpdate\",\"Update\",\"Render\",\"AnimationComplete\",\"LayoutAnimationComplete\",\"AnimationStart\",\"LayoutAnimationStart\",\"SetAxisTarget\",\"Unmount\"];function GW(){var e=q0.map(function(){return new Vm}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){q0.forEach(function(i){var o,l=\"on\"+i,c=r[l];(o=t[i])===null||o===void 0||o.call(t),c&&(t[i]=n[l](c))})}};return e.forEach(function(r,i){n[\"on\"+q0[i]]=function(o){return r.add(o)},n[\"notify\"+q0[i]]=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return r.notify.apply(r,ts([],mr(o),!1))}}),n}function WW(e,t,n){var r;for(var i in t){var o=t[i],l=n[i];if(Hs(o))e.addValue(i,o);else if(Hs(l))e.addValue(i,Af(o));else if(l!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Af((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var TI=function(e){var t=e.treeType,n=t===void 0?\"\":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,l=e.measureViewportBox,c=e.render,p=e.readValueFromInstance,d=e.removeValueFromRenderState,m=e.sortNodePosition,E=e.scrapeMotionValuesFromProps;return function(b,y){var w=b.parent,x=b.props,k=b.presenceId,N=b.blockInitialAnimation,A=b.visualState,O=b.shouldReduceMotion;y===void 0&&(y={});var _=!1,M=A.latestValues,V=A.renderState,P,F=GW(),j=new Map,q=new Map,Q={},ee=Xe({},M),Z;function W(){!P||!_||(B(),c(P,V,x.style,he.projection))}function B(){r(he,V,M,y,x)}function ne(){F.notifyUpdate(M)}function ie(le,pe){var Te=pe.onChange(function($e){M[le]=$e,x.onUpdate&&as.update(ne,!1,!0)}),Fe=pe.onRenderRequest(he.scheduleRender);q.set(le,function(){Te(),Fe()})}var se=E(x);for(var de in se){var J=se[de];M[de]!==void 0&&Hs(J)&&J.set(M[de],!1)}var ge=b0(x),ce=kM(x),he=Xe(Xe({treeType:n,current:null,depth:w?w.depth+1:0,parent:w,children:new Set,presenceId:k,shouldReduceMotion:O,variantChildren:ce?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(w!=null&&w.isMounted()),blockInitialAnimation:N,isMounted:function(){return!!P},mount:function(le){_=!0,P=he.current=le,he.projection&&he.projection.mount(le),ce&&w&&!ge&&(Z=w==null?void 0:w.addVariantChild(he)),j.forEach(function(pe,Te){return ie(Te,pe)}),w==null||w.children.add(he),he.setProps(x)},unmount:function(){var le;(le=he.projection)===null||le===void 0||le.unmount(),ap.update(ne),ap.render(W),q.forEach(function(pe){return pe()}),Z==null||Z(),w==null||w.children.delete(he),F.clearAllListeners(),P=void 0,_=!1},addVariantChild:function(le){var pe,Te=he.getClosestVariantNode();if(Te)return(pe=Te.variantChildren)===null||pe===void 0||pe.add(le),function(){return Te.variantChildren.delete(le)}},sortNodePosition:function(le){return!m||n!==le.treeType?0:m(he.getInstance(),le.getInstance())},getClosestVariantNode:function(){return ce?he:w==null?void 0:w.getClosestVariantNode()},getLayoutId:function(){return x.layoutId},getInstance:function(){return P},getStaticValue:function(le){return M[le]},setStaticValue:function(le,pe){return M[le]=pe},getLatestValues:function(){return M},setVisibility:function(le){he.isVisible!==le&&(he.isVisible=le,he.scheduleRender())},makeTargetAnimatable:function(le,pe){return pe===void 0&&(pe=!0),o(he,le,x,pe)},measureViewportBox:function(){return l(P,x)},addValue:function(le,pe){he.hasValue(le)&&he.removeValue(le),j.set(le,pe),M[le]=pe.get(),ie(le,pe)},removeValue:function(le){var pe;j.delete(le),(pe=q.get(le))===null||pe===void 0||pe(),q.delete(le),delete M[le],d(le,V)},hasValue:function(le){return j.has(le)},getValue:function(le,pe){var Te=j.get(le);return Te===void 0&&pe!==void 0&&(Te=Af(pe),he.addValue(le,Te)),Te},forEachValue:function(le){return j.forEach(le)},readValue:function(le){var pe;return(pe=M[le])!==null&&pe!==void 0?pe:p(P,le,y)},setBaseTarget:function(le,pe){ee[le]=pe},getBaseTarget:function(le){if(i){var pe=i(x,le);if(pe!==void 0&&!Hs(pe))return pe}return ee[le]}},F),{build:function(){return B(),V},scheduleRender:function(){as.render(W,!1,!0)},syncRender:W,setProps:function(le){(le.transformTemplate||x.transformTemplate)&&he.scheduleRender(),x=le,F.updatePropListeners(le),Q=WW(he,E(x),Q)},getProps:function(){return x},getVariant:function(le){var pe;return(pe=x.variants)===null||pe===void 0?void 0:pe[le]},getDefaultTransition:function(){return x.transition},getTransformPagePoint:function(){return x.transformPagePoint},getVariantContext:function(le){if(le===void 0&&(le=!1),le)return w==null?void 0:w.getVariantContext();if(!ge){var pe=(w==null?void 0:w.getVariantContext())||{};return x.initial!==void 0&&(pe.initial=x.initial),pe}for(var Te={},Fe=0;Fe<YW;Fe++){var $e=wI[Fe],qe=x[$e];(os(qe)||qe===!1)&&(Te[$e]=qe)}return Te}});return he}},wI=ts([\"initial\"],mr(dx),!1),YW=wI.length;function yx(e){return typeof e==\"string\"&&e.startsWith(\"var(--\")}var xI=/var\\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\\)/;function QW(e){var t=xI.exec(e);if(!t)return[,];var n=mr(t,3),r=n[1],i=n[2];return[r,i]}function bx(e,t,n){var r=mr(QW(e),2),i=r[0],o=r[1];if(i){var l=window.getComputedStyle(t).getPropertyValue(i);return l?l.trim():yx(o)?bx(o,t):o}}function KW(e,t,n){var r,i=Ki(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Xe({},n)),e.forEachValue(function(d){var m=d.get();if(yx(m)){var E=bx(m,o);E&&d.set(E)}});for(var l in i){var c=i[l];if(yx(c)){var p=bx(c,o);p&&(i[l]=p,n&&((r=n[l])!==null&&r!==void 0||(n[l]=c)))}}return{target:i,transitionEnd:n}}var XW=new Set([\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",\"x\",\"y\"]),CI=function(e){return XW.has(e)},ZW=function(e){return Object.keys(e).some(CI)},_I=function(e,t){e.set(t,!1),e.set(t)},NI=function(e){return e===Cf||e===Ft},AI;(function(e){e.width=\"width\",e.height=\"height\",e.left=\"left\",e.right=\"right\",e.top=\"top\",e.bottom=\"bottom\"})(AI||(AI={}));var OI=function(e,t){return parseFloat(e.split(\", \")[t])},DI=function(e,t){return function(n,r){var i=r.transform;if(i===\"none\"||!i)return 0;var o=i.match(/^matrix3d\\((.+)\\)$/);if(o)return OI(o[1],t);var l=i.match(/^matrix\\((.+)\\)$/);return l?OI(l[1],e):0}},JW=new Set([\"x\",\"y\",\"z\"]),eY=Am.filter(function(e){return!JW.has(e)});function tY(e){var t=[];return eY.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(\"scale\")?1:0))}),t.length&&e.syncRender(),t}var kI={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?\"0\":r,o=t.paddingRight,l=o===void 0?\"0\":o;return n.max-n.min-parseFloat(i)-parseFloat(l)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?\"0\":r,o=t.paddingBottom,l=o===void 0?\"0\":o;return n.max-n.min-parseFloat(i)-parseFloat(l)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:DI(4,13),y:DI(5,14)},nY=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),l=o.display,c={};l===\"none\"&&t.setStaticValue(\"display\",e.display||\"block\"),n.forEach(function(d){c[d]=kI[d](r,o)}),t.syncRender();var p=t.measureViewportBox();return n.forEach(function(d){var m=t.getValue(d);_I(m,c[d]),e[d]=kI[d](p,o)}),e},rY=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Xe({},t),r=Xe({},r);var i=Object.keys(t).filter(CI),o=[],l=!1,c=[];if(i.forEach(function(m){var E=e.getValue(m);if(e.hasValue(m)){var b=n[m],y=Um(b),w=t[m],x;if(Im(w)){var k=w.length,N=w[0]===null?1:0;b=w[N],y=Um(b);for(var A=N;A<k;A++)x?h0(Um(w[A])===x):x=Um(w[A])}else x=Um(w);if(y!==x)if(NI(y)&&NI(x)){var O=E.get();typeof O==\"string\"&&E.set(parseFloat(O)),typeof w==\"string\"?t[m]=parseFloat(w):Array.isArray(w)&&x===Ft&&(t[m]=w.map(parseFloat))}else y!=null&&y.transform&&(x!=null&&x.transform)&&(b===0||w===0)?b===0?E.set(x.transform(b)):t[m]=y.transform(w):(l||(o=tY(e),l=!0),c.push(m),r[m]=r[m]!==void 0?r[m]:t[m],_I(E,w))}}),c.length){var p=c.indexOf(\"height\")>=0?window.pageYOffset:null,d=nY(t,e,c);return o.length&&o.forEach(function(m){var E=mr(m,2),b=E[0],y=E[1];e.getValue(b).set(y)}),e.syncRender(),p!==null&&window.scrollTo({top:p}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function iY(e,t,n,r){return ZW(t)?rY(e,t,n,r):{target:t,transitionEnd:r}}var oY=function(e,t,n,r){var i=KW(e,t,r);return t=i.target,r=i.transitionEnd,iY(e,t,n,r)};function aY(e){return window.getComputedStyle(e)}var RI={treeType:\"dom\",readValueFromInstance:function(e,t){if(Om(t)){var n=ox(t);return n&&n.default||0}else{var r=aY(e);return(PM(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return SI(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},\"\"):\"none\",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,l=t.transitionEnd,c=Ki(t,[\"transition\",\"transitionEnd\"]),p=pW(c,o||{},e);if(i&&(l&&(l=i(l)),c&&(c=i(c)),p&&(p=i(p))),r){fW(e,c,p);var d=oY(e,c,p,l);l=d.transitionEnd,c=d.target}return Xe({transition:o,transitionEnd:l},c)},scrapeMotionValuesFromProps:jw,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?\"visible\":\"hidden\"),Iw(t,n,r,i.transformTemplate)},render:JM},sY=TI(RI),lY=TI(Xe(Xe({},RI),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Om(t)?((n=ox(t))===null||n===void 0?void 0:n.default)||0:(t=eL.has(t)?t:ZM(t),e.getAttribute(t))},scrapeMotionValuesFromProps:nL,build:function(e,t,n,r,i){Pw(t,n,r,i.transformTemplate)},render:tL})),uY=function(e,t){return Aw(e)?lY(t,{enableHardwareAcceleration:!1}):sY(t,{enableHardwareAcceleration:!0})};function MI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var zm={correct:function(e,t){if(!t.target)return e;if(typeof e==\"string\")if(Ft.test(e))e=parseFloat(e);else return e;var n=MI(e,t.target.x),r=MI(e,t.target.y);return\"\".concat(n,\"% \").concat(r,\"%\")}},LI=\"_$css\",cY={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes(\"var(\"),l=[];o&&(e=e.replace(xI,function(x){return l.push(x),LI}));var c=Vl.parse(e);if(c.length>5)return i;var p=Vl.createTransformer(e),d=typeof c[0]!=\"number\"?1:0,m=r.x.scale*n.x,E=r.y.scale*n.y;c[0+d]/=m,c[1+d]/=E;var b=Sr(m,E,.5);typeof c[2+d]==\"number\"&&(c[2+d]/=b),typeof c[3+d]==\"number\"&&(c[3+d]/=b);var y=p(c);if(o){var w=0;y=y.replace(LI,function(){var x=l[w];return w++,x})}return y}},fY=function(e){tk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,l=r.switchLayoutGroup,c=r.layoutId,p=i.projection;Lz(pY),p&&(o!=null&&o.group&&o.group.add(p),l!=null&&l.register&&c&&l.register(p),p.root.didUpdate(),p.addEventListener(\"animationComplete\",function(){n.safeToRemove()}),p.setOptions(Xe(Xe({},p.options),{onExitComplete:function(){return n.safeToRemove()}}))),Nm.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,l=i.visualElement,c=i.drag,p=i.isPresent,d=l.projection;return d&&(d.isPresent=p,c||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==p&&(p?d.promote():d.relegate()||as.postRender(function(){var m;!((m=d.getStack())===null||m===void 0)&&m.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,l=r.projection;l&&(l.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(l),o!=null&&o.deregister&&o.deregister(l))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(Oe.Component);function dY(e){var t=mr(GL(),2),n=t[0],r=t[1],i=L.useContext(MM);return Oe.createElement(fY,Xe({},e,{layoutGroup:i,switchLayoutGroup:L.useContext(LM),isPresent:n,safeToRemove:r}))}var pY={borderRadius:Xe(Xe({},zm),{applyTo:[\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderBottomLeftRadius\",\"borderBottomRightRadius\"]}),borderTopLeftRadius:zm,borderTopRightRadius:zm,borderBottomLeftRadius:zm,borderBottomRightRadius:zm,boxShadow:cY},hY={measureLayout:dY};function mY(e,t,n){n===void 0&&(n={});var r=Hs(e)?e:Af(e);return lx(\"\",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var II=[\"TopLeft\",\"TopRight\",\"BottomLeft\",\"BottomRight\"],gY=II.length,FI=function(e){return typeof e==\"string\"?parseFloat(e):e},PI=function(e){return typeof e==\"number\"||Ft.test(e)};function vY(e,t,n,r,i,o){var l,c,p,d;i?(e.opacity=Sr(0,(l=n.opacity)!==null&&l!==void 0?l:1,yY(r)),e.opacityExit=Sr((c=t.opacity)!==null&&c!==void 0?c:1,0,bY(r))):o&&(e.opacity=Sr((p=t.opacity)!==null&&p!==void 0?p:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var m=0;m<gY;m++){var E=\"border\".concat(II[m],\"Radius\"),b=jI(t,E),y=jI(n,E);if(!(b===void 0&&y===void 0)){b||(b=0),y||(y=0);var w=b===0||y===0||PI(b)===PI(y);w?(e[E]=Math.max(Sr(FI(b),FI(y),r),0),(Gs.test(y)||Gs.test(b))&&(e[E]+=\"%\")):e[E]=y}}(t.rotate||n.rotate)&&(e.rotate=Sr(t.rotate||0,n.rotate||0,r))}function jI(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var yY=VI(0,.5,Kw),bY=VI(.5,.95,Yw);function VI(e,t,n){return function(r){return r<e?0:r>t?1:n(Fm(e,t,r))}}function UI(e,t){e.min=t.min,e.max=t.max}function ss(e,t){UI(e.x,t.x),UI(e.y,t.y)}function qI(e,t,n,r,i){return e-=t,e=V0(e,1/n,r),i!==void 0&&(e=V0(e,1/i,r)),e}function EY(e,t,n,r,i,o,l){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),l===void 0&&(l=e),Gs.test(t)){t=parseFloat(t);var c=Sr(l.min,l.max,t/100);t=c-l.min}if(typeof t==\"number\"){var p=Sr(o.min,o.max,r);e===o&&(p-=t),e.min=qI(e.min,t,n,p,i),e.max=qI(e.max,t,n,p,i)}}function BI(e,t,n,r,i){var o=mr(n,3),l=o[0],c=o[1],p=o[2];EY(e,t[l],t[c],t[p],t.scale,r,i)}var SY=[\"x\",\"scaleX\",\"originX\"],TY=[\"y\",\"scaleY\",\"originY\"];function $I(e,t,n,r){BI(e.x,t,SY,n==null?void 0:n.x,r==null?void 0:r.x),BI(e.y,t,TY,n==null?void 0:n.y,r==null?void 0:r.y)}function zI(e){return e.translate===0&&e.scale===1}function HI(e){return zI(e.x)&&zI(e.y)}function GI(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var wY=function(){function e(){this.members=[]}return e.prototype.add=function(t){ux(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(cx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(l){return t===l});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,l;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(l=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||l===void 0||l.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),xY=\"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)\";function WI(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o=\"translate3d(\".concat(r,\"px, \").concat(i,\"px, 0) \");if(o+=\"scale(\".concat(1/t.x,\", \").concat(1/t.y,\") \"),n){var l=n.rotate,c=n.rotateX,p=n.rotateY;l&&(o+=\"rotate(\".concat(l,\"deg) \")),c&&(o+=\"rotateX(\".concat(c,\"deg) \")),p&&(o+=\"rotateY(\".concat(p,\"deg) \"))}var d=e.x.scale*t.x,m=e.y.scale*t.y;return o+=\"scale(\".concat(d,\", \").concat(m,\")\"),o===xY?\"none\":o}var CY=function(e,t){return e.depth-t.depth},_Y=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){ux(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){cx(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(CY),this.isDirty=!1,this.children.forEach(t)},e}(),YI=1e3;function QI(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function l(c,p,d){var m=this;p===void 0&&(p={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){m.isUpdating&&(m.isUpdating=!1,m.clearAllSnapshots())},this.updateProjection=function(){m.nodes.forEach(RY),m.nodes.forEach(MY)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=c,this.latestValues=p,this.root=d?d.root||d:this,this.path=d?ts(ts([],mr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,c&&this.root.registerPotentialNode(c,this);for(var E=0;E<this.path.length;E++)this.path[E].shouldResetTransform=!0;this.root===this&&(this.nodes=new _Y)}return l.prototype.addEventListener=function(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Vm),this.eventHandlers.get(c).add(p)},l.prototype.notifyListeners=function(c){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];var m=this.eventHandlers.get(c);m==null||m.notify.apply(m,ts([],mr(p),!1))},l.prototype.hasListeners=function(c){return this.eventHandlers.has(c)},l.prototype.registerPotentialNode=function(c,p){this.potentialNodes.set(c,p)},l.prototype.mount=function(c,p){var d=this,m;if(p===void 0&&(p=!1),!this.instance){this.isSVG=c instanceof SVGElement&&c.tagName!==\"svg\",this.instance=c;var E=this.options,b=E.layoutId,y=E.layout,w=E.visualElement;if(w&&!w.getInstance()&&w.mount(c),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),p&&(y||b)&&(this.isLayoutDirty=!0),t){var x,k=function(){return d.root.updateBlockedByResize=!1};t(c,function(){d.root.updateBlockedByResize=!0,clearTimeout(x),x=window.setTimeout(k,250),Nm.hasAnimatedSinceResize&&(Nm.hasAnimatedSinceResize=!1,d.nodes.forEach(kY))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&w&&(b||y)&&this.addEventListener(\"didUpdate\",function(N){var A,O,_,M,V,P=N.delta,F=N.hasLayoutChanged,j=N.hasRelativeTargetChanged,q=N.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Q=(O=(A=d.options.transition)!==null&&A!==void 0?A:w.getDefaultTransition())!==null&&O!==void 0?O:jY,ee=w.getProps(),Z=ee.onLayoutAnimationStart,W=ee.onLayoutAnimationComplete,B=!d.targetLayout||!GI(d.targetLayout,q)||j,ne=!F&&j;if(!((_=d.resumeFrom)===null||_===void 0)&&_.instance||ne||F&&(B||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(P,ne);var ie=Xe(Xe({},sx(Q,\"layout\")),{onPlay:Z,onComplete:W});w.shouldReduceMotion&&(ie.delay=0,ie.type=!1),d.startAnimation(ie)}else!F&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((V=(M=d.options).onExitComplete)===null||V===void 0||V.call(M));d.targetLayout=q})}},l.prototype.unmount=function(){var c,p;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(c=this.getStack())===null||c===void 0||c.remove(this),(p=this.parent)===null||p===void 0||p.children.delete(this),this.instance=void 0,ap.preRender(this.updateProjection)},l.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},l.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},l.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},l.prototype.isTreeAnimationBlocked=function(){var c;return this.isAnimationBlocked||((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimationBlocked())||!1},l.prototype.startUpdate=function(){var c;this.isUpdateBlocked()||(this.isUpdating=!0,(c=this.nodes)===null||c===void 0||c.forEach(LY))},l.prototype.willUpdate=function(c){var p,d,m;if(c===void 0&&(c=!0),this.root.isUpdateBlocked()){(d=(p=this.options).onExitComplete)===null||d===void 0||d.call(p);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var E=0;E<this.path.length;E++){var b=this.path[E];b.shouldResetTransform=!0,b.updateScroll()}var y=this.options,w=y.layoutId,x=y.layout;if(!(w===void 0&&!x)){var k=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;this.prevTransformTemplateValue=k==null?void 0:k(this.latestValues,\"\"),this.updateSnapshot(),c&&this.notifyListeners(\"willUpdate\")}}},l.prototype.didUpdate=function(){var c=this.isUpdateBlocked();if(c){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KI);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(VY),this.potentialNodes.clear()),this.nodes.forEach(DY),this.nodes.forEach(NY),this.nodes.forEach(AY),this.clearAllSnapshots(),ex.update(),ex.preRender(),ex.render())},l.prototype.clearAllSnapshots=function(){this.nodes.forEach(OY),this.sharedNodes.forEach(IY)},l.prototype.scheduleUpdateProjection=function(){as.preRender(this.updateProjection,!1,!0)},l.prototype.scheduleCheckAfterUnmount=function(){var c=this;as.postRender(function(){c.isLayoutDirty?c.root.didUpdate():c.root.checkUpdateFailed()})},l.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var c=this.measure(),p=this.removeTransform(this.removeElementScroll(c));eF(p),this.snapshot={measured:c,layout:p,latestValues:{}}}},l.prototype.updateLayout=function(){var c;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var p=0;p<this.path.length;p++){var d=this.path[p];d.updateScroll()}var m=this.measure();eF(m);var E=this.layout;this.layout={measured:m,actual:this.removeElementScroll(m)},this.layoutCorrected=Xi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(\"measure\",this.layout.actual),(c=this.options.visualElement)===null||c===void 0||c.notifyLayoutMeasure(this.layout.actual,E==null?void 0:E.actual)}},l.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},l.prototype.resetTransform=function(){var c;if(o){var p=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!HI(this.projectionDelta),m=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,E=m==null?void 0:m(this.latestValues,\"\"),b=E!==this.prevTransformTemplateValue;p&&(d||Xu(this.latestValues)||b)&&(o(this.instance,E),this.shouldResetTransform=!1,this.scheduleRender())}},l.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Xi();var p=c.measureViewportBox(),d=this.root.scroll;return d&&(Zu(p.x,d.x),Zu(p.y,d.y)),p},l.prototype.removeElementScroll=function(c){var p=Xi();ss(p,c);for(var d=0;d<this.path.length;d++){var m=this.path[d],E=m.scroll,b=m.options,y=m.isScrollRoot;if(m!==this.root&&E&&b.layoutScroll){if(y){ss(p,c);var w=this.root.scroll;w&&(Zu(p.x,-w.x),Zu(p.y,-w.y))}Zu(p.x,E.x),Zu(p.y,E.y)}}return p},l.prototype.applyTransform=function(c,p){p===void 0&&(p=!1);var d=Xi();ss(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];!p&&E.options.layoutScroll&&E.scroll&&E!==E.root&&sp(d,{x:-E.scroll.x,y:-E.scroll.y}),Xu(E.latestValues)&&sp(d,E.latestValues)}return Xu(this.latestValues)&&sp(d,this.latestValues),d},l.prototype.removeTransform=function(c){var p,d=Xi();ss(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];if(E.instance&&Xu(E.latestValues)){gI(E.latestValues)&&E.updateSnapshot();var b=Xi(),y=E.measure();ss(b,y),$I(d,E.latestValues,(p=E.snapshot)===null||p===void 0?void 0:p.layout,b)}}return Xu(this.latestValues)&&$I(d,this.latestValues),d},l.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},l.prototype.setOptions=function(c){var p;this.options=Xe(Xe(Xe({},this.options),c),{crossfade:(p=c.crossfade)!==null&&p!==void 0?p:!0})},l.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},l.prototype.resolveTargetDelta=function(){var c,p=this.options,d=p.layout,m=p.layoutId;!this.layout||!(d||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Xi(),this.relativeTargetOrigin=Xi(),Bm(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ss(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Xi(),this.targetWithTransforms=Xi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?NW(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ss(this.target,this.layout.actual),bI(this.target,this.targetDelta)):ss(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Xi(),this.relativeTargetOrigin=Xi(),Bm(this.relativeTargetOrigin,this.target,this.relativeParent.target),ss(this.relativeTarget,this.relativeTargetOrigin)))))},l.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Xu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},l.prototype.calcProjection=function(){var c,p=this.options,d=p.layout,m=p.layoutId;if(this.isTreeAnimating=!!(!((c=this.parent)===null||c===void 0)&&c.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||m))){var E=this.getLead();ss(this.layoutCorrected,this.layout.actual),FW(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==E);var b=E.target;if(b){this.projectionDelta||(this.projectionDelta=$m(),this.projectionDeltaWithTransform=$m());var y=this.treeScale.x,w=this.treeScale.y,x=this.projectionTransform;qm(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=WI(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==y||this.treeScale.y!==w)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(\"projectionUpdate\",b))}}},l.prototype.hide=function(){this.isVisible=!1},l.prototype.show=function(){this.isVisible=!0},l.prototype.scheduleRender=function(c){var p,d,m;c===void 0&&(c=!0),(d=(p=this.options).scheduleRender)===null||d===void 0||d.call(p),c&&((m=this.getStack())===null||m===void 0||m.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},l.prototype.setAnimationOrigin=function(c,p){var d=this,m;p===void 0&&(p=!1);var E=this.snapshot,b=(E==null?void 0:E.latestValues)||{},y=Xe({},this.latestValues),w=$m();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;var x=Xi(),k=E==null?void 0:E.isShared,N=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,A=!!(k&&!N&&this.options.crossfade===!0&&!this.path.some(PY));this.animationProgress=0,this.mixTargetDelta=function(O){var _,M=O/1e3;XI(w.x,c.x,M),XI(w.y,c.y,M),d.setTargetDelta(w),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((_=d.relativeParent)===null||_===void 0)&&_.layout)&&(Bm(x,d.layout.actual,d.relativeParent.layout.actual),FY(d.relativeTarget,d.relativeTargetOrigin,x,M)),k&&(d.animationValues=y,vY(y,b,d.latestValues,M,A,N)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=M},this.mixTargetDelta(0)},l.prototype.startAnimation=function(c){var p=this,d,m;this.notifyListeners(\"animationStart\"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(ap.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=as.update(function(){Nm.hasAnimatedSinceResize=!0,p.currentAnimation=mY(0,YI,Xe(Xe({},c),{onUpdate:function(E){var b;p.mixTargetDelta(E),(b=c.onUpdate)===null||b===void 0||b.call(c,E)},onComplete:function(){var E;(E=c.onComplete)===null||E===void 0||E.call(c),p.completeAnimation()}})),p.resumingFrom&&(p.resumingFrom.currentAnimation=p.currentAnimation),p.pendingAnimation=void 0})},l.prototype.completeAnimation=function(){var c;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(c=this.getStack())===null||c===void 0||c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(\"animationComplete\")},l.prototype.finishAnimation=function(){var c;this.currentAnimation&&((c=this.mixTargetDelta)===null||c===void 0||c.call(this,YI),this.currentAnimation.stop()),this.completeAnimation()},l.prototype.applyTransformsToTarget=function(){var c=this.getLead(),p=c.targetWithTransforms,d=c.target,m=c.layout,E=c.latestValues;!p||!d||!m||(ss(p,d),sp(p,E),qm(this.projectionDeltaWithTransform,this.layoutCorrected,p,E))},l.prototype.registerSharedNode=function(c,p){var d,m,E;this.sharedNodes.has(c)||this.sharedNodes.set(c,new wY);var b=this.sharedNodes.get(c);b.add(p),p.promote({transition:(d=p.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(E=(m=p.options.initialPromotionConfig)===null||m===void 0?void 0:m.shouldPreserveFollowOpacity)===null||E===void 0?void 0:E.call(m,p)})},l.prototype.isLead=function(){var c=this.getStack();return c?c.lead===this:!0},l.prototype.getLead=function(){var c,p=this.options.layoutId;return p?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this},l.prototype.getPrevLead=function(){var c,p=this.options.layoutId;return p?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0},l.prototype.getStack=function(){var c=this.options.layoutId;if(c)return this.root.sharedNodes.get(c)},l.prototype.promote=function(c){var p=c===void 0?{}:c,d=p.needsReset,m=p.transition,E=p.preserveFollowOpacity,b=this.getStack();b&&b.promote(this,E),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})},l.prototype.relegate=function(){var c=this.getStack();return c?c.relegate(this):!1},l.prototype.resetRotation=function(){var c=this.options.visualElement;if(c){for(var p=!1,d={},m=0;m<Ow.length;m++){var E=Ow[m],b=\"rotate\"+E;c.getStaticValue(b)&&(p=!0,d[b]=c.getStaticValue(b),c.setStaticValue(b,0))}if(p){c==null||c.syncRender();for(var b in d)c.setStaticValue(b,d[b]);c.scheduleRender()}}},l.prototype.getProjectionStyles=function(c){var p,d,m,E,b,y;c===void 0&&(c={});var w={};if(!this.instance||this.isSVG)return w;if(this.isVisible)w.visibility=\"\";else return{visibility:\"hidden\"};var x=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,w.opacity=\"\",w.pointerEvents=w0(c.pointerEvents)||\"\",w.transform=x?x(this.latestValues,\"\"):\"none\",w;var k=this.getLead();if(!this.projectionDelta||!this.layout||!k.target){var N={};return this.options.layoutId&&(N.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,N.pointerEvents=w0(c.pointerEvents)||\"\"),this.hasProjected&&!Xu(this.latestValues)&&(N.transform=x?x({},\"\"):\"none\",this.hasProjected=!1),N}var A=k.animationValues||k.latestValues;this.applyTransformsToTarget(),w.transform=WI(this.projectionDeltaWithTransform,this.treeScale,A),x&&(w.transform=x(A,w.transform));var O=this.projectionDelta,_=O.x,M=O.y;w.transformOrigin=\"\".concat(_.origin*100,\"% \").concat(M.origin*100,\"% 0\"),k.animationValues?w.opacity=k===this?(E=(m=A.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&E!==void 0?E:1:this.preserveOpacity?this.latestValues.opacity:A.opacityExit:w.opacity=k===this?(b=A.opacity)!==null&&b!==void 0?b:\"\":(y=A.opacityExit)!==null&&y!==void 0?y:0;for(var V in E0)if(A[V]!==void 0){var P=E0[V],F=P.correct,j=P.applyTo,q=F(A[V],k);if(j)for(var Q=j.length,ee=0;ee<Q;ee++)w[j[ee]]=q;else w[V]=q}return this.options.layoutId&&(w.pointerEvents=k===this?w0(c.pointerEvents)||\"\":\"none\"),w},l.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},l.prototype.resetTree=function(){this.root.nodes.forEach(function(c){var p;return(p=c.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(KI),this.root.sharedNodes.clear()},l}()}function NY(e){e.updateLayout()}function AY(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners(\"didUpdate\")){var l=e.layout,c=l.actual,p=l.measured;e.options.animationType===\"size\"?Ws(function(A){var O=o.isShared?o.measured[A]:o.layout[A],_=Ul(O);O.min=c[A].min,O.max=O.min+_}):e.options.animationType===\"position\"&&Ws(function(A){var O=o.isShared?o.measured[A]:o.layout[A],_=Ul(c[A]);O.max=O.min+_});var d=$m();qm(d,c,o.layout);var m=$m();o.isShared?qm(m,e.applyTransform(p,!0),o.measured):qm(m,c,o.layout);var E=!HI(d),b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var y=e.relativeParent,w=y.snapshot,x=y.layout;if(w&&x){var k=Xi();Bm(k,o.layout,w.layout);var N=Xi();Bm(N,c,x.actual),GI(k,N)||(b=!0)}}e.notifyListeners(\"didUpdate\",{layout:c,snapshot:o,delta:m,layoutDelta:d,hasLayoutChanged:E,hasRelativeTargetChanged:b})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function OY(e){e.clearSnapshot()}function KI(e){e.clearMeasurements()}function DY(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function kY(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function RY(e){e.resolveTargetDelta()}function MY(e){e.calcProjection()}function LY(e){e.resetRotation()}function IY(e){e.removeLeadSnapshot()}function XI(e,t,n){e.translate=Sr(t.translate,0,n),e.scale=Sr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ZI(e,t,n,r){e.min=Sr(t.min,n.min,r),e.max=Sr(t.max,n.max,r)}function FY(e,t,n,r){ZI(e.x,t.x,n.x,r),ZI(e.y,t.y,n.y,r)}function PY(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var jY={duration:.45,ease:[.4,0,.1,1]};function VY(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id=\"'.concat(t,'\"]'));o&&e.mount(o,!0)}function JI(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function eF(e){JI(e.x),JI(e.y)}var UY=QI({attachResizeListener:function(e,t){return x0(e,\"resize\",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Ex={current:void 0},qY=QI({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Ex.current){var e=new UY(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ex.current=e}return Ex.current},resetTransform:function(e,t){e.style.transform=t??\"none\"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position===\"fixed\"}}),BY=Xe(Xe(Xe(Xe({},xW),UG),HW),hY),tF=Rz(function(e,t){return vH(e,t,BY,uY,qY)}),nF=L.createContext(null);function $Y(e,t,n,r){if(!r)return e;var i=e.findIndex(function(m){return m.value===t});if(i===-1)return e;var o=r>0?1:-1,l=e[i+o];if(!l)return e;var c=e[i],p=l.layout,d=Sr(p.min,p.max,.5);return o===1&&c.layout.max+n>d||o===-1&&c.layout.min+n<d?rW(e,i,i+o):e}function zY(e,t){var n=e.children,r=e.as,i=r===void 0?\"ul\":r,o=e.axis,l=o===void 0?\"y\":o,c=e.onReorder,p=e.values,d=Ki(e,[\"children\",\"as\",\"axis\",\"onReorder\",\"values\"]),m=Wu(function(){return tF(i)}),E=[],b=L.useRef(!1),y={axis:l,registerItem:function(w,x){x&&E.findIndex(function(k){return w===k.value})===-1&&(E.push({value:w,layout:x[l]}),E.sort(WY))},updateOrder:function(w,x,k){if(!b.current){var N=$Y(E,w,x,k);E!==N&&(b.current=!0,c(N.map(GY).filter(function(A){return p.indexOf(A)!==-1})))}}};return L.useEffect(function(){b.current=!1}),L.createElement(m,Xe({},d,{ref:t}),L.createElement(nF.Provider,{value:y},n))}var HY=L.forwardRef(zY);function GY(e){return e.value}function WY(e,t){return e.layout.min-t.layout.min}function rF(e){var t=Wu(function(){return Af(e)}),n=L.useContext(m0).isStatic;if(n){var r=mr(L.useState(e),2),i=r[1];L.useEffect(function(){return t.onChange(i)},[])}return t}var YY=function(e){return typeof e==\"object\"&&e.mix},QY=function(e){return YY(e)?e.mix:void 0};function KY(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!Array.isArray(e[0]),r=n?0:-1,i=e[0+r],o=e[1+r],l=e[2+r],c=e[3+r],p=Gw(o,l,Xe({mixer:QY(l[0])},c));return n?p(i):p}function XY(e,t){_w(function(){var n=e.map(function(r){return r.onChange(t)});return function(){return n.forEach(function(r){return r()})}})}function ZY(e,t){var n=rF(t()),r=function(){return n.set(t())};return r(),XY(e,function(){return as.update(r,!1,!0)}),n}function JY(e,t,n,r){var i=typeof t==\"function\"?t:KY(t,n,r);return Array.isArray(e)?iF(e,i):iF([e],function(o){var l=mr(o,1),c=l[0];return i(c)})}function iF(e,t){var n=Wu(function(){return[]});return ZY(e,function(){n.length=0;for(var r=e.length,i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function oF(e,t){return t===void 0&&(t=0),Hs(e)?e:rF(t)}function eQ(e,t){var n=e.children,r=e.style,i=e.value,o=e.as,l=o===void 0?\"li\":o,c=e.onDrag,p=e.layout,d=p===void 0?!0:p,m=Ki(e,[\"children\",\"style\",\"value\",\"as\",\"onDrag\",\"layout\"]),E=Wu(function(){return tF(l)}),b=L.useContext(nF),y={x:oF(r==null?void 0:r.x),y:oF(r==null?void 0:r.y)},w=JY([y.x,y.y],function(_){var M=mr(_,2),V=M[0],P=M[1];return V||P?1:\"unset\"}),x=L.useRef(null),k=b,N=k.axis,A=k.registerItem,O=k.updateOrder;return L.useEffect(function(){A(i,x.current)},[b]),L.createElement(E,Xe({drag:N},m,{dragSnapToOrigin:!0,style:Xe(Xe({},r),{x:y.x,y:y.y,zIndex:w}),layout:d,onDrag:function(_,M){var V=M.velocity;V[N]&&O(i,y[N].get(),V[N]),c==null||c(_,M)},onLayoutMeasure:function(_){x.current=_},ref:t}),n)}var tQ=L.forwardRef(eQ),aF={Group:HY,Item:tQ},[B0,QPe]=vf(\"Tooltip\",[o0]),$0=o0(),sF=\"TooltipProvider\",nQ=700,Sx=\"tooltip.open\",[rQ,Tx]=B0(sF),lF=e=>{const{__scopeTooltip:t,delayDuration:n=nQ,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[l,c]=L.useState(!0),p=L.useRef(!1),d=L.useRef(0);return L.useEffect(()=>{const m=d.current;return()=>window.clearTimeout(m)},[]),Y.jsx(rQ,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:L.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:L.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:p,onPointerInTransitChange:L.useCallback(m=>{p.current=m},[]),disableHoverableContent:i,children:o})};lF.displayName=sF;var z0=\"Tooltip\",[iQ,Hm]=B0(z0),uF=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,p=Tx(z0,e.__scopeTooltip),d=$0(t),[m,E]=L.useState(null),b=bf(),y=L.useRef(0),w=l??p.disableHoverableContent,x=c??p.delayDuration,k=L.useRef(!1),[N=!1,A]=Py({prop:r,defaultProp:i,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Sx))):p.onClose(),o==null||o(P)}}),O=L.useMemo(()=>N?k.current?\"delayed-open\":\"instant-open\":\"closed\",[N]),_=L.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,A(!0)},[A]),M=L.useCallback(()=>{window.clearTimeout(y.current),y.current=0,A(!1)},[A]),V=L.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,A(!0),y.current=0},x)},[x,A]);return L.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),Y.jsx(u2,{...d,children:Y.jsx(iQ,{scope:t,contentId:b,open:N,stateAttribute:O,trigger:m,onTriggerChange:E,onTriggerEnter:L.useCallback(()=>{p.isOpenDelayed?V():_()},[p.isOpenDelayed,V,_]),onTriggerLeave:L.useCallback(()=>{w?M():(window.clearTimeout(y.current),y.current=0)},[M,w]),onOpen:_,onClose:M,disableHoverableContent:w,children:n})})};uF.displayName=z0;var wx=\"TooltipTrigger\",cF=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Hm(wx,n),o=Tx(wx,n),l=$0(n),c=L.useRef(null),p=oi(t,c,i.onTriggerChange),d=L.useRef(!1),m=L.useRef(!1),E=L.useCallback(()=>d.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener(\"pointerup\",E),[E]),Y.jsx(c2,{asChild:!0,...l,children:Y.jsx(kr.button,{\"aria-describedby\":i.open?i.contentId:void 0,\"data-state\":i.stateAttribute,...r,ref:p,onPointerMove:qt(e.onPointerMove,b=>{b.pointerType!==\"touch\"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:qt(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:qt(e.onPointerDown,()=>{d.current=!0,document.addEventListener(\"pointerup\",E,{once:!0})}),onFocus:qt(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:qt(e.onBlur,i.onClose),onClick:qt(e.onClick,i.onClose)})})});cF.displayName=wx;var xx=\"TooltipPortal\",[oQ,aQ]=B0(xx,{forceMount:void 0}),fF=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=Hm(xx,t);return Y.jsx(oQ,{scope:t,forceMount:n,children:Y.jsx(Vs,{present:n||o.open,children:Y.jsx(Uy,{asChild:!0,container:i,children:r})})})};fF.displayName=xx;var lp=\"TooltipContent\",dF=L.forwardRef((e,t)=>{const n=aQ(lp,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=\"top\",...o}=e,l=Hm(lp,e.__scopeTooltip);return Y.jsx(Vs,{present:r||l.open,children:l.disableHoverableContent?Y.jsx(pF,{side:i,...o,ref:t}):Y.jsx(sQ,{side:i,...o,ref:t})})}),sQ=L.forwardRef((e,t)=>{const n=Hm(lp,e.__scopeTooltip),r=Tx(lp,e.__scopeTooltip),i=L.useRef(null),o=oi(t,i),[l,c]=L.useState(null),{trigger:p,onClose:d}=n,m=i.current,{onPointerInTransitChange:E}=r,b=L.useCallback(()=>{c(null),E(!1)},[E]),y=L.useCallback((w,x)=>{const k=w.currentTarget,N={x:w.clientX,y:w.clientY},A=fQ(N,k.getBoundingClientRect()),O=dQ(N,A),_=pQ(x.getBoundingClientRect()),M=mQ([...O,..._]);c(M),E(!0)},[E]);return L.useEffect(()=>()=>b(),[b]),L.useEffect(()=>{if(p&&m){const w=k=>y(k,m),x=k=>y(k,p);return p.addEventListener(\"pointerleave\",w),m.addEventListener(\"pointerleave\",x),()=>{p.removeEventListener(\"pointerleave\",w),m.removeEventListener(\"pointerleave\",x)}}},[p,m,y,b]),L.useEffect(()=>{if(l){const w=x=>{const k=x.target,N={x:x.clientX,y:x.clientY},A=(p==null?void 0:p.contains(k))||(m==null?void 0:m.contains(k)),O=!hQ(N,l);A?b():O&&(b(),d())};return document.addEventListener(\"pointermove\",w),()=>document.removeEventListener(\"pointermove\",w)}},[p,m,l,d,b]),Y.jsx(pF,{...e,ref:o})}),[lQ,uQ]=B0(z0,{isInside:!1}),pF=L.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,\"aria-label\":i,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,p=Hm(lp,n),d=$0(n),{onClose:m}=p;return L.useEffect(()=>(document.addEventListener(Sx,m),()=>document.removeEventListener(Sx,m)),[m]),L.useEffect(()=>{if(p.trigger){const E=b=>{const y=b.target;y!=null&&y.contains(p.trigger)&&m()};return window.addEventListener(\"scroll\",E,{capture:!0}),()=>window.removeEventListener(\"scroll\",E,{capture:!0})}},[p.trigger,m]),Y.jsx(Vy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:E=>E.preventDefault(),onDismiss:m,children:Y.jsxs(f2,{\"data-state\":p.stateAttribute,...d,...c,ref:t,style:{...c.style,\"--radix-tooltip-content-transform-origin\":\"var(--radix-popper-transform-origin)\",\"--radix-tooltip-content-available-width\":\"var(--radix-popper-available-width)\",\"--radix-tooltip-content-available-height\":\"var(--radix-popper-available-height)\",\"--radix-tooltip-trigger-width\":\"var(--radix-popper-anchor-width)\",\"--radix-tooltip-trigger-height\":\"var(--radix-popper-anchor-height)\"},children:[Y.jsx(BD,{children:r}),Y.jsx(lQ,{scope:n,isInside:!0,children:Y.jsx(Rk,{id:p.contentId,role:\"tooltip\",children:i||r})})]})})});dF.displayName=lp;var hF=\"TooltipArrow\",cQ=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=$0(n);return uQ(hF,n).isInside?null:Y.jsx(d2,{...i,...r,ref:t})});cQ.displayName=hF;function fQ(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return\"left\";case i:return\"right\";case n:return\"top\";case r:return\"bottom\";default:throw new Error(\"unreachable\")}}function dQ(e,t,n=5){const r=[];switch(t){case\"top\":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case\"bottom\":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case\"left\":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case\"right\":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function pQ(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function hQ(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o].x,p=t[o].y,d=t[l].x,m=t[l].y;p>r!=m>r&&n<(d-c)*(r-p)/(m-p)+c&&(i=!i)}return i}function mQ(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),gQ(t)}function gQ(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var vQ=lF,yQ=uF,bQ=cF,EQ=fF,SQ=dF;function up(e,t,n){let r=n.initialDeps??[],i;function o(){var l,c,p,d;let m;n.key&&((l=n.debug)!=null&&l.call(n))&&(m=Date.now());const E=e();if(!(E.length!==r.length||E.some((w,x)=>r[x]!==w)))return i;r=E;let y;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(y=Date.now()),i=t(...E),n.key&&((p=n.debug)!=null&&p.call(n))){const w=Math.round((Date.now()-m)*100)/100,x=Math.round((Date.now()-y)*100)/100,k=x/16,N=(A,O)=>{for(A=String(A);A.length<O;)A=\" \"+A;return A};console.info(`%c⏱ ${N(x,5)} /${N(w,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(d=n==null?void 0:n.onChange)==null||d.call(n,i),i}return o.updateDeps=l=>{r=l},o}function Cx(e,t){if(e===void 0)throw new Error(\"Unexpected undefined\");return e}const TQ=(e,t)=>Math.abs(e-t)<1,wQ=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},xQ=e=>e,CQ=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},_Q=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=l=>{const{width:c,height:p}=l;t({width:Math.round(c),height:Math.round(p)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(l=>{const c=()=>{const p=l[0];if(p!=null&&p.borderBoxSize){const d=p.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(n.getBoundingClientRect())};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return o.observe(n,{box:\"border-box\"}),()=>{o.unobserve(n)}},mF={passive:!0},gF=typeof window>\"u\"?!0:\"onscrollend\"in window,NQ=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&gF?()=>{}:wQ(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:E,isRtl:b}=e.options;i=E?n.scrollLeft*(b&&-1||1):n.scrollTop,o(),t(i,m)},c=l(!0),p=l(!1);p(),n.addEventListener(\"scroll\",c,mF);const d=e.options.useScrollendEvent&&gF;return d&&n.addEventListener(\"scrollend\",p,mF),()=>{n.removeEventListener(\"scroll\",c),d&&n.removeEventListener(\"scrollend\",p)}},AQ=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?\"inlineSize\":\"blockSize\"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?\"width\":\"height\"])},OQ=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const l=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?\"left\":\"top\"]:l,behavior:n})};class DQ{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const l=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:\"border-box\"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>\"u\"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xQ,rangeExtractor:CQ,onChange:()=>{},measureElement:AQ,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:\"data-index\",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=up(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&\"ownerDocument\"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?\"forward\":\"backward\":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?\"width\":\"height\"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==\"function\"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let l=r-1;l>=0;l--){const c=n[l];if(i.has(c.lane))continue;const p=o.get(c.lane);if(p==null||c.end>p.end?o.set(c.lane,c):c.end<p.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=up(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,l)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:l}),{key:!1}),this.getMeasurements=up(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:l},c)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,p);for(let m=p;m<n;m++){const E=o(m),b=this.options.lanes===1?d[m-1]:this.getFurthestMeasurement(d,m),y=b?b.end+this.options.gap:r+i,w=c.get(E),x=typeof w==\"number\"?w:this.options.estimateSize(m),k=y+x,N=b?b.lane:m%this.options.lanes;d[m]={index:m,start:y,size:x,end:k,key:E,lane:N}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=up(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?kQ({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=up(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,o,l)=>o===null||l===null?[]:n({startIndex:o,endIndex:l,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const l=o.key,c=this.elementsCache.get(l);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(l,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,l=r-o;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,l,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=up(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,l=n.length;o<l;o++){const c=n[o],p=r[c];i.push(p)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Cx(r[vF(0,r.length-1,i=>Cx(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const o=this.getSize(),l=this.getScrollOffset();r===\"auto\"&&(r=n>=l+o?\"end\":\"start\"),r===\"center\"?n+=(i-o)/2:r===\"end\"&&(n-=o);const c=this.options.horizontal?\"scrollWidth\":\"scrollHeight\",d=(this.scrollElement?\"document\"in this.scrollElement?this.scrollElement.document.documentElement[c]:this.scrollElement[c]:0)-o;return Math.max(Math.min(d,n),0)},this.getOffsetForIndex=(n,r=\"auto\")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),l=this.getScrollOffset();if(r===\"auto\")if(i.end>=l+o-this.options.scrollPaddingEnd)r=\"end\";else if(i.start<=l+this.options.scrollPaddingStart)r=\"start\";else return[l,r];const c=r===\"end\"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r=\"start\",behavior:i}={})=>{this.cancelScrollToIndex(),i===\"smooth\"&&this.isDynamicMode()&&console.warn(\"The `smooth` scroll behavior is not fully supported with dynamic size.\"),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r=\"auto\",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i===\"smooth\"&&this.isDynamicMode()&&console.warn(\"The `smooth` scroll behavior is not fully supported with dynamic size.\");const o=this.getOffsetForIndex(n,r);if(!o)return;const[l,c]=o;this._scrollToOffset(l,{adjustments:void 0,behavior:i}),i!==\"smooth\"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[d]=Cx(this.getOffsetForIndex(n,c));TQ(d,this.getScrollOffset())||this.scrollToIndex(n,{align:c,behavior:i})}else this.scrollToIndex(n,{align:c,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r===\"smooth\"&&this.isDynamicMode()&&console.warn(\"The `smooth` scroll behavior is not fully supported with dynamic size.\"),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let l=r.length-1;for(;l>0&&o.some(c=>c===null);){const c=r[l];o[c.lane]===null&&(o[c.lane]=c.end),l--}i=Math.max(...o.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const vF=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function kQ({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1;let l=vF(0,i,p=>e[p].start,n),c=l;if(r===1)for(;c<i&&e[c].end<n+t;)c++;else if(r>1){const p=Array(r).fill(0);for(;c<i&&p.some(m=>m<n+t);){const m=e[c];p[m.lane]=m.end,c++}const d=Array(r).fill(n+t);for(;l>0&&d.some(m=>m>=n);){const m=e[l];d[m.lane]=m.start,l--}l=Math.max(0,l-l%r),c=Math.min(i,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}const yF=typeof document<\"u\"?L.useLayoutEffect:L.useEffect;function RQ(e){const t=L.useReducer(()=>({}),{})[1],n={...e,onChange:(i,o)=>{var l;o?jy.flushSync(t):t(),(l=e.onChange)==null||l.call(e,i,o)}},[r]=L.useState(()=>new DQ(n));return r.setOptions(n),yF(()=>r._didMount(),[]),yF(()=>r._willUpdate()),r}function MQ(e){return RQ({observeElementRect:_Q,observeElementOffset:NQ,scrollToFn:OQ,...e})}var LQ=Object.defineProperty,IQ=(e,t,n)=>t in e?LQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_x=(e,t,n)=>(IQ(e,typeof t!=\"symbol\"?t+\"\":t,n),n);let FQ=class{constructor(){_x(this,\"current\",this.detect()),_x(this,\"handoffState\",\"pending\"),_x(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\"}},Df=new FQ,fo=(e,t)=>{Df.isServer?L.useEffect(e,t):L.useLayoutEffect(e,t)};function Gm(e){let t=L.useRef(e);return fo(()=>{t.current=e},[e]),t}function Nx(e,t){let[n,r]=L.useState(e),i=Gm(e);return fo(()=>r(i.current),[i,r,...t]),n}let Rn=function(e){let t=Gm(e);return Oe.useCallback((...n)=>t.current(...n),[t])};function PQ(e,t,n){let[r,i]=L.useState(n),o=e!==void 0,l=L.useRef(o),c=L.useRef(!1),p=L.useRef(!1);return o&&!l.current&&!c.current?(c.current=!0,l.current=o,console.error(\"A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.\")):!o&&l.current&&!p.current&&(p.current=!0,l.current=o,console.error(\"A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.\")),[o?e:r,Rn(d=>(o||i(d),t==null?void 0:t(d)))]}function jQ(e){typeof queueMicrotask==\"function\"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function H0(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return jQ(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=H0();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ax(){let[e]=L.useState(H0);return L.useEffect(()=>()=>e.dispose(),[e]),e}function VQ(){let e=typeof document>\"u\";return\"useSyncExternalStore\"in G1?(t=>t.useSyncExternalStore)(G1)(()=>()=>{},()=>!1,()=>!e):!1}function UQ(){let e=VQ(),[t,n]=L.useState(Df.isHandoffComplete);return t&&Df.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{t!==!0&&n(!0)},[t]),L.useEffect(()=>Df.handoff(),[]),e?!1:t}var bF;let Wm=(bF=Oe.useId)!=null?bF:function(){let e=UQ(),[t,n]=Oe.useState(e?()=>Df.nextId():null);return fo(()=>{t===null&&n(Df.nextId())},[t]),t!=null?\"\"+t:void 0};function ql(e,t,...n){if(e in t){let i=t[e];return typeof i==\"function\"?i(...n):i}let r=new Error(`Tried to handle \"${e}\" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`\"${i}\"`).join(\", \")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ql),r}function Ox(e){return Df.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty(\"current\")&&e.current instanceof Node?e.current.ownerDocument:document}let EF=[\"[contentEditable=true]\",\"[tabindex]\",\"a[href]\",\"area[href]\",\"button:not([disabled])\",\"iframe\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\"].map(e=>`${e}:not([tabindex='-1'])`).join(\",\");var qQ=(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))(qQ||{}),BQ=(e=>(e[e.Error=0]=\"Error\",e[e.Overflow=1]=\"Overflow\",e[e.Success=2]=\"Success\",e[e.Underflow=3]=\"Underflow\",e))(BQ||{}),$Q=(e=>(e[e.Previous=-1]=\"Previous\",e[e.Next=1]=\"Next\",e))($Q||{}),SF=(e=>(e[e.Strict=0]=\"Strict\",e[e.Loose=1]=\"Loose\",e))(SF||{});function zQ(e,t=0){var n;return e===((n=Ox(e))==null?void 0:n.body)?!1:ql(t,{0(){return e.matches(EF)},1(){let r=e;for(;r!==null;){if(r.matches(EF))return!0;r=r.parentElement}return!1}})}var HQ=(e=>(e[e.Keyboard=0]=\"Keyboard\",e[e.Mouse=1]=\"Mouse\",e))(HQ||{});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 GQ(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let l=i.compareDocumentPosition(o);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function WQ(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function YQ(){return/Android/gi.test(window.navigator.userAgent)}function TF(){return WQ()||YQ()}function G0(e,t,n){let r=Gm(t);L.useEffect(()=>{function i(o){r.current(o)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function QQ(e,t,n){let r=Gm(t);L.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function KQ(e,t,n=!0){let r=L.useRef(!1);L.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(l,c){if(!r.current||l.defaultPrevented)return;let p=c(l);if(p===null||!p.getRootNode().contains(p)||!p.isConnected)return;let d=function m(E){return typeof E==\"function\"?m(E()):Array.isArray(E)||E instanceof Set?E:[E]}(e);for(let m of d){if(m===null)continue;let E=m instanceof HTMLElement?m:m.current;if(E!=null&&E.contains(p)||l.composed&&l.composedPath().includes(E))return}return!zQ(p,SF.Loose)&&p.tabIndex!==-1&&l.preventDefault(),t(l,p)}let o=L.useRef(null);G0(\"pointerdown\",l=>{var c,p;r.current&&(o.current=((p=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:p[0])||l.target)},!0),G0(\"mousedown\",l=>{var c,p;r.current&&(o.current=((p=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:p[0])||l.target)},!0),G0(\"click\",l=>{TF()||o.current&&(i(l,()=>o.current),o.current=null)},!0),G0(\"touchend\",l=>i(l,()=>l.target instanceof HTMLElement?l.target:null),!0),QQ(\"blur\",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function XQ(...e){return L.useMemo(()=>Ox(...e),[...e])}function wF(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:\"button\";if(typeof n==\"string\"&&n.toLowerCase()===\"button\")return\"button\"}function ZQ(e,t){let[n,r]=L.useState(()=>wF(e));return fo(()=>{r(wF(e))},[e.type,e.as]),fo(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute(\"type\")&&r(\"button\")},[n,t]),n}let JQ=Symbol();function Ym(...e){let t=L.useRef(e);L.useEffect(()=>{t.current=e},[e]);let n=Rn(r=>{for(let i of t.current)i!=null&&(typeof i==\"function\"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[JQ]))?void 0:n}function xF(e){return[e.screenX,e.screenY]}function eK(){let e=L.useRef([-1,-1]);return{wasMoved(t){let n=xF(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=xF(t)}}}function tK({container:e,accept:t,walk:n,enabled:r=!0}){let i=L.useRef(t),o=L.useRef(n);L.useEffect(()=>{i.current=t,o.current=n},[t,n]),fo(()=>{if(!e||!r)return;let l=Ox(e);if(!l)return;let c=i.current,p=o.current,d=Object.assign(E=>c(E),{acceptNode:c}),m=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;m.nextNode();)p(m.currentNode)},[e,r,i,o])}function CF(e,t){let n=L.useRef([]),r=Rn(e);L.useEffect(()=>{let i=[...n.current];for(let[o,l]of t.entries())if(n.current[o]!==l){let c=r(t,i);return n.current=t,c}},[r,...t])}function _F(...e){return Array.from(new Set(e.flatMap(t=>typeof t==\"string\"?t.split(\" \"):[]))).filter(Boolean).join(\" \")}var Dx=(e=>(e[e.None=0]=\"None\",e[e.RenderStrategy=1]=\"RenderStrategy\",e[e.Static=2]=\"Static\",e))(Dx||{}),nK=(e=>(e[e.Unmount=0]=\"Unmount\",e[e.Hidden=1]=\"Hidden\",e))(nK||{});function kf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:l,mergeRefs:c}){c=c??rK;let p=NF(t,e);if(o)return W0(p,n,r,l,c);let d=i??0;if(d&2){let{static:m=!1,...E}=p;if(m)return W0(E,n,r,l,c)}if(d&1){let{unmount:m=!0,...E}=p;return ql(m?0:1,{0(){return null},1(){return W0({...E,hidden:!0,style:{display:\"none\"}},n,r,l,c)}})}return W0(p,n,r,l,c)}function W0(e,t={},n,r,i){let{as:o=n,children:l,refName:c=\"ref\",...p}=Rx(e,[\"unmount\",\"static\"]),d=e.ref!==void 0?{[c]:e.ref}:{},m=typeof l==\"function\"?l(t):l;\"className\"in p&&p.className&&typeof p.className==\"function\"&&(p.className=p.className(t));let E={};if(t){let b=!1,y=[];for(let[w,x]of Object.entries(t))typeof x==\"boolean\"&&(b=!0),x===!0&&y.push(w);b&&(E[\"data-headlessui-state\"]=y.join(\" \"))}if(o===L.Fragment&&Object.keys(kx(p)).length>0){if(!L.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on \"Fragment\"!',\"\",`The current component <${r} /> is rendering a \"Fragment\".`,\"However we need to passthrough the following props:\",Object.keys(p).map(x=>` - ${x}`).join(`\n`),\"\",\"You can apply a few solutions:\",['Add an `as=\"...\"` prop, to ensure that we render an actual element instead of a \"Fragment\".',\"Render a single element as the child so that we can forward the props onto that element.\"].map(x=>` - ${x}`).join(`\n`)].join(`\n`));let b=m.props,y=typeof(b==null?void 0:b.className)==\"function\"?(...x)=>_F(b==null?void 0:b.className(...x),p.className):_F(b==null?void 0:b.className,p.className),w=y?{className:y}:{};return L.cloneElement(m,Object.assign({},NF(m.props,kx(Rx(p,[\"ref\"]))),E,d,{ref:i(m.ref,d.ref)},w))}return L.createElement(o,Object.assign({},Rx(p,[\"ref\"]),o!==L.Fragment&&d,o!==L.Fragment&&E),m)}function rK(...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 NF(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith(\"on\")&&typeof r[i]==\"function\"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t[\"aria-disabled\"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let l=n[r];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...o)}}});return t}function Rf(e){var t;return Object.assign(L.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function kx(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rx(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let iK=\"div\";var AF=(e=>(e[e.None=1]=\"None\",e[e.Focusable=2]=\"Focusable\",e[e.Hidden=4]=\"Hidden\",e))(AF||{});function oK(e,t){var n;let{features:r=1,...i}=e,o={ref:t,\"aria-hidden\":(r&2)===2?!0:(n=i[\"aria-hidden\"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:\"fixed\",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\",...(r&4)===4&&(r&2)!==2&&{display:\"none\"}}};return kf({ourProps:o,theirProps:i,slot:{},defaultTag:iK,name:\"Hidden\"})}let aK=Rf(oK),Mx=L.createContext(null);Mx.displayName=\"OpenClosedContext\";var Qm=(e=>(e[e.Open=1]=\"Open\",e[e.Closed=2]=\"Closed\",e[e.Closing=4]=\"Closing\",e[e.Opening=8]=\"Opening\",e))(Qm||{});function sK(){return L.useContext(Mx)}function lK({value:e,children:t}){return Oe.createElement(Mx.Provider,{value:e},t)}function uK(e){function t(){document.readyState!==\"loading\"&&(e(),document.removeEventListener(\"DOMContentLoaded\",t))}typeof window<\"u\"&&typeof document<\"u\"&&(document.addEventListener(\"DOMContentLoaded\",t),t())}let Mf=[];uK(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Mf[0]!==t.target&&(Mf.unshift(t.target),Mf=Mf.filter(n=>n!=null&&n.isConnected),Mf.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 cK(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute(\"disabled\"))===\"\";return r&&fK(n)?!1:r}function fK(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function dK(e){throw new Error(\"Unexpected object: \"+e)}var ai=(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))(ai||{});function OF(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:dK(e)}}function DF(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))RF(n,kF(t,r),i);return n}function kF(e,t){return e?e+\"[\"+t+\"]\":t}function RF(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())RF(e,kF(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n==\"boolean\"?e.push([t,n?\"1\":\"0\"]):typeof n==\"string\"?e.push([t,n]):typeof n==\"number\"?e.push([t,`${n}`]):n==null?e.push([t,\"\"]):DF(n,t,e)}var Xo=(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))(Xo||{}),pK=(e=>(e[e.Open=0]=\"Open\",e[e.Closed=1]=\"Closed\",e))(pK||{}),hK=(e=>(e[e.Single=0]=\"Single\",e[e.Multi=1]=\"Multi\",e))(hK||{}),mK=(e=>(e[e.Pointer=0]=\"Pointer\",e[e.Focus=1]=\"Focus\",e[e.Other=2]=\"Other\",e))(mK||{}),gK=(e=>(e[e.OpenCombobox=0]=\"OpenCombobox\",e[e.CloseCombobox=1]=\"CloseCombobox\",e[e.GoToOption=2]=\"GoToOption\",e[e.RegisterOption=3]=\"RegisterOption\",e[e.UnregisterOption=4]=\"UnregisterOption\",e[e.RegisterLabel=5]=\"RegisterLabel\",e[e.SetActivationTrigger=6]=\"SetActivationTrigger\",e[e.UpdateVirtualOptions=7]=\"UpdateVirtualOptions\",e))(gK||{});function Lx(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&r[0].dataRef.current.order!==null?r.sort((l,c)=>l.dataRef.current.order-c.dataRef.current.order):GQ(r,l=>l.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let vK={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,r,i,o,l;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let m=t.focus===ai.Specific?t.idx:OF(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,y;return(y=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(w=>!e.virtual.disabled(w)))!=null?y:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error(\"Function not implemented.\")}}),E=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===m&&e.activationTrigger===E?e:{...e,activeOptionIndex:m,activationTrigger:E}}let c=Lx(e);if(c.activeOptionIndex===null){let m=c.options.findIndex(E=>!E.dataRef.current.disabled);m!==-1&&(c.activeOptionIndex=m)}let p=t.focus===ai.Specific?t.idx:OF(t,{resolveItems:()=>c.options,resolveActiveIndex:()=>c.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled}),d=(l=t.trigger)!=null?l:2;return e.activeOptionIndex===p&&e.activationTrigger===d?e:{...e,...c,activeOptionIndex:p,activationTrigger:d}},3:(e,t)=>{var n,r,i;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,l=Lx(e,p=>(p.push(o),p));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(o));let c={...e,...l,activationTrigger:2};return(i=e.dataRef.current)!=null&&i.__demoMode&&e.dataRef.current.value===void 0&&(c.activeOptionIndex=0),c},4:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let r=Lx(e,i=>{let o=i.findIndex(l=>l.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...r,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if(((n=e.virtual)==null?void 0:n.options)===t.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i!==-1?r=i:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:t.options})}}},Ix=L.createContext(null);Ix.displayName=\"ComboboxActionsContext\";function Km(e){let t=L.useContext(Ix);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Km),n}return t}let MF=L.createContext(null);function yK(e){var t;let n=Lf(\"VirtualProvider\"),[r,i]=L.useMemo(()=>{let p=n.optionsRef.current;if(!p)return[0,0];let d=window.getComputedStyle(p);return[parseFloat(d.paddingBlockStart||d.paddingTop),parseFloat(d.paddingBlockEnd||d.paddingBottom)]},[n.optionsRef.current]),o=MQ({scrollPaddingStart:r,scrollPaddingEnd:i,count:n.virtual.options.length,estimateSize(){return 40},getScrollElement(){var p;return(p=n.optionsRef.current)!=null?p:null},overscan:12}),[l,c]=L.useState(0);return fo(()=>{c(p=>p+1)},[(t=n.virtual)==null?void 0:t.options]),Oe.createElement(MF.Provider,{value:o},Oe.createElement(\"div\",{style:{position:\"relative\",width:\"100%\",height:`${o.getTotalSize()}px`},ref:p=>{if(p){if(typeof process<\"u\"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger===0)return;n.activeOptionIndex!==null&&n.virtual.options.length>n.activeOptionIndex&&o.scrollToIndex(n.activeOptionIndex)}}},o.getVirtualItems().map(p=>{var d;return Oe.createElement(L.Fragment,{key:p.key},Oe.cloneElement((d=e.children)==null?void 0:d.call(e,{option:n.virtual.options[p.index],open:n.comboboxState===0}),{key:`${l}-${p.key}`,\"data-index\":p.index,\"aria-setsize\":n.virtual.options.length,\"aria-posinset\":p.index+1,style:{position:\"absolute\",top:0,left:0,transform:`translateY(${p.start}px)`,overflowAnchor:\"none\"}}))})))}let Fx=L.createContext(null);Fx.displayName=\"ComboboxDataContext\";function Lf(e){let t=L.useContext(Fx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Lf),n}return t}function bK(e,t){return ql(t.type,vK,e,t)}let EK=L.Fragment;function SK(e,t){let{value:n,defaultValue:r,onChange:i,form:o,name:l,by:c=null,disabled:p=!1,__demoMode:d=!1,nullable:m=!1,multiple:E=!1,immediate:b=!1,virtual:y=null,...w}=e,x=!1,k=null,[N=E?[]:void 0,A]=PQ(n,i,r),[O,_]=L.useReducer(bK,{dataRef:L.createRef(),comboboxState:d?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),M=L.useRef(!1),V=L.useRef({static:!1,hold:!1}),P=L.useRef(null),F=L.useRef(null),j=L.useRef(null),q=L.useRef(null),Q=Rn(typeof c==\"string\"?(qe,dt)=>{let pt=c;return(qe==null?void 0:qe[pt])===(dt==null?void 0:dt[pt])}:c??((qe,dt)=>qe===dt)),ee=Rn(qe=>O.options.findIndex(dt=>Q(dt.dataRef.current.value,qe))),Z=L.useCallback(qe=>ql(B.mode,{1:()=>N.some(dt=>Q(dt,qe)),0:()=>Q(N,qe)}),[N]),W=Rn(qe=>O.activeOptionIndex===ee(qe)),B=L.useMemo(()=>({...O,immediate:x,optionsPropsRef:V,labelRef:P,inputRef:F,buttonRef:j,optionsRef:q,value:N,defaultValue:r,disabled:p,mode:E?1:0,virtual:O.virtual,get activeOptionIndex(){if(M.current&&O.activeOptionIndex===null&&O.options.length>0){let qe=O.options.findIndex(dt=>!dt.dataRef.current.disabled);if(qe!==-1)return qe}return O.activeOptionIndex},calculateIndex:ee,compare:Q,isSelected:Z,isActive:W,nullable:m,__demoMode:d}),[N,r,p,E,m,d,O,k]);fo(()=>{},[k,void 0]),fo(()=>{O.dataRef.current=B},[B]),KQ([B.buttonRef,B.inputRef,B.optionsRef],()=>pe.closeCombobox(),B.comboboxState===0);let ne=L.useMemo(()=>{var qe,dt,pt;return{open:B.comboboxState===0,disabled:p,activeIndex:B.activeOptionIndex,activeOption:B.activeOptionIndex===null?null:B.virtual?B.virtual.options[(qe=B.activeOptionIndex)!=null?qe:0]:(pt=(dt=B.options[B.activeOptionIndex])==null?void 0:dt.dataRef.current.value)!=null?pt:null,value:N}},[B,p,N]),ie=Rn(()=>{if(B.activeOptionIndex!==null){if(B.virtual)he(B.virtual.options[B.activeOptionIndex]);else{let{dataRef:qe}=B.options[B.activeOptionIndex];he(qe.current.value)}pe.goToOption(ai.Specific,B.activeOptionIndex)}}),se=Rn(()=>{_({type:0}),M.current=!0}),de=Rn(()=>{_({type:1}),M.current=!1}),J=Rn((qe,dt,pt)=>(M.current=!1,qe===ai.Specific?_({type:2,focus:ai.Specific,idx:dt,trigger:pt}):_({type:2,focus:qe,trigger:pt}))),ge=Rn((qe,dt)=>(_({type:3,payload:{id:qe,dataRef:dt}}),()=>{B.isActive(dt.current.value)&&(M.current=!0),_({type:4,id:qe})})),ce=Rn(qe=>(_({type:5,id:qe}),()=>_({type:5,id:null}))),he=Rn(qe=>ql(B.mode,{0(){return A==null?void 0:A(qe)},1(){let dt=B.value.slice(),pt=dt.findIndex(at=>Q(at,qe));return pt===-1?dt.push(qe):dt.splice(pt,1),A==null?void 0:A(dt)}})),le=Rn(qe=>{_({type:6,trigger:qe})}),pe=L.useMemo(()=>({onChange:he,registerOption:ge,registerLabel:ce,goToOption:J,closeCombobox:de,openCombobox:se,setActivationTrigger:le,selectActiveOption:ie}),[]),Te=t===null?{}:{ref:t},Fe=L.useRef(null),$e=Ax();return L.useEffect(()=>{Fe.current&&r!==void 0&&$e.addEventListener(Fe.current,\"reset\",()=>{A==null||A(r)})},[Fe,A]),Oe.createElement(Ix.Provider,{value:pe},Oe.createElement(Fx.Provider,{value:B},Oe.createElement(lK,{value:ql(B.comboboxState,{0:Qm.Open,1:Qm.Closed})},l!=null&&N!=null&&DF({[l]:N}).map(([qe,dt],pt)=>Oe.createElement(aK,{features:AF.Hidden,ref:pt===0?at=>{var Ce;Fe.current=(Ce=at==null?void 0:at.closest(\"form\"))!=null?Ce:null}:void 0,...kx({key:qe,as:\"input\",type:\"hidden\",hidden:!0,readOnly:!0,form:o,disabled:p,name:qe,value:dt})})),kf({ourProps:Te,theirProps:w,slot:ne,defaultTag:EK,name:\"Combobox\"}))))}let TK=\"input\";function wK(e,t){var n,r,i,o,l;let c=Wm(),{id:p=`headlessui-combobox-input-${c}`,onChange:d,displayValue:m,type:E=\"text\",...b}=e,y=Lf(\"Combobox.Input\"),w=Km(\"Combobox.Input\"),x=Ym(y.inputRef,t),k=XQ(y.inputRef),N=L.useRef(!1),A=Ax(),O=Rn(()=>{w.onChange(null),y.optionsRef.current&&(y.optionsRef.current.scrollTop=0),w.goToOption(ai.Nothing)}),_=function(){var B;return typeof m==\"function\"&&y.value!==void 0?(B=m(y.value))!=null?B:\"\":typeof y.value==\"string\"?y.value:\"\"}();CF(([B,ne],[ie,se])=>{if(N.current)return;let de=y.inputRef.current;de&&((se===0&&ne===1||B!==ie)&&(de.value=B),requestAnimationFrame(()=>{if(N.current||!de||(k==null?void 0:k.activeElement)!==de)return;let{selectionStart:J,selectionEnd:ge}=de;Math.abs((ge??0)-(J??0))===0&&J===0&&de.setSelectionRange(de.value.length,de.value.length)}))},[_,y.comboboxState,k]),CF(([B],[ne])=>{if(B===0&&ne===1){if(N.current)return;let ie=y.inputRef.current;if(!ie)return;let se=ie.value,{selectionStart:de,selectionEnd:J,selectionDirection:ge}=ie;ie.value=\"\",ie.value=se,ge!==null?ie.setSelectionRange(de,J,ge):ie.setSelectionRange(de,J)}},[y.comboboxState]);let M=L.useRef(!1),V=Rn(()=>{M.current=!0}),P=Rn(()=>{A.nextFrame(()=>{M.current=!1})}),F=Rn(B=>{switch(N.current=!0,B.key){case Xo.Enter:if(N.current=!1,y.comboboxState!==0||M.current)return;if(B.preventDefault(),B.stopPropagation(),y.activeOptionIndex===null){w.closeCombobox();return}w.selectActiveOption(),y.mode===0&&w.closeCombobox();break;case Xo.ArrowDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>w.goToOption(ai.Next),1:()=>w.openCombobox()});case Xo.ArrowUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>w.goToOption(ai.Previous),1:()=>{w.openCombobox(),A.nextFrame(()=>{y.value||w.goToOption(ai.Last)})}});case Xo.Home:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),w.goToOption(ai.First);case Xo.PageUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),w.goToOption(ai.First);case Xo.End:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),w.goToOption(ai.Last);case Xo.PageDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),w.goToOption(ai.Last);case Xo.Escape:return N.current=!1,y.comboboxState!==0?void 0:(B.preventDefault(),y.optionsRef.current&&!y.optionsPropsRef.current.static&&B.stopPropagation(),y.nullable&&y.mode===0&&y.value===null&&O(),w.closeCombobox());case Xo.Tab:if(N.current=!1,y.comboboxState!==0)return;y.mode===0&&y.activationTrigger!==1&&w.selectActiveOption(),w.closeCombobox();break}}),j=Rn(B=>{d==null||d(B),y.nullable&&y.mode===0&&B.target.value===\"\"&&O(),w.openCombobox()}),q=Rn(B=>{var ne,ie,se;let de=(ne=B.relatedTarget)!=null?ne:Mf.find(J=>J!==B.currentTarget);if(N.current=!1,!((ie=y.optionsRef.current)!=null&&ie.contains(de))&&!((se=y.buttonRef.current)!=null&&se.contains(de))&&y.comboboxState===0)return B.preventDefault(),y.mode===0&&(y.nullable&&y.value===null?O():y.activationTrigger!==1&&w.selectActiveOption()),w.closeCombobox()}),Q=Rn(B=>{var ne,ie,se;let de=(ne=B.relatedTarget)!=null?ne:Mf.find(J=>J!==B.currentTarget);(ie=y.buttonRef.current)!=null&&ie.contains(de)||(se=y.optionsRef.current)!=null&&se.contains(de)||y.disabled||y.immediate&&y.comboboxState!==0&&(w.openCombobox(),A.nextFrame(()=>{w.setActivationTrigger(1)}))}),ee=Nx(()=>{if(y.labelId)return[y.labelId].join(\" \")},[y.labelId]),Z=L.useMemo(()=>({open:y.comboboxState===0,disabled:y.disabled}),[y]),W={ref:x,id:p,role:\"combobox\",type:E,\"aria-controls\":(n=y.optionsRef.current)==null?void 0:n.id,\"aria-expanded\":y.comboboxState===0,\"aria-activedescendant\":y.activeOptionIndex===null?void 0:y.virtual?(r=y.options.find(B=>{var ne;return!((ne=y.virtual)!=null&&ne.disabled(B.dataRef.current.value))&&y.compare(B.dataRef.current.value,y.virtual.options[y.activeOptionIndex])}))==null?void 0:r.id:(i=y.options[y.activeOptionIndex])==null?void 0:i.id,\"aria-labelledby\":ee,\"aria-autocomplete\":\"list\",defaultValue:(l=(o=e.defaultValue)!=null?o:y.defaultValue!==void 0?m==null?void 0:m(y.defaultValue):null)!=null?l:y.defaultValue,disabled:y.disabled,onCompositionStart:V,onCompositionEnd:P,onKeyDown:F,onChange:j,onFocus:Q,onBlur:q};return kf({ourProps:W,theirProps:b,slot:Z,defaultTag:TK,name:\"Combobox.Input\"})}let xK=\"button\";function CK(e,t){var n;let r=Lf(\"Combobox.Button\"),i=Km(\"Combobox.Button\"),o=Ym(r.buttonRef,t),l=Wm(),{id:c=`headlessui-combobox-button-${l}`,...p}=e,d=Ax(),m=Rn(x=>{switch(x.key){case Xo.ArrowDown:return x.preventDefault(),x.stopPropagation(),r.comboboxState===1&&i.openCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Xo.ArrowUp:return x.preventDefault(),x.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),d.nextFrame(()=>{r.value||i.goToOption(ai.Last)})),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Xo.Escape:return r.comboboxState!==0?void 0:(x.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&x.stopPropagation(),i.closeCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})}));default:return}}),E=Rn(x=>{if(cK(x.currentTarget))return x.preventDefault();r.comboboxState===0?i.closeCombobox():(x.preventDefault(),i.openCombobox()),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})})}),b=Nx(()=>{if(r.labelId)return[r.labelId,c].join(\" \")},[r.labelId,c]),y=L.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),w={ref:o,id:c,type:ZQ(e,r.buttonRef),tabIndex:-1,\"aria-haspopup\":\"listbox\",\"aria-controls\":(n=r.optionsRef.current)==null?void 0:n.id,\"aria-expanded\":r.comboboxState===0,\"aria-labelledby\":b,disabled:r.disabled,onClick:E,onKeyDown:m};return kf({ourProps:w,theirProps:p,slot:y,defaultTag:xK,name:\"Combobox.Button\"})}let _K=\"label\";function NK(e,t){let n=Wm(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=Lf(\"Combobox.Label\"),l=Km(\"Combobox.Label\"),c=Ym(o.labelRef,t);fo(()=>l.registerLabel(r),[r]);let p=Rn(()=>{var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),d=L.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return kf({ourProps:{ref:c,id:r,onClick:p},theirProps:i,slot:d,defaultTag:_K,name:\"Combobox.Label\"})}let AK=\"ul\",OK=Dx.RenderStrategy|Dx.Static;function DK(e,t){let n=Wm(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,l=Lf(\"Combobox.Options\"),c=Ym(l.optionsRef,t),p=sK(),d=p!==null?(p&Qm.Open)===Qm.Open:l.comboboxState===0;fo(()=>{var y;l.optionsPropsRef.current.static=(y=e.static)!=null?y:!1},[l.optionsPropsRef,e.static]),fo(()=>{l.optionsPropsRef.current.hold=i},[l.optionsPropsRef,i]),tK({container:l.optionsRef.current,enabled:l.comboboxState===0,accept(y){return y.getAttribute(\"role\")===\"option\"?NodeFilter.FILTER_REJECT:y.hasAttribute(\"role\")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(y){y.setAttribute(\"role\",\"none\")}});let m=Nx(()=>{var y,w;return(w=l.labelId)!=null?w:(y=l.buttonRef.current)==null?void 0:y.id},[l.labelId,l.buttonRef.current]),E=L.useMemo(()=>({open:l.comboboxState===0,option:void 0}),[l]),b={\"aria-labelledby\":m,role:\"listbox\",\"aria-multiselectable\":l.mode===1?!0:void 0,id:r,ref:c};return l.virtual&&l.comboboxState===0&&Object.assign(o,{children:Oe.createElement(yK,null,o.children)}),kf({ourProps:b,theirProps:o,slot:E,defaultTag:AK,features:OK,visible:d,name:\"Combobox.Options\"})}let kK=\"li\";function RK(e,t){var n;let r=Wm(),{id:i=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,order:c=null,...p}=e,d=Lf(\"Combobox.Option\"),m=Km(\"Combobox.Option\"),E=d.virtual?d.activeOptionIndex===d.calculateIndex(l):d.activeOptionIndex===null?!1:((n=d.options[d.activeOptionIndex])==null?void 0:n.id)===i,b=d.isSelected(l),y=L.useRef(null),w=Gm({disabled:o,value:l,domRef:y,order:c}),x=L.useContext(MF),k=Ym(t,y,x?x.measureElement:null),N=Rn(()=>m.onChange(l));fo(()=>m.registerOption(i,w),[w,i]);let A=L.useRef(!(d.virtual||d.__demoMode));fo(()=>{if(!d.virtual||!d.__demoMode)return;let q=H0();return q.requestAnimationFrame(()=>{A.current=!0}),q.dispose},[d.virtual,d.__demoMode]),fo(()=>{if(!A.current||d.comboboxState!==0||!E||d.activationTrigger===0)return;let q=H0();return q.requestAnimationFrame(()=>{var Q,ee;(ee=(Q=y.current)==null?void 0:Q.scrollIntoView)==null||ee.call(Q,{block:\"nearest\"})}),q.dispose},[y,E,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let O=Rn(q=>{var Q;if(o||(Q=d.virtual)!=null&&Q.disabled(l))return q.preventDefault();N(),TF()||requestAnimationFrame(()=>{var ee;return(ee=d.inputRef.current)==null?void 0:ee.focus({preventScroll:!0})}),d.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),_=Rn(()=>{var q;if(o||(q=d.virtual)!=null&&q.disabled(l))return m.goToOption(ai.Nothing);let Q=d.calculateIndex(l);m.goToOption(ai.Specific,Q)}),M=eK(),V=Rn(q=>M.update(q)),P=Rn(q=>{var Q;if(!M.wasMoved(q)||o||(Q=d.virtual)!=null&&Q.disabled(l)||E)return;let ee=d.calculateIndex(l);m.goToOption(ai.Specific,ee,0)}),F=Rn(q=>{var Q;M.wasMoved(q)&&(o||(Q=d.virtual)!=null&&Q.disabled(l)||E&&(d.optionsPropsRef.current.hold||m.goToOption(ai.Nothing)))}),j=L.useMemo(()=>({active:E,selected:b,disabled:o}),[E,b,o]);return kf({ourProps:{id:i,ref:k,role:\"option\",tabIndex:o===!0?void 0:-1,\"aria-disabled\":o===!0?!0:void 0,\"aria-selected\":b,disabled:void 0,onClick:O,onFocus:_,onPointerEnter:V,onMouseEnter:V,onPointerMove:P,onMouseMove:P,onPointerLeave:F,onMouseLeave:F},theirProps:p,slot:j,defaultTag:kK,name:\"Combobox.Option\"})}let MK=Rf(SK),LK=Rf(CK),IK=Rf(wK),FK=Rf(NK),PK=Rf(DK),jK=Rf(RK),cp=Object.assign(MK,{Input:IK,Button:LK,Label:FK,Options:PK,Option:jK});var VK=Object.defineProperty,De=(e,t)=>VK(e,\"name\",{value:t,configurable:!0});function Ju(e){const t=L.createContext(null);return t.displayName=e,t}De(Ju,\"createNullableContext\");function ec(e){function t(n){var r;const i=L.useContext(e);if(i===null&&n!=null&&n.nonNull)throw new Error(`Tried to use \\`${((r=n.caller)==null?void 0:r.name)||t.caller.name}\\` without the necessary context. Make sure to render the \\`${e.displayName}Provider\\` component higher up the tree.`);return i}return De(t,\"useGivenContext\"),Object.defineProperty(t,\"name\",{value:`use${e.displayName}`}),t}De(ec,\"createContextHook\");const LF=Ju(\"StorageContext\");function IF(e){const t=L.useRef(!0),[n,r]=L.useState(new QE(e.storage));return L.useEffect(()=>{t.current?t.current=!1:r(new QE(e.storage))},[e.storage]),Y.jsx(LF.Provider,{value:n,children:e.children})}De(IF,\"StorageContextProvider\");const tc=ec(LF),UK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"rect\",{x:6,y:6,width:2,height:2,rx:1,fill:\"currentColor\"})),\"SvgArgument\"),qK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 9\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M1 1L7 7L13 1\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgChevronDown\"),BK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 7 10\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M6 1.04819L2 5.04819L6 9.04819\",stroke:\"currentColor\",strokeWidth:1.75})),\"SvgChevronLeft\"),$K=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 9\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M13 8L7 2L1 8\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgChevronUp\"),zK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M1 1L12.9998 12.9997\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{d:\"M13 1L1.00079 13.0003\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgClose\"),HK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"-2 -2 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"rect\",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:\"currentColor\",strokeWidth:1.5})),\"SvgCopy\"),GK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M5 9L9 5\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M5 5L9 9\",stroke:\"currentColor\",strokeWidth:1.2})),\"SvgDeprecatedArgument\"),WK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z\",fill:\"currentColor\"})),\"SvgDeprecatedEnumValue\"),YK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2})),\"SvgDeprecatedField\"),QK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0.5 12 12\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:7,y:5.5,width:2,height:2,rx:1,transform:\"rotate(90 7 5.5)\",fill:\"currentColor\"}),L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z\",fill:\"currentColor\"})),\"SvgDirective\"),KK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 20 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{d:\"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z\",fill:\"currentColor\"})),\"SvgDocsFilled\"),XK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 20 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"line\",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:\"currentColor\",strokeWidth:1.5})),\"SvgDocs\"),ZK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:5,y:5,width:2,height:2,rx:1,fill:\"currentColor\"}),L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z\",fill:\"currentColor\"})),\"SvgEnumValue\"),JK=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 12 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"rect\",{x:5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"})),\"SvgField\"),eX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 24 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),L.createElement(\"path\",{d:\"M13.75 5.25V10.75H18.75\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),L.createElement(\"path\",{d:\"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgHistory\"),tX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"circle\",{cx:6,cy:6,r:5.4,stroke:\"currentColor\",strokeWidth:1.2,strokeDasharray:\"4.241025 4.241025\",transform:\"rotate(22.5)\",\"transform-origin\":\"center\"}),L.createElement(\"circle\",{cx:6,cy:6,r:1,fill:\"currentColor\"})),\"SvgImplements\"),nX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 19 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"})),\"SvgKeyboardShortcut\"),rX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"circle\",{cx:5,cy:5,r:4.35,stroke:\"currentColor\",strokeWidth:1.3}),L.createElement(\"line\",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:\"currentColor\",strokeWidth:1.3})),\"SvgMagnifyingGlass\"),iX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"-2 -2 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{d:\"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{d:\"M6 4.5L9 7.5L12 4.5\",stroke:\"currentColor\",strokeWidth:1.5}),L.createElement(\"path\",{d:\"M12 13.5L9 10.5L6 13.5\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgMerge\"),oX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z\",fill:\"currentColor\"}),L.createElement(\"path\",{d:\"M11.5 4.5L9.5 2.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M5.5 10.5L3.5 8.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"})),\"SvgPen\"),aX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 16 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z\",fill:\"currentColor\"})),\"SvgPlay\"),sX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 10 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z\",fill:\"currentColor\"})),\"SvgPlus\"),lX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{width:25,height:25,viewBox:\"0 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M10.2852 24.0745L13.7139 18.0742\",stroke:\"currentColor\",strokeWidth:1.5625}),L.createElement(\"path\",{d:\"M14.5742 24.0749L17.1457 19.7891\",stroke:\"currentColor\",strokeWidth:1.5625}),L.createElement(\"path\",{d:\"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735\",stroke:\"currentColor\",strokeWidth:1.5625}),L.createElement(\"path\",{d:\"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z\",stroke:\"currentColor\",strokeWidth:1.5625,strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z\",stroke:\"currentColor\",strokeWidth:1.5625,strokeLinejoin:\"round\"})),\"SvgPrettify\"),uX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M4.75 9.25H1.25V12.75\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),L.createElement(\"path\",{d:\"M11.25 6.75H14.75V3.25\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),L.createElement(\"path\",{d:\"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513\",stroke:\"currentColor\",strokeWidth:1}),L.createElement(\"path\",{d:\"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487\",stroke:\"currentColor\",strokeWidth:1})),\"SvgReload\"),cX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"path\",{d:\"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5\",stroke:\"currentColor\",strokeWidth:1.2})),\"SvgRootType\"),fX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 21 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z\",fill:\"currentColor\"})),\"SvgSettings\"),dX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z\",fill:\"currentColor\",stroke:\"currentColor\"})),\"SvgStarFilled\"),pX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z\",stroke:\"currentColor\",strokeWidth:1.5})),\"SvgStar\"),hX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{width:16,height:16,rx:2,fill:\"currentColor\"})),\"SvgStop\"),mX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{width:\"1em\",height:\"5em\",xmlns:\"http://www.w3.org/2000/svg\",fillRule:\"evenodd\",\"aria-hidden\":\"true\",viewBox:\"0 0 23 23\",style:{height:\"1.5em\"},clipRule:\"evenodd\",\"aria-labelledby\":t,...n},e===void 0?L.createElement(\"title\",{id:t},\"trash icon\"):e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z\",fill:\"currentColor\",strokeWidth:.25,stroke:\"currentColor\"})),\"SvgTrash\"),gX=De(({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),L.createElement(\"rect\",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"})),\"SvgType\"),vX=Cn(UK),yX=Cn(qK),bX=Cn(BK),EX=Cn($K),Px=Cn(zK),SX=Cn(HK),TX=Cn(GK),wX=Cn(WK),xX=Cn(YK),CX=Cn(QK),_X=Cn(KK,\"filled docs icon\"),NX=Cn(XK),AX=Cn(ZK),OX=Cn(JK),DX=Cn(eX),kX=Cn(tX),RX=Cn(nX),MX=Cn(rX),LX=Cn(iX),IX=Cn(oX),FX=Cn(aX),PX=Cn(sX),jX=Cn(lX),VX=Cn(uX),UX=Cn(cX),qX=Cn(fX),BX=Cn(dX,\"filled star icon\"),$X=Cn(pX),zX=Cn(hX),HX=Cn(mX,\"trash icon\"),Y0=Cn(gX);function Cn(e,t=e.name.replace(\"Svg\",\"\").replaceAll(/([A-Z])/g,\" $1\").trimStart().toLowerCase()+\" icon\"){return e.defaultProps={title:t},e}De(Cn,\"generateIcon\");const si=L.forwardRef((e,t)=>Y.jsx(\"button\",{...e,ref:t,className:Ei(\"graphiql-un-styled\",e.className)}));si.displayName=\"UnStyledButton\";const ls=L.forwardRef((e,t)=>Y.jsx(\"button\",{...e,ref:t,className:Ei(\"graphiql-button\",{success:\"graphiql-button-success\",error:\"graphiql-button-error\"}[e.state],e.className)}));ls.displayName=\"Button\";const jx=L.forwardRef((e,t)=>Y.jsx(\"div\",{...e,ref:t,className:Ei(\"graphiql-button-group\",e.className)}));jx.displayName=\"ButtonGroup\";const Xm=De((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),\"createComponentGroup\"),FF=L.forwardRef((e,t)=>Y.jsx(vU,{asChild:!0,children:Y.jsxs(si,{...e,ref:t,type:\"button\",className:Ei(\"graphiql-dialog-close\",e.className),children:[Y.jsx(Rk,{children:\"Close dialog\"}),Y.jsx(Px,{})]})}));FF.displayName=\"Dialog.Close\";function PF({children:e,...t}){return Y.jsx(cU,{...t,children:Y.jsxs(dU,{children:[Y.jsx(pU,{className:\"graphiql-dialog-overlay\"}),Y.jsx(hU,{className:\"graphiql-dialog\",children:e})]})})}De(PF,\"DialogRoot\");const fp=Xm(PF,{Close:FF,Title:mU,Trigger:fU,Description:gU}),jF=L.forwardRef((e,t)=>Y.jsx(XB,{asChild:!0,children:Y.jsx(\"button\",{...e,ref:t,className:Ei(\"graphiql-un-styled\",e.className)})}));jF.displayName=\"DropdownMenuButton\";function VF({children:e,align:t=\"start\",sideOffset:n=5,className:r,...i}){return Y.jsx(ZB,{children:Y.jsx(JB,{align:t,sideOffset:n,className:Ei(\"graphiql-dropdown-content\",r),...i,children:e})})}De(VF,\"Content\");const GX=De(({className:e,children:t,...n})=>Y.jsx(e$,{className:Ei(\"graphiql-dropdown-item\",e),...n,children:t}),\"Item\"),nc=Xm(KB,{Button:jF,Item:GX,Content:VF}),Q0=new fz({breaks:!0,linkify:!0}),Ys=L.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>Y.jsx(\"div\",{...r,ref:i,className:Ei(`graphiql-markdown-${n}`,t&&\"graphiql-markdown-preview\",r.className),dangerouslySetInnerHTML:{__html:Q0.render(e)}}));Ys.displayName=\"MarkdownContent\";const Vx=L.forwardRef((e,t)=>Y.jsx(\"div\",{...e,ref:t,className:Ei(\"graphiql-spinner\",e.className)}));Vx.displayName=\"Spinner\";function UF({children:e,align:t=\"start\",side:n=\"bottom\",sideOffset:r=5,label:i}){return Y.jsxs(yQ,{children:[Y.jsx(bQ,{asChild:!0,children:e}),Y.jsx(EQ,{children:Y.jsx(SQ,{className:\"graphiql-tooltip\",align:t,side:n,sideOffset:r,children:i})})]})}De(UF,\"TooltipRoot\");const Zi=Xm(UF,{Provider:vQ}),qF=L.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>Y.jsx(aF.Item,{...i,ref:o,value:t,\"aria-selected\":e?\"true\":void 0,role:\"tab\",className:Ei(\"graphiql-tab\",e&&\"graphiql-tab-active\",r),children:n}));qF.displayName=\"Tab\";const BF=L.forwardRef((e,t)=>Y.jsx(si,{...e,ref:t,type:\"button\",className:Ei(\"graphiql-tab-button\",e.className),children:e.children}));BF.displayName=\"Tab.Button\";const $F=L.forwardRef((e,t)=>Y.jsx(Zi,{label:\"Close Tab\",children:Y.jsx(si,{\"aria-label\":\"Close Tab\",...e,ref:t,type:\"button\",className:Ei(\"graphiql-tab-close\",e.className),children:Y.jsx(Px,{})})}));$F.displayName=\"Tab.Close\";const Ux=Xm(qF,{Button:BF,Close:$F}),zF=L.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>Y.jsx(aF.Group,{...i,ref:o,values:e,onReorder:t,axis:\"x\",role:\"tablist\",className:Ei(\"graphiql-tabs\",r),children:n}));zF.displayName=\"Tabs\";const HF=Ju(\"HistoryContext\");function GF(e){var t;const n=tc(),r=L.useRef(new U8(n||new QE(null),e.maxHistoryLength||WX)),[i,o]=L.useState(((t=r.current)==null?void 0:t.queries)||[]),l=L.useCallback(b=>{var y;(y=r.current)==null||y.updateHistory(b),o(r.current.queries)},[]),c=L.useCallback((b,y)=>{r.current.editLabel(b,y),o(r.current.queries)},[]),p=L.useCallback(b=>{r.current.toggleFavorite(b),o(r.current.queries)},[]),d=L.useCallback(b=>b,[]),m=L.useCallback((b,y=!1)=>{r.current.deleteHistory(b,y),o(r.current.queries)},[]),E=L.useMemo(()=>({addToHistory:l,editLabel:c,items:i,toggleFavorite:p,setActive:d,deleteFromHistory:m}),[l,c,i,p,d,m]);return Y.jsx(HF.Provider,{value:E,children:e.children})}De(GF,\"HistoryContextProvider\");const K0=ec(HF),WX=20;function WF(){const{items:e,deleteFromHistory:t}=K0({nonNull:!0});let n=e.slice().map((c,p)=>({...c,index:p})).reverse();const r=n.filter(c=>c.favorite);r.length&&(n=n.filter(c=>!c.favorite));const[i,o]=L.useState(null);L.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const l=L.useCallback(()=>{try{for(const c of n)t(c,!0);o(\"success\")}catch{o(\"error\")}},[t,n]);return Y.jsxs(\"section\",{\"aria-label\":\"History\",className:\"graphiql-history\",children:[Y.jsxs(\"div\",{className:\"graphiql-history-header\",children:[\"History\",(i||n.length>0)&&Y.jsx(ls,{type:\"button\",state:i||void 0,disabled:!n.length,onClick:l,children:{success:\"Cleared\",error:\"Failed to Clear\"}[i]||\"Clear\"})]}),!!r.length&&Y.jsx(\"ul\",{className:\"graphiql-history-items\",children:r.map(c=>Y.jsx(Zm,{item:c},c.index))}),!!r.length&&!!n.length&&Y.jsx(\"div\",{className:\"graphiql-history-item-spacer\"}),!!n.length&&Y.jsx(\"ul\",{className:\"graphiql-history-items\",children:n.map(c=>Y.jsx(Zm,{item:c},c.index))})]})}De(WF,\"History\");function Zm(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=K0({nonNull:!0,caller:Zm}),{headerEditor:o,queryEditor:l,variableEditor:c}=wi({nonNull:!0,caller:Zm}),p=L.useRef(null),d=L.useRef(null),[m,E]=L.useState(!1);L.useEffect(()=>{var O;m&&((O=p.current)==null||O.focus())},[m]);const b=e.item.label||e.item.operationName||YF(e.item.query),y=L.useCallback(()=>{var O;E(!1);const{index:_,...M}=e.item;t({...M,label:(O=p.current)==null?void 0:O.value},_)},[t,e.item]),w=L.useCallback(()=>{E(!1)},[]),x=L.useCallback(O=>{O.stopPropagation(),E(!0)},[]),k=L.useCallback(()=>{const{query:O,variables:_,headers:M}=e.item;l==null||l.setValue(O??\"\"),c==null||c.setValue(_??\"\"),o==null||o.setValue(M??\"\"),i(e.item)},[o,e.item,l,i,c]),N=L.useCallback(O=>{O.stopPropagation(),r(e.item)},[e.item,r]),A=L.useCallback(O=>{O.stopPropagation(),n(e.item)},[e.item,n]);return Y.jsx(\"li\",{className:Ei(\"graphiql-history-item\",m&&\"editable\"),children:m?Y.jsxs(Y.Fragment,{children:[Y.jsx(\"input\",{type:\"text\",defaultValue:e.item.label,ref:p,onKeyDown:O=>{O.key===\"Esc\"?E(!1):O.key===\"Enter\"&&(E(!1),t({...e.item,label:O.currentTarget.value}))},placeholder:\"Type a label\"}),Y.jsx(si,{type:\"button\",ref:d,onClick:y,children:\"Save\"}),Y.jsx(si,{type:\"button\",ref:d,onClick:w,children:Y.jsx(Px,{})})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Zi,{label:\"Set active\",children:Y.jsx(si,{type:\"button\",className:\"graphiql-history-item-label\",onClick:k,\"aria-label\":\"Set active\",children:b})}),Y.jsx(Zi,{label:\"Edit label\",children:Y.jsx(si,{type:\"button\",className:\"graphiql-history-item-action\",onClick:x,\"aria-label\":\"Edit label\",children:Y.jsx(IX,{\"aria-hidden\":\"true\"})})}),Y.jsx(Zi,{label:e.item.favorite?\"Remove favorite\":\"Add favorite\",children:Y.jsx(si,{type:\"button\",className:\"graphiql-history-item-action\",onClick:A,\"aria-label\":e.item.favorite?\"Remove favorite\":\"Add favorite\",children:e.item.favorite?Y.jsx(BX,{\"aria-hidden\":\"true\"}):Y.jsx($X,{\"aria-hidden\":\"true\"})})}),Y.jsx(Zi,{label:\"Delete from history\",children:Y.jsx(si,{type:\"button\",className:\"graphiql-history-item-action\",onClick:N,\"aria-label\":\"Delete from history\",children:Y.jsx(HX,{\"aria-hidden\":\"true\"})})})]})})}De(Zm,\"HistoryItem\");function YF(e){return e==null?void 0:e.split(`\n`).map(t=>t.replace(/#(.*)/,\"\")).join(\" \").replaceAll(\"{\",\" { \").replaceAll(\"}\",\" } \").replaceAll(/[\\s]{2,}/g,\" \")}De(YF,\"formatQuery\");const QF=Ju(\"ExecutionContext\");function X0({fetcher:e,getDefaultFieldNames:t,children:n,operationName:r}){if(!e)throw new TypeError(\"The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.\");const{externalFragments:i,headerEditor:o,queryEditor:l,responseEditor:c,variableEditor:p,updateActiveTabValues:d}=wi({nonNull:!0,caller:X0}),m=K0(),E=lb({getDefaultFieldNames:t,caller:X0}),[b,y]=L.useState(!1),[w,x]=L.useState(null),k=L.useRef(0),N=L.useCallback(()=>{w==null||w.unsubscribe(),y(!1),x(null)},[w]),A=L.useCallback(async()=>{if(!l||!c)return;if(w){N();return}const M=De(Z=>{c.setValue(Z),d({response:Z})},\"setResponse\");k.current+=1;const V=k.current;let P=E()||l.getValue();const F=p==null?void 0:p.getValue();let j;try{j=qx({json:F,errorMessageParse:\"Variables are invalid JSON\",errorMessageType:\"Variables are not a JSON object.\"})}catch(Z){M(Z instanceof Error?Z.message:`${Z}`);return}const q=o==null?void 0:o.getValue();let Q;try{Q=qx({json:q,errorMessageParse:\"Headers are invalid JSON\",errorMessageType:\"Headers are not a JSON object.\"})}catch(Z){M(Z instanceof Error?Z.message:`${Z}`);return}if(i){const Z=l.documentAST?C9(l.documentAST,i):[];Z.length>0&&(P+=`\n`+Z.map(W=>dn(W)).join(`\n`))}M(\"\"),y(!0);const ee=r??l.operationName??void 0;m==null||m.addToHistory({query:P,variables:F,headers:q,operationName:ee});try{let Z={data:{}};const W=De(ie=>{if(V!==k.current)return;let se=Array.isArray(ie)?ie:!1;if(!se&&typeof ie==\"object\"&&ie!==null&&\"hasNext\"in ie&&(se=[ie]),se){const de={data:Z.data},J=[...(Z==null?void 0:Z.errors)||[],...se.flatMap(ge=>ge.errors).filter(Boolean)];J.length&&(de.errors=J);for(const ge of se){const{path:ce,data:he,errors:le,...pe}=ge;if(ce){if(!he)throw new Error(`Expected part to contain a data property, but got ${ge}`);V9(de.data,ce,he,{merge:!0})}else he&&(de.data=he);Z={...de,...pe}}y(!1),M(YE(Z))}else{const de=YE(ie);y(!1),M(de)}},\"handleResponse\"),B=e({query:P,variables:j,operationName:ee},{headers:Q??void 0,documentAST:l.documentAST??void 0}),ne=await Promise.resolve(B);if(dO(ne))x(ne.subscribe({next(ie){W(ie)},error(ie){y(!1),ie&&M(fm(ie)),x(null)},complete(){y(!1),x(null)}}));else if(pO(ne)){x({unsubscribe:()=>{var ie,se;return(se=(ie=ne[Symbol.asyncIterator]()).return)==null?void 0:se.call(ie)}});for await(const ie of ne)W(ie);y(!1),x(null)}else W(ne)}catch(Z){y(!1),M(fm(Z)),x(null)}},[E,i,e,o,m,r,l,c,N,w,d,p]),O=!!w,_=L.useMemo(()=>({isFetching:b,isSubscribed:O,operationName:r??null,run:A,stop:N}),[b,O,r,A,N]);return Y.jsx(QF.Provider,{value:_,children:n})}De(X0,\"ExecutionContextProvider\");const dp=ec(QF);function qx({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==\"\"?JSON.parse(e):void 0}catch(o){throw new Error(`${t}: ${o instanceof Error?o.message:o}.`)}const i=typeof r==\"object\"&&r!==null&&!Array.isArray(r);if(r!==void 0&&!i)throw new Error(n);return r}De(qx,\"tryParseJsonObject\");const Z0=\"graphiql\",J0=\"sublime\";let KF=!1;typeof window==\"object\"&&(KF=window.navigator.platform.toLowerCase().indexOf(\"mac\")===0);const eb={[KF?\"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 pp(e,t){const n=await Promise.resolve().then(()=>une).then(r=>r.c).then(r=>typeof r==\"function\"?r:r.default);return await Promise.all((t==null?void 0:t.useCommonAddons)===!1?e:[Promise.resolve().then(()=>dne).then(r=>r.s),Promise.resolve().then(()=>vne).then(r=>r.m),Promise.resolve().then(()=>Ene).then(r=>r.c),Promise.resolve().then(()=>L4).then(r=>r.b),Promise.resolve().then(()=>V4).then(r=>r.f),Promise.resolve().then(()=>Ane).then(r=>r.l),Promise.resolve().then(()=>H4).then(r=>r.s),Promise.resolve().then(()=>K4).then(r=>r.j),Promise.resolve().then(()=>W4).then(r=>r.d),Promise.resolve().then(()=>J4).then(r=>r.s),...e]),n}De(pp,\"importCodeMirror\");const YX=De(e=>e?dn(e):\"\",\"printDefault\");function Bx({field:e}){if(!(\"defaultValue\"in e)||e.defaultValue===void 0)return null;const t=Ll(e.defaultValue,e.type);return t?Y.jsxs(Y.Fragment,{children:[\" = \",Y.jsx(\"span\",{className:\"graphiql-doc-explorer-default-value\",children:YX(t)})]}):null}De(Bx,\"DefaultValue\");const XF=Ju(\"SchemaContext\");function $x(e){if(!e.fetcher)throw new TypeError(\"The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.\");const{initialHeaders:t,headerEditor:n}=wi({nonNull:!0,caller:$x}),[r,i]=L.useState(),[o,l]=L.useState(!1),[c,p]=L.useState(null),d=L.useRef(0);L.useEffect(()=>{i(sy(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),d.current++},[e.schema]);const m=L.useRef(t);L.useEffect(()=>{n&&(m.current=n.getValue())});const{introspectionQuery:E,introspectionQueryName:b,introspectionQuerySansSubscriptions:y}=ZF({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:w,onSchemaChange:x,dangerouslyAssumeSchemaIsValid:k,children:N}=e,A=L.useCallback(()=>{if(sy(e.schema)||e.schema===null)return;const M=++d.current,V=e.schema;async function P(){if(V)return V;const F=JF(m.current);if(!F.isValidJSON){p(\"Introspection failed as headers are invalid.\");return}const j=F.headers?{headers:F.headers}:{},q=hO(w({query:E,operationName:b},j));if(!fO(q)){p(\"Fetcher did not return a Promise for introspection.\");return}l(!0),p(null);let Q=await q;if(typeof Q!=\"object\"||Q===null||!(\"data\"in Q)){const Z=hO(w({query:y,operationName:b},j));if(!fO(Z))throw new Error(\"Fetcher did not return a Promise for introspection.\");Q=await Z}if(l(!1),Q!=null&&Q.data&&\"__schema\"in Q.data)return Q.data;const ee=typeof Q==\"string\"?Q:YE(Q);p(ee)}De(P,\"fetchIntrospectionData\"),P().then(F=>{if(!(M!==d.current||!F))try{const j=UE(F);i(j),x==null||x(j)}catch(j){p(fm(j))}}).catch(F=>{M===d.current&&(p(fm(F)),l(!1))})},[w,b,E,y,x,e.schema]);L.useEffect(()=>{A()},[A]),L.useEffect(()=>{function M(V){V.ctrlKey&&V.key===\"R\"&&A()}return De(M,\"triggerIntrospection\"),window.addEventListener(\"keydown\",M),()=>window.removeEventListener(\"keydown\",M)});const O=L.useMemo(()=>!r||k?[]:ly(r),[r,k]),_=L.useMemo(()=>({fetchError:c,introspect:A,isFetching:o,schema:r,validationErrors:O}),[c,A,o,r,O]);return Y.jsx(XF.Provider,{value:_,children:N})}De($x,\"SchemaContextProvider\");const us=ec(XF);function ZF({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return L.useMemo(()=>{const r=t||\"IntrospectionQuery\";let i=wy({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace(\"query IntrospectionQuery\",`query ${r}`));const o=i.replace(\"subscriptionType { name }\",\"\");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}},[e,t,n])}De(ZF,\"useIntrospectionQuery\");function JF(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}De(JF,\"parseHeaderString\");const tb={name:\"Docs\"},e3=Ju(\"ExplorerContext\");function zx(e){const{schema:t,validationErrors:n}=us({nonNull:!0,caller:zx}),[r,i]=L.useState([tb]),o=L.useCallback(d=>{i(m=>m.at(-1).def===d.def?m:[...m,d])},[]),l=L.useCallback(()=>{i(d=>d.length>1?d.slice(0,-1):d)},[]),c=L.useCallback(()=>{i(d=>d.length===1?d:[tb])},[]);L.useEffect(()=>{t==null||n.length>0?c():i(d=>{if(d.length===1)return d;const m=[tb];let E=null;for(const b of d)if(b!==tb)if(b.def)if(Ml(b.def)){const y=t.getType(b.def.name);if(y)m.push({name:b.name,def:y}),E=y;else break}else{if(E===null)break;if(At(E)||rn(E)){const y=E.getFields()[b.name];if(y)m.push({name:b.name,def:y});else break}else{if(Ii(E)||zn(E)||Rt(E)||sr(E))break;{const y=E;if(y.args.find(w=>w.name===b.name))m.push({name:b.name,def:y});else break}}}else E=null,m.push(b);return m})},[c,t,n]);const p=L.useMemo(()=>({explorerNavStack:r,push:o,pop:l,reset:c}),[r,o,l,c]);return Y.jsx(e3.Provider,{value:p,children:e.children})}De(zx,\"ExplorerContextProvider\");const rc=ec(e3);function Jm(e,t){return Nt(e)?Y.jsxs(Y.Fragment,{children:[Jm(e.ofType,t),\"!\"]}):hn(e)?Y.jsxs(Y.Fragment,{children:[\"[\",Jm(e.ofType,t),\"]\"]}):t(e)}De(Jm,\"renderType\");function cs(e){const{push:t}=rc({nonNull:!0,caller:cs});return e.type?Jm(e.type,n=>Y.jsx(\"a\",{className:\"graphiql-doc-explorer-type-name\",onClick:r=>{r.preventDefault(),t({name:n.name,def:n})},href:\"#\",children:n.name})):null}De(cs,\"TypeLink\");function eg({arg:e,showDefaultValue:t,inline:n}){const r=Y.jsxs(\"span\",{children:[Y.jsx(\"span\",{className:\"graphiql-doc-explorer-argument-name\",children:e.name}),\": \",Y.jsx(cs,{type:e.type}),t!==!1&&Y.jsx(Bx,{field:e})]});return n?r:Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-argument\",children:[r,e.description?Y.jsx(Ys,{type:\"description\",children:e.description}):null,e.deprecationReason?Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-argument-deprecation\",children:[Y.jsx(\"div\",{className:\"graphiql-doc-explorer-argument-deprecation-label\",children:\"Deprecated\"}),Y.jsx(Ys,{type:\"deprecation\",children:e.deprecationReason})]}):null]})}De(eg,\"Argument\");function Hx(e){return e.children?Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-deprecation\",children:[Y.jsx(\"div\",{className:\"graphiql-doc-explorer-deprecation-label\",children:\"Deprecated\"}),Y.jsx(Ys,{type:\"deprecation\",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}De(Hx,\"DeprecationReason\");function t3({directive:e}){return Y.jsxs(\"span\",{className:\"graphiql-doc-explorer-directive\",children:[\"@\",e.name.value]})}De(t3,\"Directive\");function Zo(e){const t=QX[e.title];return Y.jsxs(\"div\",{children:[Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-section-title\",children:[Y.jsx(t,{}),e.title]}),Y.jsx(\"div\",{className:\"graphiql-doc-explorer-section-content\",children:e.children})]})}De(Zo,\"ExplorerSection\");const QX={Arguments:vX,\"Deprecated Arguments\":TX,\"Deprecated Enum Values\":wX,\"Deprecated Fields\":xX,Directives:CX,\"Enum Values\":AX,Fields:OX,Implements:kX,Implementations:Y0,\"Possible Types\":Y0,\"Root Types\":UX,Type:Y0,\"All Schema Types\":Y0};function n3(e){return Y.jsxs(Y.Fragment,{children:[e.field.description?Y.jsx(Ys,{type:\"description\",children:e.field.description}):null,Y.jsx(Hx,{preview:!1,children:e.field.deprecationReason}),Y.jsx(Zo,{title:\"Type\",children:Y.jsx(cs,{type:e.field.type})}),Y.jsx(r3,{field:e.field}),Y.jsx(i3,{field:e.field})]})}De(n3,\"FieldDocumentation\");function r3({field:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!(\"args\"in e))return null;const i=[],o=[];for(const l of e.args)l.deprecationReason?o.push(l):i.push(l);return Y.jsxs(Y.Fragment,{children:[i.length>0?Y.jsx(Zo,{title:\"Arguments\",children:i.map(l=>Y.jsx(eg,{arg:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Zo,{title:\"Deprecated Arguments\",children:o.map(l=>Y.jsx(eg,{arg:l},l.name))}):Y.jsx(ls,{type:\"button\",onClick:r,children:\"Show Deprecated Arguments\"}):null]})}De(r3,\"Arguments\");function i3({field:e}){var t;const n=((t=e.astNode)==null?void 0:t.directives)||[];return!n||n.length===0?null:Y.jsx(Zo,{title:\"Directives\",children:n.map(r=>Y.jsx(\"div\",{children:Y.jsx(t3,{directive:r})},r.name.value))})}De(i3,\"Directives\");function o3(e){var t,n,r,i;const o=e.schema.getQueryType(),l=(n=(t=e.schema).getMutationType)==null?void 0:n.call(t),c=(i=(r=e.schema).getSubscriptionType)==null?void 0:i.call(r),p=e.schema.getTypeMap(),d=[o==null?void 0:o.name,l==null?void 0:l.name,c==null?void 0:c.name];return Y.jsxs(Y.Fragment,{children:[Y.jsx(Ys,{type:\"description\",children:e.schema.description||\"A GraphQL schema provides a root type for each kind of operation.\"}),Y.jsxs(Zo,{title:\"Root Types\",children:[o?Y.jsxs(\"div\",{children:[Y.jsx(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"query\"}),\": \",Y.jsx(cs,{type:o})]}):null,l&&Y.jsxs(\"div\",{children:[Y.jsx(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"mutation\"}),\": \",Y.jsx(cs,{type:l})]}),c&&Y.jsxs(\"div\",{children:[Y.jsx(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"subscription\"}),\": \",Y.jsx(cs,{type:c})]})]}),Y.jsx(Zo,{title:\"All Schema Types\",children:p&&Y.jsx(\"div\",{children:Object.values(p).map(m=>d.includes(m.name)||m.name.startsWith(\"__\")?null:Y.jsx(\"div\",{children:Y.jsx(cs,{type:m})},m.name))})})]})}De(o3,\"SchemaDocumentation\");function If(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}De(If,\"debounce\");function Gx(){const{explorerNavStack:e,push:t}=rc({nonNull:!0,caller:Gx}),n=L.useRef(null),r=nb(),[i,o]=L.useState(\"\"),[l,c]=L.useState(r(i)),p=L.useMemo(()=>If(200,y=>{c(r(y))}),[r]);L.useEffect(()=>{p(i)},[p,i]),L.useEffect(()=>{function y(w){var x;w.metaKey&&w.key===\"k\"&&((x=n.current)==null||x.focus())}return De(y,\"handleKeyDown\"),window.addEventListener(\"keydown\",y),()=>window.removeEventListener(\"keydown\",y)},[]);const d=e.at(-1),m=L.useCallback(y=>{t(\"field\"in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type})},[t]),E=L.useRef(!1),b=L.useCallback(y=>{E.current=y.type===\"focus\"},[]);return e.length===1||At(d.def)||Rt(d.def)||rn(d.def)?Y.jsxs(cp,{as:\"div\",className:\"graphiql-doc-explorer-search\",onChange:m,\"data-state\":E?void 0:\"idle\",\"aria-label\":`Search ${d.name}...`,children:[Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-search-input\",onClick:()=>{var y;(y=n.current)==null||y.focus()},children:[Y.jsx(MX,{}),Y.jsx(cp.Input,{autoComplete:\"off\",onFocus:b,onBlur:b,onChange:y=>o(y.target.value),placeholder:\"⌘ K\",ref:n,value:i,\"data-cy\":\"doc-explorer-input\"})]}),E.current&&Y.jsxs(cp.Options,{\"data-cy\":\"doc-explorer-list\",children:[l.within.length+l.types.length+l.fields.length===0?Y.jsx(\"li\",{className:\"graphiql-doc-explorer-search-empty\",children:\"No results found\"}):l.within.map((y,w)=>Y.jsx(cp.Option,{value:y,\"data-cy\":\"doc-explorer-option\",children:Y.jsx(Wx,{field:y.field,argument:y.argument})},`within-${w}`)),l.within.length>0&&l.types.length+l.fields.length>0?Y.jsx(\"div\",{className:\"graphiql-doc-explorer-search-divider\",children:\"Other results\"}):null,l.types.map((y,w)=>Y.jsx(cp.Option,{value:y,\"data-cy\":\"doc-explorer-option\",children:Y.jsx(ib,{type:y.type})},`type-${w}`)),l.fields.map((y,w)=>Y.jsxs(cp.Option,{value:y,\"data-cy\":\"doc-explorer-option\",children:[Y.jsx(ib,{type:y.type}),\".\",Y.jsx(Wx,{field:y.field,argument:y.argument})]},`field-${w}`))]})]}):null}De(Gx,\"Search\");function nb(e){const{explorerNavStack:t}=rc({nonNull:!0,caller:e||nb}),{schema:n}=us({nonNull:!0,caller:e||nb}),r=t.at(-1);return L.useCallback(i=>{const o={within:[],types:[],fields:[]};if(!n)return o;const l=r.def,c=n.getTypeMap();let p=Object.keys(c);l&&(p=p.filter(d=>d!==l.name),p.unshift(l.name));for(const d of p){if(o.within.length+o.types.length+o.fields.length>=100)break;const m=c[d];if(l!==m&&rb(d,i)&&o.types.push({type:m}),!At(m)&&!Rt(m)&&!rn(m))continue;const E=m.getFields();for(const b in E){const y=E[b];let w;if(!rb(b,i))if(\"args\"in y){if(w=y.args.filter(x=>rb(x.name,i)),w.length===0)continue}else continue;o[l===m?\"within\":\"fields\"].push(...w?w.map(x=>({type:m,field:y,argument:x})):[{type:m,field:y}])}}return o},[r.def,n])}De(nb,\"useSearchResults\");function rb(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,r=>\"\\\\\"+r);return e.search(new RegExp(n,\"i\"))!==-1}catch{return e.toLowerCase().includes(t.toLowerCase())}}De(rb,\"isMatch\");function ib(e){return Y.jsx(\"span\",{className:\"graphiql-doc-explorer-search-type\",children:e.type.name})}De(ib,\"Type\");function Wx({field:e,argument:t}){return Y.jsxs(Y.Fragment,{children:[Y.jsx(\"span\",{className:\"graphiql-doc-explorer-search-field\",children:e.name}),t?Y.jsxs(Y.Fragment,{children:[\"(\",Y.jsx(\"span\",{className:\"graphiql-doc-explorer-search-argument\",children:t.name}),\":\",\" \",Jm(t.type,n=>Y.jsx(ib,{type:n})),\")\"]}):null]})}De(Wx,\"Field$1\");function a3(e){const{push:t}=rc({nonNull:!0});return Y.jsx(\"a\",{className:\"graphiql-doc-explorer-field-name\",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:\"#\",children:e.field.name})}De(a3,\"FieldLink\");function s3(e){return Ml(e.type)?Y.jsxs(Y.Fragment,{children:[e.type.description?Y.jsx(Ys,{type:\"description\",children:e.type.description}):null,Y.jsx(l3,{type:e.type}),Y.jsx(u3,{type:e.type}),Y.jsx(c3,{type:e.type}),Y.jsx(f3,{type:e.type})]}):null}De(s3,\"TypeDocumentation\");function l3({type:e}){return At(e)&&e.getInterfaces().length>0?Y.jsx(Zo,{title:\"Implements\",children:e.getInterfaces().map(t=>Y.jsx(\"div\",{children:Y.jsx(cs,{type:t})},t.name))}):null}De(l3,\"ImplementsInterfaces\");function u3({type:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!At(e)&&!Rt(e)&&!rn(e))return null;const i=e.getFields(),o=[],l=[];for(const c of Object.keys(i).map(p=>i[p]))c.deprecationReason?l.push(c):o.push(c);return Y.jsxs(Y.Fragment,{children:[o.length>0?Y.jsx(Zo,{title:\"Fields\",children:o.map(c=>Y.jsx(Yx,{field:c},c.name))}):null,l.length>0?t||o.length===0?Y.jsx(Zo,{title:\"Deprecated Fields\",children:l.map(c=>Y.jsx(Yx,{field:c},c.name))}):Y.jsx(ls,{type:\"button\",onClick:r,children:\"Show Deprecated Fields\"}):null]})}De(u3,\"Fields\");function Yx({field:e}){const t=\"args\"in e?e.args.filter(n=>!n.deprecationReason):[];return Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-item\",children:[Y.jsxs(\"div\",{children:[Y.jsx(a3,{field:e}),t.length>0?Y.jsxs(Y.Fragment,{children:[\"(\",Y.jsx(\"span\",{children:t.map(n=>t.length===1?Y.jsx(eg,{arg:n,inline:!0},n.name):Y.jsx(\"div\",{className:\"graphiql-doc-explorer-argument-multiple\",children:Y.jsx(eg,{arg:n,inline:!0})},n.name))}),\")\"]}):null,\": \",Y.jsx(cs,{type:e.type}),Y.jsx(Bx,{field:e})]}),e.description?Y.jsx(Ys,{type:\"description\",onlyShowFirstChild:!0,children:e.description}):null,Y.jsx(Hx,{children:e.deprecationReason})]})}De(Yx,\"Field\");function c3({type:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!zn(e))return null;const i=[],o=[];for(const l of e.getValues())l.deprecationReason?o.push(l):i.push(l);return Y.jsxs(Y.Fragment,{children:[i.length>0?Y.jsx(Zo,{title:\"Enum Values\",children:i.map(l=>Y.jsx(Qx,{value:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Zo,{title:\"Deprecated Enum Values\",children:o.map(l=>Y.jsx(Qx,{value:l},l.name))}):Y.jsx(ls,{type:\"button\",onClick:r,children:\"Show Deprecated Values\"}):null]})}De(c3,\"EnumValues\");function Qx({value:e}){return Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-item\",children:[Y.jsx(\"div\",{className:\"graphiql-doc-explorer-enum-value\",children:e.name}),e.description?Y.jsx(Ys,{type:\"description\",children:e.description}):null,e.deprecationReason?Y.jsx(Ys,{type:\"deprecation\",children:e.deprecationReason}):null]})}De(Qx,\"EnumValue\");function f3({type:e}){const{schema:t}=us({nonNull:!0});return!t||!lr(e)?null:Y.jsx(Zo,{title:Rt(e)?\"Implementations\":\"Possible Types\",children:t.getPossibleTypes(e).map(n=>Y.jsx(\"div\",{children:Y.jsx(cs,{type:n})},n.name))})}De(f3,\"PossibleTypes\");function ob(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=us({nonNull:!0,caller:ob}),{explorerNavStack:i,pop:o}=rc({nonNull:!0,caller:ob}),l=i.at(-1);let c=null;e?c=Y.jsx(\"div\",{className:\"graphiql-doc-explorer-error\",children:\"Error fetching schema\"}):r.length>0?c=Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-error\",children:[\"Schema is invalid: \",r[0].message]}):t?c=Y.jsx(Vx,{}):n?i.length===1?c=Y.jsx(o3,{schema:n}):Pd(l.def)?c=Y.jsx(s3,{type:l.def}):l.def&&(c=Y.jsx(n3,{field:l.def})):c=Y.jsx(\"div\",{className:\"graphiql-doc-explorer-error\",children:\"No GraphQL schema available\"});let p;return i.length>1&&(p=i.at(-2).name),Y.jsxs(\"section\",{className:\"graphiql-doc-explorer\",\"aria-label\":\"Documentation Explorer\",children:[Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-header\",children:[Y.jsxs(\"div\",{className:\"graphiql-doc-explorer-header-content\",children:[p&&Y.jsxs(\"a\",{href:\"#\",className:\"graphiql-doc-explorer-back\",onClick:d=>{d.preventDefault(),o()},\"aria-label\":`Go back to ${p}`,children:[Y.jsx(bX,{}),p]}),Y.jsx(\"div\",{className:\"graphiql-doc-explorer-title\",children:l.name})]}),Y.jsx(Gx,{},l.name)]}),Y.jsx(\"div\",{className:\"graphiql-doc-explorer-content\",children:c})]})}De(ob,\"DocExplorer\");const tg={title:\"Documentation Explorer\",icon:De(function(){const e=ab();return(e==null?void 0:e.visiblePlugin)===tg?Y.jsx(_X,{}):Y.jsx(NX,{})},\"Icon\"),content:ob},d3={title:\"History\",icon:DX,content:WF},p3=Ju(\"PluginContext\");function h3(e){const t=tc(),n=rc(),r=K0(),i=!!n,o=!!r,l=L.useMemo(()=>{const y=[],w={};i&&(y.push(tg),w[tg.title]=!0),o&&(y.push(d3),w[d3.title]=!0);for(const x of e.plugins||[]){if(typeof x.title!=\"string\"||!x.title)throw new Error(\"All GraphiQL plugins must have a unique title\");if(w[x.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${x.title}'`);y.push(x),w[x.title]=!0}return y},[i,o,e.plugins]),[c,p]=L.useState(()=>{const y=t==null?void 0:t.get(m3);return l.find(x=>x.title===y)||(y&&(t==null||t.set(m3,\"\")),e.visiblePlugin&&l.find(x=>(typeof e.visiblePlugin==\"string\"?x.title:x)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:d,children:m}=e,E=L.useCallback(y=>{const w=y&&l.find(x=>(typeof y==\"string\"?x.title:x)===y)||null;p(x=>w===x?x:(d==null||d(w),w))},[d,l]);L.useEffect(()=>{e.visiblePlugin&&E(e.visiblePlugin)},[l,e.visiblePlugin,E]);const b=L.useMemo(()=>({plugins:l,setVisiblePlugin:E,visiblePlugin:c}),[l,E,c]);return Y.jsx(p3.Provider,{value:b,children:m})}De(h3,\"PluginContextProvider\");const ab=ec(p3),m3=\"visiblePlugin\";function g3(e,t,n,r,i,o){pp([],{useCommonAddons:!1}).then(c=>{let p,d,m,E,b,y,w,x,k;c.on(t,\"select\",(N,A)=>{if(!p){const O=A.parentNode;p=document.createElement(\"div\"),p.className=\"CodeMirror-hint-information\",O.append(p);const _=document.createElement(\"header\");_.className=\"CodeMirror-hint-information-header\",p.append(_),d=document.createElement(\"span\"),d.className=\"CodeMirror-hint-information-field-name\",_.append(d),m=document.createElement(\"span\"),m.className=\"CodeMirror-hint-information-type-name-pill\",_.append(m),E=document.createElement(\"span\"),m.append(E),b=document.createElement(\"a\"),b.className=\"CodeMirror-hint-information-type-name\",b.href=\"javascript:void 0\",b.addEventListener(\"click\",l),m.append(b),y=document.createElement(\"span\"),m.append(y),w=document.createElement(\"div\"),w.className=\"CodeMirror-hint-information-description\",p.append(w),x=document.createElement(\"div\"),x.className=\"CodeMirror-hint-information-deprecation\",p.append(x);const M=document.createElement(\"span\");M.className=\"CodeMirror-hint-information-deprecation-label\",M.textContent=\"Deprecated\",x.append(M),k=document.createElement(\"div\"),k.className=\"CodeMirror-hint-information-deprecation-reason\",x.append(k);const V=parseInt(window.getComputedStyle(p).paddingBottom.replace(/px$/,\"\"),10)||0,P=parseInt(window.getComputedStyle(p).maxHeight.replace(/px$/,\"\"),10)||0,F=De(()=>{p&&(p.style.paddingTop=O.scrollTop+V+\"px\",p.style.maxHeight=O.scrollTop+P+\"px\")},\"handleScroll\");O.addEventListener(\"scroll\",F);let j;O.addEventListener(\"DOMNodeRemoved\",j=De(q=>{q.target===O&&(O.removeEventListener(\"scroll\",F),O.removeEventListener(\"DOMNodeRemoved\",j),p&&p.removeEventListener(\"click\",l),p=null,d=null,m=null,E=null,b=null,y=null,w=null,x=null,k=null,j=null)},\"onRemoveFn\"))}if(d&&(d.textContent=N.text),m&&E&&b&&y)if(N.type){m.style.display=\"inline\";const O=De(_=>{Nt(_)?(y.textContent=\"!\"+y.textContent,O(_.ofType)):hn(_)?(E.textContent+=\"[\",y.textContent=\"]\"+y.textContent,O(_.ofType)):b.textContent=_.name},\"renderType\");E.textContent=\"\",y.textContent=\"\",O(N.type)}else E.textContent=\"\",b.textContent=\"\",y.textContent=\"\",m.style.display=\"none\";w&&(N.description?(w.style.display=\"block\",w.innerHTML=Q0.render(N.description)):(w.style.display=\"none\",w.innerHTML=\"\")),x&&k&&(N.deprecationReason?(x.style.display=\"block\",k.innerHTML=Q0.render(N.deprecationReason)):(x.style.display=\"none\",k.innerHTML=\"\"))})});function l(c){if(!n||!r||!i||!(c.currentTarget instanceof HTMLElement))return;const p=c.currentTarget.textContent||\"\",d=n.getType(p);d&&(i.setVisiblePlugin(tg),r.push({name:d.name,def:d}),o==null||o(d))}De(l,\"onClickHintInformation\")}De(g3,\"onHasCompletion\");function ng(e,t){L.useEffect(()=>{e&&typeof t==\"string\"&&t!==e.getValue()&&e.setValue(t)},[e,t])}De(ng,\"useSynchronizeValue\");function rg(e,t,n){L.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}De(rg,\"useSynchronizeOption\");function Kx(e,t,n,r,i){const{updateActiveTabValues:o}=wi({nonNull:!0,caller:i}),l=tc();L.useEffect(()=>{if(!e)return;const c=If(500,m=>{!l||n===null||l.set(n,m)}),p=If(100,m=>{o({[r]:m})}),d=De((m,E)=>{if(!E)return;const b=m.getValue();c(b),p(b),t==null||t(b)},\"handleChange\");return e.on(\"change\",d),()=>e.off(\"change\",d)},[t,e,l,n,r,o])}De(Kx,\"useChangeHandler\");function Xx(e,t,n){const{schema:r}=us({nonNull:!0,caller:n}),i=rc(),o=ab();L.useEffect(()=>{if(!e)return;const l=De((c,p)=>{g3(c,p,r,i,o,d=>{t==null||t({kind:\"Type\",type:d,schema:r||void 0})})},\"handleCompletion\");return e.on(\"hasCompletion\",l),()=>e.off(\"hasCompletion\",l)},[t,e,i,o,r])}De(Xx,\"useCompletion\");function fs(e,t,n){L.useEffect(()=>{if(e){for(const r of t)e.removeKeyMap(r);if(n){const r={};for(const i of t)r[i]=()=>n();e.addKeyMap(r)}}},[e,t,n])}De(fs,\"useKeyMap\");function sb({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=wi({nonNull:!0,caller:e||sb});return L.useCallback(()=>{if(!n)return;const r=n.getValue();$9(r),t==null||t(r)},[n,t])}De(sb,\"useCopyQuery\");function Ff({caller:e}={}){const{queryEditor:t}=wi({nonNull:!0,caller:e||Ff}),{schema:n}=us({nonNull:!0,caller:Ff});return L.useCallback(()=>{const r=t==null?void 0:t.documentAST,i=t==null?void 0:t.getValue();!r||!i||t.setValue(dn(F8(r,n)))},[t,n])}De(Ff,\"useMergeQuery\");function hp({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=wi({nonNull:!0,caller:e||hp});return L.useCallback(()=>{if(r){const i=r.getValue();try{const o=JSON.stringify(JSON.parse(i),null,2);o!==i&&r.setValue(o)}catch{}}if(n){const i=n.getValue();try{const o=JSON.stringify(JSON.parse(i),null,2);o!==i&&n.setValue(o)}catch{}}if(t){const i=t.getValue(),o=dn(Li(i));o!==i&&t.setValue(o)}},[t,r,n])}De(hp,\"usePrettifyEditors\");function lb({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=us({nonNull:!0,caller:t||lb}),{queryEditor:r}=wi({nonNull:!0,caller:t||lb});return L.useCallback(()=>{if(!r)return;const i=r.getValue(),{insertions:o,result:l}=D8(n,i,e);return o&&o.length>0&&r.operation(()=>{const c=r.getCursor(),p=r.indexFromPos(c);r.setValue(l||\"\");let d=0;const m=o.map(({index:b,string:y})=>r.markText(r.posFromIndex(b+d),r.posFromIndex(b+(d+=y.length)),{className:\"auto-inserted-leaf\",clearOnEnter:!0,title:\"Automatically added leaf fields\"}));setTimeout(()=>{for(const b of m)b.clear()},7e3);let E=p;for(const{index:b,string:y}of o)b<p&&(E+=y.length);r.setCursor(r.posFromIndex(E))}),l},[e,r,n])}De(lb,\"useAutoCompleteLeafs\");const KX=De(e=>{const t=wi({nonNull:!0})[`${e}Editor`];let n=\"\";const r=(t==null?void 0:t.getValue())??!1;r&&r.length>0&&(n=r);const i=L.useCallback(o=>t==null?void 0:t.setValue(o),[t]);return L.useMemo(()=>[n,i],[n,i])},\"useEditorState\"),XX=De(()=>KX(\"query\"),\"useOperationsEditorState\");function v3([e,t]){const n=L.useRef({pending:null,last:e}),[r,i]=L.useState(e);L.useEffect(()=>{n.current.last===e||(n.current.last=e,n.current.pending===null?i(e):n.current.pending===e?(n.current.pending=null,e!==r&&(n.current.pending=r,t(r))):(n.current.pending=null,i(e)))},[e,r,t]);const o=L.useCallback(l=>{i(l),n.current.pending===null&&n.current.last!==l&&(n.current.pending=l,t(l))},[t]);return L.useMemo(()=>[r,o],[r,o])}De(v3,\"useOptimisticState\");function mp({editorTheme:e=Z0,keyMap:t=J0,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:l,setHeaderEditor:c,shouldPersistHeaders:p}=wi({nonNull:!0,caller:i||mp}),d=dp(),m=Ff({caller:i||mp}),E=hp({caller:i||mp}),b=L.useRef(null);return L.useEffect(()=>{let y=!0;return pp([Promise.resolve().then(()=>qne).then(w=>w.j)]).then(w=>{if(!y)return;const x=b.current;if(!x)return;const k=w(x,{value:o,lineNumbers:!0,tabSize:2,mode:{name:\"javascript\",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:r?\"nocursor\":!1,foldGutter:!0,gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:eb});k.addKeyMap({\"Cmd-Space\"(){k.showHint({completeSingle:!1,container:x})},\"Ctrl-Space\"(){k.showHint({completeSingle:!1,container:x})},\"Alt-Space\"(){k.showHint({completeSingle:!1,container:x})},\"Shift-Space\"(){k.showHint({completeSingle:!1,container:x})}}),k.on(\"keyup\",(N,A)=>{const{code:O,key:_,shiftKey:M}=A,V=O.startsWith(\"Key\"),P=!M&&O.startsWith(\"Digit\");(V||P||_===\"_\"||_==='\"')&&N.execCommand(\"autocomplete\")}),c(k)}),()=>{y=!1}},[e,o,r,c]),rg(l,\"keyMap\",t),Kx(l,n,p?ub:null,\"headers\",mp),fs(l,[\"Cmd-Enter\",\"Ctrl-Enter\"],d==null?void 0:d.run),fs(l,[\"Shift-Ctrl-P\"],E),fs(l,[\"Shift-Ctrl-M\"],m),b}De(mp,\"useHeaderEditor\");const ub=\"headers\",ZX=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([\"\\u2028\",\"\\u2029\",\" \",\" \"]),JX=new RegExp(\"[\"+ZX.join(\"\")+\"]\",\"g\");function y3(e){return e.replace(JX,\" \")}De(y3,\"normalizeWhitespace\");function ic({editorTheme:e=Z0,keyMap:t=J0,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},l){const{schema:c}=us({nonNull:!0,caller:l||ic}),{externalFragments:p,initialQuery:d,queryEditor:m,setOperationName:E,setQueryEditor:b,validationRules:y,variableEditor:w,updateActiveTabValues:x}=wi({nonNull:!0,caller:l||ic}),k=dp(),N=tc(),A=rc(),O=ab(),_=sb({caller:l||ic,onCopyQuery:r}),M=Ff({caller:l||ic}),V=hp({caller:l||ic}),P=L.useRef(null),F=L.useRef(),j=L.useRef(()=>{});L.useEffect(()=>{j.current=ee=>{if(!(!A||!O)){switch(O.setVisiblePlugin(tg),ee.kind){case\"Type\":{A.push({name:ee.type.name,def:ee.type});break}case\"Field\":{A.push({name:ee.field.name,def:ee.field});break}case\"Argument\":{ee.field&&A.push({name:ee.field.name,def:ee.field});break}case\"EnumValue\":{ee.type&&A.push({name:ee.type.name,def:ee.type});break}}n==null||n(ee)}}},[A,n,O]),L.useEffect(()=>{let ee=!0;return pp([Promise.resolve().then(()=>zne).then(Z=>Z.c),Promise.resolve().then(()=>aP).then(Z=>Z.s),Promise.resolve().then(()=>Wne),Promise.resolve().then(()=>Qne),Promise.resolve().then(()=>nre),Promise.resolve().then(()=>ore),Promise.resolve().then(()=>fre)]).then(Z=>{if(!ee)return;F.current=Z;const W=P.current;if(!W)return;const B=Z(W,{value:d,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:\"graphql\",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?\"nocursor\":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:W,externalFragments:void 0},info:{schema:void 0,renderDescription:ie=>Q0.render(ie),onClick(ie){j.current(ie)}},jump:{schema:void 0,onClick(ie){j.current(ie)}},gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:{...eb,\"Cmd-S\"(){},\"Ctrl-S\"(){}}});B.addKeyMap({\"Cmd-Space\"(){B.showHint({completeSingle:!0,container:W})},\"Ctrl-Space\"(){B.showHint({completeSingle:!0,container:W})},\"Alt-Space\"(){B.showHint({completeSingle:!0,container:W})},\"Shift-Space\"(){B.showHint({completeSingle:!0,container:W})},\"Shift-Alt-Space\"(){B.showHint({completeSingle:!0,container:W})}}),B.on(\"keyup\",(ie,se)=>{eZ.test(se.key)&&ie.execCommand(\"autocomplete\")});let ne=!1;B.on(\"startCompletion\",()=>{ne=!0}),B.on(\"endCompletion\",()=>{ne=!1}),B.on(\"keydown\",(ie,se)=>{se.key===\"Escape\"&&ne&&se.stopPropagation()}),B.on(\"beforeChange\",(ie,se)=>{var de;if(se.origin===\"paste\"){const J=se.text.map(y3);(de=se.update)==null||de.call(se,se.from,se.to,J)}}),B.documentAST=null,B.operationName=null,B.operations=null,B.variableToType=null,b(B)}),()=>{ee=!1}},[e,d,o,b]),rg(m,\"keyMap\",t),L.useEffect(()=>{if(!m)return;function ee(W){var B;const ne=O9(c,W.getValue()),ie=P8(W.operations??void 0,W.operationName??void 0,ne==null?void 0:ne.operations);return W.documentAST=(ne==null?void 0:ne.documentAST)??null,W.operationName=ie??null,W.operations=(ne==null?void 0:ne.operations)??null,w&&(w.state.lint.linterOptions.variableToType=ne==null?void 0:ne.variableToType,w.options.lint.variableToType=ne==null?void 0:ne.variableToType,w.options.hintOptions.variableToType=ne==null?void 0:ne.variableToType,(B=F.current)==null||B.signal(w,\"change\",w)),ne?{...ne,operationName:ie}:null}De(ee,\"getAndUpdateOperationFacts\");const Z=If(100,W=>{const B=W.getValue();N==null||N.set(T3,B);const ne=W.operationName,ie=ee(W);(ie==null?void 0:ie.operationName)!==void 0&&(N==null||N.set(tZ,ie.operationName)),i==null||i(B,ie==null?void 0:ie.documentAST),ie!=null&&ie.operationName&&ne!==ie.operationName&&E(ie.operationName),x({query:B,operationName:(ie==null?void 0:ie.operationName)??null})});return ee(m),m.on(\"change\",Z),()=>m.off(\"change\",Z)},[i,m,c,E,N,w,x]),b3(m,c??null,F),E3(m,y??null,F),S3(m,p,F),Xx(m,n||null,ic);const q=k==null?void 0:k.run,Q=L.useCallback(()=>{var ee;if(!q||!m||!m.operations||!m.hasFocus()){q==null||q();return}const Z=m.indexFromPos(m.getCursor());let W;for(const B of m.operations)B.loc&&B.loc.start<=Z&&B.loc.end>=Z&&(W=(ee=B.name)==null?void 0:ee.value);W&&W!==m.operationName&&E(W),q()},[m,q,E]);return fs(m,[\"Cmd-Enter\",\"Ctrl-Enter\"],Q),fs(m,[\"Shift-Ctrl-C\"],_),fs(m,[\"Shift-Ctrl-P\",\"Shift-Ctrl-F\"],V),fs(m,[\"Shift-Ctrl-M\"],M),P}De(ic,\"useQueryEditor\");function b3(e,t,n){L.useEffect(()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,\"change\",e)},[e,t,n])}De(b3,\"useSynchronizeSchema\");function E3(e,t,n){L.useEffect(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,\"change\",e)},[e,t,n])}De(E3,\"useSynchronizeValidationRules\");function S3(e,t,n){const r=L.useMemo(()=>[...t.values()],[t]);L.useEffect(()=>{if(!e)return;const i=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,i&&n.current&&n.current.signal(e,\"change\",e)},[e,r,n])}De(S3,\"useSynchronizeExternalFragments\");const eZ=/^[a-zA-Z0-9_@(]$/,T3=\"query\",tZ=\"operationName\";function w3({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:l,shouldPersistHeaders:c}){const p=l==null?void 0:l.get(og);try{if(!p)throw new Error(\"Storage for tabs is empty\");const d=JSON.parse(p),m=c?n:void 0;if(x3(d)){const E=ig({query:i,variables:o,headers:m});let b=-1;for(let y=0;y<d.tabs.length;y++){const w=d.tabs[y];w.hash=ig({query:w.query,variables:w.variables,headers:w.headers}),w.hash===E&&(b=y)}if(b>=0)d.activeTabIndex=b;else{const y=i?cb(i):null;d.tabs.push({id:nC(),hash:E,title:y||rC,query:i,variables:o,headers:n,operationName:y,response:null}),d.activeTabIndex=d.tabs.length-1}return d}throw new Error(\"Storage for tabs is invalid\")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(eC)}}}De(w3,\"getDefaultTabState\");function x3(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&_3(e,\"activeTabIndex\")&&\"tabs\"in e&&Array.isArray(e.tabs)&&e.tabs.every(C3)}De(x3,\"isTabsState\");function C3(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&Zx(e,\"id\")&&Zx(e,\"title\")&&gp(e,\"query\")&&gp(e,\"variables\")&&gp(e,\"headers\")&&gp(e,\"operationName\")&&gp(e,\"response\")}De(C3,\"isTabState\");function _3(e,t){return t in e&&typeof e[t]==\"number\"}De(_3,\"hasNumberKey\");function Zx(e,t){return t in e&&typeof e[t]==\"string\"}De(Zx,\"hasStringKey\");function gp(e,t){return t in e&&(typeof e[t]==\"string\"||e[t]===null)}De(gp,\"hasStringOrNullKey\");function N3({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return L.useCallback(i=>{const o=(e==null?void 0:e.getValue())??null,l=(t==null?void 0:t.getValue())??null,c=(n==null?void 0:n.getValue())??null,p=(e==null?void 0:e.operationName)??null,d=(r==null?void 0:r.getValue())??null;return tC(i,{query:o,variables:l,headers:c,response:d,operationName:p})},[e,t,n,r])}De(N3,\"useSynchronizeActiveTabValues\");function Jx(e,t=!1){return JSON.stringify(e,(n,r)=>n===\"hash\"||n===\"response\"||!t&&n===\"headers\"?null:r)}De(Jx,\"serializeTabState\");function A3({storage:e,shouldPersistHeaders:t}){const n=L.useMemo(()=>If(500,r=>{e==null||e.set(og,r)}),[e]);return L.useCallback(r=>{n(Jx(r,t))},[t,n])}De(A3,\"useStoreTabs\");function O3({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return L.useCallback(({query:i,variables:o,headers:l,response:c})=>{e==null||e.setValue(i??\"\"),t==null||t.setValue(o??\"\"),n==null||n.setValue(l??\"\"),r==null||r.setValue(c??\"\")},[n,e,r,t])}De(O3,\"useSetEditorValues\");function eC({query:e=null,variables:t=null,headers:n=null}={}){return{id:nC(),hash:ig({query:e,variables:t,headers:n}),title:e&&cb(e)||rC,query:e,variables:t,headers:n,operationName:null,response:null}}De(eC,\"createTab\");function tC(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:ig(i),title:i.operationName||(i.query?cb(i.query):void 0)||rC}})}}De(tC,\"setPropertiesInActiveTab\");function nC(){const e=De(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),\"s4\");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}De(nC,\"guid\");function ig(e){return[e.query??\"\",e.variables??\"\",e.headers??\"\"].join(\"|\")}De(ig,\"hashFromTabContents\");function cb(e){const t=/^(?!#).*(query|subscription|mutation)\\s+([a-zA-Z0-9_]+)/m.exec(e);return(t==null?void 0:t[2])??null}De(cb,\"fuzzyExtractOperationName\");function D3(e){const t=e==null?void 0:e.get(og);if(t){const n=JSON.parse(t);e==null||e.set(og,JSON.stringify(n,(r,i)=>r===\"headers\"?null:i))}}De(D3,\"clearHeadersFromTabs\");const rC=\"<untitled>\",og=\"tabState\";function Pf({editorTheme:e=Z0,keyMap:t=J0,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:l,variableEditor:c,setVariableEditor:p}=wi({nonNull:!0,caller:o||Pf}),d=dp(),m=Ff({caller:o||Pf}),E=hp({caller:o||Pf}),b=L.useRef(null),y=L.useRef();return L.useEffect(()=>{let w=!0;return pp([Promise.resolve().then(()=>pre),Promise.resolve().then(()=>mre),Promise.resolve().then(()=>Ere)]).then(x=>{if(!w)return;y.current=x;const k=b.current;if(!k)return;const N=x(k,{value:l,lineNumbers:!0,tabSize:2,mode:\"graphql-variables\",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?\"nocursor\":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:k,variableToType:void 0},gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:eb});N.addKeyMap({\"Cmd-Space\"(){N.showHint({completeSingle:!1,container:k})},\"Ctrl-Space\"(){N.showHint({completeSingle:!1,container:k})},\"Alt-Space\"(){N.showHint({completeSingle:!1,container:k})},\"Shift-Space\"(){N.showHint({completeSingle:!1,container:k})}}),N.on(\"keyup\",(A,O)=>{const{code:_,key:M,shiftKey:V}=O,P=_.startsWith(\"Key\"),F=!V&&_.startsWith(\"Digit\");(P||F||M===\"_\"||M==='\"')&&A.execCommand(\"autocomplete\")}),p(N)}),()=>{w=!1}},[e,l,i,p]),rg(c,\"keyMap\",t),Kx(c,r,k3,\"variables\",Pf),Xx(c,n||null,Pf),fs(c,[\"Cmd-Enter\",\"Ctrl-Enter\"],d==null?void 0:d.run),fs(c,[\"Shift-Ctrl-P\"],E),fs(c,[\"Shift-Ctrl-M\"],m),b}De(Pf,\"useVariableEditor\");const k3=\"variables\",R3=Ju(\"EditorContext\");function M3(e){const t=tc(),[n,r]=L.useState(null),[i,o]=L.useState(null),[l,c]=L.useState(null),[p,d]=L.useState(null),[m,E]=L.useState(()=>{const ie=(t==null?void 0:t.get(iC))!==null;return e.shouldPersistHeaders!==!1&&ie?(t==null?void 0:t.get(iC))===\"true\":!!e.shouldPersistHeaders});ng(n,e.headers),ng(i,e.query),ng(l,e.response),ng(p,e.variables);const b=A3({storage:t,shouldPersistHeaders:m}),[y]=L.useState(()=>{const ie=e.query??(t==null?void 0:t.get(T3))??null,se=e.variables??(t==null?void 0:t.get(k3))??null,de=e.headers??(t==null?void 0:t.get(ub))??null,J=e.response??\"\",ge=w3({query:ie,variables:se,headers:de,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||nZ,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:m});return b(ge),{query:ie??(ge.activeTabIndex===0?ge.tabs[0].query:null)??\"\",variables:se??\"\",headers:de??e.defaultHeaders??\"\",response:J,tabState:ge}}),[w,x]=L.useState(y.tabState),k=L.useCallback(ie=>{if(ie){t==null||t.set(ub,(n==null?void 0:n.getValue())??\"\");const se=Jx(w,!0);t==null||t.set(og,se)}else t==null||t.set(ub,\"\"),D3(t);E(ie),t==null||t.set(iC,ie.toString())},[t,w,n]),N=L.useRef();L.useEffect(()=>{const ie=!!e.shouldPersistHeaders;(N==null?void 0:N.current)!==ie&&(k(ie),N.current=ie)},[e.shouldPersistHeaders,k]);const A=N3({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),O=O3({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),{onTabChange:_,defaultHeaders:M,children:V}=e,P=L.useCallback(()=>{x(ie=>{const se=A(ie),de={tabs:[...se.tabs,eC({headers:M})],activeTabIndex:se.tabs.length};return b(de),O(de.tabs[de.activeTabIndex]),_==null||_(de),de})},[M,_,O,b,A]),F=L.useCallback(ie=>{x(se=>{const de={...se,activeTabIndex:ie};return b(de),O(de.tabs[de.activeTabIndex]),_==null||_(de),de})},[_,O,b]),j=L.useCallback(ie=>{x(se=>{const de=se.tabs[se.activeTabIndex],J={tabs:ie,activeTabIndex:ie.indexOf(de)};return b(J),O(J.tabs[J.activeTabIndex]),_==null||_(J),J})},[_,O,b]),q=L.useCallback(ie=>{x(se=>{const de={tabs:se.tabs.filter((J,ge)=>ie!==ge),activeTabIndex:Math.max(se.activeTabIndex-1,0)};return b(de),O(de.tabs[de.activeTabIndex]),_==null||_(de),de})},[_,O,b]),Q=L.useCallback(ie=>{x(se=>{const de=tC(se,ie);return b(de),_==null||_(de),de})},[_,b]),{onEditOperationName:ee}=e,Z=L.useCallback(ie=>{i&&(i.operationName=ie,Q({operationName:ie}),ee==null||ee(ie))},[ee,i,Q]),W=L.useMemo(()=>{const ie=new Map;if(Array.isArray(e.externalFragments))for(const se of e.externalFragments)ie.set(se.name.value,se);else if(typeof e.externalFragments==\"string\")Er(Li(e.externalFragments,{}),{FragmentDefinition(se){ie.set(se.name.value,se)}});else if(e.externalFragments)throw new Error(\"The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.\");return ie},[e.externalFragments]),B=L.useMemo(()=>e.validationRules||[],[e.validationRules]),ne=L.useMemo(()=>({...w,addTab:P,changeTab:F,moveTab:j,closeTab:q,updateActiveTabValues:Q,headerEditor:n,queryEditor:i,responseEditor:l,variableEditor:p,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:c,setVariableEditor:d,setOperationName:Z,initialQuery:y.query,initialVariables:y.variables,initialHeaders:y.headers,initialResponse:y.response,externalFragments:W,validationRules:B,shouldPersistHeaders:m,setShouldPersistHeaders:k}),[w,P,F,j,q,Q,n,i,l,p,Z,y,W,B,m,k]);return Y.jsx(R3.Provider,{value:ne,children:V})}De(M3,\"EditorContextProvider\");const wi=ec(R3),iC=\"shouldPersistHeaders\",nZ=`# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a \"{\" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: \"value\") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n`;function fb({isHidden:e,...t}){const{headerEditor:n}=wi({nonNull:!0,caller:fb}),r=mp(t,fb);return L.useEffect(()=>{e||n==null||n.refresh()},[n,e]),Y.jsx(\"div\",{className:Ei(\"graphiql-editor\",e&&\"hidden\"),ref:r})}De(fb,\"HeaderEditor\");function db(e){var t;const[n,r]=L.useState({width:null,height:null}),[i,o]=L.useState(null),l=L.useRef(null),c=(t=oC(e.token))==null?void 0:t.href;L.useEffect(()=>{if(l.current){if(!c){r({width:null,height:null}),o(null);return}fetch(c,{method:\"HEAD\"}).then(d=>{o(d.headers.get(\"Content-Type\"))}).catch(()=>{o(null)})}},[c]);const p=n.width!==null&&n.height!==null?Y.jsxs(\"div\",{children:[n.width,\"x\",n.height,i===null?null:\" \"+i]}):null;return Y.jsxs(\"div\",{children:[Y.jsx(\"img\",{onLoad:()=>{var d,m;r({width:((d=l.current)==null?void 0:d.naturalWidth)??null,height:((m=l.current)==null?void 0:m.naturalHeight)??null})},ref:l,src:c}),p]})}De(db,\"ImagePreview\"),db.shouldRender=De(function(e){const t=oC(e);return t?L3(t):!1},\"shouldRender\");function oC(e){if(e.type!==\"string\")return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:n}=window;return new URL(t,n.protocol+\"//\"+n.host)}catch{return}}De(oC,\"tokenToURL\");function L3(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}De(L3,\"isImageURL\");function aC(e){const t=ic(e,aC);return Y.jsx(\"div\",{className:\"graphiql-editor\",ref:t})}De(aC,\"QueryEditor\");function pb({responseTooltip:e,editorTheme:t=Z0,keyMap:n=J0}={},r){const{fetchError:i,validationErrors:o}=us({nonNull:!0,caller:r||pb}),{initialResponse:l,responseEditor:c,setResponseEditor:p}=wi({nonNull:!0,caller:r||pb}),d=L.useRef(null),m=L.useRef(e);return L.useEffect(()=>{m.current=e},[e]),L.useEffect(()=>{let E=!0;return pp([Promise.resolve().then(()=>V4).then(b=>b.f),Promise.resolve().then(()=>L4).then(b=>b.b),Promise.resolve().then(()=>W4).then(b=>b.d),Promise.resolve().then(()=>aP).then(b=>b.s),Promise.resolve().then(()=>H4).then(b=>b.s),Promise.resolve().then(()=>K4).then(b=>b.j),Promise.resolve().then(()=>J4).then(b=>b.s),Promise.resolve().then(()=>wre),Promise.resolve().then(()=>ere)],{useCommonAddons:!1}).then(b=>{if(!E)return;const y=document.createElement(\"div\");b.registerHelper(\"info\",\"graphql-results\",(k,N,A,O)=>{const _=[],M=m.current;return M&&_.push(Y.jsx(M,{pos:O,token:k})),db.shouldRender(k)&&_.push(Y.jsx(db,{token:k},\"image-preview\")),_.length?(wS.render(_,y),y):(wS.unmountComponentAtNode(y),null)});const w=d.current;if(!w)return;const x=b(w,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:\"graphql-results\",foldGutter:!0,gutters:[\"CodeMirror-foldgutter\"],info:!0,extraKeys:eb});p(x)}),()=>{E=!1}},[t,l,p]),rg(c,\"keyMap\",n),L.useEffect(()=>{i&&(c==null||c.setValue(i)),o.length>0&&(c==null||c.setValue(fm(o)))},[c,i,o]),d}De(pb,\"useResponseEditor\");function sC(e){const t=pb(e,sC);return Y.jsx(\"section\",{className:\"result-window\",\"aria-label\":\"Result Window\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",ref:t})}De(sC,\"ResponseEditor\");function hb({isHidden:e,...t}){const{variableEditor:n}=wi({nonNull:!0,caller:hb}),r=Pf(t,hb);return L.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),Y.jsx(\"div\",{className:Ei(\"graphiql-editor\",e&&\"hidden\"),ref:r})}De(hb,\"VariableEditor\");function lC({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,fetcher:l,getDefaultFieldNames:c,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:w,onTogglePluginVisibility:x,operationName:k,plugins:N,query:A,response:O,schema:_,schemaDescription:M,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j,visiblePlugin:q}){return Y.jsx(IF,{storage:P,children:Y.jsx(GF,{maxHistoryLength:E,children:Y.jsx(M3,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:p,onEditOperationName:b,onTabChange:w,query:A,response:O,shouldPersistHeaders:V,validationRules:F,variables:j,children:Y.jsx($x,{dangerouslyAssumeSchemaIsValid:t,fetcher:l,inputValueDeprecation:d,introspectionQueryName:m,onSchemaChange:y,schema:_,schemaDescription:M,children:Y.jsx(X0,{getDefaultFieldNames:c,fetcher:l,operationName:k,children:Y.jsx(zx,{children:Y.jsx(h3,{onTogglePluginVisibility:x,plugins:N,visiblePlugin:q,children:e})})})})})})})}De(lC,\"GraphiQLProvider\");function I3(){const e=tc(),[t,n]=L.useState(()=>{if(!e)return null;const i=e.get(uC);switch(i){case\"light\":return\"light\";case\"dark\":return\"dark\";default:return typeof i==\"string\"&&e.set(uC,\"\"),null}});L.useLayoutEffect(()=>{typeof window>\"u\"||(document.body.classList.remove(\"graphiql-light\",\"graphiql-dark\"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=L.useCallback(i=>{e==null||e.set(uC,i||\"\"),n(i)},[e]);return L.useMemo(()=>({theme:t,setTheme:r}),[t,r])}De(I3,\"useTheme\");const uC=\"theme\";function mb({defaultSizeRelation:e=rZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:l}){const c=tc(),p=L.useMemo(()=>If(500,A=>{l&&(c==null||c.set(l,A))}),[c,l]),[d,m]=L.useState(()=>{const A=l&&(c==null?void 0:c.get(l));return A===gb||n===\"first\"?\"first\":A===vb||n===\"second\"?\"second\":null}),E=L.useCallback(A=>{A!==d&&(m(A),r==null||r(A))},[d,r]),b=L.useRef(null),y=L.useRef(null),w=L.useRef(null),x=L.useRef(`${e}`);L.useLayoutEffect(()=>{const A=l&&(c==null?void 0:c.get(l))||x.current;b.current&&(b.current.style.display=\"flex\",b.current.style.flex=A===gb||A===vb?x.current:A),w.current&&(w.current.style.display=\"flex\",w.current.style.flex=\"1\"),y.current&&(y.current.style.display=\"flex\")},[t,c,l]);const k=L.useCallback(A=>{const O=A===\"first\"?b.current:w.current;if(O&&(O.style.left=\"-1000px\",O.style.position=\"absolute\",O.style.opacity=\"0\",O.style.height=\"500px\",O.style.width=\"500px\",b.current)){const _=parseFloat(b.current.style.flex);(!Number.isFinite(_)||_<1)&&(b.current.style.flex=\"1\")}},[]),N=L.useCallback(A=>{const O=A===\"first\"?b.current:w.current;if(O&&(O.style.width=\"\",O.style.height=\"\",O.style.opacity=\"\",O.style.position=\"\",O.style.left=\"\",c&&l)){const _=c.get(l);b.current&&_!==gb&&_!==vb&&(b.current.style.flex=_||x.current)}},[c,l]);return L.useLayoutEffect(()=>{d===\"first\"?k(\"first\"):N(\"first\"),d===\"second\"?k(\"second\"):N(\"second\")},[d,k,N]),L.useEffect(()=>{if(!y.current||!b.current||!w.current)return;const A=y.current,O=b.current,_=O.parentElement,M=t===\"horizontal\"?\"clientX\":\"clientY\",V=t===\"horizontal\"?\"left\":\"top\",P=t===\"horizontal\"?\"right\":\"bottom\",F=t===\"horizontal\"?\"clientWidth\":\"clientHeight\";function j(Q){Q.preventDefault();const ee=Q[M]-A.getBoundingClientRect()[V];function Z(B){if(B.buttons===0)return W();const ne=B[M]-_.getBoundingClientRect()[V]-ee,ie=_.getBoundingClientRect()[P]-B[M]+ee-A[F];if(ne<i)E(\"first\"),p(gb);else if(ie<o)E(\"second\"),p(vb);else{E(null);const se=`${ne/ie}`;O.style.flex=se,p(se)}}De(Z,\"handleMouseMove\");function W(){document.removeEventListener(\"mousemove\",Z),document.removeEventListener(\"mouseup\",W)}De(W,\"handleMouseUp\"),document.addEventListener(\"mousemove\",Z),document.addEventListener(\"mouseup\",W)}De(j,\"handleMouseDown\"),A.addEventListener(\"mousedown\",j);function q(){b.current&&(b.current.style.flex=x.current),p(x.current),E(null)}return De(q,\"reset\"),A.addEventListener(\"dblclick\",q),()=>{A.removeEventListener(\"mousedown\",j),A.removeEventListener(\"dblclick\",q)}},[t,E,i,o,p]),L.useMemo(()=>({dragBarRef:y,hiddenElement:d,firstRef:b,setHiddenElement:m,secondRef:w}),[d,m])}De(mb,\"useDragResize\");const rZ=1,gb=\"hide-first\",vb=\"hide-second\",yb=L.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=L.useState(null),l=L.useCallback(c=>{try{t==null||t(c),o(null)}catch(p){o(p instanceof Error?p:new Error(`Toolbar button click failed: ${p}`))}},[t]);return Y.jsx(Zi,{label:e,children:Y.jsx(si,{...n,ref:r,type:\"button\",className:Ei(\"graphiql-toolbar-button\",i&&\"error\",n.className),onClick:l,\"aria-label\":i?i.message:e,\"aria-invalid\":i?\"true\":n[\"aria-invalid\"]})})});yb.displayName=\"ToolbarButton\";function bb(){const{queryEditor:e,setOperationName:t}=wi({nonNull:!0,caller:bb}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:l}=dp({nonNull:!0,caller:bb}),c=(e==null?void 0:e.operations)||[],p=c.length>1&&typeof i!=\"string\",d=n||r,m=`${d?\"Stop\":\"Execute\"} query (Ctrl-Enter)`,E={type:\"button\",className:\"graphiql-execute-button\",children:d?Y.jsx(zX,{}):Y.jsx(FX,{}),\"aria-label\":m};return p&&!d?Y.jsxs(nc,{children:[Y.jsx(Zi,{label:m,children:Y.jsx(nc.Button,{...E})}),Y.jsx(nc.Content,{children:c.map((b,y)=>{const w=b.name?b.name.value:`<Unnamed ${b.operation}>`;return Y.jsx(nc.Item,{onSelect:()=>{var x;const k=(x=b.name)==null?void 0:x.value;e&&k&&k!==e.operationName&&t(k),o()},children:w},`${w}-${y}`)})})]}):Y.jsx(Zi,{label:m,children:Y.jsx(\"button\",{...E,onClick:()=>{d?l():o()}})})}De(bb,\"ExecuteButton\"),Xm(De(({button:e,children:t,label:n,...r})=>Y.jsxs(nc,{...r,children:[Y.jsx(Zi,{label:n,children:Y.jsx(nc.Button,{className:Ei(\"graphiql-un-styled graphiql-toolbar-menu\",r.className),\"aria-label\":n,children:e})}),Y.jsx(nc.Content,{children:t})]}),\"ToolbarMenuRoot\"),{Item:nc.Item});var vp={},ag={};const iZ=W_(x8);var F3;function oZ(){if(F3)return ag;F3=1,Object.defineProperty(ag,\"__esModule\",{value:!0});var e=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol==\"function\"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?\"symbol\":typeof Ce},t=function(){function Ce(ye,Re){var ve=[],ae=!0,Ie=!1,tt=void 0;try{for(var ht=ye[Symbol.iterator](),Qe;!(ae=(Qe=ht.next()).done)&&(ve.push(Qe.value),!(Re&&ve.length===Re));ae=!0);}catch(we){Ie=!0,tt=we}finally{try{!ae&&ht.return&&ht.return()}finally{if(Ie)throw tt}}return ve}return function(ye,Re){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return Ce(ye,Re);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),n=Object.assign||function(Ce){for(var ye=1;ye<arguments.length;ye++){var Re=arguments[ye];for(var ve in Re)Object.prototype.hasOwnProperty.call(Re,ve)&&(Ce[ve]=Re[ve])}return Ce},r=function(){function Ce(ye,Re){for(var ve=0;ve<Re.length;ve++){var ae=Re[ve];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,\"value\"in ae&&(ae.writable=!0),Object.defineProperty(ye,ae.key,ae)}}return function(ye,Re,ve){return Re&&Ce(ye.prototype,Re),ve&&Ce(ye,ve),ye}}();ag.defaultValue=q;var i=Vv(),o=c(i),l=iZ;function c(Ce){if(Ce&&Ce.__esModule)return Ce;var ye={};if(Ce!=null)for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&(ye[Re]=Ce[Re]);return ye.default=Ce,ye}function p(Ce,ye,Re){return ye in Ce?Object.defineProperty(Ce,ye,{value:Re,enumerable:!0,configurable:!0,writable:!0}):Ce[ye]=Re,Ce}function d(Ce){if(Array.isArray(Ce)){for(var ye=0,Re=Array(Ce.length);ye<Ce.length;ye++)Re[ye]=Ce[ye];return Re}else return Array.from(Ce)}function m(Ce,ye){if(!(Ce instanceof ye))throw new TypeError(\"Cannot call a class as a function\")}function E(Ce,ye){if(!Ce)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return ye&&(typeof ye==\"object\"||typeof ye==\"function\")?ye:Ce}function b(Ce,ye){if(typeof ye!=\"function\"&&ye!==null)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof ye);Ce.prototype=Object.create(ye&&ye.prototype,{constructor:{value:Ce,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(Ce,ye):Ce.__proto__=ye)}function y(Ce){return Ce.charAt(0).toUpperCase()+Ce.slice(1)}var w={keyword:\"#B11A04\",def:\"#D2054E\",property:\"#1F61A0\",qualifier:\"#1C92A9\",attribute:\"#8B2BB9\",number:\"#2882F9\",string:\"#D64292\",builtin:\"#D47509\",string2:\"#0B7FC7\",variable:\"#397D13\",atom:\"#CA9800\"},x=o.createElement(\"svg\",{width:\"12\",height:\"9\"},o.createElement(\"path\",{fill:\"#666\",d:\"M 0 2 L 9 2 L 4.5 7.5 z\"})),k=o.createElement(\"svg\",{width:\"12\",height:\"9\"},o.createElement(\"path\",{fill:\"#666\",d:\"M 0 0 L 0 9 L 5.5 4.5 z\"})),N=o.createElement(\"svg\",{style:{marginRight:\"3px\",marginLeft:\"-3px\"},width:\"12\",height:\"12\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},o.createElement(\"path\",{d:\"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z\",fill:\"#666\"})),A=o.createElement(\"svg\",{style:{marginRight:\"3px\",marginLeft:\"-3px\"},width:\"12\",height:\"12\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},o.createElement(\"path\",{d:\"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z\",fill:\"#CCC\"}));function O(Ce){return Ce.checked?Ce.styleConfig.checkboxChecked:Ce.styleConfig.checkboxUnchecked}function _(Ce){var ye=Ce.getFields();if(ye.id){var Re=[\"id\"];return ye.email?Re.push(\"email\"):ye.name&&Re.push(\"name\"),Re}if(ye.edges)return[\"edges\"];if(ye.node)return[\"node\"];if(ye.nodes)return[\"nodes\"];var ve=[];return Object.keys(ye).forEach(function(ae){(0,l.isLeafType)(ye[ae].type)&&ve.push(ae)}),ve.length?ve.slice(0,2):[\"__typename\"]}function M(Ce){return(0,l.isNonNullType)(Ce.type)&&Ce.defaultValue===void 0}function V(Ce){for(var ye=Ce;(0,l.isWrappingType)(ye);)ye=ye.ofType;return ye}function P(Ce){for(var ye=Ce;(0,l.isWrappingType)(ye);)ye=ye.ofType;return ye}function F(Ce,ye){if(typeof ye!=\"string\"&&ye.kind===\"VariableDefinition\")return ye.variable;if((0,l.isScalarType)(Ce))try{switch(Ce.name){case\"String\":return{kind:\"StringValue\",value:String(Ce.parseValue(ye))};case\"Float\":return{kind:\"FloatValue\",value:String(Ce.parseValue(parseFloat(ye)))};case\"Int\":return{kind:\"IntValue\",value:String(Ce.parseValue(parseInt(ye,10)))};case\"Boolean\":try{var Re=JSON.parse(ye);return typeof Re==\"boolean\"?{kind:\"BooleanValue\",value:Re}:{kind:\"BooleanValue\",value:!1}}catch{return{kind:\"BooleanValue\",value:!1}}default:return{kind:\"StringValue\",value:String(Ce.parseValue(ye))}}}catch(ae){return console.error(\"error coercing arg value\",ae,ye),{kind:\"StringValue\",value:ye}}else try{var ve=Ce.parseValue(ye);return ve?{kind:\"EnumValue\",value:String(ve)}:{kind:\"EnumValue\",value:Ce.getValues()[0].name}}catch{return{kind:\"EnumValue\",value:Ce.getValues()[0].name}}}var j=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae._getArgSelection=function(){return ae.props.selection.fields.find(function(we){return we.name.value===ae.props.arg.name})},ae._removeArg=function(){var we=ae.props.selection,ze=ae._getArgSelection();ae._previousArgSelection=ze,ae.props.modifyFields(we.fields.filter(function(et){return et!==ze}),!0)},ae._addArg=function(){var we=ae.props,ze=we.selection,et=we.arg,gt=we.getDefaultScalarArgValue,Pt=we.parentField,cn=we.makeDefaultArg,vt=P(et.type),Dt=null;if(ae._previousArgSelection)Dt=ae._previousArgSelection;else if((0,l.isInputObjectType)(vt)){var mt=vt.getFields();Dt={kind:\"ObjectField\",name:{kind:\"Name\",value:et.name},value:{kind:\"ObjectValue\",fields:de(gt,cn,Pt,Object.keys(mt).map(function(Wt){return mt[Wt]}))}}}else(0,l.isLeafType)(vt)&&(Dt={kind:\"ObjectField\",name:{kind:\"Name\",value:et.name},value:gt(Pt,et,vt)});if(!Dt)console.error(\"Unable to add arg for argType\",vt);else return ae.props.modifyFields([].concat(d(ze.fields||[]),[Dt]),!0)},ae._setArgValue=function(we,ze){var et=!1,gt=!1,Pt=!1;try{we.kind===\"VariableDefinition\"?gt=!0:we===null||typeof we>\"u\"?et=!0:typeof we.kind==\"string\"&&(Pt=!0)}catch{}var cn=ae.props.selection,vt=ae._getArgSelection();if(!vt){console.error(\"missing arg selection when setting arg value\");return}var Dt=P(ae.props.arg.type),mt=(0,l.isLeafType)(Dt)||gt||et||Pt;if(!mt){console.warn(\"Unable to handle non leaf types in InputArgView.setArgValue\",we);return}var Wt=void 0,Vt=void 0;we===null||typeof we>\"u\"?Vt=null:!we.target&&we.kind&&we.kind===\"VariableDefinition\"?(Wt=we,Vt=Wt.variable):typeof we.kind==\"string\"?Vt=we:we.target&&typeof we.target.value==\"string\"&&(Wt=we.target.value,Vt=F(Dt,Wt));var Xt=ae.props.modifyFields((cn.fields||[]).map(function(rt){var Rr=rt===vt,Jt=Rr?n({},rt,{value:Vt}):rt;return Jt}),ze);return Xt},ae._modifyChildFields=function(we){return ae.props.modifyFields(ae.props.selection.fields.map(function(ze){return ze.name.value===ae.props.arg.name?n({},ze,{value:{kind:\"ObjectValue\",fields:we}}):ze}),!0)},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this.props,ae=ve.arg,Ie=ve.parentField,tt=this._getArgSelection();return o.createElement(ne,{argValue:tt?tt.value:null,arg:ae,parentField:Ie,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),ye}(o.PureComponent);function q(Ce){if((0,l.isEnumType)(Ce))return{kind:\"EnumValue\",value:Ce.getValues()[0].name};switch(Ce.name){case\"String\":return{kind:\"StringValue\",value:\"\"};case\"Float\":return{kind:\"FloatValue\",value:\"1.5\"};case\"Int\":return{kind:\"IntValue\",value:\"10\"};case\"Boolean\":return{kind:\"BooleanValue\",value:!1};default:return{kind:\"StringValue\",value:\"\"}}}function Q(Ce,ye,Re){return q(Re)}var ee=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae._getArgSelection=function(){var we=ae.props.selection;return(we.arguments||[]).find(function(ze){return ze.name.value===ae.props.arg.name})},ae._removeArg=function(we){var ze=ae.props.selection,et=ae._getArgSelection();return ae._previousArgSelection=et,ae.props.modifyArguments((ze.arguments||[]).filter(function(gt){return gt!==et}),we)},ae._addArg=function(we){var ze=ae.props,et=ze.selection,gt=ze.getDefaultScalarArgValue,Pt=ze.makeDefaultArg,cn=ze.parentField,vt=ze.arg,Dt=P(vt.type),mt=null;if(ae._previousArgSelection)mt=ae._previousArgSelection;else if((0,l.isInputObjectType)(Dt)){var Wt=Dt.getFields();mt={kind:\"Argument\",name:{kind:\"Name\",value:vt.name},value:{kind:\"ObjectValue\",fields:de(gt,Pt,cn,Object.keys(Wt).map(function(Vt){return Wt[Vt]}))}}}else(0,l.isLeafType)(Dt)&&(mt={kind:\"Argument\",name:{kind:\"Name\",value:vt.name},value:gt(cn,vt,Dt)});return mt?ae.props.modifyArguments([].concat(d(et.arguments||[]),[mt]),we):(console.error(\"Unable to add arg for argType\",Dt),null)},ae._setArgValue=function(we,ze){var et=!1,gt=!1,Pt=!1;try{we.kind===\"VariableDefinition\"?gt=!0:we===null||typeof we>\"u\"?et=!0:typeof we.kind==\"string\"&&(Pt=!0)}catch{}var cn=ae.props.selection,vt=ae._getArgSelection();if(!vt&&!gt){console.error(\"missing arg selection when setting arg value\");return}var Dt=P(ae.props.arg.type),mt=(0,l.isLeafType)(Dt)||gt||et||Pt;if(!mt){console.warn(\"Unable to handle non leaf types in ArgView._setArgValue\");return}var Wt=void 0,Vt=void 0;return we===null||typeof we>\"u\"?Vt=null:we.target&&typeof we.target.value==\"string\"?(Wt=we.target.value,Vt=F(Dt,Wt)):!we.target&&we.kind===\"VariableDefinition\"?(Wt=we,Vt=Wt.variable):typeof we.kind==\"string\"&&(Vt=we),ae.props.modifyArguments((cn.arguments||[]).map(function(Xt){return Xt===vt?n({},Xt,{value:Vt}):Xt}),ze)},ae._setArgFields=function(we,ze){var et=ae.props.selection,gt=ae._getArgSelection();if(!gt){console.error(\"missing arg selection when setting arg value\");return}return ae.props.modifyArguments((et.arguments||[]).map(function(Pt){return Pt===gt?n({},Pt,{value:{kind:\"ObjectValue\",fields:we}}):Pt}),ze)},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this.props,ae=ve.arg,Ie=ve.parentField,tt=this._getArgSelection();return o.createElement(ne,{argValue:tt?tt.value:null,arg:ae,parentField:Ie,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),ye}(o.PureComponent);function Z(Ce){return Ce.ctrlKey&&Ce.key===\"Enter\"}function W(Ce){return Ce!==\"FragmentDefinition\"}var B=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae._handleChange=function(we){ae.props.setArgValue(we,!0)},ve),E(ae,Ie)}return r(ye,[{key:\"componentDidMount\",value:function(){var ve=this._ref,ae=document.activeElement;ve&&ae&&!(ae instanceof HTMLTextAreaElement)&&(ve.focus(),ve.setSelectionRange(0,ve.value.length))}},{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.arg,tt=ae.argValue,ht=ae.styleConfig,Qe=P(Ie.type),we=typeof tt.value==\"string\"?tt.value:\"\",ze=this.props.argValue.kind===\"StringValue\"?ht.colors.string:ht.colors.number;return o.createElement(\"span\",{style:{color:ze}},Qe.name===\"String\"?'\"':\"\",o.createElement(\"input\",{style:{border:\"none\",borderBottom:\"1px solid #888\",outline:\"none\",width:Math.max(1,Math.min(15,we.length))+\"ch\",color:ze},ref:function(gt){ve._ref=gt},type:\"text\",onChange:this._handleChange,value:we}),Qe.name===\"String\"?'\"':\"\")}}]),ye}(o.PureComponent),ne=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae.state={displayArgActions:!1},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.argValue,tt=ae.arg,ht=ae.styleConfig,Qe=P(tt.type),we=null;if(Ie){if(Ie.kind===\"Variable\")we=o.createElement(\"span\",{style:{color:ht.colors.variable}},\"$\",Ie.name.value);else if((0,l.isScalarType)(Qe))Qe.name===\"Boolean\"?we=o.createElement(\"select\",{style:{color:ht.colors.builtin},onChange:this.props.setArgValue,value:Ie.kind===\"BooleanValue\"?Ie.value:void 0},o.createElement(\"option\",{key:\"true\",value:\"true\"},\"true\"),o.createElement(\"option\",{key:\"false\",value:\"false\"},\"false\")):we=o.createElement(B,{setArgValue:this.props.setArgValue,arg:tt,argValue:Ie,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(Qe))Ie.kind===\"EnumValue\"?we=o.createElement(\"select\",{style:{backgroundColor:\"white\",color:ht.colors.string2},onChange:this.props.setArgValue,value:Ie.value},Qe.getValues().map(function(vt){return o.createElement(\"option\",{key:vt.name,value:vt.name},vt.name)})):console.error(\"arg mismatch between arg and selection\",Qe,Ie);else if((0,l.isInputObjectType)(Qe))if(Ie.kind===\"ObjectValue\"){var ze=Qe.getFields();we=o.createElement(\"div\",{style:{marginLeft:16}},Object.keys(ze).sort().map(function(vt){return o.createElement(j,{key:vt,arg:ze[vt],parentField:ve.props.parentField,selection:Ie,modifyFields:ve.props.setArgFields,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit,definition:ve.props.definition})}))}else console.error(\"arg mismatch between arg and selection\",Qe,Ie)}var et=function(){var Dt=tt.name,mt=(ve.props.definition.variableDefinitions||[]).filter(function(kt){return kt.variable.name.value.startsWith(Dt)}).length,Wt=void 0;mt>0?Wt=\"\"+Dt+mt:Wt=Dt;var Vt=tt.type.toString(),Xt=(0,l.parseType)(Vt),rt={kind:\"VariableDefinition\",variable:{kind:\"Variable\",name:{kind:\"Name\",value:Wt}},type:Xt,directives:[]},Rr=function(En){return(ve.props.definition.variableDefinitions||[]).find(function(Un){return Un.variable.name.value===En})},Jt=void 0,ut={};if(typeof Ie<\"u\"&&Ie!==null){var gn=(0,l.visit)(Ie,{Variable:function(En){var Un=En.name.value,xr=Rr(Un);if(ut[Un]=ut[Un]+1||1,!!xr)return xr.defaultValue}}),Ci=rt.type.kind===\"NonNullType\",on=Ci?n({},rt,{type:rt.type.type}):rt;Jt=n({},on,{defaultValue:gn})}else Jt=rt;var wr=Object.entries(ut).filter(function(kt){var En=t(kt,2);En[0];var Un=En[1];return Un<2}).map(function(kt){var En=t(kt,2),Un=En[0];return En[1],Un});if(Jt){var On=ve.props.setArgValue(Jt,!1);if(On){var Mr=On.definitions.find(function(kt){return kt.operation&&kt.name&&kt.name.value&&ve.props.definition.name&&ve.props.definition.name.value?kt.name.value===ve.props.definition.name.value:!1}),xt=[].concat(d(Mr.variableDefinitions||[]),[Jt]).filter(function(kt){return wr.indexOf(kt.variable.name.value)===-1}),Mt=n({},Mr,{variableDefinitions:xt}),yn=On.definitions,Mn=yn.map(function(kt){return Mr===kt?Mt:kt}),tr=n({},On,{definitions:Mn});ve.props.onCommit(tr)}}},gt=function(){if(!(!Ie||!Ie.name||!Ie.name.value)){var Dt=Ie.name.value,mt=(ve.props.definition.variableDefinitions||[]).find(function(on){return on.variable.name.value===Dt});if(mt){var Wt=mt.defaultValue,Vt=ve.props.setArgValue(Wt,{commit:!1});if(Vt){var Xt=Vt.definitions.find(function(on){return on.name.value===ve.props.definition.name.value});if(!Xt)return;var rt=0;(0,l.visit)(Xt,{Variable:function(wr){wr.name.value===Dt&&(rt=rt+1)}});var Rr=Xt.variableDefinitions||[];rt<2&&(Rr=Rr.filter(function(on){return on.variable.name.value!==Dt}));var Jt=n({},Xt,{variableDefinitions:Rr}),ut=Vt.definitions,gn=ut.map(function(on){return Xt===on?Jt:on}),Ci=n({},Vt,{definitions:gn});ve.props.onCommit(Ci)}}}},Pt=Ie&&Ie.kind===\"Variable\",cn=this.state.displayArgActions?o.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",title:Pt?\"Remove the variable\":\"Extract the current value into a GraphQL variable\",onClick:function(Dt){Dt.preventDefault(),Dt.stopPropagation(),Pt?gt():et()},style:ht.styles.actionButtonStyle},o.createElement(\"span\",{style:{color:ht.colors.variable}},\"$\")):null;return o.createElement(\"div\",{style:{cursor:\"pointer\",minHeight:\"16px\",WebkitUserSelect:\"none\",userSelect:\"none\"},\"data-arg-name\":tt.name,\"data-arg-type\":Qe.name,className:\"graphiql-explorer-\"+tt.name},o.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:function(Dt){var mt=!Ie;mt?ve.props.addArg(!0):ve.props.removeArg(!0),ve.setState({displayArgActions:mt})}},(0,l.isInputObjectType)(Qe)?o.createElement(\"span\",null,Ie?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):o.createElement(O,{checked:!!Ie,styleConfig:this.props.styleConfig}),o.createElement(\"span\",{style:{color:ht.colors.attribute},title:tt.description,onMouseEnter:function(){Ie!==null&&typeof Ie<\"u\"&&ve.setState({displayArgActions:!0})},onMouseLeave:function(){return ve.setState({displayArgActions:!1})}},tt.name,M(tt)?\"*\":\"\",\": \",cn,\" \"),\" \"),we||o.createElement(\"span\",null),\" \")}}]),ye}(o.PureComponent),ie=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae._addFragment=function(){ae.props.modifySelections([].concat(d(ae.props.selections),[ae._previousSelection||{kind:\"InlineFragment\",typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:ae.props.implementingType.name}},selectionSet:{kind:\"SelectionSet\",selections:ae.props.getDefaultFieldNames(ae.props.implementingType).map(function(we){return{kind:\"Field\",name:{kind:\"Name\",value:we}}})}}]))},ae._removeFragment=function(){var we=ae._getSelection();ae._previousSelection=we,ae.props.modifySelections(ae.props.selections.filter(function(ze){return ze!==we}))},ae._getSelection=function(){var we=ae.props.selections.find(function(ze){return ze.kind===\"InlineFragment\"&&ze.typeCondition&&ae.props.implementingType.name===ze.typeCondition.name.value});if(!we)return null;if(we.kind===\"InlineFragment\")return we},ae._modifyChildSelections=function(we,ze){var et=ae._getSelection();return ae.props.modifySelections(ae.props.selections.map(function(gt){return gt===et?{directives:gt.directives,kind:\"InlineFragment\",typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:ae.props.implementingType.name}},selectionSet:{kind:\"SelectionSet\",selections:we}}:gt}),ze)},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.implementingType,tt=ae.schema,ht=ae.getDefaultFieldNames,Qe=ae.styleConfig,we=this._getSelection(),ze=Ie.getFields(),et=we?we.selectionSet?we.selectionSet.selections:[]:[];return o.createElement(\"div\",{className:\"graphiql-explorer-\"+Ie.name},o.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:we?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!we,styleConfig:this.props.styleConfig}),o.createElement(\"span\",{style:{color:Qe.colors.atom}},this.props.implementingType.name)),we?o.createElement(\"div\",{style:{marginLeft:16}},Object.keys(ze).sort().map(function(gt){return o.createElement(ge,{key:gt,field:ze[gt],selections:et,modifySelections:ve._modifyChildSelections,schema:tt,getDefaultFieldNames:ht,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,onCommit:ve.props.onCommit,styleConfig:ve.props.styleConfig,definition:ve.props.definition,availableFragments:ve.props.availableFragments})})):null)}}]),ye}(o.PureComponent),se=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae._addFragment=function(){ae.props.modifySelections([].concat(d(ae.props.selections),[ae._previousSelection||{kind:\"FragmentSpread\",name:ae.props.fragment.name}]))},ae._removeFragment=function(){var we=ae._getSelection();ae._previousSelection=we,ae.props.modifySelections(ae.props.selections.filter(function(ze){var et=ze.kind===\"FragmentSpread\"&&ze.name.value===ae.props.fragment.name.value;return!et}))},ae._getSelection=function(){var we=ae.props.selections.find(function(ze){return ze.kind===\"FragmentSpread\"&&ze.name.value===ae.props.fragment.name.value});return we},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this.props.styleConfig,ae=this._getSelection();return o.createElement(\"div\",{className:\"graphiql-explorer-\"+this.props.fragment.name.value},o.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:ae?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!ae,styleConfig:this.props.styleConfig}),o.createElement(\"span\",{style:{color:ve.colors.def},className:\"graphiql-explorer-\"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),ye}(o.PureComponent);function de(Ce,ye,Re,ve){var ae=[],Ie=!0,tt=!1,ht=void 0;try{for(var Qe=ve[Symbol.iterator](),we;!(Ie=(we=Qe.next()).done);Ie=!0){var ze=we.value;if((0,l.isRequiredInputField)(ze)||ye&&ye(Re,ze)){var et=P(ze.type);(0,l.isInputObjectType)(et)?function(){var gt=et.getFields();ae.push({kind:\"ObjectField\",name:{kind:\"Name\",value:ze.name},value:{kind:\"ObjectValue\",fields:de(Ce,ye,Re,Object.keys(gt).map(function(Pt){return gt[Pt]}))}})}():(0,l.isLeafType)(et)&&ae.push({kind:\"ObjectField\",name:{kind:\"Name\",value:ze.name},value:Ce(Re,ze,et)})}}}catch(gt){tt=!0,ht=gt}finally{try{!Ie&&Qe.return&&Qe.return()}finally{if(tt)throw ht}}return ae}function J(Ce,ye,Re){var ve=[],ae=!0,Ie=!1,tt=void 0;try{for(var ht=Re.args[Symbol.iterator](),Qe;!(ae=(Qe=ht.next()).done);ae=!0){var we=Qe.value;if(M(we)||ye&&ye(Re,we)){var ze=P(we.type);(0,l.isInputObjectType)(ze)?function(){var et=ze.getFields();ve.push({kind:\"Argument\",name:{kind:\"Name\",value:we.name},value:{kind:\"ObjectValue\",fields:de(Ce,ye,Re,Object.keys(et).map(function(gt){return et[gt]}))}})}():(0,l.isLeafType)(ze)&&ve.push({kind:\"Argument\",name:{kind:\"Name\",value:we.name},value:Ce(Re,we,ze)})}}}catch(et){Ie=!0,tt=et}finally{try{!ae&&ht.return&&ht.return()}finally{if(Ie)throw tt}}return ve}var ge=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae.state={displayFieldActions:!1},ae._addAllFieldsToSelections=function(we){var ze=we?Object.keys(we).map(function(Pt){return{kind:\"Field\",name:{kind:\"Name\",value:Pt},arguments:[]}}):[],et={kind:\"SelectionSet\",selections:ze},gt=[].concat(d(ae.props.selections.filter(function(Pt){return Pt.kind===\"InlineFragment\"?!0:Pt.name.value!==ae.props.field.name})),[{kind:\"Field\",name:{kind:\"Name\",value:ae.props.field.name},arguments:J(ae.props.getDefaultScalarArgValue,ae.props.makeDefaultArg,ae.props.field),selectionSet:et}]);ae.props.modifySelections(gt)},ae._addFieldToSelections=function(we){var ze=[].concat(d(ae.props.selections),[ae._previousSelection||{kind:\"Field\",name:{kind:\"Name\",value:ae.props.field.name},arguments:J(ae.props.getDefaultScalarArgValue,ae.props.makeDefaultArg,ae.props.field)}]);ae.props.modifySelections(ze)},ae._handleUpdateSelections=function(we){var ze=ae._getSelection();if(ze&&!we.altKey)ae._removeFieldFromSelections();else{var et=(0,l.getNamedType)(ae.props.field.type),gt=(0,l.isObjectType)(et)&&et.getFields(),Pt=!!gt&&we.altKey;Pt?ae._addAllFieldsToSelections(gt):ae._addFieldToSelections(gt)}},ae._removeFieldFromSelections=function(){var we=ae._getSelection();ae._previousSelection=we,ae.props.modifySelections(ae.props.selections.filter(function(ze){return ze!==we}))},ae._getSelection=function(){var we=ae.props.selections.find(function(ze){return ze.kind===\"Field\"&&ae.props.field.name===ze.name.value});if(!we)return null;if(we.kind===\"Field\")return we},ae._setArguments=function(we,ze){var et=ae._getSelection();if(!et){console.error(\"Missing selection when setting arguments\",we);return}return ae.props.modifySelections(ae.props.selections.map(function(gt){return gt===et?{alias:et.alias,arguments:we,directives:et.directives,kind:\"Field\",name:et.name,selectionSet:et.selectionSet}:gt}),ze)},ae._modifyChildSelections=function(we,ze){return ae.props.modifySelections(ae.props.selections.map(function(et){if(et.kind===\"Field\"&&ae.props.field.name===et.name.value){if(et.kind!==\"Field\")throw new Error(\"invalid selection\");return{alias:et.alias,arguments:et.arguments,directives:et.directives,kind:\"Field\",name:et.name,selectionSet:{kind:\"SelectionSet\",selections:we}}}return et}),ze)},ve),E(ae,Ie)}return r(ye,[{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.field,tt=ae.schema,ht=ae.getDefaultFieldNames,Qe=ae.styleConfig,we=this._getSelection(),ze=V(Ie.type),et=Ie.args.sort(function(mt,Wt){return mt.name.localeCompare(Wt.name)}),gt=\"graphiql-explorer-node graphiql-explorer-\"+Ie.name;Ie.isDeprecated&&(gt+=\" graphiql-explorer-deprecated\");var Pt=(0,l.isObjectType)(ze)||(0,l.isInterfaceType)(ze)||(0,l.isUnionType)(ze)?this.props.availableFragments&&this.props.availableFragments[ze.name]:null,cn=o.createElement(\"div\",{className:gt},o.createElement(\"span\",{title:Ie.description,style:{cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",minHeight:\"16px\",WebkitUserSelect:\"none\",userSelect:\"none\"},\"data-field-name\":Ie.name,\"data-field-type\":ze.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Wt=(0,l.isObjectType)(ze)&&we&&we.selectionSet&&we.selectionSet.selections.filter(function(Vt){return Vt.kind!==\"FragmentSpread\"}).length>0;Wt&&ve.setState({displayFieldActions:!0})},onMouseLeave:function(){return ve.setState({displayFieldActions:!1})}},(0,l.isObjectType)(ze)?o.createElement(\"span\",null,we?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(ze)?null:o.createElement(O,{checked:!!we,styleConfig:this.props.styleConfig}),o.createElement(\"span\",{style:{color:Qe.colors.property},className:\"graphiql-explorer-field-view\"},Ie.name),this.state.displayFieldActions?o.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",title:\"Extract selections into a new reusable fragment\",onClick:function(Wt){Wt.preventDefault(),Wt.stopPropagation();var Vt=ze.name,Xt=Vt+\"Fragment\",rt=(Pt||[]).filter(function(on){return on.name.value.startsWith(Xt)}).length;rt>0&&(Xt=\"\"+Xt+rt);var Rr=we?we.selectionSet?we.selectionSet.selections:[]:[],Jt=[{kind:\"FragmentSpread\",name:{kind:\"Name\",value:Xt},directives:[]}],ut={kind:\"FragmentDefinition\",name:{kind:\"Name\",value:Xt},typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:ze.name}},directives:[],selectionSet:{kind:\"SelectionSet\",selections:Rr}},gn=ve._modifyChildSelections(Jt,!1);if(gn){var Ci=n({},gn,{definitions:[].concat(d(gn.definitions),[ut])});ve.props.onCommit(Ci)}else console.warn(\"Unable to complete extractFragment operation\")},style:n({},Qe.styles.actionButtonStyle)},o.createElement(\"span\",null,\"…\")):null),we&&et.length?o.createElement(\"div\",{style:{marginLeft:16},className:\"graphiql-explorer-graphql-arguments\"},et.map(function(mt){return o.createElement(ee,{key:mt.name,parentField:Ie,arg:mt,selection:we,modifyArguments:ve._setArguments,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit,definition:ve.props.definition})})):null);if(we&&((0,l.isObjectType)(ze)||(0,l.isInterfaceType)(ze)||(0,l.isUnionType)(ze))){var vt=(0,l.isUnionType)(ze)?{}:ze.getFields(),Dt=we?we.selectionSet?we.selectionSet.selections:[]:[];return o.createElement(\"div\",{className:\"graphiql-explorer-\"+Ie.name},cn,o.createElement(\"div\",{style:{marginLeft:16}},Pt?Pt.map(function(mt){var Wt=tt.getType(mt.typeCondition.name.value),Vt=mt.name.value;return Wt?o.createElement(se,{key:Vt,fragment:mt,selections:Dt,modifySelections:ve._modifyChildSelections,schema:tt,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit}):null}):null,Object.keys(vt).sort().map(function(mt){return o.createElement(ye,{key:mt,field:vt[mt],selections:Dt,modifySelections:ve._modifyChildSelections,schema:tt,getDefaultFieldNames:ht,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit,definition:ve.props.definition,availableFragments:ve.props.availableFragments})}),(0,l.isInterfaceType)(ze)||(0,l.isUnionType)(ze)?tt.getPossibleTypes(ze).map(function(mt){return o.createElement(ie,{key:mt.name,implementingType:mt,selections:Dt,modifySelections:ve._modifyChildSelections,schema:tt,getDefaultFieldNames:ht,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit,definition:ve.props.definition})}):null))}return cn}}]),ye}(o.PureComponent);function ce(Ce){try{return Ce.trim()?(0,l.parse)(Ce,{noLocation:!0}):null}catch(ye){return new Error(ye)}}var he={kind:\"OperationDefinition\",operation:\"query\",variableDefinitions:[],name:{kind:\"Name\",value:\"MyQuery\"},directives:[],selectionSet:{kind:\"SelectionSet\",selections:[]}},le={kind:\"Document\",definitions:[he]},pe=null;function Te(Ce){if(pe&&pe[0]===Ce)return pe[1];var ye=ce(Ce);return ye?ye instanceof Error?pe?pe[1]:le:(pe=[Ce,ye],ye):le}var Fe={buttonStyle:{fontSize:\"1.2em\",padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"5px 0px\",height:\"40px\",width:\"100%\",display:\"block\",maxWidth:\"none\"},actionButtonStyle:{padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"0px\",maxWidth:\"none\",height:\"15px\",width:\"15px\",display:\"inline-block\",fontSize:\"smaller\"},explorerActionsStyle:{margin:\"4px -8px -8px\",paddingLeft:\"8px\",bottom:\"0px\",width:\"100%\",textAlign:\"center\",background:\"none\",borderTop:\"none\",borderBottom:\"none\"}},$e=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae.state={newOperationType:\"query\",displayTitleActions:!1},ae._modifySelections=function(we,ze){var et=ae.props.definition;et.selectionSet.selections.length===0&&ae._previousOperationDef&&(et=ae._previousOperationDef);var gt=void 0;if(et.kind===\"FragmentDefinition\")gt=n({},et,{selectionSet:n({},et.selectionSet,{selections:we})});else if(et.kind===\"OperationDefinition\"){var Pt=we.filter(function(cn){return!(cn.kind===\"Field\"&&cn.name.value===\"__typename\")});Pt.length===0&&(Pt=[{kind:\"Field\",name:{kind:\"Name\",value:\"__typename ## Placeholder value\"}}]),gt=n({},et,{selectionSet:n({},et.selectionSet,{selections:Pt})})}return ae.props.onEdit(gt,ze)},ae._onOperationRename=function(we){return ae.props.onOperationRename(we.target.value)},ae._handlePotentialRun=function(we){Z(we)&&W(ae.props.definition.kind)&&ae.props.onRunOperation(ae.props.name)},ae._rootViewElId=function(){var we=ae.props,ze=we.operationType,et=we.name,gt=ze+\"-\"+(et||\"unknown\");return gt},ve),E(ae,Ie)}return r(ye,[{key:\"componentDidMount\",value:function(){var ve=this._rootViewElId();this.props.onMount(ve)}},{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.operationType,tt=ae.definition,ht=ae.schema,Qe=ae.getDefaultFieldNames,we=ae.styleConfig,ze=this._rootViewElId(),et=this.props.fields||{},gt=tt,Pt=gt.selectionSet.selections,cn=this.props.name||y(Ie)+\" Name\";return o.createElement(\"div\",{id:ze,tabIndex:\"0\",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?\"none\":\"1px solid #d6d6d6\",marginBottom:\"0em\",paddingBottom:\"1em\"}},o.createElement(\"div\",{style:{color:we.colors.keyword,paddingBottom:4},className:\"graphiql-operation-title-bar\",onMouseEnter:function(){return ve.setState({displayTitleActions:!0})},onMouseLeave:function(){return ve.setState({displayTitleActions:!1})}},Ie,\" \",o.createElement(\"span\",{style:{color:we.colors.def}},o.createElement(\"input\",{style:{color:we.colors.def,border:\"none\",borderBottom:\"1px solid #888\",outline:\"none\",width:Math.max(4,cn.length)+\"ch\"},autoComplete:\"false\",placeholder:y(Ie)+\" Name\",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?o.createElement(\"span\",null,o.createElement(\"br\",null),\"on \"+this.props.onTypeName):\"\",this.state.displayTitleActions?o.createElement(o.Fragment,null,o.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return ve.props.onOperationDestroy()},style:n({},we.styles.actionButtonStyle)},o.createElement(\"span\",null,\"✕\")),o.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return ve.props.onOperationClone()},style:n({},we.styles.actionButtonStyle)},o.createElement(\"span\",null,\"⎘\"))):\"\"),Object.keys(et).sort().map(function(vt){return o.createElement(ge,{key:vt,field:et[vt],selections:Pt,modifySelections:ve._modifySelections,schema:ht,getDefaultFieldNames:Qe,getDefaultScalarArgValue:ve.props.getDefaultScalarArgValue,makeDefaultArg:ve.props.makeDefaultArg,onRunOperation:ve.props.onRunOperation,styleConfig:ve.props.styleConfig,onCommit:ve.props.onCommit,definition:ve.props.definition,availableFragments:ve.props.availableFragments})}))}}]),ye}(o.PureComponent);function qe(){return o.createElement(\"div\",{style:{fontFamily:\"sans-serif\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",margin:\"1em\",marginTop:0,flexGrow:1,justifyContent:\"flex-end\"}},o.createElement(\"div\",{style:{borderTop:\"1px solid #d6d6d6\",paddingTop:\"1em\",width:\"100%\",textAlign:\"center\"}},\"GraphiQL Explorer by \",o.createElement(\"a\",{href:\"https://www.onegraph.com\"},\"OneGraph\")),o.createElement(\"div\",null,\"Contribute on\",\" \",o.createElement(\"a\",{href:\"https://github.com/OneGraph/graphiql-explorer\"},\"GitHub\")))}var dt=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae.state={newOperationType:\"query\",operation:null,operationToScrollTo:null},ae._resetScroll=function(){var we=ae._ref;we&&(we.scrollLeft=0)},ae._onEdit=function(we){return ae.props.onEdit(we)},ae._setAddOperationType=function(we){ae.setState({newOperationType:we})},ae._handleRootViewMount=function(we){if(ae.state.operationToScrollTo&&ae.state.operationToScrollTo===we){var ze=\".graphiql-explorer-root #\"+we,et=document.querySelector(ze);et&&et.scrollIntoView()}},ve),E(ae,Ie)}return r(ye,[{key:\"componentDidMount\",value:function(){this._resetScroll()}},{key:\"render\",value:function(){var ve=this,ae=this.props,Ie=ae.schema,tt=ae.query,ht=ae.makeDefaultArg;if(!Ie)return o.createElement(\"div\",{style:{fontFamily:\"sans-serif\"},className:\"error-container\"},\"No Schema Available\");var Qe={colors:this.props.colors||w,checkboxChecked:this.props.checkboxChecked||N,checkboxUnchecked:this.props.checkboxUnchecked||A,arrowClosed:this.props.arrowClosed||k,arrowOpen:this.props.arrowOpen||x,styles:this.props.styles?n({},Fe,this.props.styles):Fe},we=Ie.getQueryType(),ze=Ie.getMutationType(),et=Ie.getSubscriptionType();if(!we&&!ze&&!et)return o.createElement(\"div\",null,\"Missing query type\");var gt=we&&we.getFields(),Pt=ze&&ze.getFields(),cn=et&&et.getFields(),vt=Te(tt),Dt=this.props.getDefaultFieldNames||_,mt=this.props.getDefaultScalarArgValue||Q,Wt=vt.definitions,Vt=Wt.map(function(xt){return xt.kind===\"FragmentDefinition\"||xt.kind===\"OperationDefinition\"?xt:null}).filter(Boolean),Xt=Vt.length===0?le.definitions:Vt,rt=function(Mt,yn){var Mn=yn==null||yn===\"\"?null:{kind:\"Name\",value:yn,loc:void 0},tr=n({},Mt,{name:Mn}),kt=vt.definitions,En=kt.map(function(Un){return Mt===Un?tr:Un});return n({},vt,{definitions:En})},Rr=function(Mt){var yn=void 0;Mt.kind===\"FragmentDefinition\"?yn=\"fragment\":yn=Mt.operation;var Mn=(Mt.name&&Mt.name.value||\"\")+\"Copy\",tr={kind:\"Name\",value:Mn,loc:void 0},kt=n({},Mt,{name:tr}),En=vt.definitions,Un=[].concat(d(En),[kt]);return ve.setState({operationToScrollTo:yn+\"-\"+Mn}),n({},vt,{definitions:Un})},Jt=function(Mt){var yn=vt.definitions,Mn=yn.filter(function(tr){return Mt!==tr});return n({},vt,{definitions:Mn})},ut=function(Mt){var yn=vt.definitions,Mn=vt.definitions.length===1&&vt.definitions[0]===le.definitions[0],tr=Mn?[]:yn.filter(function(ko){return ko.kind===\"OperationDefinition\"?ko.operation===Mt:!1}),kt=\"My\"+y(Mt)+(tr.length===0?\"\":tr.length+1),En=\"__typename # Placeholder value\",Un={kind:\"SelectionSet\",selections:[{kind:\"Field\",name:{kind:\"Name\",value:En,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},xr={kind:\"OperationDefinition\",operation:Mt,name:{kind:\"Name\",value:kt},variableDefinitions:[],directives:[],selectionSet:Un,loc:null},ra=Mn?[xr]:[].concat(d(vt.definitions),[xr]),La=n({},vt,{definitions:ra});ve.setState({operationToScrollTo:Mt+\"-\"+kt}),ve.props.onEdit((0,l.print)(La))},gn=[gt?o.createElement(\"option\",{key:\"query\",className:\"toolbar-button\",style:Qe.styles.buttonStyle,type:\"link\",value:\"query\"},\"Query\"):null,Pt?o.createElement(\"option\",{key:\"mutation\",className:\"toolbar-button\",style:Qe.styles.buttonStyle,type:\"link\",value:\"mutation\"},\"Mutation\"):null,cn?o.createElement(\"option\",{key:\"subscription\",className:\"toolbar-button\",style:Qe.styles.buttonStyle,type:\"link\",value:\"subscription\"},\"Subscription\"):null].filter(Boolean),Ci=gn.length===0||this.props.hideActions?null:o.createElement(\"div\",{style:{minHeight:\"50px\",maxHeight:\"50px\",overflow:\"none\"}},o.createElement(\"form\",{className:\"variable-editor-title graphiql-explorer-actions\",style:n({},Qe.styles.explorerActionsStyle,{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",borderTop:\"1px solid rgb(214, 214, 214)\"}),onSubmit:function(Mt){return Mt.preventDefault()}},o.createElement(\"span\",{style:{display:\"inline-block\",flexGrow:\"0\",textAlign:\"right\"}},\"Add new\",\" \"),o.createElement(\"select\",{onChange:function(Mt){return ve._setAddOperationType(Mt.target.value)},value:this.state.newOperationType,style:{flexGrow:\"2\"}},gn),o.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return ve.state.newOperationType?ut(ve.state.newOperationType):null},style:n({},Qe.styles.buttonStyle,{height:\"22px\",width:\"22px\"})},o.createElement(\"span\",null,\"+\")))),on=this.props.externalFragments&&this.props.externalFragments.reduce(function(xt,Mt){if(Mt.kind===\"FragmentDefinition\"){var yn=Mt.typeCondition.name.value,Mn=xt[yn]||[],tr=[].concat(d(Mn),[Mt]).sort(function(kt,En){return kt.name.value.localeCompare(En.name.value)});return n({},xt,p({},yn,tr))}return xt},{}),wr=Xt.reduce(function(xt,Mt){if(Mt.kind===\"FragmentDefinition\"){var yn=Mt.typeCondition.name.value,Mn=xt[yn]||[],tr=[].concat(d(Mn),[Mt]).sort(function(kt,En){return kt.name.value.localeCompare(En.name.value)});return n({},xt,p({},yn,tr))}return xt},{}),On=n({},wr,on),Mr=this.props.showAttribution?o.createElement(qe,null):null;return o.createElement(\"div\",{ref:function(Mt){ve._ref=Mt},style:{fontSize:12,textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, \"Droid Sans Mono\", Monaco, monospace',display:\"flex\",flexDirection:\"column\",height:\"100%\"},className:\"graphiql-explorer-root\"},o.createElement(\"div\",{style:{flexGrow:\"1\",overflow:\"scroll\"}},Xt.map(function(xt,Mt){var yn=xt&&xt.name&&xt.name.value,Mn=xt.kind===\"FragmentDefinition\"?\"fragment\":xt&&xt.operation||\"query\",tr=function(Ln){var nn=rt(xt,Ln);ve.props.onEdit((0,l.print)(nn))},kt=function(){var Ln=Rr(xt);ve.props.onEdit((0,l.print)(Ln))},En=function(){var Ln=Jt(xt);ve.props.onEdit((0,l.print)(Ln))},Un=xt.kind===\"FragmentDefinition\"&&xt.typeCondition.kind===\"NamedType\"&&Ie.getType(xt.typeCondition.name.value),xr=Un instanceof l.GraphQLObjectType?Un.getFields():null,ra=Mn===\"query\"?gt:Mn===\"mutation\"?Pt:Mn===\"subscription\"?cn:xt.kind===\"FragmentDefinition\"?xr:null,La=xt.kind===\"FragmentDefinition\"?xt.typeCondition.name.value:null,ko=function(Ln){var nn=(0,l.print)(Ln);ve.props.onEdit(nn)};return o.createElement($e,{key:Mt,isLast:Mt===Xt.length-1,fields:ra,operationType:Mn,name:yn,definition:xt,onOperationRename:tr,onOperationDestroy:En,onOperationClone:kt,onTypeName:La,onMount:ve._handleRootViewMount,onCommit:ko,onEdit:function(Ln,nn){var xn=void 0;if((typeof nn>\"u\"?\"undefined\":e(nn))===\"object\"&&typeof nn.commit<\"u\"?xn=nn.commit:xn=!0,Ln){var qi=n({},vt,{definitions:vt.definitions.map(function(_i){return _i===xt?Ln:_i})});return xn&&ko(qi),qi}else return vt},schema:Ie,getDefaultFieldNames:Dt,getDefaultScalarArgValue:mt,makeDefaultArg:ht,onRunOperation:function(){ve.props.onRunOperation&&ve.props.onRunOperation(yn)},styleConfig:Qe,availableFragments:On})}),Mr),Ci)}}]),ye}(o.PureComponent);dt.defaultProps={getDefaultFieldNames:_,getDefaultScalarArgValue:Q};var pt=function(Ce){b(ye,Ce);function ye(){var Re,ve,ae,Ie;m(this,ye);for(var tt=arguments.length,ht=Array(tt),Qe=0;Qe<tt;Qe++)ht[Qe]=arguments[Qe];return Ie=(ve=(ae=E(this,(Re=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Re,[this].concat(ht))),ae),ae.state={hasError:!1,error:null,errorInfo:null},ve),E(ae,Ie)}return r(ye,[{key:\"componentDidCatch\",value:function(ve,ae){this.setState({hasError:!0,error:ve,errorInfo:ae}),console.error(\"Error in component\",ve,ae)}},{key:\"render\",value:function(){return this.state.hasError?o.createElement(\"div\",{style:{padding:18,fontFamily:\"sans-serif\"}},o.createElement(\"div\",null,\"Something went wrong\"),o.createElement(\"details\",{style:{whiteSpace:\"pre-wrap\"}},this.state.error?this.state.error.toString():null,o.createElement(\"br\",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),ye}(o.Component),at=function(Ce){b(ye,Ce);function ye(){return m(this,ye),E(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return r(ye,[{key:\"render\",value:function(){return o.createElement(\"div\",{className:\"docExplorerWrap\",style:{height:\"100%\",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?\"flex\":\"none\",flexDirection:\"column\",overflow:\"hidden\"}},o.createElement(\"div\",{className:\"doc-explorer-title-bar\"},o.createElement(\"div\",{className:\"doc-explorer-title\"},this.props.title),o.createElement(\"div\",{className:\"doc-explorer-rhs\"},o.createElement(\"div\",{className:\"docExplorerHide\",onClick:this.props.onToggleExplorer},\"✕\"))),o.createElement(\"div\",{className:\"doc-explorer-contents\",style:{padding:\"0px\",overflowY:\"unset\"}},o.createElement(pt,null,o.createElement(dt,this.props))))}}]),ye}(o.PureComponent);return at.defaultValue=q,at.defaultProps={width:320,title:\"Explorer\"},ag.default=at,ag}var P3;function aZ(){if(P3)return vp;P3=1,Object.defineProperty(vp,\"__esModule\",{value:!0}),vp.Explorer=void 0;var e=oZ(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return vp.Explorer=t.default,vp.default=t.default,vp}var sZ=aZ();const j3=({title:e,titleId:t,...n})=>L.createElement(\"svg\",{width:5,height:8,viewBox:\"0 0 5 8\",fill:\"currentColor\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z\"})),lZ=({title:e,titleId:t,...n})=>L.createElement(\"svg\",{height:\"1em\",strokeWidth:1.5,viewBox:\"0 0 24 24\",stroke:\"currentColor\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"path\",{d:\"M18 6H20M22 6H20M20 6V4M20 6V8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),L.createElement(\"path\",{d:\"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})),uZ=({title:e,titleId:t,...n})=>L.createElement(\"svg\",{width:15,height:15,viewBox:\"0 0 15 15\",xmlns:\"http://www.w3.org/2000/svg\",stroke:\"currentColor\",fill:\"none\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"circle\",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),cZ=({title:e,titleId:t,...n})=>L.createElement(\"svg\",{width:15,height:15,viewBox:\"0 0 15 15\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",\"aria-labelledby\":t,...n},e?L.createElement(\"title\",{id:t},e):null,L.createElement(\"circle\",{cx:7.5,cy:7.5,r:7.5}),L.createElement(\"path\",{d:\"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325\",stroke:\"white\",strokeWidth:1.5})),fZ={keyword:\"hsl(var(--color-primary))\",def:\"hsl(var(--color-tertiary))\",property:\"hsl(var(--color-info))\",qualifier:\"hsl(var(--color-secondary))\",attribute:\"hsl(var(--color-tertiary))\",number:\"hsl(var(--color-success))\",string:\"hsl(var(--color-warning))\",builtin:\"hsl(var(--color-success))\",string2:\"hsl(var(--color-secondary))\",variable:\"hsl(var(--color-secondary))\",atom:\"hsl(var(--color-tertiary))\"},dZ=Oe.createElement(j3,{style:{width:\"var(--px-16)\",transform:\"rotate(90deg)\"}}),pZ=Oe.createElement(j3,{style:{width:\"var(--px-16)\"}}),hZ=Oe.createElement(uZ,{style:{marginRight:\"var(--px-4)\"}}),mZ=Oe.createElement(cZ,{style:{fill:\"hsl(var(--color-info))\",marginRight:\"var(--px-4)\"}}),gZ={buttonStyle:{cursor:\"pointer\",fontSize:\"2em\",lineHeight:0},explorerActionsStyle:{paddingTop:\"var(--px-16)\"},actionButtonStyle:{}};function vZ(e){const{setOperationName:t}=wi({nonNull:!0}),{schema:n}=us({nonNull:!0}),{run:r}=dp({nonNull:!0}),i=L.useCallback(c=>{c&&t(c),r()},[r,t]),[o,l]=v3(XX());return Oe.createElement(sZ.Explorer,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:fZ,arrowOpen:dZ,arrowClosed:pZ,checkboxUnchecked:hZ,checkboxChecked:mZ,styles:gZ,query:o,onEdit:l,...e})}function yZ(e){return{title:\"GraphiQL Explorer\",icon:lZ,content:()=>Oe.createElement(vZ,{...e})}}var cC=function(){return cC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cC.apply(this,arguments)},bZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Eb=function(e,t){var n=typeof Symbol==\"function\"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},EZ=parseInt(Oe.version.slice(0,2),10);if(EZ<16)throw new Error([\"GraphiQL 0.18.0 and after is not compatible with React 15 or below.\",\"If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:\",\"https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49\"].join(`\n`));function oc(e){var t,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultTabs,o=e.externalFragments,l=e.fetcher,c=e.getDefaultFieldNames,p=e.headers,d=e.inputValueDeprecation,m=e.introspectionQueryName,E=e.maxHistoryLength,b=e.onEditOperationName,y=e.onSchemaChange,w=e.onTabChange,x=e.onTogglePluginVisibility,k=e.operationName,N=e.plugins,A=e.query,O=e.response,_=e.schema,M=e.schemaDescription,V=e.shouldPersistHeaders,P=e.storage,F=e.validationRules,j=e.variables,q=e.visiblePlugin,Q=e.defaultHeaders,ee=bZ(e,[\"dangerouslyAssumeSchemaIsValid\",\"defaultQuery\",\"defaultTabs\",\"externalFragments\",\"fetcher\",\"getDefaultFieldNames\",\"headers\",\"inputValueDeprecation\",\"introspectionQueryName\",\"maxHistoryLength\",\"onEditOperationName\",\"onSchemaChange\",\"onTabChange\",\"onTogglePluginVisibility\",\"operationName\",\"plugins\",\"query\",\"response\",\"schema\",\"schemaDescription\",\"shouldPersistHeaders\",\"storage\",\"validationRules\",\"variables\",\"visiblePlugin\",\"defaultHeaders\"]);if(typeof l!=\"function\")throw new TypeError(\"The `GraphiQL` component requires a `fetcher` function to be passed as prop.\");return Oe.createElement(lC,{getDefaultFieldNames:c,dangerouslyAssumeSchemaIsValid:n,defaultQuery:r,defaultHeaders:Q,defaultTabs:i,externalFragments:o,fetcher:l,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:w,onTogglePluginVisibility:x,plugins:N,visiblePlugin:q,operationName:k,query:A,response:O,schema:_,schemaDescription:M,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j},Oe.createElement(V3,cC({showPersistHeadersSettings:V!==!1,disableTabs:(t=ee.disableTabs)!==null&&t!==void 0?t:!1},ee)))}oc.Logo=U3,oc.Toolbar=q3,oc.Footer=B3;function V3(e){var t,n,r,i,o=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,l=wi({nonNull:!0}),c=dp({nonNull:!0}),p=us({nonNull:!0}),d=tc(),m=ab(),E=sb({onCopyQuery:e.onCopyQuery}),b=Ff(),y=hp(),w=I3(),x=w.theme,k=w.setTheme,N=(n=m==null?void 0:m.visiblePlugin)===null||n===void 0?void 0:n.content,A=mb({defaultSizeRelation:1/3,direction:\"horizontal\",initiallyHidden:m!=null&&m.visiblePlugin?void 0:\"first\",onHiddenElementChange:function(at){at===\"first\"&&(m==null||m.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:\"docExplorerFlex\"}),O=mb({direction:\"horizontal\",storageKey:\"editorFlex\"}),_=mb({defaultSizeRelation:3,direction:\"vertical\",initiallyHidden:function(){if(!(e.defaultEditorToolsVisibility===\"variables\"||e.defaultEditorToolsVisibility===\"headers\"))return typeof e.defaultEditorToolsVisibility==\"boolean\"?e.defaultEditorToolsVisibility?void 0:\"second\":l.initialVariables||l.initialHeaders?void 0:\"second\"}(),sizeThresholdSecond:60,storageKey:\"secondaryEditorFlex\"}),M=Eb(L.useState(function(){return e.defaultEditorToolsVisibility===\"variables\"||e.defaultEditorToolsVisibility===\"headers\"?e.defaultEditorToolsVisibility:!l.initialVariables&&l.initialHeaders&&o?\"headers\":\"variables\"}),2),V=M[0],P=M[1],F=Eb(L.useState(null),2),j=F[0],q=F[1],Q=Eb(L.useState(null),2),ee=Q[0],Z=Q[1],W=Oe.Children.toArray(e.children),B=W.find(function(at){return dC(at,oc.Logo)})||Oe.createElement(oc.Logo,null),ne=W.find(function(at){return dC(at,oc.Toolbar)})||Oe.createElement(Oe.Fragment,null,Oe.createElement(yb,{onClick:y,label:\"Prettify query (Shift-Ctrl-P)\"},Oe.createElement(jX,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),Oe.createElement(yb,{onClick:b,label:\"Merge fragments into query (Shift-Ctrl-M)\"},Oe.createElement(LX,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),Oe.createElement(yb,{onClick:E,label:\"Copy query (Shift-Ctrl-C)\"},Oe.createElement(SX,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),((r=e.toolbar)===null||r===void 0?void 0:r.additionalContent)&&e.toolbar.additionalContent,((i=e.toolbar)===null||i===void 0?void 0:i.additionalComponent)&&Oe.createElement(e.toolbar.additionalComponent,null)),ie=W.find(function(at){return dC(at,oc.Footer)}),se=L.useCallback(function(){A.hiddenElement===\"first\"&&A.setHiddenElement(null)},[A]),de=L.useCallback(function(){try{d==null||d.clear(),Z(\"success\")}catch{Z(\"error\")}},[d]),J=L.useCallback(function(at){l.setShouldPersistHeaders(at.currentTarget.dataset.value===\"true\")},[l]),ge=L.useCallback(function(at){var Ce=at.currentTarget.dataset.theme;k(Ce||null)},[k]),ce=l.addTab,he=p.introspect,le=l.moveTab,pe=L.useCallback(function(at){q(at.currentTarget.dataset.value)},[]),Te=L.useCallback(function(at){var Ce=m,ye=Number(at.currentTarget.dataset.index),Re=Ce.plugins.find(function(ae,Ie){return ye===Ie}),ve=Re===Ce.visiblePlugin;ve?(Ce.setVisiblePlugin(null),A.setHiddenElement(\"first\")):(Ce.setVisiblePlugin(Re),A.setHiddenElement(null))},[m,A]),Fe=L.useCallback(function(at){_.hiddenElement===\"second\"&&_.setHiddenElement(null),P(at.currentTarget.dataset.name)},[_]),$e=L.useCallback(function(){_.setHiddenElement(_.hiddenElement===\"second\"?null:\"second\")},[_]),qe=L.useCallback(function(at){at||q(null)},[]),dt=L.useCallback(function(at){at||(q(null),Z(null))},[]),pt=Oe.createElement(Zi,{label:\"Add tab\"},Oe.createElement(si,{type:\"button\",className:\"graphiql-tab-add\",onClick:ce,\"aria-label\":\"Add tab\"},Oe.createElement(PX,{\"aria-hidden\":\"true\"})));return Oe.createElement(Zi.Provider,null,Oe.createElement(\"div\",{\"data-testid\":\"graphiql-container\",className:\"graphiql-container\"},Oe.createElement(\"div\",{className:\"graphiql-sidebar\"},Oe.createElement(\"div\",{className:\"graphiql-sidebar-section\"},m==null?void 0:m.plugins.map(function(at,Ce){var ye=at===m.visiblePlugin,Re=\"\".concat(ye?\"Hide\":\"Show\",\" \").concat(at.title),ve=at.icon;return Oe.createElement(Zi,{key:at.title,label:Re},Oe.createElement(si,{type:\"button\",className:ye?\"active\":\"\",onClick:Te,\"data-index\":Ce,\"aria-label\":Re},Oe.createElement(ve,{\"aria-hidden\":\"true\"})))})),Oe.createElement(\"div\",{className:\"graphiql-sidebar-section\"},Oe.createElement(Zi,{label:\"Re-fetch GraphQL schema\"},Oe.createElement(si,{type:\"button\",disabled:p.isFetching,onClick:he,\"aria-label\":\"Re-fetch GraphQL schema\"},Oe.createElement(VX,{className:p.isFetching?\"graphiql-spin\":\"\",\"aria-hidden\":\"true\"}))),Oe.createElement(Zi,{label:\"Open short keys dialog\"},Oe.createElement(si,{type:\"button\",\"data-value\":\"short-keys\",onClick:pe,\"aria-label\":\"Open short keys dialog\"},Oe.createElement(RX,{\"aria-hidden\":\"true\"}))),Oe.createElement(Zi,{label:\"Open settings dialog\"},Oe.createElement(si,{type:\"button\",\"data-value\":\"settings\",onClick:pe,\"aria-label\":\"Open settings dialog\"},Oe.createElement(qX,{\"aria-hidden\":\"true\"}))))),Oe.createElement(\"div\",{className:\"graphiql-main\"},Oe.createElement(\"div\",{ref:A.firstRef,style:{minWidth:\"200px\"}},Oe.createElement(\"div\",{className:\"graphiql-plugin\"},N?Oe.createElement(N,null):null)),(m==null?void 0:m.visiblePlugin)&&Oe.createElement(\"div\",{className:\"graphiql-horizontal-drag-bar\",ref:A.dragBarRef}),Oe.createElement(\"div\",{ref:A.secondRef,className:\"graphiql-sessions\"},Oe.createElement(\"div\",{className:\"graphiql-session-header\"},e.disableTabs?null:Oe.createElement(zF,{values:l.tabs,onReorder:le,\"aria-label\":\"Select active operation\"},l.tabs.length>1&&Oe.createElement(Oe.Fragment,null,l.tabs.map(function(at,Ce){return Oe.createElement(Ux,{key:at.id,value:at,isActive:Ce===l.activeTabIndex},Oe.createElement(Ux.Button,{\"aria-controls\":\"graphiql-session\",id:\"graphiql-session-tab-\".concat(Ce),onClick:function(){c.stop(),l.changeTab(Ce)}},at.title),Oe.createElement(Ux.Close,{onClick:function(){l.activeTabIndex===Ce&&c.stop(),l.closeTab(Ce)}}))}),pt)),Oe.createElement(\"div\",{className:\"graphiql-session-header-right\"},l.tabs.length===1&&pt,B)),Oe.createElement(\"div\",{role:\"tabpanel\",id:\"graphiql-session\",className:\"graphiql-session\",\"aria-labelledby\":\"graphiql-session-tab-\".concat(l.activeTabIndex)},Oe.createElement(\"div\",{ref:O.firstRef},Oe.createElement(\"div\",{className:\"graphiql-editors\".concat(l.tabs.length===1?\" full-height\":\"\")},Oe.createElement(\"div\",{ref:_.firstRef},Oe.createElement(\"section\",{className:\"graphiql-query-editor\",\"aria-label\":\"Query Editor\"},Oe.createElement(aC,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:se,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),Oe.createElement(\"div\",{className:\"graphiql-toolbar\",role:\"toolbar\",\"aria-label\":\"Editor Commands\"},Oe.createElement(bb,null),ne))),Oe.createElement(\"div\",{ref:_.dragBarRef},Oe.createElement(\"div\",{className:\"graphiql-editor-tools\"},Oe.createElement(si,{type:\"button\",className:V===\"variables\"&&_.hiddenElement!==\"second\"?\"active\":\"\",onClick:Fe,\"data-name\":\"variables\"},\"Variables\"),o&&Oe.createElement(si,{type:\"button\",className:V===\"headers\"&&_.hiddenElement!==\"second\"?\"active\":\"\",onClick:Fe,\"data-name\":\"headers\"},\"Headers\"),Oe.createElement(Zi,{label:_.hiddenElement===\"second\"?\"Show editor tools\":\"Hide editor tools\"},Oe.createElement(si,{type:\"button\",onClick:$e,\"aria-label\":_.hiddenElement===\"second\"?\"Show editor tools\":\"Hide editor tools\",className:\"graphiql-toggle-editor-tools\"},_.hiddenElement===\"second\"?Oe.createElement(EX,{className:\"graphiql-chevron-icon\",\"aria-hidden\":\"true\"}):Oe.createElement(yX,{className:\"graphiql-chevron-icon\",\"aria-hidden\":\"true\"}))))),Oe.createElement(\"div\",{ref:_.secondRef},Oe.createElement(\"section\",{className:\"graphiql-editor-tool\",\"aria-label\":V===\"variables\"?\"Variables\":\"Headers\"},Oe.createElement(hb,{editorTheme:e.editorTheme,isHidden:V!==\"variables\",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:se,readOnly:e.readOnly}),o&&Oe.createElement(fb,{editorTheme:e.editorTheme,isHidden:V!==\"headers\",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),Oe.createElement(\"div\",{className:\"graphiql-horizontal-drag-bar\",ref:O.dragBarRef}),Oe.createElement(\"div\",{ref:O.secondRef},Oe.createElement(\"div\",{className:\"graphiql-response\"},c.isFetching?Oe.createElement(Vx,null):null,Oe.createElement(sC,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),ie))))),Oe.createElement(fp,{open:j===\"short-keys\",onOpenChange:qe},Oe.createElement(\"div\",{className:\"graphiql-dialog-header\"},Oe.createElement(fp.Title,{className:\"graphiql-dialog-title\"},\"Short Keys\"),Oe.createElement(fp.Close,null)),Oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},Oe.createElement(TZ,{keyMap:e.keyMap||\"sublime\"}))),Oe.createElement(fp,{open:j===\"settings\",onOpenChange:dt},Oe.createElement(\"div\",{className:\"graphiql-dialog-header\"},Oe.createElement(fp.Title,{className:\"graphiql-dialog-title\"},\"Settings\"),Oe.createElement(fp.Close,null)),e.showPersistHeadersSettings?Oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},Oe.createElement(\"div\",null,Oe.createElement(\"div\",{className:\"graphiql-dialog-section-title\"},\"Persist headers\"),Oe.createElement(\"div\",{className:\"graphiql-dialog-section-caption\"},\"Save headers upon reloading.\",\" \",Oe.createElement(\"span\",{className:\"graphiql-warning-text\"},\"Only enable if you trust this device.\"))),Oe.createElement(jx,null,Oe.createElement(ls,{type:\"button\",id:\"enable-persist-headers\",className:l.shouldPersistHeaders?\"active\":\"\",\"data-value\":\"true\",onClick:J},\"On\"),Oe.createElement(ls,{type:\"button\",id:\"disable-persist-headers\",className:l.shouldPersistHeaders?\"\":\"active\",onClick:J},\"Off\"))):null,Oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},Oe.createElement(\"div\",null,Oe.createElement(\"div\",{className:\"graphiql-dialog-section-title\"},\"Theme\"),Oe.createElement(\"div\",{className:\"graphiql-dialog-section-caption\"},\"Adjust how the interface looks like.\")),Oe.createElement(jx,null,Oe.createElement(ls,{type:\"button\",className:x===null?\"active\":\"\",onClick:ge},\"System\"),Oe.createElement(ls,{type:\"button\",className:x===\"light\"?\"active\":\"\",\"data-theme\":\"light\",onClick:ge},\"Light\"),Oe.createElement(ls,{type:\"button\",className:x===\"dark\"?\"active\":\"\",\"data-theme\":\"dark\",onClick:ge},\"Dark\"))),d?Oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},Oe.createElement(\"div\",null,Oe.createElement(\"div\",{className:\"graphiql-dialog-section-title\"},\"Clear storage\"),Oe.createElement(\"div\",{className:\"graphiql-dialog-section-caption\"},\"Remove all locally stored data and start fresh.\")),Oe.createElement(ls,{type:\"button\",state:ee||void 0,disabled:ee===\"success\",onClick:de},{success:\"Cleared data\",error:\"Failed\"}[ee]||\"Clear data\")):null)))}var fC=typeof window<\"u\"&&window.navigator.platform.toLowerCase().indexOf(\"mac\")===0?\"Cmd\":\"Ctrl\",SZ=Object.entries({\"Search in editor\":[fC,\"F\"],\"Search in documentation\":[fC,\"K\"],\"Execute query\":[fC,\"Enter\"],\"Prettify editors\":[\"Ctrl\",\"Shift\",\"P\"],\"Merge fragments definitions into operation definition\":[\"Ctrl\",\"Shift\",\"M\"],\"Copy query\":[\"Ctrl\",\"Shift\",\"C\"],\"Re-fetch schema using introspection\":[\"Ctrl\",\"Shift\",\"R\"]});function TZ(e){var t=e.keyMap;return Oe.createElement(\"div\",null,Oe.createElement(\"table\",{className:\"graphiql-table\"},Oe.createElement(\"thead\",null,Oe.createElement(\"tr\",null,Oe.createElement(\"th\",null,\"Short Key\"),Oe.createElement(\"th\",null,\"Function\"))),Oe.createElement(\"tbody\",null,SZ.map(function(n){var r=Eb(n,2),i=r[0],o=r[1];return Oe.createElement(\"tr\",{key:i},Oe.createElement(\"td\",null,o.map(function(l,c,p){return Oe.createElement(L.Fragment,{key:l},Oe.createElement(\"code\",{className:\"graphiql-key\"},l),c!==p.length-1&&\" + \")})),Oe.createElement(\"td\",null,i))}))),Oe.createElement(\"p\",null,\"The editors use\",\" \",Oe.createElement(\"a\",{href:\"https://codemirror.net/5/doc/manual.html#keymaps\",target:\"_blank\",rel:\"noopener noreferrer\"},\"CodeMirror Key Maps\"),\" \",\"that add more short keys. This instance of Graph\",Oe.createElement(\"em\",null,\"i\"),\"QL uses\",\" \",Oe.createElement(\"code\",null,t),\".\"))}function U3(e){return Oe.createElement(\"div\",{className:\"graphiql-logo\"},e.children||Oe.createElement(\"a\",{className:\"graphiql-logo-link\",href:\"https://github.com/graphql/graphiql\",target:\"_blank\",rel:\"noreferrer\"},\"Graph\",Oe.createElement(\"em\",null,\"i\"),\"QL\"))}U3.displayName=\"GraphiQLLogo\";function q3(e){return Oe.createElement(Oe.Fragment,null,e.children)}q3.displayName=\"GraphiQLToolbar\";function B3(e){return Oe.createElement(\"div\",{className:\"graphiql-footer\"},e.children)}B3.displayName=\"GraphiQLFooter\";function dC(e,t){var n;return!((n=e==null?void 0:e.type)===null||n===void 0)&&n.displayName&&e.type.displayName===t.displayName?!0:e.type===t}var Qs=null;typeof WebSocket<\"u\"?Qs=WebSocket:typeof MozWebSocket<\"u\"?Qs=MozWebSocket:typeof global<\"u\"?Qs=global.WebSocket||global.MozWebSocket:typeof window<\"u\"?Qs=window.WebSocket||window.MozWebSocket:typeof self<\"u\"&&(Qs=self.WebSocket||self.MozWebSocket);function Hn(e){return(e==null?void 0:e.then)!=null}function Ht(e,t,n){function r(){const i=e();if(wZ(i))return t(i.__fakePromiseValue);if(xZ(i))throw i.__fakeRejectError;return Hn(i)?i.then(t,n):t(i)}if(!n)return r();try{return r()}catch(i){return n(i)}}function Bl(e){return Hn(e)?e:{then(t){if(t){const n=t(e);return Hn(n)?n:Bl(n)}return this},catch(){return this},finally(t){if(t){const n=t();return Hn(n)?n.then(()=>e,()=>e):Bl(e)}return this},[Symbol.toStringTag]:\"Promise\",__fakePromiseValue:e}}function $3(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,o){e=i,t=o}),get resolve(){return e},get reject(){return t}}}function z3(e){return Hn(e)?e:{then(){return this},catch(t){return t?Bl(t(e)):this},finally(t){return t&&t(),this},__fakeRejectError:e,[Symbol.toStringTag]:\"Promise\"}}function pC(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,o,l;typeof e.return==\"function\"&&(i=e.return,o=d=>{const m=()=>{throw d};return i.call(e).then(m,m)});function c(d){return d.done?d:Ht(()=>d.value,m=>Ht(()=>t(m),H3,o))}let p;if(n){let d;const m=n;p=E=>(d||(d=Ht(()=>E,b=>Ht(()=>m(b),H3,o))),d)}return{next(){return e.next().then(c,p)},return(){const d=i?i.call(e).then(c,p):Bl({value:void 0,done:!0});return l?d.then(l):d},throw(d){return typeof e.throw==\"function\"?e.throw(d).then(c,p):o?o(d):z3(d)},[Symbol.asyncIterator](){return this}}}function H3(e){return{value:e,done:!1}}function wZ(e){return(e==null?void 0:e.__fakePromiseValue)!=null}function xZ(e){return(e==null?void 0:e.__fakeRejectError)!=null}const G3=new WeakMap;function CZ(e,t){let n=G3.get(e);return!n&&t&&(n=t(e),G3.set(e,n)),n}const _Z=/^(https?|wss?|file):\\/\\//;function NZ(e){if(typeof e!=\"string\"||!_Z.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch{return!1}}const AZ=e=>Array.isArray(e)?e:e?[e]:[];function OZ(e){return e!=null}const W3=3;function ji(e){return Sb(e,[])}function Sb(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return DZ(e,t);default:return String(e)}}function Y3(e){return(e.name=\"GraphQLError\")?e.toString():`${e.name}: ${e.message};\n ${e.stack}`}function DZ(e,t){if(e===null)return\"null\";if(e instanceof Error)return e.name===\"AggregateError\"?Y3(e)+`\n`+Q3(e.errors,t):Y3(e);if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(kZ(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:Sb(r,n)}else if(Array.isArray(e))return Q3(e,n);return RZ(e,n)}function kZ(e){return typeof e.toJSON==\"function\"}function RZ(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>W3?\"[\"+MZ(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+Sb(o,t)).join(\", \")+\" }\"}function Q3(e,t){if(e.length===0)return\"[]\";if(t.length>W3)return\"[Array]\";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(Sb(e[i],t));return\"[\"+r.join(\", \")+\"]\"}function MZ(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 LZ=[\"message\",\"locations\",\"path\",\"nodes\",\"source\",\"positions\",\"originalError\",\"name\",\"stack\",\"extensions\"];function IZ(e){return e!=null&&typeof e==\"object\"&&Object.keys(e).every(t=>LZ.includes(t))}function Kt(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&IZ(t.originalError)&&(t.originalError=Kt(t.originalError.message,t.originalError)),Uv.major>=17?new Me(e,t):new Me(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}function hC(e,t){return Kt(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}function FZ(e){return e!=null&&typeof e==\"object\"&&Symbol.iterator in e}function K3(e){return typeof e==\"object\"&&e!==null}function X3(e,t,n){let r=n;for(const i of e)r=Ht(()=>r,o=>t(o,i));return r}function Z3(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function J3(e,t,n={}){const r={},o=(t.arguments??[]).reduce((l,c)=>({...l,[c.name.value]:c}),{});for(const{name:l,type:c,defaultValue:p}of e.args){const d=o[l];if(!d){if(p!==void 0)r[l]=p;else if(Nt(c))throw Kt(`Argument \"${l}\" of required type \"${ji(c)}\" was not provided.`,{nodes:[t]});continue}const m=d.value;let E=m.kind===X.NULL;if(m.kind===X.VARIABLE){const y=m.name.value;if(n==null||!Z3(n,y)){if(p!==void 0)r[l]=p;else if(Nt(c))throw Kt(`Argument \"${l}\" of required type \"${ji(c)}\" was provided the variable \"$${y}\" which was not provided a runtime value.`,{nodes:[m]});continue}E=n[y]==null}if(E&&Nt(c))throw Kt(`Argument \"${l}\" of non-null type \"${ji(c)}\" must not be null.`,{nodes:[m]});const b=Ca(m,c,n);if(b===void 0)throw Kt(`Argument \"${l}\" has invalid value ${dn(m)}.`,{nodes:[m]});r[l]=b}return r}function Aa(e){const t=new WeakMap;return function(r){const i=t.get(r);if(i===void 0){const o=e(r);return t.set(r,o),o}return i}}function Tb(e){const t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);const c=e(r,i);return o.set(i,c),c}const l=o.get(i);if(l===void 0){const c=e(r,i);return o.set(i,c),c}return l}}function PZ(e){const t=new WeakMap;return function(r,i,o){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);const d=new WeakMap;l.set(i,d);const m=e(r,i,o);return d.set(o,m),m}let c=l.get(i);if(!c){c=new WeakMap,l.set(i,c);const d=e(r,i,o);return c.set(o,d),d}const p=c.get(o);if(p===void 0){const d=e(r,i,o);return c.set(o,d),d}return p}}function jZ(e){const t=new WeakMap;return function(r,i,o,l,c){let p=t.get(r);if(!p){p=new WeakMap,t.set(r,p);const y=new WeakMap;p.set(i,y);const w=new WeakMap;y.set(o,w);const x=new WeakMap;w.set(l,x);const k=e(r,i,o,l,c);return x.set(c,k),k}let d=p.get(i);if(!d){d=new WeakMap,p.set(i,d);const y=new WeakMap;d.set(o,y);const w=new WeakMap;y.set(l,w);const x=e(r,i,o,l,c);return w.set(c,x),x}let m=d.get(o);if(!m){m=new WeakMap,d.set(o,m);const y=new WeakMap;m.set(l,y);const w=e(r,i,o,l,c);return y.set(c,w),w}let E=m.get(l);if(!E){E=new WeakMap,m.set(l,E);const y=e(r,i,o,l,c);return E.set(c,y),y}const b=E.get(c);if(b===void 0){const y=e(r,i,o,l,c);return E.set(c,y),y}return b}}function VZ(e){const t=new WeakMap;return function(r,i,o,l){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);const d=e(r,i,o,l);return c.set(i,d),d}const p=c.get(i);if(p===void 0){const d=e(r,i,o,l);return c.set(i,d),d}return p}}function mC(e){if(Nt(e)){const t=mC(e.ofType);if(t.kind===X.NON_NULL_TYPE)throw new Error(`Invalid type node ${ji(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:X.NON_NULL_TYPE,type:t}}else if(hn(e))return{kind:X.LIST_TYPE,type:mC(e.ofType)};return{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:e.name}}}function wb(e,t,n){const i=gC(e).get(t);if(i==null)throw Kt(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const UZ=Aa(function(t){const n=qZ(t);return new Set([...n].map(r=>r.name))}),qZ=Aa(function(t){const n=gC(t);return new Set(n.values())}),gC=Aa(function(t){const n=new Map,r=t.getQueryType();r&&n.set(\"query\",r);const i=t.getMutationType();i&&n.set(\"mutation\",i);const o=t.getSubscriptionType();return o&&n.set(\"subscription\",o),n}),BZ=80;let e5={};function $Z(e){return`\n# `+e.replace(/\\n/g,`\n# `)}function Et(e,t){return e?e.filter(n=>n).join(t||\"\"):\"\"}function t5(e){return(e==null?void 0:e.some(t=>t.includes(`\n`)))??!1}function zZ(e){return(t,n,r,i,o)=>{var m;const l=[],c=i.reduce((E,b)=>([\"fields\",\"arguments\",\"values\"].includes(b)&&E.name&&l.push(E.name.value),E[b]),o[0]),p=[...l,(m=c==null?void 0:c.name)==null?void 0:m.value].filter(Boolean).join(\".\"),d=[];return t.kind.includes(\"Definition\")&&e5[p]&&d.push(...e5[p]),Et([...d.map($Z),t.description,e(t,n,r,i,o)],`\n`)}}function sg(e){return e&&` ${e.replace(/\\n/g,`\n `)}`}function ds(e){return e&&e.length!==0?`{\n${sg(Et(e,`\n`))}\n}`:\"\"}function Tr(e,t,n){return t?e+t+(n||\"\"):\"\"}function HZ(e,t=!1){const n=e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"\"\"/g,'\\\\\"\"\"');return(e[0]===\" \"||e[0]===\"\t\")&&e.indexOf(`\n`)===-1?`\"\"\"${n.replace(/\"$/,`\"\n`)}\"\"\"`:`\"\"\"\n${t?n:sg(n)}\n\"\"\"`}const n5={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>Et(e.definitions,`\n\n`)},OperationDefinition:{leave:e=>{const t=Tr(\"(\",Et(e.variableDefinitions,\", \"),\")\");return Et([e.operation,Et([e.name,t]),Et(e.directives,\" \")],\" \")+\" \"+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+Tr(\" = \",n)+Tr(\" \",Et(r,\" \"))},SelectionSet:{leave:({selections:e})=>ds(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Tr(\"\",e,\": \")+t;let l=o+Tr(\"(\",Et(n,\", \"),\")\");return l.length>BZ&&(l=o+Tr(`(\n`,sg(Et(n,`\n`)),`\n)`)),Et([l,Et(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+Tr(\" \",Et(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Et([\"...\",Tr(\"on \",e),Et(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Tr(\"(\",Et(n,\", \"),\")\")} on ${t} ${Tr(\"\",Et(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?HZ(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+Et(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+Et(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+Tr(\"(\",Et(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Et([\"schema\",Et(e,\" \"),ds(t)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Et([\"scalar\",e,Et(t,\" \")],\" \")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et([\"type\",e,Tr(\"implements \",Et(t,\" & \")),Et(n,\" \"),ds(r)],\" \")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(t5(t)?Tr(`(\n`,sg(Et(t,`\n`)),`\n)`):Tr(\"(\",Et(t,\", \"),\")\"))+\": \"+n+Tr(\" \",Et(r,\" \"))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Et([e+\": \"+t,Tr(\"= \",n),Et(r,\" \")],\" \")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et([\"interface\",e,Tr(\"implements \",Et(t,\" & \")),Et(n,\" \"),ds(r)],\" \")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Et([\"union\",e,Et(t,\" \"),Tr(\"= \",Et(n,\" | \"))],\" \")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Et([\"enum\",e,Et(t,\" \"),ds(n)],\" \")},EnumValueDefinition:{leave:({name:e,directives:t})=>Et([e,Et(t,\" \")],\" \")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Et([\"input\",e,Et(t,\" \"),ds(n)],\" \")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>\"directive @\"+e+(t5(t)?Tr(`(\n`,sg(Et(t,`\n`)),`\n)`):Tr(\"(\",Et(t,\", \"),\")\"))+(n?\" repeatable\":\"\")+\" on \"+Et(r,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Et([\"extend schema\",Et(e,\" \"),ds(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Et([\"extend scalar\",e,Et(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et([\"extend type\",e,Tr(\"implements \",Et(t,\" & \")),Et(n,\" \"),ds(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et([\"extend interface\",e,Tr(\"implements \",Et(t,\" & \")),Et(n,\" \"),ds(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Et([\"extend union\",e,Et(t,\" \"),Tr(\"= \",Et(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Et([\"extend enum\",e,Et(t,\" \"),ds(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Et([\"extend input\",e,Et(t,\" \"),ds(n)],\" \")}};Object.keys(n5).reduce((e,t)=>({...e,[t]:{leave:zZ(n5[t].leave)}}),{});function GZ(e){const t=e.loc;if(!t)return;const n=[];let r=t.startToken.prev;for(;r!=null&&r.kind===Ve.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){const i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(`\n`):void 0}function WZ(e){const t=e.split(/\\r\\n|[\\n\\r]/g),n=YZ(t);if(n!==0)for(let r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&i5(t[0]);)t.shift();for(;t.length>0&&i5(t[t.length-1]);)t.pop();return t.join(`\n`)}function YZ(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=r5(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function r5(e){let t=0;for(;t<e.length&&(e[t]===\" \"||e[t]===\"\t\");)t++;return t}function i5(e){return r5(e)===e.length}function QZ(e,t,n={}){let r;try{n.commentDescriptions&&t.includes(\"#\")?(r=KZ(t,n),n.noLocation&&(r=Li(dn(r),n))):r=Li(new Wh(t,e),n)}catch(i){if(i.message.includes(\"EOF\")&&t.replace(/(\\#[^*]*)/g,\"\").trim()===\"\")r={kind:X.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function KZ(e,t={}){const n=Li(e,{...t,noLocation:!1});return Er(n,{leave:i=>{if(XZ(i)){const o=GZ(i);if(o!==void 0){const l=WZ(`\n`+o),c=l.includes(`\n`);return i.description?{...i,description:{...i.description,value:i.description.value+`\n`+l,block:!0}}:{...i,description:{kind:X.STRING,value:l,block:c}}}}}})}function XZ(e){return cy(e)||e.kind===X.FIELD_DEFINITION||e.kind===X.INPUT_VALUE_DEFINITION||e.kind===X.ENUM_VALUE_DEFINITION}var Bt;(function(e){e.TYPE=\"MapperKind.TYPE\",e.SCALAR_TYPE=\"MapperKind.SCALAR_TYPE\",e.ENUM_TYPE=\"MapperKind.ENUM_TYPE\",e.COMPOSITE_TYPE=\"MapperKind.COMPOSITE_TYPE\",e.OBJECT_TYPE=\"MapperKind.OBJECT_TYPE\",e.INPUT_OBJECT_TYPE=\"MapperKind.INPUT_OBJECT_TYPE\",e.ABSTRACT_TYPE=\"MapperKind.ABSTRACT_TYPE\",e.UNION_TYPE=\"MapperKind.UNION_TYPE\",e.INTERFACE_TYPE=\"MapperKind.INTERFACE_TYPE\",e.ROOT_OBJECT=\"MapperKind.ROOT_OBJECT\",e.QUERY=\"MapperKind.QUERY\",e.MUTATION=\"MapperKind.MUTATION\",e.SUBSCRIPTION=\"MapperKind.SUBSCRIPTION\",e.DIRECTIVE=\"MapperKind.DIRECTIVE\",e.FIELD=\"MapperKind.FIELD\",e.COMPOSITE_FIELD=\"MapperKind.COMPOSITE_FIELD\",e.OBJECT_FIELD=\"MapperKind.OBJECT_FIELD\",e.ROOT_FIELD=\"MapperKind.ROOT_FIELD\",e.QUERY_ROOT_FIELD=\"MapperKind.QUERY_ROOT_FIELD\",e.MUTATION_ROOT_FIELD=\"MapperKind.MUTATION_ROOT_FIELD\",e.SUBSCRIPTION_ROOT_FIELD=\"MapperKind.SUBSCRIPTION_ROOT_FIELD\",e.INTERFACE_FIELD=\"MapperKind.INTERFACE_FIELD\",e.INPUT_OBJECT_FIELD=\"MapperKind.INPUT_OBJECT_FIELD\",e.ARGUMENT=\"MapperKind.ARGUMENT\",e.ENUM_VALUE=\"MapperKind.ENUM_VALUE\"})(Bt||(Bt={}));function yp(e,t){if(t){const n=e[t.name];if(At(n))return n}}function ZZ(e){if(\"getFields\"in e){const t=e.getFields();for(const n in t)return t[n].name===\"_fake\"}return!1}function JZ(e){switch(e.name){case Xh.name:return Xh;case Zh.name:return Zh;case Xn.name:return Xn;case Zn.name:return Zn;case Jh.name:return Jh;default:return e}}function eJ(e,t){const n=Object.create(null);for(const b in e)n[b]=e[b];const r=Object.create(null);for(const b in n){const y=n[b];if(y==null||b.startsWith(\"__\"))continue;const w=y.name;if(!w.startsWith(\"__\")){if(r[w]!=null){console.warn(`Duplicate schema type name ${w} found; keeping the existing one found in the schema`);continue}r[w]=y}}for(const b in r)r[b]=c(r[b]);const i=t.map(b=>o(b));return{typeMap:r,directives:i};function o(b){if(oy(b))return b;const y=b.toConfig();return y.args=l(y.args),new No(y)}function l(b){const y={};for(const w in b){const x=b[w],k=E(x.type);k!=null&&(x.type=k,y[w]=x)}return y}function c(b){if(At(b)){const y=b.toConfig(),w={...y,fields:()=>p(y.fields),interfaces:()=>m(y.interfaces)};return new ii(w)}else if(Rt(b)){const y=b.toConfig(),w={...y,fields:()=>p(y.fields)};return\"interfaces\"in w&&(w.interfaces=()=>m(y.interfaces)),new so(w)}else if(sr(b)){const y=b.toConfig(),w={...y,types:()=>m(y.types)};return new ju(w)}else if(rn(b)){const y=b.toConfig(),w={...y,fields:()=>d(y.fields)};return new lo(w)}else if(zn(b)){const y=b.toConfig();return new Qi(y)}else if(Ii(b)){if(tm(b))return b;const y=b.toConfig();return new Ea(y)}throw new Error(`Unexpected schema type: ${b}`)}function p(b){const y={};for(const w in b){const x=b[w],k=E(x.type);k!=null&&x.args&&(x.type=k,x.args=l(x.args),y[w]=x)}return y}function d(b){const y={};for(const w in b){const x=b[w],k=E(x.type);k!=null&&(x.type=k,y[w]=x)}return y}function m(b){const y=[];for(const w of b){const x=E(w);x!=null&&y.push(x)}return y}function E(b){if(hn(b)){const y=E(b.ofType);return y!=null?new ur(y):null}else if(Nt(b)){const y=E(b.ofType);return y!=null?new jt(y):null}else if(Ml(b)){let y=n[b.name];return y===void 0&&(y=ZZ(b)?JZ(b):c(b),r[y.name]=n[b.name]=y),y!=null?r[y.name]:null}return null}}function xb(e,t,n=null,r=null){if(t==null)return t;const i=Fu(e);if(ri(i))return n!=null?n(i,t):t;if(hn(i))return AZ(t).map(o=>xb(i.ofType,o,n,r));if(rn(i)){const o=i.getFields(),l={};for(const c in t){const p=o[c];p!=null&&(l[c]=xb(p.type,t[c],n,r))}return r!=null?r(i,l):l}}function Cb(e,t){return xb(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function tJ(e,t){return xb(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function nJ(e,t={}){const n=s5(a5(vC(o5(rJ(vC(o5(e.getTypeMap(),e,Cb),e,t,c=>ri(c)),e,t),e,tJ),e,t,c=>!ri(c)),e,t),e,t),r=e.getDirectives(),i=iJ(r,e,t),{typeMap:o,directives:l}=eJ(n,i);return new cf({...e.toConfig(),query:yp(o,yp(n,e.getQueryType())),mutation:yp(o,yp(n,e.getMutationType())),subscription:yp(o,yp(n,e.getSubscriptionType())),types:Object.values(o),directives:l})}function vC(e,t,n,r=()=>!0){const i={};for(const o in e)if(!o.startsWith(\"__\")){const l=e[o];if(l==null||!r(l)){i[o]=l;continue}const c=aJ(t,n,o);if(c==null){i[o]=l;continue}const p=c(l,t);if(p===void 0){i[o]=l;continue}i[o]=p}return i}function rJ(e,t,n){const r=fJ(n);return r?vC(e,t,{[Bt.ENUM_TYPE]:i=>{const o=i.toConfig(),l=o.values,c={};for(const p in l){const d=l[p],m=r(d,i.name,t,p);if(m===void 0)c[p]=d;else if(Array.isArray(m)){const[E,b]=m;c[E]=b===void 0?d:b}else m!==null&&(c[p]=m)}return Nb(new Qi({...o,values:c}))}},i=>zn(i)):e}function o5(e,t,n){const r=s5(e,t,{[Bt.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=_b(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return a5(r,t,{[Bt.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=_b(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function _b(e,t){if(hn(t)){const n=_b(e,t.ofType);return n!=null?new ur(n):null}else if(Nt(t)){const n=_b(e,t.ofType);return n!=null?new jt(n):null}else if(Ml(t)){const n=e[t.name];return n??null}return null}function a5(e,t,n){const r={};for(const i in e)if(!i.startsWith(\"__\")){const o=e[i];if(!At(o)&&!Rt(o)&&!rn(o)){r[i]=o;continue}const l=lJ(t,n,i);if(l==null){r[i]=o;continue}const c=o.toConfig(),p=c.fields,d={};for(const m in p){const E=p[m],b=l(E,m,i,t);if(b===void 0)d[m]=E;else if(Array.isArray(b)){const[y,w]=b;w.astNode!=null&&(w.astNode={...w.astNode,name:{...w.astNode.name,value:y}}),d[y]=w===void 0?E:w}else b!==null&&(d[m]=b)}At(o)?r[i]=Nb(new ii({...c,fields:d})):Rt(o)?r[i]=Nb(new so({...c,fields:d})):r[i]=Nb(new lo({...c,fields:d}))}return r}function s5(e,t,n){const r={};for(const i in e)if(!i.startsWith(\"__\")){const o=e[i];if(!At(o)&&!Rt(o)){r[i]=o;continue}const l=uJ(n);if(l==null){r[i]=o;continue}const c=o.toConfig(),p=c.fields,d={};for(const m in p){const E=p[m],b=E.args;if(b==null){d[m]=E;continue}const y=Object.keys(b);if(!y.length){d[m]=E;continue}const w={};for(const x of y){const k=b[x],N=l(k,m,i,t);if(N===void 0)w[x]=k;else if(Array.isArray(N)){const[A,O]=N;w[A]=O}else N!==null&&(w[x]=N)}d[m]={...E,args:w}}At(o)?r[i]=new ii({...c,fields:d}):Rt(o)?r[i]=new so({...c,fields:d}):r[i]=new lo({...c,fields:d})}return r}function iJ(e,t,n){const r=cJ(n);if(r==null)return e.slice();const i=[];for(const o of e){const l=r(o,t);l===void 0?i.push(o):l!==null&&i.push(l)}return i}function oJ(e,t){var i,o,l;const n=e.getType(t),r=[Bt.TYPE];return At(n)?(r.push(Bt.COMPOSITE_TYPE,Bt.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Bt.ROOT_OBJECT,Bt.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Bt.ROOT_OBJECT,Bt.MUTATION):t===((l=e.getSubscriptionType())==null?void 0:l.name)&&r.push(Bt.ROOT_OBJECT,Bt.SUBSCRIPTION)):rn(n)?r.push(Bt.INPUT_OBJECT_TYPE):Rt(n)?r.push(Bt.COMPOSITE_TYPE,Bt.ABSTRACT_TYPE,Bt.INTERFACE_TYPE):sr(n)?r.push(Bt.COMPOSITE_TYPE,Bt.ABSTRACT_TYPE,Bt.UNION_TYPE):zn(n)?r.push(Bt.ENUM_TYPE):Ii(n)&&r.push(Bt.SCALAR_TYPE),r}function aJ(e,t,n){const r=oJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function sJ(e,t){var i,o,l;const n=e.getType(t),r=[Bt.FIELD];return At(n)?(r.push(Bt.COMPOSITE_FIELD,Bt.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Bt.ROOT_FIELD,Bt.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Bt.ROOT_FIELD,Bt.MUTATION_ROOT_FIELD):t===((l=e.getSubscriptionType())==null?void 0:l.name)&&r.push(Bt.ROOT_FIELD,Bt.SUBSCRIPTION_ROOT_FIELD)):Rt(n)?r.push(Bt.COMPOSITE_FIELD,Bt.INTERFACE_FIELD):rn(n)&&r.push(Bt.INPUT_OBJECT_FIELD),r}function lJ(e,t,n){const r=sJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function uJ(e){const t=e[Bt.ARGUMENT];return t??null}function cJ(e){const t=e[Bt.DIRECTIVE];return t??null}function fJ(e){const t=e[Bt.ENUM_VALUE];return t??null}function Nb(e){if(At(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:X.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ii(t)}else if(Rt(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:X.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new so(t)}else if(rn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:X.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new lo(t)}else if(zn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.values){const i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,values:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,values:void 0}))),new Qi(t)}else return e}function lg(e,t=!1,n=!1,r=!1){let i,o=!0;const l=e.every(d=>{if(Array.isArray(d)){if(i===void 0)return i=d.length,!0;if(i===d.length)return!0}else o=!1;return!1});if(r&&l)return new Array(i).fill(null).map((d,m)=>lg(e.map(E=>E[m]),t,n,r));if(o)return e.flat(1);let c,p;t&&(p=e.find(d=>l5(d)),c==null&&(c={}),p&&Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(p))));for(const d of e)if(l5(d)){if(p){const m=Object.getPrototypeOf(c),E=Object.getPrototypeOf(d);if(E)for(const b of Object.getOwnPropertyNames(E)){const y=Object.getOwnPropertyDescriptor(E,b);OZ(y)&&Object.defineProperty(m,b,y)}}for(const m in d)c==null&&(c={}),m in c?c[m]=lg([c[m],d[m]],t,n,r):c[m]=d[m]}else Array.isArray(d)&&Array.isArray(c)?c=lg([c,d],t,n,r):c=d;return c}function l5(e){return e&&typeof e==\"object\"&&!Array.isArray(e)}function yC(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function Ab(e,t,n){return n==null||t==null?!1:t===n?!0:Qr(t)&&Qr(n)?Kh(e,t,n):!1}function dJ(e){const t=[],n=[];let r=!0;const i=m=>{t.length!==0?t.shift()({value:m,done:!1}):n.push({value:m,done:!1})},o=m=>{t.length!==0?t.shift()({value:{errors:[m]},done:!1}):n.push({value:{errors:[m]},done:!1})},l=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(m=>{if(n.length!==0){const E=n.shift();m(E)}else t.push(m)}),p=e.subscribe({next(m){return i(m)},error(m){return o(m)},complete(){return l()}}),d=()=>{if(r){r=!1,p.unsubscribe();for(const m of t)m({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),Bl({value:void 0,done:!0})},throw(m){return d(),z3(m)},[Symbol.asyncIterator](){return this}}}class Ob extends Map{get[Symbol.toStringTag](){return\"AccumulatorMap\"}add(t,n){const r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}}const pJ=new No({name:\"defer\",description:\"Directs the executor to defer this fragment when the `if` argument is true or undefined.\",locations:[ct.FRAGMENT_SPREAD,ct.INLINE_FRAGMENT],args:{if:{type:new jt(Zn),description:\"Deferred when true or undefined.\",defaultValue:!0},label:{type:Xn,description:\"Unique name\"}}}),hJ=new No({name:\"stream\",description:\"Directs the executor to stream plural fields when the `if` argument is true or undefined.\",locations:[ct.FIELD],args:{if:{type:new jt(Zn),description:\"Stream when true or undefined.\",defaultValue:!0},label:{type:Xn,description:\"Unique name\"},initialCount:{defaultValue:0,type:Xh,description:\"Number of items to return immediately\"}}});function bp(e,t,n,r,i,o,l,c){for(const p of i.selections)switch(p.kind){case X.FIELD:{if(!EC(n,p))continue;o.add(mJ(p),p);break}case X.INLINE_FRAGMENT:{if(!EC(n,p)||!u5(e,p,r))continue;const d=c5(n,p);if(d){const m=new Ob;bp(e,t,n,r,p.selectionSet,m,l,c),l.push({label:d.label,fields:m})}else bp(e,t,n,r,p.selectionSet,o,l,c);break}case X.FRAGMENT_SPREAD:{const d=p.name.value;if(!EC(n,p))continue;const m=c5(n,p);if(c.has(d)&&!m)continue;const E=t[d];if(!E||!u5(e,E,r))continue;if(m||c.add(d),m){const b=new Ob;bp(e,t,n,r,E.selectionSet,b,l,c),l.push({label:m.label,fields:b})}else bp(e,t,n,r,E.selectionSet,o,l,c);break}}}function bC(e,t,n,r,i){const o=new Ob,l=[];return bp(e,t,n,r,i,o,l,new Set),{fields:o,patches:l}}function EC(e,t){const n=js(ry,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=js(ny,t,e);return(r==null?void 0:r.if)!==!1}function u5(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Si(e,r);return i===n?!0:lr(i)?e.getPossibleTypes(i).includes(n):!1}function mJ(e){return e.alias?e.alias.value:e.name.value}function c5(e,t){const n=js(pJ,t,e);if(n&&n.if!==!1)return{label:typeof n.label==\"string\"?n.label:void 0}}const gJ=jZ(function(t,n,r,i,o){const l=new Ob,c=new Set,p=[],d={fields:l,patches:p};for(const m of o)m.selectionSet&&bp(t,n,r,i,m.selectionSet,l,p,c);return d});function vJ(e,t){const n=VE(e,t);if(!n)throw new Error(`Cannot infer operation ${t||\"\"}`);return n}const jf=Aa(function(t){return vJ(t.document,t.operationName)});function ac(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}function Ep(e,t,n){return{prev:e,key:t,typename:n}}function xi(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function yJ(e){return e.map(t=>typeof t==\"number\"?\"[\"+t.toString()+\"]\":\".\"+t).join(\"\")}function SC(e,t,n){if(typeof e==\"object\"&&typeof t==\"object\"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n<t.length;n++)e[n]=SC(e[n],t[n]);else for(n in t){if(n===\"__proto__\"||n===\"constructor\"||n===\"prototype\")break;e[n]=SC(e[n],t[n])}return e}return t}function Db(e,t,n){t.split&&(t=t.split(\".\"));for(var r=0,i=t.length,o=e,l,c;r<i&&(c=\"\"+t[r++],!(c===\"__proto__\"||c===\"constructor\"||c===\"prototype\"));)o=o[c]=r===i?SC(o[c],n):typeof(l=o[c])==typeof t?l:t[r]*0!==0||~(\"\"+t[r]).indexOf(\".\")?{}:[]}function f5({incrementalResult:e,executionResult:t}){const n=[\"data\",...e.path??[]];if(e.items)for(const r of e.items)Db(t,n,r),n[n.length-1]++;e.data&&Db(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&Db(t,\"extensions\",e.extensions),e.incremental&&e.incremental.forEach(r=>{f5({incrementalResult:r,executionResult:t})})}const bJ=Aa(function(t){const n=new Set;return t.addEventListener(\"abort\",r=>{for(const i of n)i(r)},{once:!0}),n});function EJ(e,t){if(e.aborted){t();return}bJ(e).add(t)}const TC=Aa(function(t){return rO(CZ(t,dn))});function wC({executionRequest:e,excludeQuery:t,printFn:n=TC}){return{query:t?void 0:n(e.document),variables:(e.variables&&Object.keys(e.variables).length)>0?e.variables:void 0,operationName:e.operationName?e.operationName:void 0,extensions:e.extensions&&Object.keys(e.extensions).length>0?e.extensions:void 0}}const $l={get dispose(){return Symbol.dispose||Symbol.for(\"dispose\")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for(\"asyncDispose\")}};function Ao(e){return e===null?\"null\":Array.isArray(e)?\"array\":typeof e}function Vf(e){return Ao(e)===\"object\"}function SJ(e){return Array.isArray(e)&&e.length>0&&e.every(t=>\"message\"in t)}function d5(e,t){return e.length<124?e:t}const TJ=\"graphql-transport-ws\";var Oa=(e=>(e[e.InternalServerError=4500]=\"InternalServerError\",e[e.InternalClientError=4005]=\"InternalClientError\",e[e.BadRequest=4400]=\"BadRequest\",e[e.BadResponse=4004]=\"BadResponse\",e[e.Unauthorized=4401]=\"Unauthorized\",e[e.Forbidden=4403]=\"Forbidden\",e[e.SubprotocolNotAcceptable=4406]=\"SubprotocolNotAcceptable\",e[e.ConnectionInitialisationTimeout=4408]=\"ConnectionInitialisationTimeout\",e[e.ConnectionAcknowledgementTimeout=4504]=\"ConnectionAcknowledgementTimeout\",e[e.SubscriberAlreadyExists=4409]=\"SubscriberAlreadyExists\",e[e.TooManyInitialisationRequests=4429]=\"TooManyInitialisationRequests\",e))(Oa||{}),Da=(e=>(e.ConnectionInit=\"connection_init\",e.ConnectionAck=\"connection_ack\",e.Ping=\"ping\",e.Pong=\"pong\",e.Subscribe=\"subscribe\",e.Next=\"next\",e.Error=\"error\",e.Complete=\"complete\",e))(Da||{});function p5(e){if(!Vf(e))throw new Error(`Message is expected to be an object, but got ${Ao(e)}`);if(!e.type)throw new Error(\"Message is missing the 'type' property\");if(typeof e.type!=\"string\")throw new Error(`Message is expects the 'type' property to be a string, but got ${Ao(e.type)}`);switch(e.type){case\"connection_init\":case\"connection_ack\":case\"ping\":case\"pong\":{if(e.payload!=null&&!Vf(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object or nullish or missing, but got \"${e.payload}\"`);break}case\"subscribe\":{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ao(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!Vf(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Ao(e.payload)}`);if(typeof e.payload.query!=\"string\")throw new Error(`\"${e.type}\" message payload expects the 'query' property to be a string, but got ${Ao(e.payload.query)}`);if(e.payload.variables!=null&&!Vf(e.payload.variables))throw new Error(`\"${e.type}\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Ao(e.payload.variables)}`);if(e.payload.operationName!=null&&Ao(e.payload.operationName)!==\"string\")throw new Error(`\"${e.type}\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Ao(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Vf(e.payload.extensions))throw new Error(`\"${e.type}\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Ao(e.payload.extensions)}`);break}case\"next\":{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ao(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!Vf(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Ao(e.payload)}`);break}case\"error\":{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ao(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!SJ(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case\"complete\":{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ao(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property \"${e.type}\"`)}return e}function wJ(e,t){return p5(typeof e==\"string\"?JSON.parse(e,t):e)}function ug(e,t){return p5(e),JSON.stringify(e,t)}function xJ(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:l=0,disablePong:c,connectionAckWaitTimeout:p=0,retryAttempts:d=5,retryWait:m=async function(B){const ne=Math.pow(2,B);await new Promise(ie=>setTimeout(ie,ne*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:E=xC,on:b,webSocketImpl:y,generateID:w=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,B=>{const ne=Math.random()*16|0;return(B==\"x\"?ne:ne&3|8).toString(16)})},jsonMessageReplacer:x,jsonMessageReviver:k}=e;let N;if(y){if(!_J(y))throw new Error(\"Invalid WebSocket implementation provided\");N=y}else typeof WebSocket<\"u\"?N=WebSocket:typeof global<\"u\"?N=global.WebSocket||global.MozWebSocket:typeof window<\"u\"&&(N=window.WebSocket||window.MozWebSocket);if(!N)throw new Error(\"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\");const A=N,O=(()=>{const W=(()=>{const ne={};return{on(ie,se){return ne[ie]=se,()=>{delete ne[ie]}},emit(ie){var se;\"id\"in ie&&((se=ne[ie.id])==null||se.call(ne,ie))}}})(),B={connecting:b!=null&&b.connecting?[b.connecting]:[],opened:b!=null&&b.opened?[b.opened]:[],connected:b!=null&&b.connected?[b.connected]:[],ping:b!=null&&b.ping?[b.ping]:[],pong:b!=null&&b.pong?[b.pong]:[],message:b!=null&&b.message?[W.emit,b.message]:[W.emit],closed:b!=null&&b.closed?[b.closed]:[],error:b!=null&&b.error?[b.error]:[]};return{onMessage:W.on,on(ne,ie){const se=B[ne];return se.push(ie),()=>{se.splice(se.indexOf(ie),1)}},emit(ne,...ie){for(const se of[...B[ne]])se(...ie)}}})();function _(W){const B=[O.on(\"error\",ne=>{B.forEach(ie=>ie()),W(ne)}),O.on(\"closed\",ne=>{B.forEach(ie=>ie()),W(ne)})]}let M,V=0,P,F=!1,j=0,q=!1;async function Q(){clearTimeout(P);const[W,B]=await(M??(M=new Promise((se,de)=>(async()=>{if(F){if(await m(j),!V)return M=void 0,de({code:1e3,reason:\"All Subscriptions Gone\"});j++}O.emit(\"connecting\",F);const J=new A(typeof t==\"function\"?await t():t,TJ);let ge,ce;function he(){isFinite(l)&&l>0&&(clearTimeout(ce),ce=setTimeout(()=>{J.readyState===A.OPEN&&(J.send(ug({type:Da.Ping})),O.emit(\"ping\",!1,void 0))},l))}_(pe=>{M=void 0,clearTimeout(ge),clearTimeout(ce),de(pe),pe instanceof h5&&(J.close(4499,\"Terminated\"),J.onerror=null,J.onclose=null)}),J.onerror=pe=>O.emit(\"error\",pe),J.onclose=pe=>O.emit(\"closed\",pe),J.onopen=async()=>{try{O.emit(\"opened\",J);const pe=typeof n==\"function\"?await n():n;if(J.readyState!==A.OPEN)return;J.send(ug(pe?{type:Da.ConnectionInit,payload:pe}:{type:Da.ConnectionInit},x)),isFinite(p)&&p>0&&(ge=setTimeout(()=>{J.close(Oa.ConnectionAcknowledgementTimeout,\"Connection acknowledgement timeout\")},p)),he()}catch(pe){O.emit(\"error\",pe),J.close(Oa.InternalClientError,d5(pe instanceof Error?pe.message:String(pe),\"Internal client error\"))}};let le=!1;J.onmessage=({data:pe})=>{try{const Te=wJ(pe,k);if(O.emit(\"message\",Te),Te.type===\"ping\"||Te.type===\"pong\"){O.emit(Te.type,!0,Te.payload),Te.type===\"pong\"?he():c||(J.send(ug(Te.payload?{type:Da.Pong,payload:Te.payload}:{type:Da.Pong})),O.emit(\"pong\",!1,Te.payload));return}if(le)return;if(Te.type!==Da.ConnectionAck)throw new Error(`First message cannot be of type ${Te.type}`);clearTimeout(ge),le=!0,O.emit(\"connected\",J,Te.payload,F),F=!1,j=0,se([J,new Promise((Fe,$e)=>_($e))])}catch(Te){J.onmessage=null,O.emit(\"error\",Te),J.close(Oa.BadResponse,d5(Te instanceof Error?Te.message:String(Te),\"Bad response\"))}}})())));W.readyState===A.CLOSING&&await B;let ne=()=>{};const ie=new Promise(se=>ne=se);return[W,ne,Promise.race([ie.then(()=>{if(!V){const se=()=>W.close(1e3,\"Normal Closure\");isFinite(o)&&o>0?P=setTimeout(()=>{W.readyState===A.OPEN&&se()},o):se()}}),B])]}function ee(W){if(xC(W)&&(CJ(W.code)||[Oa.InternalServerError,Oa.InternalClientError,Oa.BadRequest,Oa.BadResponse,Oa.Unauthorized,Oa.SubprotocolNotAcceptable,Oa.SubscriberAlreadyExists,Oa.TooManyInitialisationRequests].includes(W.code)))throw W;if(q)return!1;if(xC(W)&&W.code===1e3)return V>0;if(!d||j>=d||!E(W))throw W;return F=!0}r||(async()=>{for(V++;;)try{const[,,W]=await Q();await W}catch(W){try{if(!ee(W))return}catch(B){return i==null?void 0:i(B)}}})();function Z(W,B){const ne=w(W);let ie=!1,se=!1,de=()=>{V--,ie=!0};return(async()=>{for(V++;;)try{const[J,ge,ce]=await Q();if(ie)return ge();const he=O.onMessage(ne,le=>{switch(le.type){case Da.Next:{B.next(le.payload);return}case Da.Error:{se=!0,ie=!0,B.error(le.payload),de();return}case Da.Complete:{ie=!0,de();return}}});J.send(ug({id:ne,type:Da.Subscribe,payload:W},x)),de=()=>{!ie&&J.readyState===A.OPEN&&J.send(ug({id:ne,type:Da.Complete},x)),V--,ie=!0,ge()},await ce.finally(he);return}catch(J){if(!ee(J))return}})().then(()=>{se||B.complete()}).catch(J=>{B.error(J)}),()=>{ie||de()}}return{on:O.on,subscribe:Z,iterate(W){const B=[],ne={done:!1,error:null,resolve:()=>{}},ie=Z(W,{next(de){B.push(de),ne.resolve()},error(de){ne.done=!0,ne.error=de,ne.resolve()},complete(){ne.done=!0,ne.resolve()}}),se=async function*(){for(;;){for(B.length||await new Promise(J=>ne.resolve=J);B.length;)yield B.shift();if(ne.error)throw ne.error;if(ne.done)return}}();return se.throw=async de=>(ne.done||(ne.done=!0,ne.error=de,ne.resolve()),{done:!0,value:void 0}),se.return=async()=>(ie(),{done:!0,value:void 0}),se},async dispose(){if(q=!0,M){const[W]=await M;W.close(1e3,\"Normal Closure\")}},terminate(){M&&O.emit(\"closed\",new h5)}}}class h5 extends Error{constructor(){super(...arguments);en(this,\"name\",\"TerminatedCloseEvent\");en(this,\"message\",\"4499: Terminated\");en(this,\"code\",4499);en(this,\"reason\",\"Terminated\");en(this,\"wasClean\",!1)}}function xC(e){return Vf(e)&&\"code\"in e&&\"reason\"in e}function CJ(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function _J(e){return typeof e==\"function\"&&\"constructor\"in e&&\"CLOSED\"in e&&\"CLOSING\"in e&&\"CONNECTING\"in e&&\"OPEN\"in e}function NJ(e){return\"subscribe\"in e}function AJ(e){let t,n={},r=TC;if(NJ(e))t=e;else{e.print&&(r=e.print);const o=e.headers,l=o?class extends Qs{constructor(p,d){super(p,d,{headers:o})}}:Qs;t=xJ({url:e.url,webSocketImpl:l,lazy:e.lazy!==!1,lazyCloseTimeout:e.lazyCloseTimeout||0,connectionParams:()=>{const c=(typeof e.connectionParams==\"function\"?e.connectionParams():e.connectionParams)||{};return Object.assign(c,n)},on:e.on}),e.onClient&&e.onClient(t)}const i=function(l){const{extensions:c,operationType:p=jf(l).operation,info:d,signal:m=d==null?void 0:d.signal}=l;c!=null&&c.connectionParams&&typeof(c==null?void 0:c.connectionParams)==\"object\"&&(n=Object.assign(n,c.connectionParams));const E=t.iterate(wC({executionRequest:l,printFn:r}));return E.return&&m&&EJ(m,()=>{var b;(b=E.return)==null||b.call(E)}),p===\"subscription\"?E:E.next().then(({value:b})=>b)};return Object.defineProperty(i,$l.asyncDispose,{value:function(){return t.dispose()}}),i}var gr={},m5;function OJ(){return m5||(m5=1,gr.fetch=globalThis.fetch,gr.Headers=globalThis.Headers,gr.Request=globalThis.Request,gr.Response=globalThis.Response,gr.FormData=globalThis.FormData,gr.ReadableStream=globalThis.ReadableStream,gr.WritableStream=globalThis.WritableStream,gr.TransformStream=globalThis.TransformStream,gr.CompressionStream=globalThis.CompressionStream,gr.DecompressionStream=globalThis.DecompressionStream,gr.TextDecoderStream=globalThis.TextDecoderStream,gr.TextEncoderStream=globalThis.TextEncoderStream,gr.Blob=globalThis.Blob,gr.File=globalThis.File,gr.crypto=globalThis.crypto,gr.btoa=globalThis.btoa,gr.TextEncoder=globalThis.TextEncoder,gr.TextDecoder=globalThis.TextDecoder,gr.URLPattern=globalThis.URLPattern,gr.URL=globalThis.URL,gr.URLSearchParams=globalThis.URLSearchParams,gr.createFetch=()=>globalThis),gr}var Uf=OJ();/*! *****************************************************************************\n\tCopyright (c) Microsoft Corporation.\n\n\tPermission to use, copy, modify, and/or distribute this software for any\n\tpurpose with or without fee is hereby granted.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n\tREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n\tAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n\tINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n\tLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n\tOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n\tPERFORMANCE OF THIS SOFTWARE.\n\t***************************************************************************** */var CC=function(e,t){return CC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},CC(e,t)};function DJ(e,t){CC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Sp(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{d(r.next(m))}catch(E){l(E)}}function p(m){try{d(r.throw(m))}catch(E){l(E)}}function d(m){m.done?o(m.value):i(m.value).then(c,p)}d((r=r.apply(e,[])).next())})}function sc(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol==\"function\"&&(l[Symbol.iterator]=function(){return this}),l;function c(d){return function(m){return p([d,m])}}function p(d){if(r)throw new TypeError(\"Generator is already executing.\");for(;n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(m){d=[6,m],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Tp(e){var t=typeof Symbol==\"function\"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==\"number\")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function cg(e){return this instanceof cg?(this.v=e,this):new cg(e)}function kJ(e,t,n){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=n.apply(e,t||[]),i,o=[];return i={},l(\"next\"),l(\"throw\"),l(\"return\"),i[Symbol.asyncIterator]=function(){return this},i;function l(b){r[b]&&(i[b]=function(y){return new Promise(function(w,x){o.push([b,y,w,x])>1||c(b,y)})})}function c(b,y){try{p(r[b](y))}catch(w){E(o[0][3],w)}}function p(b){b.value instanceof cg?Promise.resolve(b.value.v).then(d,m):E(o[0][2],b)}function d(b){c(\"next\",b)}function m(b){c(\"throw\",b)}function E(b,y){b(y),o.shift(),o.length&&c(o[0][0],o[0][1])}}var g5=function(e){DJ(t,e);function t(n){var r=e.call(this,n)||this;return Object.defineProperty(r,\"name\",{value:\"RepeaterOverflowError\",enumerable:!1}),typeof Object.setPrototypeOf==\"function\"?Object.setPrototypeOf(r,r.constructor.prototype):r.__proto__=r.constructor.prototype,typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(r,r.constructor),r}return t}(Error);(function(){function e(t){if(t<0)throw new RangeError(\"Capacity may not be less than 0\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return this._q.length>=this._c},enumerable:!1,configurable:!0}),e.prototype.add=function(t){if(this.full)throw new Error(\"Buffer full\");this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e})(),function(){function e(t){if(t<1)throw new RangeError(\"Capacity may not be less than 1\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.add=function(t){for(;this._q.length>=this._c;)this._q.shift();this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e}(),function(){function e(t){if(t<1)throw new RangeError(\"Capacity may not be less than 1\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.add=function(t){this._q.length<this._c&&this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e}();function _C(e){e!=null&&typeof e.then==\"function\"&&e.then(Mb,Mb)}var NC=0,v5=1,qf=2,kb=3,AC=4,Rb=1024,Mb=function(){};function wp(e){var t=e.err,n=Promise.resolve(e.execution).then(function(r){if(t!=null)throw t;return r});return e.err=void 0,e.execution=n.then(function(){},function(){}),e.pending===void 0?n:e.pending.then(function(){return n})}function Bf(e,t){var n=e.state>=kb;return Promise.resolve(t).then(function(r){return!n&&e.state>=AC?wp(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function OC(e,t){var n,r;if(!(e.state>=qf))if(e.state=qf,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>\"u\"||e.buffer.empty))fg(e);else try{for(var i=Tp(e.pushes),o=i.next();!o.done;o=i.next()){var l=o.value;l.resolve()}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function fg(e){var t,n;if(!(e.state>=kb)){e.state<qf&&OC(e),e.state=kb,e.buffer=void 0;try{for(var r=Tp(e.nexts),i=r.next();!i.done;i=r.next()){var o=i.value,l=e.pending===void 0?wp(e):e.pending.then(function(){return wp(e)});o.resolve(Bf(e,l))}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.pushes=[],e.nexts=[]}}function y5(e){e.state>=AC||(e.state<kb&&fg(e),e.state=AC)}function RJ(e,t){if(_C(t),e.pushes.length>=Rb)throw new g5(\"No more than \"+Rb+\" pending calls to push are allowed on a single repeater.\");if(e.state>=qf)return Promise.resolve(void 0);var n=e.pending===void 0?Promise.resolve(t):e.pending.then(function(){return t});n=n.catch(function(p){e.state<qf&&(e.err=p),y5(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(Bf(e,n)),e.nexts.length?r=Promise.resolve(e.nexts[0].value):typeof e.buffer<\"u\"&&!e.buffer.full?r=Promise.resolve(void 0):r=new Promise(function(p){return e.onnext=p})}else typeof e.buffer<\"u\"&&!e.buffer.full?(e.buffer.add(n),r=Promise.resolve(void 0)):r=new Promise(function(p){return e.pushes.push({resolve:p,value:n})});var o=!0,l={},c=r.catch(function(p){if(o)throw p});return l.then=function(p,d){return o=!1,Promise.prototype.then.call(r,p,d)},l.catch=function(p){return o=!1,Promise.prototype.catch.call(r,p)},l.finally=r.finally.bind(r),e.pending=n.then(function(){return c}).catch(function(p){e.err=p,y5(e)}),l}function MJ(e){var t=OC.bind(null,e),n=new Promise(function(r){return e.onstop=r});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),t}function LJ(e){if(!(e.state>=v5)){e.state=v5;var t=RJ.bind(null,e),n=MJ(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return OC(e)})}}var Lb=new WeakMap,xp=function(){function e(t,n){Lb.set(this,{executor:t,buffer:n,err:void 0,state:NC,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:Mb,onstop:Mb})}return e.prototype.next=function(t){_C(t);var n=Lb.get(this);if(n===void 0)throw new Error(\"WeakMap error\");if(n.nexts.length>=Rb)throw new g5(\"No more than \"+Rb+\" pending calls to next are allowed on a single repeater.\");if(n.state<=NC&&LJ(n),n.onnext(t),typeof n.buffer<\"u\"&&!n.buffer.empty){var r=Bf(n,n.buffer.remove());if(n.pushes.length){var i=n.pushes.shift();n.buffer.add(i.value),n.onnext=i.resolve}return r}else if(n.pushes.length){var o=n.pushes.shift();return n.onnext=o.resolve,Bf(n,o.value)}else if(n.state>=qf)return fg(n),Bf(n,wp(n));return new Promise(function(l){return n.nexts.push({resolve:l,value:t})})},e.prototype.return=function(t){_C(t);var n=Lb.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return fg(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),Bf(n,wp(n))},e.prototype.throw=function(t){var n=Lb.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return n.state<=NC||n.state>=qf||typeof n.buffer<\"u\"&&!n.buffer.empty?(fg(n),n.err==null&&(n.err=t),Bf(n,wp(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=IJ,e.merge=FJ,e.zip=PJ,e.latest=jJ,e}();function Ib(e,t){var n,r,i=[],o=function(d){d!=null&&typeof d[Symbol.asyncIterator]==\"function\"?i.push(d[Symbol.asyncIterator]()):d!=null&&typeof d[Symbol.iterator]==\"function\"?i.push(d[Symbol.iterator]()):i.push(function(){return kJ(this,arguments,function(){return sc(this,function(b){switch(b.label){case 0:return t.yieldValues?[4,cg(d)]:[3,3];case 1:return[4,b.sent()];case 2:b.sent(),b.label=3;case 3:return t.returnValues?[4,cg(d)]:[3,5];case 4:return[2,b.sent()];case 5:return[2]}})})}())};try{for(var l=Tp(e),c=l.next();!c.done;c=l.next()){var p=c.value;o(p)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i}function IJ(e){var t=this,n=Ib(e,{returnValues:!0});return new xp(function(r,i){return Sp(t,void 0,void 0,function(){var o,l,c,p,d,m;return sc(this,function(E){switch(E.label){case 0:if(!n.length)return i(),[2];l=!1,i.then(function(){o(),l=!0}),E.label=1;case 1:E.trys.push([1,,5,7]),p=void 0,d=0,m=function(){var b,y,w,x,k,N;return sc(this,function(A){switch(A.label){case 0:b=d;try{for(y=(k=void 0,Tp(n)),w=y.next();!w.done;w=y.next())x=w.value,Promise.resolve(x.next()).then(function(O){O.done?(i(),c===void 0&&(c=O)):d===b&&(d++,o(O))},function(O){return i(O)})}catch(O){k={error:O}}finally{try{w&&!w.done&&(N=y.return)&&N.call(y)}finally{if(k)throw k.error}}return[4,new Promise(function(O){return o=O})];case 1:return p=A.sent(),p===void 0?[3,3]:[4,r(p.value)];case 2:A.sent(),A.label=3;case 3:return[2]}})},E.label=2;case 2:return l?[3,4]:[5,m()];case 3:return E.sent(),[3,2];case 4:return[2,c&&c.value];case 5:return i(),[4,Promise.race(n.map(function(b){return b.return&&b.return()}))];case 6:return E.sent(),[7];case 7:return[2]}})})})}function FJ(e){var t=this,n=Ib(e,{yieldValues:!0});return new xp(function(r,i){return Sp(t,void 0,void 0,function(){var o,l,c,p=this;return sc(this,function(d){switch(d.label){case 0:if(!n.length)return i(),[2];o=[],l=!1,i.then(function(){var m,E;l=!0;try{for(var b=Tp(o),y=b.next();!y.done;y=b.next()){var w=y.value;w()}}catch(x){m={error:x}}finally{try{y&&!y.done&&(E=b.return)&&E.call(b)}finally{if(m)throw m.error}}}),d.label=1;case 1:return d.trys.push([1,,3,4]),[4,Promise.all(n.map(function(m,E){return Sp(p,void 0,void 0,function(){var b,y;return sc(this,function(w){switch(w.label){case 0:w.trys.push([0,,6,9]),w.label=1;case 1:return l?[3,5]:(Promise.resolve(m.next()).then(function(x){return o[E](x)},function(x){return i(x)}),[4,new Promise(function(x){o[E]=x})]);case 2:return b=w.sent(),b===void 0?[3,4]:b.done?(c=b,[2]):[4,r(b.value)];case 3:w.sent(),w.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return y=m.return,y?[4,m.return()]:[3,8];case 7:y=w.sent(),w.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return d.sent(),[2,c&&c.value];case 3:return i(),[7];case 4:return[2]}})})})}function PJ(e){var t=this,n=Ib(e,{returnValues:!0});return new xp(function(r,i){return Sp(t,void 0,void 0,function(){var o,l,c,p;return sc(this,function(d){switch(d.label){case 0:if(!n.length)return i(),[2,[]];l=!1,i.then(function(){o(),l=!0}),d.label=1;case 1:d.trys.push([1,,6,8]),d.label=2;case 2:return l?[3,5]:(Promise.all(n.map(function(m){return m.next()})).then(function(m){return o(m)},function(m){return i(m)}),[4,new Promise(function(m){return o=m})]);case 3:return c=d.sent(),c===void 0?[2]:(p=c.map(function(m){return m.value}),c.some(function(m){return m.done})?[2,p]:[4,r(p)]);case 4:return d.sent(),[3,2];case 5:return[3,8];case 6:return i(),[4,Promise.all(n.map(function(m){return m.return&&m.return()}))];case 7:return d.sent(),[7];case 8:return[2]}})})})}function jJ(e){var t=this,n=Ib(e,{yieldValues:!0,returnValues:!0});return new xp(function(r,i){return Sp(t,void 0,void 0,function(){var o,l,c,p,d,m=this;return sc(this,function(E){switch(E.label){case 0:if(!n.length)return i(),[2,[]];l=[],c=!1,i.then(function(){var b,y;o();try{for(var w=Tp(l),x=w.next();!x.done;x=w.next()){var k=x.value;k()}}catch(N){b={error:N}}finally{try{x&&!x.done&&(y=w.return)&&y.call(w)}finally{if(b)throw b.error}}c=!0}),E.label=1;case 1:return E.trys.push([1,,5,7]),Promise.all(n.map(function(b){return b.next()})).then(function(b){return o(b)},function(b){return i(b)}),[4,new Promise(function(b){return o=b})];case 2:return p=E.sent(),p===void 0?[2]:(d=p.map(function(b){return b.value}),p.every(function(b){return b.done})?[2,d]:[4,r(d.slice())]);case 3:return E.sent(),[4,Promise.all(n.map(function(b,y){return Sp(m,void 0,void 0,function(){var w;return sc(this,function(x){switch(x.label){case 0:if(p[y].done)return[2,p[y].value];x.label=1;case 1:return c?[3,4]:(Promise.resolve(b.next()).then(function(k){return l[y](k)},function(k){return i(k)}),[4,new Promise(function(k){return l[y]=k})]);case 2:return w=x.sent(),w===void 0?[2,p[y].value]:w.done?[2,w.value]:(d[y]=w.value,[4,r(d.slice())]);case 3:return x.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,E.sent()];case 5:return i(),[4,Promise.all(n.map(function(b){return b.return&&b.return()}))];case 6:return E.sent(),[7];case 7:return[2]}})})})}async function VJ(e,t){let n=e.headers[\"content-type\"];if(!n||!~n.indexOf(\"multipart/\"))return e;let r=n.indexOf(\"boundary=\"),i=\"-\";if(~r){let o=r+9,l=n.indexOf(\";\",o);i=n.slice(o,l>-1?l:void 0).trim().replace(/\"/g,\"\")}return async function*(o,l,c){let p,d,m,E=Buffer.byteLength(l),b=Buffer.alloc(0),y=[];e:for await(let w of o){p=b.byteLength,b=Buffer.concat([b,w]);let x=w.indexOf(l);for(~x?p+=x:p=b.indexOf(l),y=[];~p;){let k=b.subarray(0,p),N=b.subarray(p+E);if(d){let A=k.indexOf(`\\r\n\\r\n`)+4,O=k.lastIndexOf(`\\r\n`,A),_=!1,M=k.subarray(A,O>-1?void 0:O),V=String(k.subarray(0,A)).trim().split(`\\r\n`),P={},F=V.length;for(;m=V[--F];m=m.split(\": \"),P[m.shift().toLowerCase()]=m.join(\": \"));if(m=P[\"content-type\"],m&&~m.indexOf(\"application/json\"))try{M=JSON.parse(String(M)),_=!0}catch{}if(m={headers:P,body:M,json:_},yield m,N[0]===45&&N[1]===45)break e}else l=`\\r\n`+l,d=E+=2;b=N,p=b.indexOf(l)}y.length&&(yield y)}y.length&&(yield y)}(e,`--${i}`)}function UJ(e){if(typeof e!=\"object\"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qJ(e,t,n=\"\"){if(!arguments.length)throw new TypeError(\"Argument 1 `value` is required.\");if(typeof t!=\"function\")throw new TypeError(\"Argument 2 `isExtractable` must be a function.\");if(typeof n!=\"string\")throw new TypeError(\"Argument 3 `path` must be a string.\");const r=new Map,i=new Map;function o(l,c,p){if(t(l)){const E=i.get(l);return E?E.push(c):i.set(l,[c]),null}const d=Array.isArray(l)||typeof FileList<\"u\"&&l instanceof FileList,m=UJ(l);if(d||m){let E=r.get(l);const b=!E;if(b&&(E=d?[]:l instanceof Object?{}:Object.create(null),r.set(l,E)),!p.has(l)){const y=c?`${c}.`:\"\",w=new Set(p).add(l);if(d){let x=0;for(const k of l){const N=o(k,y+x++,w);b&&E.push(N)}}else for(const x in l){const k=o(l[x],y+x,w);b&&(E[x]=k)}}return E}return l}return{clone:o(e,n,new Set),files:i}}function BJ(e){return typeof File<\"u\"&&e instanceof File||typeof Blob<\"u\"&&e instanceof Blob}function $J(e){return typeof e.createReadStream==\"function\"}function b5(e){const t=[],n=e[Symbol.asyncIterator]();function r(){return Ht(()=>n.next(),({value:i,done:o})=>(i!=null&&t.push(i),o?t:r()))}return r()}function zJ(e,{File:t=Uf.File,FormData:n=Uf.FormData}){if(!e.variables)return JSON.stringify(e);const r=Object.assign({},e.variables),{clone:i,files:o}=qJ(r,b=>BJ(b)||(b==null?void 0:b.promise)||ac(b)||(b==null?void 0:b.then)||typeof(b==null?void 0:b.arrayBuffer)==\"function\",\"variables\");if(o.size===0)return JSON.stringify(e);const l={},c=[];let p=0;for(const[b,y]of o)l[p]=y,c[p]=b,p++;const d=new n;d.append(\"operations\",JSON.stringify({...e,variables:i})),d.append(\"map\",JSON.stringify(l));function m(b,y){const w=y.toString();if(b!=null)return Ht(()=>(b==null?void 0:b.promise)||b,x=>{const k=x.filename||x.name||x.path||`blob-${w}`;if(HJ(x))d.append(w,x,k);else{if(ac(x))return Ht(()=>b5(x),N=>{const A=new Uint8Array(N);d.append(w,new t([A],k),k)});if($J(x))return Ht(()=>b5(x.createReadStream()),N=>{const A=new Uint8Array(N);d.append(w,new t([A],k,{type:x.mimetype}),k)});d.append(w,new t([x],k),k)}})}const E=[];for(const b in c){const y=c[b],w=m(y,Number(b));Hn(w)&&E.push(w)}return E.length>0?Promise.all(E).then(()=>d):d}function HJ(e){return typeof e.arrayBuffer==\"function\"}function E5(e,t){return e instanceof Me?e:(e==null?void 0:e.name)===\"TimeoutError\"?Kt(e.message,{extensions:{http:{status:504,...(t==null?void 0:t.http)||{}},code:\"TIMEOUT_ERROR\",...t||{}},originalError:e}):Kt(e.message,{extensions:t,originalError:e})}function Fb(e,t){return{errors:[E5(e,t)]}}function GJ(e){const n=new Uf.TextEncoder().encode(e);return Ht(()=>Uf.crypto.subtle.digest(\"SHA-256\",n),r=>{let i=\"\";for(const o of new Uint8Array(r))i+=o.toString(16).padStart(2,\"0\");return i})}const S5=`\n\n`;function WJ(e){return e&&typeof e.getReader==\"function\"}function YJ(e,t,n){const r=e.body;if(!WJ(r))throw new Error(\"Response body is expected to be a readable stream but got; \"+ji(r));return new xp((i,o)=>{const l=new Uf.TextDecoder,c=r.getReader();c.closed.then(o).catch(o),o.then(()=>{t==null||t.abort(),r.locked&&c.releaseLock()}).catch(m=>{c.cancel(m)});let p=\"\";async function d(){var b,y;if(n!=null&&n.aborted)return await i(Fb(n.reason)),o();if(!(r!=null&&r.locked))return o();const{done:m,value:E}=await c.read();if(m)return o();for(p+=typeof E==\"string\"?E:l.decode(E);;){const w=p.indexOf(S5);if(w===-1)break;const x=p.slice(0,w);p=p.slice(w+S5.length);const k=(b=x.split(\"data:\")[1])==null?void 0:b.trim();if(k){const A=JSON.parse(k);await i(A.payload||A)}if(((y=x.split(\"event:\")[1])==null?void 0:y.trim())===\"complete\")return o()}return d()}return d()})}function QJ(e){return e!=null&&typeof e==\"object\"&&\"pipe\"in e}async function KJ(e){const t=e.body,n=e.headers.get(\"content-type\")||\"\";let r;if(QJ(t)){t.headers={\"content-type\":n};const l=await VJ(t);\"next\"in l&&(r=l)}else{const l=await A8(e);\"next\"in l&&(r=l)}const i={};return r==null?i:pC(r,l=>{if(l.json){const c=l.body;f5({incrementalResult:c,executionResult:i})}return i})}const T5=Aa(function(t){var n;return t.operation===\"query\"&&((n=t.directives)==null?void 0:n.some(r=>r.name.value===\"live\"))});function XJ({baseUrl:e=\"\",body:t}){const n=\"https://dummyhostname.com\",r=e.startsWith(\"http\")?e:e!=null&&e.startsWith(\"/\")?`${n}${e}`:`${n}/${e}`,i=new URL(r);return t.query&&i.searchParams.set(\"query\",t.query),t.variables&&Object.keys(t.variables).length>0&&i.searchParams.set(\"variables\",JSON.stringify(t.variables)),t.operationName&&i.searchParams.set(\"operationName\",t.operationName),t.extensions&&i.searchParams.set(\"extensions\",JSON.stringify(t.extensions)),i.toString().replace(n,\"\")}function ZJ(e){const t=(e==null?void 0:e.print)??TC,n=new AbortController,r=e==null?void 0:e.serviceName,i=(l,c)=>{var P,F,j,q,Q,ee;if(n.signal.aborted)return Fb(n.signal.reason);const p=((P=l.extensions)==null?void 0:P.fetch)??(e==null?void 0:e.fetch)??Uf.fetch;let d=((F=l.extensions)==null?void 0:F.method)||(e==null?void 0:e.method);const m=jf(l),E=m.operation;(e!=null&&e.useGETForQueries||(j=l.extensions)!=null&&j.useGETForQueries)&&E===\"query\"&&(d=\"GET\");let b=\"application/graphql-response+json, application/json, multipart/mixed\",y;E===\"subscription\"||T5(m)?(d||(d=\"GET\"),b=\"text/event-stream\",y=new AbortController):d||(d=\"POST\");const w=((q=l.extensions)==null?void 0:q.endpoint)||(e==null?void 0:e.endpoint)||\"/graphql\",x={accept:b};if(e!=null&&e.headers&&Object.assign(x,typeof(e==null?void 0:e.headers)==\"function\"?e.headers(l):e==null?void 0:e.headers),(Q=l.extensions)!=null&&Q.headers){const{headers:Z,...W}=l.extensions;Object.assign(x,Z),l.extensions=W}const k=[n.signal],N=l.signal||((ee=l.info)==null?void 0:ee.signal);if(N){if(N.aborted)return Fb(N.reason);k.push(N)}e!=null&&e.timeout&&k.push(AbortSignal.timeout(e.timeout)),y&&k.push(y.signal);const A=AbortSignal.any(k),O={serviceName:r,request:{method:d}},_=t(l.document);let M=function(){return wC({executionRequest:l,excludeQuery:c,printFn:t})};e!=null&&e.apq&&(M=function(){return Ht(()=>GJ(_),W=>{const B=l.extensions||{};return B.persistedQuery={version:1,sha256Hash:W},wC({executionRequest:{...l,extensions:B},excludeQuery:c,printFn:t})})});function V(Z){return Z.name===\"AggregateError\"?{errors:Z.errors.map(W=>w5(W,{signal:A,endpoint:w,upstreamErrorExtensions:O}))}:{errors:[w5(Z,{signal:A,endpoint:w,upstreamErrorExtensions:O})]}}return Ht(()=>M(),Z=>Ht(()=>{switch(d){case\"GET\":{const W=XJ({baseUrl:w,body:Z}),B={method:\"GET\",headers:x,signal:A};return(e==null?void 0:e.credentials)!=null&&(B.credentials=e.credentials),O.request.url=W,p(W,B,l.context,l.info)}case\"POST\":return O.request.body=Z,Ht(()=>zJ(Z,{File:e==null?void 0:e.File,FormData:e==null?void 0:e.FormData}),W=>{typeof W==\"string\"&&!x[\"content-type\"]&&(O.request.body=W,x[\"content-type\"]=\"application/json\");const B={method:\"POST\",body:W,headers:x,signal:A};return(e==null?void 0:e.credentials)!=null&&(B.credentials=e.credentials),p(w,B,l.context,l.info)},V)}},W=>Ht(()=>{if(O.response||(O.response={}),O.response.status=W.status,O.response.statusText=W.statusText,Object.defineProperty(O.response,\"headers\",{get(){return Object.fromEntries(W.headers.entries())}}),(e==null?void 0:e.retry)!=null&&!W.status.toString().startsWith(\"2\"))throw new Error(W.statusText||`Upstream HTTP Error: ${W.status}`);const B=W.headers.get(\"content-type\");return B!=null&&B.includes(\"text/event-stream\")?YJ(W,y,A):B!=null&&B.includes(\"multipart/mixed\")?KJ(W):W.text()},B=>{if(typeof B==\"string\"){if(O.response||(O.response={}),O.response.body=B,B)try{const ne=JSON.parse(B);return O.response.body=ne,ne.data==null&&(ne.errors==null||ne.errors.length===0)?{errors:[Kt('Unexpected empty \"data\" and \"errors\" fields in result: '+B,{extensions:O})]}:Array.isArray(ne.errors)?{...ne,errors:ne.errors.map(({message:ie,...se})=>Kt(ie,{...se,extensions:{code:\"DOWNSTREAM_SERVICE_ERROR\",serviceName:r,...se.extensions||{}}}))}:ne}catch(ne){return{errors:[Kt(`Unexpected response: ${JSON.stringify(B)}`,{extensions:O,originalError:ne})]}}}else return B},V),V),V)};let o=i;if((e==null?void 0:e.apq)!=null&&(o=function(c){return Ht(()=>i(c,!0),p=>{var d;return(d=p.errors)!=null&&d.some(m=>m.extensions.code===\"PERSISTED_QUERY_NOT_FOUND\"||m.message===\"PersistedQueryNotFound\")?i(c,!1):p})}),(e==null?void 0:e.retry)!=null){const l=o;o=function(p){let d,m=0;function E(){return n.signal.aborted?Fb(n.signal.reason):(m++,m>e.retry?d??{errors:[Kt(\"No response returned from fetch\")]}:Ht(()=>l(p),b=>{var y;return d=b,(y=d==null?void 0:d.errors)!=null&&y.length?E():d}))}return E()}}return Object.defineProperties(o,{[$l.dispose]:{get(){return function(){var c;return n.abort((c=e==null?void 0:e.getDisposeReason)==null?void 0:c.call(e))}}},[$l.asyncDispose]:{get(){return function(){var c;return n.abort((c=e==null?void 0:e.getDisposeReason)==null?void 0:c.call(e))}}}}),o}function w5(e,{signal:t,endpoint:n,upstreamErrorExtensions:r}){return typeof e==\"string\"?Kt(e,{extensions:r}):e.name===\"GraphQLError\"?e:e.name===\"TypeError\"&&e.message===\"fetch failed\"?Kt(`fetch failed to ${n}`,{extensions:r,originalError:e}):e.name===\"AbortError\"?E5((t==null?void 0:t.reason)||e,r):e.message?Kt(e.message,{extensions:r,originalError:e}):Kt(\"Unknown error\",{extensions:r,originalError:e})}var ka;(function(e){e.CONNECTION_INIT=\"connection_init\",e.CONNECTION_ACK=\"connection_ack\",e.CONNECTION_ERROR=\"connection_error\",e.CONNECTION_KEEP_ALIVE=\"ka\",e.START=\"start\",e.STOP=\"stop\",e.CONNECTION_TERMINATE=\"connection_terminate\",e.DATA=\"data\",e.ERROR=\"error\",e.COMPLETE=\"complete\"})(ka||(ka={}));function JJ(e,t,n){let r={},i=null;const o=(p=d=>console.error(d))=>{(i==null||i.readyState!==Qs.OPEN)&&(i=new t(e,\"graphql-ws\",{followRedirects:!0,headers:n==null?void 0:n.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let d={};switch(typeof(n==null?void 0:n.connectionParams)){case\"function\":d=n==null?void 0:n.connectionParams();break;case\"object\":d=n==null?void 0:n.connectionParams;break}d=Object.assign(d,r),i.send(JSON.stringify({type:ka.CONNECTION_INIT,payload:d}),m=>{m&&p(m)})},i.onerror=d=>{p(d.error)},i.onclose=()=>{i=null})},l=()=>{i!=null&&(i.send(JSON.stringify({type:ka.CONNECTION_TERMINATE})),i.terminate(),i=null)},c=function(d){var E,b;(E=d.extensions)!=null&&E.connectionParams&&typeof((b=d.extensions)==null?void 0:b.connectionParams)==\"object\"&&(r=Object.assign(r,d.extensions.connectionParams));const m=Date.now().toString();return dJ({subscribe(y){function w(x){y.error(x)}if(o(),i==null)throw new Error(\"WebSocket connection is not found!\");return i.onmessage=x=>{const k=JSON.parse(x.data.toString(\"utf-8\"));switch(k.type){case ka.CONNECTION_ACK:{if(i==null)throw new Error(\"WebSocket connection is not found!\");i.send(JSON.stringify({type:ka.START,id:m,payload:{query:dn(d.document),variables:d.variables,operationName:d.operationName}}),N=>{N&&w(N)});break}case ka.CONNECTION_ERROR:{y.error(k.payload);break}case ka.CONNECTION_KEEP_ALIVE:break;case ka.DATA:{y.next(k.payload);break}case ka.COMPLETE:{i!=null&&i.send(JSON.stringify({type:ka.CONNECTION_TERMINATE}),N=>{N&&w(N)}),y.complete(),l();break}}},{unsubscribe:()=>{(i==null?void 0:i.readyState)===Qs.OPEN&&(i==null||i.send(JSON.stringify({type:ka.STOP,id:m}))),l()}}}})};return c[Symbol.dispose]=l,c}function Ks(e){if(e instanceof Error)return e;if(typeof e==\"object\"&&e!=null&&\"message\"in e&&typeof e.message==\"string\"){let t;\"cause\"in e&&(t={cause:e.cause});const n=new Error(e.message,t);return\"stack\"in e&&typeof e.stack==\"string\"&&(n.stack=e.stack),\"name\"in e&&typeof e.name==\"string\"&&(n.name=e.name),n}return new Error(String(e))}function eee(e){const t=e[Symbol.asyncIterator]();let n,r,i=!1;async function o(){if(i)return{value:void 0,done:!0};try{if(!n){if(r)return await r,await o();let p;r=new Promise(m=>{p=m});const d=await t.next();return d.done?(i=!0,await o()):(n=d.value[Symbol.asyncIterator](),r=void 0,p(),await o())}const l=n,c=await n.next();return c.done?(n===l&&(n=void 0),await o()):c}catch(l){throw i=!0,l}}return{next:o,async return(){var l,c;return i=!0,await Promise.all([(l=n==null?void 0:n.return)==null?void 0:l.call(n),(c=t.return)==null?void 0:c.call(t)]),{value:void 0,done:!0}},async throw(l){var c,p;throw i=!0,await Promise.all([(c=n==null?void 0:n.throw)==null?void 0:c.call(n,l),(p=t.throw)==null?void 0:p.call(t,l)]),l},[Symbol.asyncIterator](){return this},async[$l.asyncDispose](){var l,c;i=!0,await Promise.all([(l=n==null?void 0:n[$l.asyncDispose])==null?void 0:l.call(n),(c=t==null?void 0:t[$l.asyncDispose])==null?void 0:c.call(t)])}}}function x5(e,t){if(!e)throw new Error(t??\"Unexpected invariant triggered.\")}function C5(e,t,n){t==null||t.throwIfAborted();const r=Object.create(null),i=[];for(const l in e){const c=Ht(()=>e[l],p=>{r[l]=p});Hn(c)&&i.push(c)}if(!i.length)return r;const o=i.length===1?i[0]:Promise.all(i);return n?Promise.race([n,o]).then(()=>r):o.then(()=>r)}function tee(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const l=nee(e,t,n,c=>{if(o!=null&&i.length>=o)throw Kt(\"Too many errors processing variables, error limit reached. Execution aborted.\");i.push(c)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function nee(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=Si(e,o.type);if(!Fi(c)){const d=dn(o.type);r(Kt(`Variable \"$${l}\" expected value of type \"${d}\" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Z3(n,l)){if(o.defaultValue)i[l]=Ca(o.defaultValue,c);else if(Nt(c)){const d=ji(c);r(Kt(`Variable \"$${l}\" of required type \"${d}\" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&Nt(c)){const d=ji(c);r(Kt(`Variable \"$${l}\" of non-null type \"${d}\" must not be null.`,{nodes:o}));continue}i[l]=DE(p,c,(d,m,E)=>{let b=`Variable \"$${l}\" got invalid value `+ji(m);d.length>0&&(b+=` at \"${l}${yJ(d)}\"`),r(Kt(b+\"; \"+E.message,{nodes:o,originalError:E}))})}return i}const ree=PZ((e,t,n)=>gJ(e.schema,e.fragments,e.variableValues,t,n));function iee(e){const t=A5(e);return\"schema\"in t?_5(t):{errors:t.map(n=>{var r;return Object.defineProperty(n,\"extensions\",{value:{...n.extensions,http:{...((r=n.extensions)==null?void 0:r.http)||{},status:400}}}),n})}}function _5(e){var t;return(t=e.signal)==null||t.throwIfAborted(),Ht(()=>see(e),n=>{const r=N5(n,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...r,hasNext:!0},subsequentResults:wee(e)}:r},n=>{var r;return(r=e.signal)==null||r.throwIfAborted(),n.errors?e.errors.push(...n.errors):e.errors.push(n),N5(null,e.errors)})}function N5(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const oee=Aa(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===X.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function A5(e){var N;const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p,subscribeFieldResolver:d,signal:m}=e;m==null||m.throwIfAborted(),uy(t);const E=oee(n);let b;for(const A of n.definitions)switch(A.kind){case X.OPERATION_DEFINITION:if(l==null){if(b!==void 0)return[Kt(\"Must provide operation name if query contains multiple operations.\",{extensions:{code:\"OPERATION_RESOLUTION_FAILURE\"}})];b=A}else((N=A.name)==null?void 0:N.value)===l&&(b=A);break}if(b==null)return l!=null?[Kt(`Unknown operation named \"${l}\".`,{extensions:{code:\"OPERATION_RESOLUTION_FAILURE\"}})]:[Kt(\"Must provide an operation.\",{extensions:{code:\"OPERATION_RESOLUTION_FAILURE\"}})];const y=b.variableDefinitions??[],w=tee(t,y,o??{},{maxErrors:50});if(w.errors)return w.errors;m==null||m.throwIfAborted();let x,k;if(m){const A=new Set,O=$3();k=O.promise;const _=()=>{O.reject(m.reason),m.removeEventListener(\"abort\",_)};m.addEventListener(\"abort\",_,{once:!0}),k.catch(()=>{for(const M of A)M();A.clear()}),x=M=>{A.add(M)}}return{schema:t,fragments:E,rootValue:r,contextValue:i,operation:b,variableValues:w.coerced,fieldResolver:c??P5,typeResolver:p??pee,subscribeFieldResolver:d??P5,subsequentPayloads:new Set,errors:[],signal:m,onSignalAbort:x,signalPromise:k}}function aee(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function see(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,l=wb(n,t.operation,[t]);l==null&&Kt(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:c,patches:p}=bC(n,r,i,l,t.selectionSet),d=void 0;let m;t.operation===\"mutation\"?m=lee(e,l,o,d,c):m=DC(e,l,o,d,c);for(const E of p){const{label:b,fields:y}=E;B5(e,l,o,y,b,d)}return m}function lee(e,t,n,r,i){return X3(i,(o,[l,c])=>{var d;const p=Ep(r,l,t.name);return(d=e.signal)==null||d.throwIfAborted(),Ht(()=>O5(e,t,n,c,p),m=>(m===void 0||(o[l]=m),o))},Object.create(null))}function DC(e,t,n,r,i,o){var p,d;const l=Object.create(null);let c=!1;try{for(const[m,E]of i){(p=e.signal)==null||p.throwIfAborted();const b=Ep(r,m,t.name),y=O5(e,t,n,E,b,o);y!==void 0&&(l[m]=y,Hn(y)&&(c=!0))}}catch(m){if(m!==((d=e.signal)==null?void 0:d.reason)&&c)return Ht(()=>C5(l,e.signal),()=>{throw m},()=>{throw m});throw m}return c?C5(l,e.signal,e.signalPromise):l}function O5(e,t,n,r,i,o){var E;const l=(o==null?void 0:o.errors)??e.errors,c=z5(e.schema,t,r[0]);if(!c)return;const p=c.type,d=c.resolve??e.fieldResolver,m=D5(e,c,r,t,i);try{(E=e.signal)==null||E.throwIfAborted();const b=J3(c,r[0],e.variableValues),y=e.contextValue,w=d(n,b,y,m);let x;return Hn(w)?x=w.then(k=>lc(e,p,r,m,i,k,o)):x=lc(e,p,r,m,i,w,o),Hn(x)?x.then(void 0,k=>{if(k instanceof AggregateError)return new AggregateError(k.errors.map(O=>{O=Ks(O);const _=pr(O,r,xi(i)),M=Ra(_,p,l);return Jo(e,i,o),M}));k=Ks(k);const N=pr(k,r,xi(i)),A=Ra(N,p,l);return Jo(e,i,o),A}):x}catch(b){if(b instanceof AggregateError)return new AggregateError(b.errors.map(k=>{const N=Ks(k),A=pr(N,r,xi(i));return Ra(A,p,l)}));const y=Ks(b),w=pr(y,r,xi(i)),x=Ra(w,p,l);return Jo(e,i,o),x}}function D5(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues,signal:e.signal}}const k5=\"CRITICAL_ERROR\";function Ra(e,t,n){var r;if(Nt(t)||(r=e.extensions)!=null&&r[k5])throw e;return n.push(e),null}function lc(e,t,n,r,i,o,l){if(o instanceof Error)throw o;if(Nt(t)){const c=lc(e,t.ofType,n,r,i,o,l);if(c===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return c}if(o==null)return null;if(hn(t))return cee(e,t,n,r,i,o,l);if(ri(t))return fee(t,o);if(lr(t))return dee(e,t,n,r,i,o,l);if(At(t))return kC(e,t,n,r,i,o,l);console.assert(!1,\"Cannot complete value of unexpected output type: \"+ji(t))}function R5(e,t,n){if(typeof n.key==\"number\")return;const r=js(hJ,t[0],e.variableValues);if(r&&r.if!==!1)return x5(typeof r.initialCount==\"number\",\"initialCount must be a number\"),x5(r.initialCount>=0,\"initialCount must be a positive integer\"),{initialCount:r.initialCount,label:typeof r.label==\"string\"?r.label:void 0}}async function uee(e,t,n,r,i,o,l){var b,y;(b=e.signal)==null||b.throwIfAborted(),o.return&&((y=e.onSignalAbort)==null||y.call(e,()=>{var w;(w=o.return)==null||w.call(o)}));const c=(l==null?void 0:l.errors)??e.errors,p=R5(e,n,i);let d=!1;const m=[];let E=0;for(;;){if(p&&typeof p.initialCount==\"number\"&&E>=p.initialCount){See(E,o,e,n,r,t,i,p.label,l);break}const w=Ep(i,E,void 0);let x;try{if(x=await o.next(),x.done)break}catch(k){const N=Ks(k),A=pr(N,n,xi(w));m.push(Ra(A,t,c));break}M5(x.value,m,c,e,t,n,r,w,l)&&(d=!0),E+=1}return d?Promise.all(m):m}function cee(e,t,n,r,i,o,l){const c=t.ofType,p=(l==null?void 0:l.errors)??e.errors;if(ac(o)){const w=o[Symbol.asyncIterator]();return uee(e,c,n,r,i,w,l)}if(!FZ(o))throw Kt(`Expected Iterable, but did not find one for field \"${r.parentType.name}.${r.fieldName}\".`);const d=R5(e,n,i);let m=!1,E=l;const b=[];let y=0;for(const w of o){const x=Ep(i,y,void 0);if(d&&typeof d.initialCount==\"number\"&&y>=d.initialCount){E=bee(i,x,w,e,n,r,c,d.label,E),y++;continue}M5(w,b,p,e,c,n,r,x,l)&&(m=!0),y++}return m?Promise.all(b):b}function M5(e,t,n,r,i,o,l,c,p){try{let d;if(Hn(e)?d=e.then(m=>lc(r,i,o,l,c,m,p)):d=lc(r,i,o,l,c,e,p),Hn(d))return t.push(d.then(void 0,m=>{m=Ks(m);const E=pr(m,o,xi(c)),b=Ra(E,i,n);return Jo(r,c,p),b})),!0;t.push(d)}catch(d){const m=Ks(d),E=pr(m,o,xi(c)),b=Ra(E,i,n);Jo(r,c,p),t.push(b)}return!1}function fee(e,t){let n;try{n=e.serialize(t)}catch(r){throw r instanceof Me?new Error(r.message):r}if(n==null)throw new Error(`Expected \\`${ji(e)}.serialize(${ji(t)})\\` to return non-nullable value, returned: ${ji(n)}`);return n}function dee(e,t,n,r,i,o,l){const c=t.resolveType??e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return Hn(d)?d.then(m=>kC(e,L5(m,e,t,n,r,o),n,r,i,o,l)):kC(e,L5(d,e,t,n,r,o),n,r,i,o,l)}function L5(e,t,n,r,i,o){if(e==null)throw Kt(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\". Either the \"${n.name}\" type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.`,{nodes:r});if(At(e)){if(Uv.major>=16)throw Kt(\"Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.\");e=e.name}if(typeof e!=\"string\")throw Kt(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\" with value ${ji(o)}, received \"${ji(e)}\".`);const l=t.schema.getType(e);if(l==null)throw Kt(`Abstract type \"${n.name}\" was resolved to a type \"${e}\" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw Kt(`Abstract type \"${n.name}\" was resolved to a non-object type \"${e}\".`,{nodes:r});if(!t.schema.isSubType(n,l))throw Kt(`Runtime Object type \"${l.name}\" is not a possible type for \"${n.name}\".`,{nodes:r});return l}function kC(e,t,n,r,i,o,l){if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(Hn(c))return c.then(p=>{if(!p)throw I5(t,o,n);return F5(e,t,n,i,o,l)});if(!c)throw I5(t,o,n)}return F5(e,t,n,i,o,l)}function I5(e,t,n){return Kt(`Expected value of type \"${e.name}\" but got: ${ji(t)}.`,{nodes:n})}function F5(e,t,n,r,i,o){const{fields:l,patches:c}=ree(e,t,n),p=DC(e,t,i,r,l,o);for(const d of c){const{label:m,fields:E}=d;B5(e,t,i,E,m,r,o)}return p}const pee=function(e,t,n,r){if(K3(e)&&typeof e.__typename==\"string\")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let l=0;l<i.length;l++){const c=i[l];if(c.isTypeOf){const p=c.isTypeOf(e,t,n);if(Hn(p))o[l]=p;else if(p)return c.name}}if(o.length)return Promise.all(o).then(l=>{for(let c=0;c<l.length;c++)if(l[c])return i[c].name})},P5=function(e,t,n,r){if(K3(e)||typeof e==\"function\"){const i=e[r.fieldName];return typeof i==\"function\"?e[r.fieldName](t,n,r):i}};function hee(e){const t=A5(e);if(!(\"schema\"in t)){for(const r of t){const i=r.extensions||(r.extensions={}),o=i.http||(i.http={});o.status=400,r.extensions.code=\"BAD_USER_INPUT\"}return{errors:t}}const n=vee(t);return Hn(n)?n.then(r=>V5(t,r)):V5(t,n)}function mee(e){return e==null?void 0:e.initialResult}function j5(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next(){return r?Bl({value:void 0,done:r}):n?t.next():(n=!0,Bl({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)},[$l.asyncDispose](){var i;return r=!0,(i=t==null?void 0:t[$l.asyncDispose])==null?void 0:i.call(t)}}}async function*gee(e){\"initialResult\"in e?yield*j5(e):yield e}function V5(e,t){return ac(t)?eee(pC(t,n=>Ht(()=>_5(aee(e,n)),gee),n=>{throw n instanceof AggregateError?new AggregateError(n.errors.map(r=>U5(r,e.operation)),n.message):U5(n,e.operation)})):t}function U5(e,t){return Kt(e.message,{originalError:e,nodes:[t]})}function vee(e){try{const t=yee(e);return Hn(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function yee(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw Kt(\"Schema is not configured to execute subscription operation.\",{nodes:r});const{fields:c}=bC(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=d[0].name.value,E=z5(t,l,d[0]);if(!E)throw Kt(`The subscription field \"${m}\" is not defined.`,{nodes:d});const b=Ep(void 0,p,l.name),y=D5(e,E,d,l,b);try{const w=J3(E,d[0],i),x=e.contextValue,N=(E.subscribe??e.subscribeFieldResolver)(o,w,x,y);return Hn(N)?N.then(A=>q5(A,e.signal,e.onSignalAbort)).then(void 0,A=>{throw pr(A,d,xi(b))}):q5(N,e.signal,e.onSignalAbort)}catch(w){throw pr(w,d,xi(b))}}function q5(e,t,n){if(t==null||t.throwIfAborted(),e instanceof Error)throw e;if(!ac(e))throw Kt(`Subscription field must return Async Iterable. Received: ${ji(e)}.`);return n?{[Symbol.asyncIterator](){const r=e[Symbol.asyncIterator]();return r.return&&(n==null||n(()=>{var i;(i=r.return)==null||i.call(r)})),r}}:e}function B5(e,t,n,r,i,o,l){const c=new xee({label:i,path:o,parentContext:l,exeContext:e});let p;try{p=DC(e,t,n,o,r,c),Hn(p)&&(p=p.then(null,d=>(c.errors.push(d),null)))}catch(d){c.errors.push(d),p=null}c.addData(p)}function bee(e,t,n,r,i,o,l,c,p){const d=new $5({label:c,path:t,parentContext:p,exeContext:r});let m;try{try{Hn(n)?m=n.then(b=>lc(r,l,i,o,t,b,d)):m=lc(r,l,i,o,t,n,d),Hn(m)&&(m=m.then(void 0,b=>{b=Ks(b);const y=pr(b,i,xi(t)),w=Ra(y,l,d.errors);return Jo(r,t,d),w}))}catch(b){const y=Ks(b),w=pr(y,i,xi(t));m=Ra(w,l,d.errors),Jo(r,t,d)}}catch(b){return d.errors.push(b),Jo(r,e,d),d.addItems(null),d}let E;return Hn(m)?E=m.then(b=>[b],b=>(d.errors.push(b),Jo(r,e,d),null)):E=[m],d.addItems(E),d}async function Eee(e,t,n,r,i,o,l){let c;try{const{value:d,done:m}=await e.next();if(m)return o.setIsCompletedIterator(),{done:m,value:void 0};c=d}catch(d){const m=Ks(d),E=pr(m,n,xi(l));return{done:!0,value:Ra(E,i,o.errors)}}let p;try{return p=lc(t,i,n,r,l,c,o),Hn(p)&&(p=p.then(void 0,d=>{const m=pr(d,n,xi(l)),E=Ra(m,i,o.errors);return Jo(t,l,o),E})),{done:!1,value:p}}catch(d){const m=pr(d,n,xi(l)),E=Ra(m,i,o.errors);return Jo(t,l,o),{done:!1,value:E}}}async function See(e,t,n,r,i,o,l,c,p){let d=e,m=p??void 0;for(;;){const E=Ep(l,d,void 0),b=new $5({label:c,path:E,parentContext:m,iterator:t,exeContext:n});let y;try{y=await Eee(t,n,r,i,o,b,E)}catch(N){b.errors.push(N),Jo(n,l,b),b.addItems(null),t!=null&&t.return&&t.return().catch(()=>{});return}const{done:w,value:x}=y;let k;if(Hn(x)?k=x.then(N=>[N],N=>(b.errors.push(N),Jo(n,l,b),null)):k=[x],b.addItems(k),w)break;m=b,d++}}function Jo(e,t,n){const r=xi(t);e.subsequentPayloads.forEach(i=>{var o;if(i!==n){for(let l=0;l<r.length;l++)if(i.path[l]!==r[l])return;RC(i)&&((o=i.iterator)!=null&&o.return)&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function Tee(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),RC(n)){const i=n.items;if(n.isCompletedIterator)continue;r.items=i}else{const i=n.data;r.data=i??null}r.path=n.path,n.label&&(r.label=n.label),n.errors.length>0&&(r.errors=n.errors),t.push(r)}}return t}function wee(e){let t=!1;async function n(){if(t)return{value:void 0,done:!0};const i=Array.from(e.subsequentPayloads).map(c=>c.promise);if(e.signalPromise?await Promise.race([e.signalPromise,...i]):await Promise.race(i),t)return{value:void 0,done:!0};const o=Tee(e),l=e.subsequentPayloads.size>0;return!o.length&&l?n():(l||(t=!0),{value:o.length?{incremental:o,hasNext:l}:{hasNext:l},done:!1})}function r(){const i=[];return e.subsequentPayloads.forEach(o=>{var l;RC(o)&&((l=o.iterator)!=null&&l.return)&&i.push(o.iterator.return())}),Promise.all(i)}return{[Symbol.asyncIterator](){return this},next:n,async return(){return await r(),t=!0,{value:void 0,done:!0}},async throw(i){throw await r(),t=!0,i},async[$l.asyncDispose](){await r(),t=!0}}}class xee{constructor(t){en(this,\"type\");en(this,\"errors\");en(this,\"label\");en(this,\"path\");en(this,\"promise\");en(this,\"data\");en(this,\"parentContext\");en(this,\"isCompleted\");en(this,\"_exeContext\");en(this,\"_resolve\");this.type=\"defer\",this.label=t.label,this.path=xi(t.path),this.parentContext=t.parentContext,this.errors=[],this._exeContext=t.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.data=null,this.promise=new Promise(n=>{this._resolve=r=>{n(r)}}).then(n=>{this.data=n,this.isCompleted=!0})}addData(t){var r,i,o;const n=(r=this.parentContext)==null?void 0:r.promise;if(n){(i=this._resolve)==null||i.call(this,n.then(()=>t));return}(o=this._resolve)==null||o.call(this,t)}}class $5{constructor(t){en(this,\"type\");en(this,\"errors\");en(this,\"label\");en(this,\"path\");en(this,\"items\");en(this,\"promise\");en(this,\"parentContext\");en(this,\"iterator\");en(this,\"isCompletedIterator\");en(this,\"isCompleted\");en(this,\"_exeContext\");en(this,\"_resolve\");this.type=\"stream\",this.items=null,this.label=t.label,this.path=xi(t.path),this.parentContext=t.parentContext,this.iterator=t.iterator,this.errors=[],this._exeContext=t.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.items=null,this.promise=new Promise(n=>{this._resolve=r=>{n(r)}}).then(n=>{this.items=n,this.isCompleted=!0})}addItems(t){var r,i,o;const n=(r=this.parentContext)==null?void 0:r.promise;if(n){(i=this._resolve)==null||i.call(this,n.then(()=>t));return}(o=this._resolve)==null||o.call(this,t)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function RC(e){return e.type===\"stream\"}function z5(e,t,n){const r=n.name.value;return r===Ta.name&&e.getQueryType()===t?Ta:r===wa.name&&e.getQueryType()===t?wa:r===xa.name?xa:t.getFields()[r]}function Cee(e){const t=VE(e.document,e.operationName);if(t==null)throw new Error(\"Must provide an operation.\");return t.operation===\"subscription\"?hee(e):Ht(()=>iee(e),n=>mee(n)?j5(n):n)}const _ee=Aa(function(t){return function(r){var i;return Cee({schema:t,document:r.document,variableValues:r.variables,operationName:r.operationName,rootValue:r.rootValue,contextValue:r.context,signal:r.signal||((i=r.info)==null?void 0:i.signal)})}});var MC,H5;function Nee(){if(H5)return MC;H5=1;var e=function(){function y(x,k){if(typeof x!=\"function\")throw new TypeError(\"DataLoader must be constructed with a function which accepts \"+(\"Array<key> and returns Promise<Array<value>>, but got: \"+x+\".\"));this._batchLoadFn=x,this._maxBatchSize=c(k),this._batchScheduleFn=p(k),this._cacheKeyFn=d(k),this._cacheMap=m(k),this._batch=null,this.name=E(k)}var w=y.prototype;return w.load=function(k){if(k==null)throw new TypeError(\"The loader.load() function must be called with a value, \"+(\"but got: \"+String(k)+\".\"));var N=r(this),A=this._cacheMap,O;if(A){O=this._cacheKeyFn(k);var _=A.get(O);if(_){var M=N.cacheHits||(N.cacheHits=[]);return new Promise(function(P){M.push(function(){P(_)})})}}N.keys.push(k);var V=new Promise(function(P,F){N.callbacks.push({resolve:P,reject:F})});return A&&A.set(O,V),V},w.loadMany=function(k){if(!b(k))throw new TypeError(\"The loader.loadMany() function must be called with Array<key> \"+(\"but got: \"+k+\".\"));for(var N=[],A=0;A<k.length;A++)N.push(this.load(k[A]).catch(function(O){return O}));return Promise.all(N)},w.clear=function(k){var N=this._cacheMap;if(N){var A=this._cacheKeyFn(k);N.delete(A)}return this},w.clearAll=function(){var k=this._cacheMap;return k&&k.clear(),this},w.prime=function(k,N){var A=this._cacheMap;if(A){var O=this._cacheKeyFn(k);if(A.get(O)===void 0){var _;N instanceof Error?(_=Promise.reject(N),_.catch(function(){})):_=Promise.resolve(N),A.set(O,_)}}return this},y}(),t=typeof process==\"object\"&&typeof process.nextTick==\"function\"?function(y){n||(n=Promise.resolve()),n.then(function(){process.nextTick(y)})}:typeof setImmediate==\"function\"?function(y){setImmediate(y)}:function(y){setTimeout(y)},n;function r(y){var w=y._batch;if(w!==null&&!w.hasDispatched&&w.keys.length<y._maxBatchSize)return w;var x={hasDispatched:!1,keys:[],callbacks:[]};return y._batch=x,y._batchScheduleFn(function(){i(y,x)}),x}function i(y,w){if(w.hasDispatched=!0,w.keys.length===0){l(w);return}var x;try{x=y._batchLoadFn(w.keys)}catch(k){return o(y,w,new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function \"+(\"errored synchronously: \"+String(k)+\".\")))}if(!x||typeof x.then!=\"function\")return o(y,w,new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \"+(\"not return a Promise: \"+String(x)+\".\")));x.then(function(k){if(!b(k))throw new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \"+(\"not return a Promise of an Array: \"+String(k)+\".\"));if(k.length!==w.keys.length)throw new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\"+(`\n\nKeys:\n`+String(w.keys))+(`\n\nValues:\n`+String(k)));l(w);for(var N=0;N<w.callbacks.length;N++){var A=k[N];A instanceof Error?w.callbacks[N].reject(A):w.callbacks[N].resolve(A)}}).catch(function(k){o(y,w,k)})}function o(y,w,x){l(w);for(var k=0;k<w.keys.length;k++)y.clear(w.keys[k]),w.callbacks[k].reject(x)}function l(y){if(y.cacheHits)for(var w=0;w<y.cacheHits.length;w++)y.cacheHits[w]()}function c(y){var w=!y||y.batch!==!1;if(!w)return 1;var x=y&&y.maxBatchSize;if(x===void 0)return 1/0;if(typeof x!=\"number\"||x<1)throw new TypeError(\"maxBatchSize must be a positive number: \"+x);return x}function p(y){var w=y&&y.batchScheduleFn;if(w===void 0)return t;if(typeof w!=\"function\")throw new TypeError(\"batchScheduleFn must be a function: \"+w);return w}function d(y){var w=y&&y.cacheKeyFn;if(w===void 0)return function(x){return x};if(typeof w!=\"function\")throw new TypeError(\"cacheKeyFn must be a function: \"+w);return w}function m(y){var w=!y||y.cache!==!1;if(!w)return null;var x=y&&y.cacheMap;if(x===void 0)return new Map;if(x!==null){var k=[\"get\",\"set\",\"delete\",\"clear\"],N=k.filter(function(A){return x&&typeof x[A]!=\"function\"});if(N.length!==0)throw new TypeError(\"Custom cacheMap missing methods: \"+N.join(\", \"))}return x}function E(y){return y&&y.name?y.name:null}function b(y){return typeof y==\"object\"&&y!==null&&typeof y.length==\"number\"&&(y.length===0||y.length>0&&Object.prototype.hasOwnProperty.call(y,y.length-1))}return MC=e,MC}var Aee=Nee();const G5=Mu(Aee);function Oee(e){return`_v${e}_`}function W5(e){const t=/^_v(\\d+)_(.*)$/.exec(e);return t&&t.length===3&&!isNaN(Number(t[1]))&&t[2]?{index:Number(t[1]),originalKey:t[2]}:null}function Dee(e){const t=W5(e);if(!t)throw new Error(`Key ${e} is not correctly prefixed`);return t}function kee(e){let t=0,n=null;for(;!n&&t<e.length;t++){const r=e[t];typeof r==\"string\"&&(n=W5(r))}if(!n)throw new Error(`Path ${e.join(\".\")} does not contain correctly prefixed key`);return{...n,keyOffset:t}}function Ree(e,t){var E,b,y;const n=Object.create(null),r=[],i=[],o=[];let l=Object.create(null);for(let w=0;w<e.length;w++){const x=e[w];if(x){const k=Mee(Oee(w),x);for(const N of k.document.definitions)X5(N)&&(i.push(...N.selectionSet.selections),N.variableDefinitions&&r.push(...N.variableDefinitions)),Pb(N)&&o.push(N);Object.assign(n,k.variables),l=t(l,x)}}const c=e[0];if(!c)throw new Error(\"At least one request is required\");const p=c.operationType??jf(c).operation,d={kind:X.OPERATION_DEFINITION,operation:p,variableDefinitions:r,selectionSet:{kind:X.SELECTION_SET,selections:i}},m=c.operationName??((y=(b=(E=c.info)==null?void 0:E.operation)==null?void 0:b.name)==null?void 0:y.value);return m&&(d.name={kind:X.NAME,value:m}),{document:{kind:X.DOCUMENT,definitions:[d,...o]},variables:n,extensions:l,context:c.context,info:c.info,operationType:p,rootValue:c.rootValue}}function Mee(e,t){var d;function n(m){return K5(m,e)}let r=Lee(e,t.document),i=!1;for(const m of r.definitions)if(Pb(m)||X5(m)&&((d=m.variableDefinitions)!=null&&d.length)){i=!0;break}const o={};let l=!1;i&&(r=Er(r,{[X.VARIABLE]:n,[X.FRAGMENT_DEFINITION](m){return l=!0,n(m)},[X.FRAGMENT_SPREAD]:m=>(m=K5(m,e),o[m.name.value]=!0,m)}));let c;const p=t.variables;if(p){c=Object.create(null);for(const m in p)c[e+m]=p[m]}return l&&(r={...r,definitions:r.definitions.filter(m=>!Pb(m)||o[m.name.value])}),{document:r,variables:c}}function Lee(e,t){const n={[X.OPERATION_DEFINITION]:r=>{const{selections:i}=r.selectionSet;return{...r,selectionSet:{...r.selectionSet,selections:Y5(e,i,t)}}}};return Er(t,n,{[X.DOCUMENT]:[\"definitions\"]})}function Y5(e,t,n){return t.map(r=>{switch(r.kind){case X.INLINE_FRAGMENT:return Q5(e,r,n);case X.FRAGMENT_SPREAD:{const i=Iee(r,n);return Q5(e,i,n)}case X.FIELD:default:return Fee(r,e)}})}function Q5(e,t,n){const{selections:r}=t.selectionSet;return{...t,selectionSet:{...t.selectionSet,selections:Y5(e,r,n)}}}function Iee(e,t){const n=t.definitions.find(o=>Pb(o)&&o.name.value===e.name.value);if(!n)throw new Error(`Fragment ${e.name.value} does not exist`);const{typeCondition:r,selectionSet:i}=n;return{kind:X.INLINE_FRAGMENT,typeCondition:r,selectionSet:i,directives:e.directives}}function K5(e,t){return{...e,name:{...e.name,value:t+e.name.value}}}function Fee(e,t){const n=e.alias?e.alias:e.name;return{...e,alias:{...n,value:t+n.value}}}function X5(e){return e.kind===X.OPERATION_DEFINITION}function Pb(e){return e.kind===X.FRAGMENT_DEFINITION}function Pee({data:e,errors:t},n){const r=[];for(let i=0;i<n;i++)r.push({});if(e)for(const i in e){const{index:o,originalKey:l}=Dee(i),c=r[o];c!=null&&(c.data==null?c.data={[l]:e[i]}:c.data[l]=e[i])}if(t)for(const i of t)if(i.path){const{index:o,originalKey:l,keyOffset:c}=kee(i.path),p=hC(i,[l,...i.path.slice(c)]),d=r[o];d&&(d.errors||(d.errors=[])).push(p)}else r.forEach(o=>{(o.errors||(o.errors=[])).push(i)});return r}function jee(e,t,n=Uee){const r=Vee(e,n),i=new G5(r,t),o=new G5(r,t);return function(c){var d;const p=c.operationType??((d=jf(c))==null?void 0:d.operation);switch(p){case\"query\":return i.load(c);case\"mutation\":return o.load(c);case\"subscription\":return e(c);default:throw new Error(`Invalid operation type \"${p}\"`)}}}function Vee(e,t){return function(r){if(r.length===1&&r[0]){const o=r[0];return Bl(Ht(()=>e(o),l=>[l],l=>[l]))}const i=Ree(r,t);return Bl(Ht(()=>e(i),o=>{if(ac(o))throw new Error(\"Executor must not return incremental results for batching\");return Pee(o,r.length)}))}}function Uee(e,t){const n=t.extensions;return n!=null&&Object.assign(e,n),e}const qee=VZ(function(t,n,r,i){return jee(n,r,i)}),LC=Tb(function(t,n){const r=n.transforms;return r==null?t:r.reduce((i,o)=>{var l;return((l=o.transformSchema)==null?void 0:l.call(o,i,n))||i},t)});class Bee{constructor(t){en(this,\"name\");en(this,\"schema\");en(this,\"executor\");en(this,\"batch\");en(this,\"batchingOptions\");en(this,\"createProxyingResolver\");en(this,\"transforms\");en(this,\"_transformedSchema\");en(this,\"merge\");this.name=t.name,this.schema=t.schema,this.executor=t.executor,this.batch=t.batch,this.batchingOptions=t.batchingOptions,this.createProxyingResolver=t.createProxyingResolver,this.transforms=t.transforms??[],this.merge=t.merge}get transformedSchema(){var t,n;return this._transformedSchema||(((n=(t=globalThis.process)==null?void 0:t.env)==null?void 0:n.DEBUG)!=null&&console.warn(\"Transformed schema is not set yet. Returning a dummy one.\"),this._transformedSchema=LC(this.schema,this)),this._transformedSchema}set transformedSchema(t){this._transformedSchema=t}}const $ee=[\"__proto__\",\"constructor\",\"prototype\"];function zee(e){return $ee.includes(e)}const Hee=new WeakMap,Z5=Symbol(\"PLAN_LEFT_OVER\");function J5(e){if(e!=null&&typeof e==\"object\")return e[Z5]}const ea=Symbol.for(\"subschemaErrors\"),Cp=Symbol.for(\"initialSubschema\"),ps=Symbol.for(\"subschemaMap\");function jb(e){return e[ea]!==void 0}function Gee(e,t,n,r){return Object.defineProperties(e,{[Cp]:{value:n,writable:!0},[ps]:{value:r,writable:!0},[ea]:{value:t,writable:!0}}),e}function Vb(e,t){var n;return((n=e[ps])==null?void 0:n[t])??e[Cp]}function e4(e){return e[ea]}const Wee=[],Ub=Object.create(null),t4=Aa(function(e){return[e]});function Yee(e,t,n,r,i){var c;const o=e.delegationPlanBuilder(i.schema,n,i.variableValues!=null&&Object.keys(i.variableValues).length>0?i.variableValues:Ub,i.fragments!=null&&Object.keys(i.fragments).length>0?i.fragments:Ub,(c=i.fieldNodes)!=null&&c.length?i.fieldNodes.length===1&&i.fieldNodes[0]?t4(i.fieldNodes[0]):i.fieldNodes:Wee,r,i),l=Hee.get(o);return l&&(t[Z5]=l),Ht(()=>X3(o,(p,d)=>Qee(e,d,t,r,i),void 0),()=>t)}function _p(e,t,n,r,i,o,l,c){if(e instanceof Error||e==null){const m=t.transformedSchema||o.schema,E=m.getType(r.__typename),{fields:b}=bC(m,o.fragments,o.variableValues,E,n),y={};for(const[w,x]of b){const k=[...l,w];e instanceof Me?e.message.includes(\"Cannot return null for non-nullable field\")?y[w]=null:y[w]=hC(e,k):e instanceof Error?y[w]=pr(e,x,k):y[w]=null}e=y}else e[ea]&&c.push(...e[ea]);const p=e[Cp],d=e[ps];for(const m in e){if(zee(m))continue;const E=r[m],b=e[m];m===\"__typename\"&&E!==b&&lr(t.transformedSchema.getType(b))||((b!=null||E==null)&&(E!=null&&typeof E==\"object\"&&!(E instanceof Error)&&Object.keys(E).length>0?Array.isArray(E)&&Array.isArray(b)&&E.length===b.length?r[m]=E.map((y,w)=>b instanceof Error?y:lg([y,b[w]],void 0,!0,!0)):b instanceof Error||(r[m]=lg([E,b],void 0,!0,!0)):r[m]=b),i[m]=(d==null?void 0:d[m])??p??t)}}function Qee(e,t,n,r,i){const o=n[ea],l=xi(i.path),c=n[ps],p=[];for(const[d,m]of t){const b=(d.transformedSchema||i.schema).getType(n.__typename),y=e.resolvers.get(d);if(y)try{const w=y(n,r,i,d,m,void 0,b);Hn(w)?p.push(w.then(x=>_p(x,d,m,n,c,i,l,o),x=>_p(x,d,m,n,c,i,l,o))):_p(w,d,m,n,c,i,l,o)}catch(w){_p(w,d,m,n,c,i,l,o)}}if(p.length)return p.length===1?p[0]:Promise.all(p)}function dg(e,t,n,r,i,o=Jee(i),l){const c=Fu(o);if(e instanceof Error)return e;if(e==null)return Zee(t);if(ri(c))try{return c.parseValue(e)}catch{return null}else{if(Qr(c))return Ht(()=>Kee(c,e,t,n,r,i,l),p=>i&&lr(c)&&p.__typename!=null&&!i.schema.getType(p.__typename)?null:p);if(hn(c))return Array.isArray(e)?Xee(c,e,t,n,r,i,l):dg(e,t,n,r,i,c.ofType,l)}}function Kee(e,t,n,r,i,o,l){var m,E,b,y;if(jb(t)||Gee(t,n,r,Object.create(null)),l||o==null)return t;const c=(m=o.schema.extensions)==null?void 0:m.stitchingInfo;if(c==null)return t;let p;const d=[t.__typename,e.name];for(const w of d)if(w!=null&&((y=(b=(E=c.mergedTypes[w])==null?void 0:E.targetSubschemas)==null?void 0:b.get(r))!=null&&y.length)){p=c.mergedTypes[w];break}return p?Yee(p,t,r,i,o):t}function Xee(e,t,n,r,i,o,l){return t.map(c=>dg(c,n,r,i,o,e.ofType,l))}const n4=new WeakMap;function Zee(e){if(e.length){const t=[];for(const n of e)n4.has(n)||(t.push(n),n4.set(n,!0));if(t.length){const n=t[0];return t.length===1&&n?pr(n,void 0,n.path):new AggregateError(t.map(r=>pr(r,void 0,n==null?void 0:n.path)),t.map(r=>r.message).join(`, \n`))}}return null}function Jee(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}function ete(e={data:null,errors:[]},t){const{context:n,info:r,fieldName:i=tte(r),subschema:o,returnType:l=nte(r),skipTypeMerging:c,onLocatedError:p}=t,{data:d,unpathedErrors:m}=r4(e.data==null?void 0:e.data[i],e.errors==null?[]:e.errors,r!=null&&r.path?Ti(r.path):void 0,p);return dg(d,m,o,n,r,l,c)}function r4(e,t,n,r,i=1){var c;if(e==null){if(!t.length)return{data:null,unpathedErrors:[]};if(t.length===1&&t[0]){const d=r?r(t[0]):t[0],m=n===void 0?d.path:d.path?n.concat(d.path.slice(1)):n;return{data:hC(t[0],m),unpathedErrors:[]}}return{data:new AggregateError(t.map(d=>pr(d,void 0,n)),t.map(d=>d.message).join(`, \n`)),unpathedErrors:[]}}if(!t.length)return{data:e,unpathedErrors:[]};const o=[],l=new Map;for(const p of t){const d=(c=p.path)==null?void 0:c[i];if(d!=null){let m=l.get(d);m===void 0?(m=[p],l.set(d,m)):m.push(p)}else o.push(p)}for(const[p,d]of l)if(e[p]!==void 0){const{data:m,unpathedErrors:E}=r4(e[p],d,n,r,i+1);e[p]=m,o.push(...E)}else o.push(...d);return{data:e,unpathedErrors:o}}function tte(e){if(e==null)throw new Error(\"Data cannot be extracted from result without an explicit key or source schema.\");return yC(e)}function nte(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}function i4(e){const t=[],n=[],r=new Set;for(let i=0;i<e.definitions.length;i++){const o=e.definitions[i];(o==null?void 0:o.kind)===X.FRAGMENT_DEFINITION?(n.push(o),r.add(o.name.value)):(o==null?void 0:o.kind)===X.OPERATION_DEFINITION&&t.push(o)}return{operations:t,fragments:n,fragmentNames:r}}const IC=Aa(function(t){return new Uu(t)}),rte=Tb(function(t,n){return Uv.major<16?new Uu(t,void 0,n):new Uu(t,n)});function o4(e,t,n,r,i,o,l){if(e[r]={kind:X.ARGUMENT,name:{kind:X.NAME,value:r},value:{kind:X.VARIABLE,name:{kind:X.NAME,value:i}}},t[i]={kind:X.VARIABLE_DEFINITION,variable:{kind:X.VARIABLE,name:{kind:X.NAME,value:i}},type:mC(o)},l!==void 0){n[i]=l;return}i in n&&delete n[i]}function a4(e){let t=0;return n=>{let r;do r=t===0?n:`_v${t.toString()}_${n}`,t++;while(r in e);return r}}function ite(e,t,n,r,i){var w,x,k;let o=[],l=[];const c=[];let p=[];const d=[],m=Object.create(null);for(const N of t){const A=N.typeCondition.name.value,O=e.getType(A);O!=null&&(d.push(N),m[N.name.value]=O)}let E=Object.create(null);for(const N of n){const A=wb(e,N.operation),{selectionSet:O,usedFragments:_,usedVariables:M}=l4(e,A,m,N.selectionSet,r);l=pg(l,_);const{usedVariables:V,newFragments:P,fragmentSet:F}=ute(e,E,d,m,l,r),j=pg(M,V);o=pg(o,j),p=P,E=F;const q=(N.variableDefinitions??[]).filter(Q=>j.indexOf(Q.variable.name.value)!==-1);N.operation===\"subscription\"&&(O.selections=O.selections.filter(Q=>Q.kind!==X.FIELD||Q.name.value!==\"__typename\")),!(O.selections.length===1&&O.selections[0]&&O.selections[0].kind===X.FIELD&&O.selections[0].name.value===\"__typename\")&&c.push({kind:X.OPERATION_DEFINITION,operation:N.operation,name:N.name,directives:N.directives,variableDefinitions:q,selectionSet:O})}if(!c.length)throw Kt(\"Failed to create a gateway request. The request must contain at least one operation.\",{extensions:{[k5]:!0}});let b={kind:X.DOCUMENT,definitions:[...c,...p]};const y=(k=(x=(w=i.info)==null?void 0:w.schema)==null?void 0:x.extensions)==null?void 0:k.stitchingInfo;if(y!=null){const N=IC(e);b=Er(b,qu(N,{[X.FIELD](A){var _,M,V;const O=N.getParentType();if(O){const P=O.name,F=(_=y==null?void 0:y.mergedTypes)==null?void 0:_[P];if(F){const j=(M=F==null?void 0:F.providedSelectionsByField)==null?void 0:M.get(i.subschema);if(j){const q=j[A.name.value];if(q)return{...A,selectionSet:{kind:X.SELECTION_SET,selections:[...q.selections,...((V=A.selectionSet)==null?void 0:V.selections)??[]]}}}}}return A}}))}return{usedVariables:o,newDocument:b}}function ote(e,t,n){let{document:r,variables:i}=e,{operations:o,fragments:l}=i4(r);const{targetSchema:c,args:p}=t;if(p){const b=ste(c,o,p);o=b.newOperations,i=Object.assign({},i??{},b.newVariables)}const{usedVariables:d,newDocument:m}=ite(c,l,o,n,t),E={};if(i!=null)for(const b of d){const y=i[b];y!==void 0&&(E[b]=y)}return{...e,document:m,variables:E}}function ate(e){return e.kind===X.FIELD&&!e.alias&&e.name.value===\"__typename\"}function s4(e){let t=!1;const n=e.filter(r=>ate(r)?(t=!0,!1):!0);return{hasTypeNameField:t,selections:n}}function ste(e,t,n){const r=Object.create(null);return{newOperations:t.map(o=>{const l=(o.variableDefinitions??[]).reduce((m,E)=>({...m,[E.variable.name.value]:E}),{}),c=wb(e,o.operation),p=[];for(const m of o.selectionSet.selections)if(m.kind===X.FIELD){const b=(m.arguments??[]).reduce((w,x)=>({...w,[x.name.value]:x}),{}),y=c.getFields()[m.name.value];y!=null&&lte(y,b,l,r,n),p.push({...m,arguments:Object.values(b)})}else p.push(m);const d={kind:X.SELECTION_SET,selections:p};return{...o,variableDefinitions:Object.values(l),selectionSet:d}}),newVariables:r}}function lte(e,t,n,r,i){const o=a4(n);for(const l of e.args){const c=l.name,p=l.type;c in i&&o4(t,n,r,c,o(c),p,Cb(p,i[c]))}}function ute(e,t,n,r,i,o){let l=i.slice(),c=[];const p=[];for(;l.length!==0;){const d=l.pop(),m=n.find(E=>E.name.value===d);if(m!=null){const E=d,b=m.typeCondition.name.value,y=e.getType(b);if(y==null)throw new Error(`Fragment reference type \"${b}\", but the type is not contained within the target schema.`);const{selectionSet:w,usedFragments:x,usedVariables:k}=l4(e,y,r,m.selectionSet,o);l=pg(l,x),c=pg(c,k),E&&!(E in t)&&(t[E]=!0,p.push({kind:X.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:E},typeCondition:m.typeCondition,selectionSet:w}))}}return{usedVariables:c,newFragments:p,fragmentSet:t}}const cte={SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]},fte={SelectionSet:[\"selections\"],Field:[\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"value\"],InlineFragment:[\"directives\",\"selectionSet\"],FragmentSpread:[\"directives\"],FragmentDefinition:[\"selectionSet\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"arguments\"],ListValue:[\"values\"]};function l4(e,t,n,r,i){const o=[],l=[],c=rte(e,t),p=new WeakMap,d=new WeakMap,m=Er(r,qu(c,{[X.FIELD]:{enter:E=>{var y,w,x,k;const b=c.getParentType();if(At(b)||Rt(b)){const N=c.getFieldDef();if(!N)return null;const A=N.args!=null?N.args:[],O=Object.create(null);for(const _ of A)O[_.name]=_;if(E.arguments!=null){const _=[];for(const M of E.arguments)M.name.value in O&&_.push(M);if(_.length!==E.arguments.length)return{...E,arguments:_}}}if(sr(b)&&c.getType()==null){const N=[],A=E.name.value;for(const O of b.getTypes()){const M=O.getFields()[A];if(M!=null){const V=mn(M.type);if((w=(y=E.selectionSet)==null?void 0:y.selections)!=null&&w.length&&ri(V)||!((k=(x=E.selectionSet)==null?void 0:x.selections)!=null&&k.length)&&Qr(V))continue;N.push(O.name)}}if(N.length>0)return N.map(O=>({kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:O}},selectionSet:{kind:X.SELECTION_SET,selections:[E]}}))}},leave:E=>{const b=c.getType();if(b==null)return null;const y=mn(b);if(e.getType(y.name)==null)return null;if(At(y)||Rt(y)){const w=E.selectionSet!=null?E.selectionSet.selections:null;if(w==null||w.length===0)return null}}},[X.FRAGMENT_SPREAD]:{enter:E=>{if(!(E.name.value in n))return null;const b=c.getParentType(),y=n[E.name.value];if(!Ab(e,b,y))return null;o.push(E.name.value)}},[X.SELECTION_SET]:{enter:(E,b,y,w)=>{const x=c.getParentType(),{hasTypeNameField:k,selections:N}=s4(E.selections);return(k||x!=null&&lr(x))&&N.unshift({kind:X.FIELD,name:{kind:X.NAME,value:\"__typename\"}}),{...E,selections:N}}},[X.INLINE_FRAGMENT]:{enter:E=>{if(E.typeCondition!=null){const b=c.getParentType(),y=e.getType(E.typeCondition.name.value);if(sr(b)&&b.getTypes().some(w=>w.name===(y==null?void 0:y.name)))return E;if(!Ab(e,b,y))return null}},leave:(E,b,y)=>{var x,k,N,A,O;if(!((k=(x=E.selectionSet)==null?void 0:x.selections)!=null&&k.length))return null;if(Array.isArray(y)){const _=(N=E.typeCondition)==null?void 0:N.name.value;if(_){const M=e.getType(_);if(M&&\"getFields\"in M){const V=M.getFields();let P=p.get(y);P||(P=new Set,p.set(y,P));let F=d.get(y);F||(F=new Set,d.set(y,F)),E={...E,selectionSet:{...E.selectionSet,selections:E.selectionSet.selections.map(j=>{if(j.kind===X.FIELD){const q=j.name.value;if(!j.alias){const Q=V[q];if(Q){let ee;if(Qv(Q.type)?(F.add(q),ee=!0):(P.add(q),ee=!1),F.has(q)&&P.has(q))return i(),{...j,alias:{kind:X.NAME,value:ee?`_nullable_${q}`:`_nonNullable_${q}`}}}}}return j})}}}}}const{selections:w}=s4(E.selectionSet.selections);return w.length===0?null:{...E,selectionSet:{...E.selectionSet,selections:w},directives:(O=(A=E.directives)==null?void 0:A.filter)==null?void 0:O.call(A,_=>_.name.value!==\"defer\")}}}}),cte);return Er(m,{[X.VARIABLE]:E=>{l.push(E.name.value)}},fte),{selectionSet:m,usedFragments:o,usedVariables:l}}function pg(...e){const t=Object.create(null),n=[];for(const r of e)for(const i of r)i in t||(t[i]=!0,n.push(i));return n}function dte(e,t,n,r){const i=yte(n,t,e);if(r==null)return i;const o=new WeakSet,{possibleTypesMap:l,reversePossibleTypesMap:c,interfaceExtensionsMap:p,fieldNodesByType:d,fieldNodesByField:m,dynamicSelectionSetsByField:E}=mte(r,t),{operations:b,fragments:y,fragmentNames:w}=i4(i),{expandedFragments:x,fragmentReplacements:k}=vte(y,w,l),N=IC(t),A={kind:X.DOCUMENT,definitions:[...b,...y,...x]},O={Document:[\"definitions\"],OperationDefinition:[\"selectionSet\"],SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]};return Er(A,qu(N,{[X.SELECTION_SET]:_=>hte(_,k,t,N,l,c,p,d,m,E,r,o)}),O)}const pte=Tb(function(t,n){const r=new Map;return function(o){let l=r.get(o);if(!l){l=new Set;const c=n.getType(o),p=t.getType(o);if(lr(c)&&lr(p)){const d=n.getPossibleTypes(c),m=t.getPossibleTypes(p);for(const E of d){const b=t.getType(E.name);b&&(b&&m.some(y=>y.name===E.name)||l.add(E.name))}}r.set(o,l)}return l}});function hte(e,t,n,r,i,o,l,c,p,d,m,E){var w,x,k;const b=new Set,y=r.getParentType();if(y!=null){const N=mn(y),A=N.name,O=c[A];if(O)for(const V of O)b.add(V);const _=l[N.name],M=[];for(const V of e.selections)if(V.kind===X.INLINE_FRAGMENT)if(V.typeCondition!=null){if(!E.has(V)){E.add(V);const F=V.typeCondition.name.value,q=pte(n,m)(F);for(const ee of q)b.add({...V,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:ee}}});const Q=n.getType(F);if(At(Q)||Rt(Q)){const ee=Q.getFields();for(const Z of V.selectionSet.selections)if(Z.kind===X.FIELD){const W=Z.name.value;ee[W]||b.add(Z)}}else if(!Q)for(const ee of V.selectionSet.selections)b.add(ee)}const P=i[V.typeCondition.name.value];if(P==null){const F=(w=p[A])==null?void 0:w.__typename;if(F)for(const j of F)b.add(j);b.add(V);continue}for(const F of P){const j=n.getType(F);j!=null&&Ab(n,N,j)&&b.add(c4(F,V.selectionSet))}P.length===0&&b.add(V)}else b.add(V);else if(V.kind===X.FRAGMENT_SPREAD){const P=V.name.value;if(!t[P]){b.add(V);continue}for(const F of t[P]){const j=F.typeName;n.getType(j)!=null&&Ab(n,N,y)&&b.add({kind:X.FRAGMENT_SPREAD,name:{kind:X.NAME,value:F.fragmentName}})}}else{const P=V.name.value;if(lr(N)){const q=(x=p[A])==null?void 0:x.__typename;if(q)for(const Q of q)b.add(Q)}const F=p[A];F&&u4(V,new Set,F,b);const j=(k=d[A])==null?void 0:k[P];if(j!=null)for(const q of j){const Q=q(V);if(Q!=null)for(const ee of Q.selections)b.add(ee)}_!=null&&_[P]?M.push(V):b.add(V)}if(o[N.name]&&b.add({kind:X.FIELD,name:{kind:X.NAME,value:\"__typename\"}}),M.length){const V=i[N.name];if(V!=null)for(const P of V)b.add(c4(P,{kind:X.SELECTION_SET,selections:M}))}return{...e,selections:Array.from(b)}}return e}function u4(e,t,n,r){if(t.has(e.name.value))return;t.add(e.name.value);const i=n[e.name.value];if(i!=null)for(const o of i)r.add(o),u4(o,t,n,r)}function c4(e,t){return{kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:e}},selectionSet:t}}const mte=Tb((e,t)=>{var c;const n=e.getTypeMap(),r=t.getTypeMap(),i=Object.create(null),o=Object.create(null);for(const p in n){const d=n[p];if(lr(d)){const m=r[p];if(Rt(d)&&Rt(m)){const E=m.getFields(),b=d.getFields(),y=Object.create(null);let w=!0;for(const x in b)E[x]||(y[x]=!0,w=!1);w||(o[p]=y)}if(o[p]||!lr(m)){const E=e.getPossibleTypes(d);i[p]=[];for(const b of E)r[b.name]&&i[p].push(b.name)}}}const l=(c=e.extensions)==null?void 0:c.stitchingInfo;return{possibleTypesMap:i,reversePossibleTypesMap:gte(i),interfaceExtensionsMap:o,fieldNodesByType:(l==null?void 0:l.fieldNodesByType)??{},fieldNodesByField:(l==null?void 0:l.fieldNodesByField)??{},dynamicSelectionSetsByField:(l==null?void 0:l.dynamicSelectionSetsByField)??{}}});function gte(e){const t=Object.create(null);for(const n in e){const r=e[n];if(r)for(const i of r)t[i]||(t[i]=[]),t[i].push(n)}return t}function vte(e,t,n){let r=0;function i(c){let p;do p=`_${c}_Fragment${r.toString()}`,r++;while(t.has(p));return p}const o=[],l=Object.create(null);for(const c of e){const p=n[c.typeCondition.name.value];if(p!=null){const d=c.name.value;l[d]=[];for(const m of p){const E=i(m);t.add(E),o.push({kind:X.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:E},typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:m}},selectionSet:c.selectionSet}),l[d].push({fragmentName:E,typeName:m})}}}return{expandedFragments:o,fragmentReplacements:l}}function yte(e,t,n){const r=mn(e);if(ri(r))return n;let i=lr(r)?t.getPossibleTypes(r):[r];i.length===0&&(i=[r]);const o=UZ(t),l=IC(t),c={Document:[\"definitions\"],OperationDefinition:[\"selectionSet\"],SelectionSet:[\"selections\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]};return Er(n,qu(l,{[X.FRAGMENT_DEFINITION]:p=>{const d=p.typeCondition.name.value;if(!o.has(d))return!1},[X.FIELD]:p=>{const d=l.getType();if(d){const m=mn(d);if(lr(m)&&m.name!==r.name&&i.length>0)return{...p,selectionSet:{kind:X.SELECTION_SET,selections:i.map(E=>({kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:E.name}},selectionSet:p.selectionSet}))}}}}}),c)}class bte{constructor(t){en(this,\"transformations\",[]);en(this,\"delegationContext\");en(this,\"hasOverlappingAliases\",!1);this.delegationContext=t;const r=t.transforms.slice().reverse();for(const i of r)this.addTransform(i)}addTransform(t,n={}){this.transformations.push({transform:t,context:n})}transformRequest(t){var r;let n={...t,document:dte(t.document,this.delegationContext.transformedSchema,this.delegationContext.returnType,(r=this.delegationContext.info)==null?void 0:r.schema)};for(const i of this.transformations)i.transform.transformRequest&&(n=i.transform.transformRequest(n,this.delegationContext,i.context));return ote(n,this.delegationContext,()=>{this.hasOverlappingAliases=!0})}transformResult(t){let n=t;for(let r=this.transformations.length-1;r>=0;r--){const i=this.transformations[r];i!=null&&i.transform.transformResult&&(n=i.transform.transformResult(n,this.delegationContext,i.context))}return this.hasOverlappingAliases&&(n=qb(n)),ete(n,this.delegationContext)}}function qb(e){if(e!=null){if(Array.isArray(e))return e.map(qb);if(typeof e==\"object\"){const t={};for(const n in e)if(n.startsWith(\"_nullable_\")||n.startsWith(\"_nonNullable_\")){const r=n.replace(/^_nullable_/,\"\").replace(/^_nonNullable_/,\"\");t[r]=qb(e[n])}else t[n]=qb(e[n]);return t}}return e}function Ete(e,t){return e===t.getMutationType()?\"mutation\":e===t.getSubscriptionType()?\"subscription\":\"query\"}function Ste({sourceSchema:e,sourceParentType:t,sourceFieldName:n,fragments:r,variableDefinitions:i,variableValues:o,targetRootValue:l,targetOperationName:c,targetOperation:p,targetFieldName:d,selectionSet:m,fieldNodes:E,context:b,info:y}){var j;let w;const x=Object.create(null);if(m!=null)w=m;else{const q=[];for(const ee of E||[])if(ee.selectionSet)for(const Z of ee.selectionSet.selections)q.push(Z);w=q.length?{kind:X.SELECTION_SET,selections:q}:void 0;const Q=(j=E==null?void 0:E[0])==null?void 0:j.arguments;if(Q)for(const ee of Q)x[ee.name.value]=ee}const k=Object.create(null),N=Object.create(null);if(e!=null&&i!=null)for(const q of i){const Q=q.variable.name.value;N[Q]=q;const ee=Si(e,q.type),Z=Cb(ee,o==null?void 0:o[Q]);Z!==void 0&&(k[Q]=Z)}t!=null&&n!=null&&Tte(t,n,x,N,k);const A=E==null?void 0:E[0],O=d??(A==null?void 0:A.name.value);if(O===void 0)throw new Error('Either \"targetFieldName\" or a non empty \"fieldNodes\" array must be provided.');const _={kind:X.FIELD,arguments:Object.values(x),name:{kind:X.NAME,value:O},selectionSet:w,directives:A==null?void 0:A.directives},M=c?{kind:X.NAME,value:c}:void 0,P=[{kind:X.OPERATION_DEFINITION,name:M,operation:p,variableDefinitions:Object.values(N),selectionSet:{kind:X.SELECTION_SET,selections:[_]}}];if(r!=null)for(const q in r){const Q=r[q];Q&&P.push(Q)}return{document:{kind:X.DOCUMENT,definitions:P},variables:k,rootValue:l,operationName:c,context:b,info:y,operationType:p}}function Tte(e,t,n,r,i){const o=a4(r),l=e.getFields()[t];if(!l)throw new Error(`Field \"${t}\" was not found in type \"${e}\".`);for(const c of l.args){const p=c.name,d=c.type;if(n[p]===void 0){const m=c.defaultValue;m!==void 0&&o4(n,r,i,p,o(p),d,Cb(d,m))}}}function wte(e,t,n,r){var o,l,c;if(!e)return null;const i=yC(r);if(!jb(e))return Ty(e,t,n,r);if(!Object.prototype.hasOwnProperty.call(e,i)){const p=J5(e);if(p){let d=p.missingFieldsParentMap.get(e);d||(d=[],p.missingFieldsParentMap.set(e,d)),d.push(...r.fieldNodes.filter(x=>p.unproxiableFieldNodes.some(k=>k===x)));let m=p.missingFieldsParentDeferredMap.get(e);m||(m=new Map,p.missingFieldsParentDeferredMap.set(e,m));const E=$3();m.set(i,E);const b=(o=r.schema.extensions)==null?void 0:o.stitchingInfo,y=(e==null?void 0:e.__typename)||r.parentType.name,w=(c=(l=b==null?void 0:b.fieldNodesByField)==null?void 0:l[y])==null?void 0:c[r.fieldName];return w!=null&&w.every(x=>{var N;const k=((N=x.alias)==null?void 0:N.value)??x.name.value;return!!Object.prototype.hasOwnProperty.call(e,k)})&&FC(e,i,n,r),E.promise}return}return FC(e,i,n,r)}function FC(e,t,n,r){const i=Vb(e,t),o=e[t],l=e4(e),c=dg(o,l,i,n,r),p=J5(e);return p?Ht(()=>c,d=>(e[t]=d,xte(e,n,r,p),d)):c}function xte(e,t,n,r){var o,l,c,p;const i=(o=n.schema.extensions)==null?void 0:o.stitchingInfo;if(i)for(const d of r.nonProxiableSubschemas){const m=n.parentType.name,E=new Set,b=(l=i.mergedTypes[m])==null?void 0:l.selectionSets.get(d);b&&E.add(b);for(const y of r.unproxiableFieldNodes){const w=y.name.value,x=(p=(c=i.mergedTypes[m])==null?void 0:c.fieldSelectionSets.get(d))==null?void 0:p[w];x&&E.add(x)}if(E.size){const y={kind:X.SELECTION_SET,selections:Array.from(E).flatMap(w=>w.selections)};Ht(()=>Bb(e),w=>{f4(w,e,d,y,r,i,m,t,n)})}}}function f4(e,t,n,r,i,o,l,c,p){var d,m,E,b;if(Np(e,r)){const y=i.missingFieldsParentMap.get(t);if(y){const w=(d=o.mergedTypes[l])==null?void 0:d.resolvers.get(n);if(w){Object.assign(t,e);const x={kind:X.SELECTION_SET,selections:y};Ht(()=>w(t,c,p,n,x,p.parentType,p.parentType),k=>{Cte(k,n,x,t,i,c,p)},k=>_te(i,t,k))}}}else for(const y of r.selections)if(y.kind===X.FIELD&&((E=(m=y.selectionSet)==null?void 0:m.selections)!=null&&E.length)){const w=((b=y.alias)==null?void 0:b.value)??y.name.value,x=e[w],k=y.selectionSet;if(x!=null&&!Np(x,k)){async function N(A,O){var V,P;const _=A.__typename,M=Vb(e,w);if(M&&_){const F=(V=o.mergedTypes[_])==null?void 0:V.delegationPlanBuilder(p.schema,M,p.variableValues!=null&&Object.keys(p.variableValues).length>0?p.variableValues:Ub,p.fragments!=null&&Object.keys(p.fragments).length>0?p.fragments:Ub,t4(O),c,p);if(F!=null&&F.length)for(const j of F)for(const[q,Q]of j){const ee=(P=o.mergedTypes[_])==null?void 0:P.resolvers.get(q);if(ee){const Z=await ee(A,c,p,q,Q,p.parentType,p.parentType);Z&&_p(Z,q,Q,A,A[ps]||(A[ps]=new Map),p,Ti(p.path),A[ea]||(A[ea]=[]))}}Np(x,k)&&f4(e,t,n,r,i,o,l,c,p)}}Array.isArray(x)?x.forEach(A=>N(A,y)):N(x,y)}}}function Cte(e,t,n,r,i,o,l){_p(e,t,n,r,r[ps],l,Ti(l.path),r[ea]);const c=i.missingFieldsParentDeferredMap.get(r);if(c){for(const[p,d]of