@graphql-yoga/graphiql 4.4.1-alpha-20250827213240-0f554aeb3a0a7bb2111664b1685ed865805e9057 → 4.4.1-alpha-20250827213424-fc432af12054f35a192b11212337c897f51e491c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Fd,Yh){typeof exports=="object"&&typeof module<"u"?Yh(exports):typeof define=="function"&&define.amd?define(["exports"],Yh):(Fd=typeof globalThis<"u"?globalThis:Fd||self,Yh(Fd.YogaGraphiQL={}))})(this,function(Fd){"use strict";function Yh(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 X_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 J1={exports:{}},Wh={};/**
1
+ (function(Fd,Yh){typeof exports=="object"&&typeof module<"u"?Yh(exports):typeof define=="function"&&define.amd?define(["exports"],Yh):(Fd=typeof globalThis<"u"?globalThis:Fd||self,Yh(Fd.YogaGraphiQL={}))})(this,(function(Fd){"use strict";function Yh(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 X_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 J1={exports:{}},Wh={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var rN;function aV(){return rN||(rN=1,function(e){function t(ne,re){var se=ne.length;ne.push(re);e:for(;0<se;){var fe=se-1>>>1,Z=ne[fe];if(0<i(Z,re))ne[fe]=re,ne[se]=Z,se=fe;else break e}}function n(ne){return ne.length===0?null:ne[0]}function r(ne){if(ne.length===0)return null;var re=ne[0],se=ne.pop();if(se!==re){ne[0]=se;e:for(var fe=0,Z=ne.length,ge=Z>>>1;fe<ge;){var ae=2*(fe+1)-1,pe=ne[ae],ce=ae+1,he=ne[ce];if(0>i(pe,se))ce<Z&&0>i(he,pe)?(ne[fe]=he,ne[ce]=se,fe=ce):(ne[fe]=pe,ne[ae]=se,fe=ae);else if(ce<Z&&0>i(he,se))ne[fe]=he,ne[ce]=se,fe=ce;else break e}}return re}function i(ne,re){var se=ne.sortIndex-re.sortIndex;return se!==0?se:ne.id-re.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,x=!1,w=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function _(ne){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=ne)r(d),re.sortIndex=re.expirationTime,t(p,re);else break;re=n(d)}}function L(ne){if(w=!1,_(ne),!x)if(n(p)!==null)x=!0,V||(V=!0,J());else{var re=n(d);re!==null&&B(L,re.startTime-ne)}}var V=!1,P=-1,F=5,j=-1;function $(){return k?!0:!(e.unstable_now()-j<F)}function X(){if(k=!1,V){var ne=e.unstable_now();j=ne;var re=!0;try{e:{x=!1,w&&(w=!1,D(P),P=-1),y=!0;var se=b;try{t:{for(_(ne),E=n(p);E!==null&&!(E.expirationTime>ne&&$());){var fe=E.callback;if(typeof fe=="function"){E.callback=null,b=E.priorityLevel;var Z=fe(E.expirationTime<=ne);if(ne=e.unstable_now(),typeof Z=="function"){E.callback=Z,_(ne),re=!0;break t}E===n(p)&&r(p),_(ne)}else r(p);E=n(p)}if(E!==null)re=!0;else{var ge=n(d);ge!==null&&B(L,ge.startTime-ne),re=!1}}break e}finally{E=null,b=se,y=!1}re=void 0}}finally{re?J():V=!1}}}var J;if(typeof A=="function")J=function(){A(X)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,K=ee.port2;ee.port1.onmessage=X,J=function(){K.postMessage(null)}}else J=function(){N(X,0)};function B(ne,re){P=N(function(){ne(e.unstable_now())},re)}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_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"):F=0<ne?Math.floor(1e3/ne):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(ne){switch(b){case 1:case 2:case 3:var re=3;break;default:re=b}var se=b;b=re;try{return ne()}finally{b=se}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(ne,re){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var se=b;b=ne;try{return re()}finally{b=se}},e.unstable_scheduleCallback=function(ne,re,se){var fe=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?fe+se:fe):se=fe,ne){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=se+Z,ne={id:m++,callback:re,priorityLevel:ne,startTime:se,expirationTime:Z,sortIndex:-1},se>fe?(ne.sortIndex=se,t(d,ne),n(p)===null&&ne===n(d)&&(w?(D(P),P=-1):w=!0,B(L,se-fe))):(ne.sortIndex=Z,t(p,ne),x||y||(x=!0,V||(V=!0,J()))),ne},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(ne){var re=b;return function(){var se=b;b=re;try{return ne.apply(this,arguments)}finally{b=se}}}}(iE)),iE}var iN;function sV(){return iN||(iN=1,rE.exports=aV()),rE.exports}var oE={exports:{}},zi={};/**
25
+ */var rN;function aV(){return rN||(rN=1,(function(e){function t(ne,re){var se=ne.length;ne.push(re);e:for(;0<se;){var fe=se-1>>>1,Z=ne[fe];if(0<i(Z,re))ne[fe]=re,ne[se]=Z,se=fe;else break e}}function n(ne){return ne.length===0?null:ne[0]}function r(ne){if(ne.length===0)return null;var re=ne[0],se=ne.pop();if(se!==re){ne[0]=se;e:for(var fe=0,Z=ne.length,ge=Z>>>1;fe<ge;){var ae=2*(fe+1)-1,pe=ne[ae],ce=ae+1,he=ne[ce];if(0>i(pe,se))ce<Z&&0>i(he,pe)?(ne[fe]=he,ne[ce]=se,fe=ce):(ne[fe]=pe,ne[ae]=se,fe=ae);else if(ce<Z&&0>i(he,se))ne[fe]=he,ne[ce]=se,fe=ce;else break e}}return re}function i(ne,re){var se=ne.sortIndex-re.sortIndex;return se!==0?se:ne.id-re.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,x=!1,w=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function _(ne){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=ne)r(d),re.sortIndex=re.expirationTime,t(p,re);else break;re=n(d)}}function L(ne){if(w=!1,_(ne),!x)if(n(p)!==null)x=!0,V||(V=!0,J());else{var re=n(d);re!==null&&B(L,re.startTime-ne)}}var V=!1,P=-1,F=5,j=-1;function $(){return k?!0:!(e.unstable_now()-j<F)}function X(){if(k=!1,V){var ne=e.unstable_now();j=ne;var re=!0;try{e:{x=!1,w&&(w=!1,D(P),P=-1),y=!0;var se=b;try{t:{for(_(ne),E=n(p);E!==null&&!(E.expirationTime>ne&&$());){var fe=E.callback;if(typeof fe=="function"){E.callback=null,b=E.priorityLevel;var Z=fe(E.expirationTime<=ne);if(ne=e.unstable_now(),typeof Z=="function"){E.callback=Z,_(ne),re=!0;break t}E===n(p)&&r(p),_(ne)}else r(p);E=n(p)}if(E!==null)re=!0;else{var ge=n(d);ge!==null&&B(L,ge.startTime-ne),re=!1}}break e}finally{E=null,b=se,y=!1}re=void 0}}finally{re?J():V=!1}}}var J;if(typeof A=="function")J=function(){A(X)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,K=ee.port2;ee.port1.onmessage=X,J=function(){K.postMessage(null)}}else J=function(){N(X,0)};function B(ne,re){P=N(function(){ne(e.unstable_now())},re)}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_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"):F=0<ne?Math.floor(1e3/ne):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(ne){switch(b){case 1:case 2:case 3:var re=3;break;default:re=b}var se=b;b=re;try{return ne()}finally{b=se}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(ne,re){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var se=b;b=ne;try{return re()}finally{b=se}},e.unstable_scheduleCallback=function(ne,re,se){var fe=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?fe+se:fe):se=fe,ne){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=se+Z,ne={id:m++,callback:re,priorityLevel:ne,startTime:se,expirationTime:Z,sortIndex:-1},se>fe?(ne.sortIndex=se,t(d,ne),n(p)===null&&ne===n(d)&&(w?(D(P),P=-1):w=!0,B(L,se-fe))):(ne.sortIndex=Z,t(p,ne),x||y||(x=!0,V||(V=!0,J()))),ne},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(ne){var re=b;return function(){var se=b;b=re;try{return ne.apply(this,arguments)}finally{b=se}}}})(iE)),iE}var iN;function sV(){return iN||(iN=1,rE.exports=aV()),rE.exports}var oE={exports:{}},zi={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -222,12 +222,12 @@ ${t.join(`
222
222
  `+t+")"}function JE(e){const t=Ml(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${ln(t)}`),n+eS(e.deprecationReason)}function L8(e){return Sa(e)+"directive @"+e.name+oO(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function eS(e){return e==null?"":e!==vE?` @deprecated(reason: ${ln({kind:Q.STRING,value:e})})`:" @deprecated"}function I8(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${ln({kind:Q.STRING,value:e.specifiedByURL})})`}function Sa(e,t="",n=!0){const{description:r}=e;if(r==null)return"";const i=ln({kind:Q.STRING,value:r,block:EV(r)});return(t&&!n?`
223
223
  `+t:t)+i.replace(/\n/g,`
224
224
  `+t)+`
225
- `}function F8(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:Q.DOCUMENT,definitions:t}}function P8(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case Q.OPERATION_DEFINITION:t.push(i);break;case Q.FRAGMENT_DEFINITION:n[i.name.value]=sO(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const c of sO(i.selectionSet))aO(o,n,c);const l=i.name?i.name.value:"";r[l]={kind:Q.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===Q.FRAGMENT_DEFINITION&&o.has(c.name.value))}}return r}function aO(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)aO(e,t,i)}}function sO(e){const t=[];return Tr(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function tS(e){const t=wN(e)?e:new Zh(e),n=t.body,r=new fE(t);let i="",o=!1;for(;r.advance().kind!==Pe.EOF;){const l=r.token,c=l.kind,p=!bN(l.kind);o&&(p||l.kind===Pe.SPREAD)&&(i+=" ");const d=n.slice(l.start,l.end);c===Pe.BLOCK_STRING?i+=yN(l.value,{minimize:!0}):i+=d,o=p}return i}function j8(e){const t=lO(e);if(t)throw t;return e}function lO(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{Bo(e)}catch(t){return t}}var kr;(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"})(kr||(kr={}));var ts;(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"})(ts||(ts={}));function V8(e,t){return uO(e,t).filter(n=>n.type in kr)}function U8(e,t){return uO(e,t).filter(n=>n.type in ts)}function uO(e,t){return[...B8(e,t),...q8(e,t)]}function q8(e,t){const n=[],r=Ll(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:kr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const l=Ll(i.args,o.args);for(const c of l.added)Lu(c)&&n.push({type:kr.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:kr.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:kr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const c of i.locations)o.locations.includes(c)||n.push({type:kr.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function B8(e,t){const n=[],r=Ll(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:kr.TYPE_REMOVED,description:sm(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)Wn(i)&&Wn(o)?n.push(...H8(i,o)):ar(i)&&ar(o)?n.push(...z8(i,o)):nn(i)&&nn(o)?n.push(...$8(i,o)):At(i)&&At(o)?n.push(...fO(i,o),...cO(i,o)):Rt(i)&&Rt(o)?n.push(...fO(i,o),...cO(i,o)):i.constructor!==o.constructor&&n.push({type:kr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${dO(i)} to ${dO(o)}.`});return n}function $8(e,t){const n=[],r=Ll(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)oy(i)?n.push({type:kr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ts.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:kr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)gm(i.type,o.type)||n.push({type:kr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function z8(e,t){const n=[],r=Ll(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:ts.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:kr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function H8(e,t){const n=[],r=Ll(e.getValues(),t.getValues());for(const i of r.added)n.push({type:ts.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:kr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function cO(e,t){const n=[],r=Ll(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:ts.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:kr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function fO(e,t){const n=[],r=Ll(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:kr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...G8(e,i,o)),mm(i.type,o.type)||n.push({type:kr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function G8(e,t,n){const r=[],i=Ll(t.args,n.args);for(const o of i.removed)r.push({type:kr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,l]of i.persisted)if(!gm(o.type,l.type))r.push({type:kr.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:ts.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const p=pO(o.defaultValue,o.type),d=pO(l.defaultValue,l.type);p!==d&&r.push({type:ts.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)Lu(o)?r.push({type:kr.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:ts.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function mm(e,t){return mn(e)?mn(t)&&mm(e.ofType,t.ofType)||_t(t)&&mm(e,t.ofType):_t(e)?_t(t)&&mm(e.ofType,t.ofType):Rl(t)&&e.name===t.name||_t(t)&&mm(e,t.ofType)}function gm(e,t){return mn(e)?mn(t)&&gm(e.ofType,t.ofType):_t(e)?_t(t)&&gm(e.ofType,t.ofType)||!_t(t)&&gm(e.ofType,t):Rl(t)&&e.name===t.name}function dO(e){if(Oi(e))return"a Scalar type";if(At(e))return"an Object type";if(Rt(e))return"an Interface type";if(ar(e))return"a Union type";if(Wn(e))return"an Enum type";if(nn(e))return"an Input type";Vr(!1,"Unexpected type: "+Ue(e))}function pO(e,t){const n=Ml(e,t);return n!=null||Vr(!1),ln(Ey(n))}function Ll(e,t){const n=[],r=[],i=[],o=Ol(e,({name:c})=>c),l=Ol(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 Y8=Object.freeze(Object.defineProperty({__proto__:null,BREAK:df,get BreakingChangeType(){return kr},DEFAULT_DEPRECATION_REASON:vE,get DangerousChangeType(){return ts},get DirectiveLocation(){return lt},ExecutableDefinitionsRule:RE,FieldsOnCorrectTypeRule:GN,FragmentsOnCompositeTypesRule:YN,GRAPHQL_MAX_INT:sy,GRAPHQL_MIN_INT:ly,GraphQLBoolean:Zn,GraphQLDeprecatedDirective:dy,GraphQLDirective:To,GraphQLEnumType:Hi,GraphQLError:Me,GraphQLFloat:im,GraphQLID:om,GraphQLIncludeDirective:cy,GraphQLInputObjectType:so,GraphQLInt:rm,GraphQLInterfaceType:ao,GraphQLList:lr,GraphQLNonNull:Pt,GraphQLObjectType:si,GraphQLOneOfDirective:bE,GraphQLScalarType:ma,GraphQLSchema:mf,GraphQLSkipDirective:fy,GraphQLSpecifiedByDirective:yE,GraphQLString:Xn,GraphQLUnionType:Iu,get Kind(){return Q},KnownArgumentNamesRule:WN,KnownDirectivesRule:ME,KnownFragmentNamesRule:KN,KnownTypeNamesRule:LE,Lexer:fE,Location:hN,LoneAnonymousOperationRule:ZN,LoneSchemaDefinitionRule:JN,MaxIntrospectionDepthRule:eA,NoDeprecatedCustomRule:KA,NoFragmentCyclesRule:tA,NoSchemaIntrospectionCustomRule:v8,NoUndefinedVariablesRule:nA,NoUnusedFragmentsRule:IE,NoUnusedVariablesRule:rA,get OperationTypeNode(){return oi},OverlappingFieldsCanBeMergedRule:oA,PossibleFragmentSpreadsRule:cA,PossibleTypeExtensionsRule:fA,ProvidedRequiredArgumentsRule:dA,ScalarLeafsRule:hA,SchemaMetaFieldDef:va,SingleFieldSubscriptionsRule:EA,Source:Zh,Token:sE,get TokenKind(){return Pe},TypeInfo:Pu,get TypeKind(){return Un},TypeMetaFieldDef:ya,TypeNameMetaFieldDef:ba,UniqueArgumentDefinitionNamesRule:SA,UniqueArgumentNamesRule:$E,UniqueDirectiveNamesRule:TA,UniqueDirectivesPerLocationRule:zE,UniqueEnumValueNamesRule:xA,UniqueFieldDefinitionNamesRule:wA,UniqueFragmentNamesRule:CA,UniqueInputFieldNamesRule:HE,UniqueOperationNamesRule:_A,UniqueOperationTypesRule:NA,UniqueTypeNamesRule:AA,UniqueVariableNamesRule:OA,ValidationContext:IA,ValuesOfCorrectTypeRule:DA,VariablesAreInputTypesRule:kA,VariablesInAllowedPositionRule:RA,__Directive:SE,__DirectiveLocation:TE,__EnumValue:wE,__Field:xE,__InputValue:um,__Schema:hy,__Type:ga,__TypeKind:CE,assertAbstractType:MN,assertCompositeType:i6,assertDirective:u6,assertEnumType:XV,assertEnumValueName:DN,assertInputObjectType:ZV,assertInputType:t6,assertInterfaceType:RN,assertLeafType:r6,assertListType:JV,assertName:Bo,assertNamedType:a6,assertNonNullType:e6,assertNullableType:LN,assertObjectType:kN,assertOutputType:n6,assertScalarType:QV,assertSchema:_E,assertType:WV,assertUnionType:KV,assertValidName:j8,assertValidSchema:vy,assertWrappingType:o6,astFromValue:Ml,buildASTSchema:My,buildClientSchema:QE,buildSchema:KE,coerceInputValue:VE,concatAST:F8,createSourceEventStream:QA,defaultFieldResolver:Dy,defaultTypeResolver:HA,doTypesOverlap:nm,execute:_y,executeSync:jA,extendSchema:E8,findBreakingChanges:V8,findDangerousChanges:U8,formatError:gV,getArgumentValues:wy,getDirectiveValues:Ps,getEnterLeaveForKind:jd,getIntrospectionQuery:ky,getLocation:Kv,getNamedType:gn,getNullableType:Mu,getOperationAST:WE,getOperationRootType:y8,getVariableValues:vA,getVisitFn:HV,graphql:f8,graphqlSync:d8,introspectionFromSchema:b8,introspectionTypes:cm,isAbstractType:sr,isCompositeType:Qr,isConstValueNode:DE,isDefinitionNode:T6,isDirective:uy,isEnumType:Wn,isEqualType:ay,isExecutableDefinitionNode:OE,isInputObjectType:nn,isInputType:Di,isInterfaceType:Rt,isIntrospectionType:hf,isLeafType:ai,isListType:mn,isNamedType:Rl,isNonNullType:_t,isNullableType:tm,isObjectType:At,isOutputType:kl,isRequiredArgument:Lu,isRequiredInputField:oy,isScalarType:Oi,isSchema:my,isSelectionNode:x6,isSpecifiedDirective:py,isSpecifiedScalarType:sm,isType:Vd,isTypeDefinitionNode:qd,isTypeExtensionNode:by,isTypeNode:w6,isTypeSubTypeOf:pf,isTypeSystemDefinitionNode:yy,isTypeSystemExtensionNode:kE,isUnionType:ar,isValidNameError:lO,isValueNode:HN,isWrappingType:em,lexicographicSortSchema:T8,locatedError:xr,parse:Ai,parseConstValue:FV,parseType:PV,parseValue:CN,print:ln,printError:mV,printIntrospectionSchema:w8,printLocation:fN,printSchema:x8,printSourceLocation:aE,printType:nO,recommendedRules:MA,resolveObjMapThunk:gE,resolveReadonlyArrayThunk:mE,responsePathAsArray:bi,separateOperations:P8,specifiedDirectives:Fu,specifiedRules:GE,specifiedScalarTypes:am,stripIgnoredCharacters:tS,subscribe:h8,syntaxError:ii,typeFromAST:yi,validate:pm,validateSchema:gy,valueFromAST:Ea,valueFromASTUntyped:ry,version:dV,versionInfo:Qv,visit:Tr,visitInParallel:hE,visitWithTypeInfo:ju},Symbol.toStringTag,{value:"Module"}));var hO=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 mO(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function W8(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 gO(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function vO(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Q8(e){var t;return hO(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?.(),i.value})}function yO(e){return hO(this,void 0,void 0,function*(){const t=yield e;return vO(t)?Q8(t):gO(t)?W8(t):t})}async function K8(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=new TextDecoder("utf8"),b=o.getReader(),y=!0,x=l.length,w="",k=[];try{let N;e:for(;!(N=await b.read()).done;){let D=E.decode(N.value,{stream:!0});p=w.length,w+=D;let A=D.indexOf(l);for(~A?p+=A:p=w.indexOf(l),k=[];~p;){let _=w.slice(0,p),L=w.slice(p+x);if(d){let V=_.indexOf(`\r
225
+ `}function F8(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:Q.DOCUMENT,definitions:t}}function P8(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case Q.OPERATION_DEFINITION:t.push(i);break;case Q.FRAGMENT_DEFINITION:n[i.name.value]=sO(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const c of sO(i.selectionSet))aO(o,n,c);const l=i.name?i.name.value:"";r[l]={kind:Q.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===Q.FRAGMENT_DEFINITION&&o.has(c.name.value))}}return r}function aO(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)aO(e,t,i)}}function sO(e){const t=[];return Tr(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function tS(e){const t=wN(e)?e:new Zh(e),n=t.body,r=new fE(t);let i="",o=!1;for(;r.advance().kind!==Pe.EOF;){const l=r.token,c=l.kind,p=!bN(l.kind);o&&(p||l.kind===Pe.SPREAD)&&(i+=" ");const d=n.slice(l.start,l.end);c===Pe.BLOCK_STRING?i+=yN(l.value,{minimize:!0}):i+=d,o=p}return i}function j8(e){const t=lO(e);if(t)throw t;return e}function lO(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{Bo(e)}catch(t){return t}}var kr;(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"})(kr||(kr={}));var ts;(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"})(ts||(ts={}));function V8(e,t){return uO(e,t).filter(n=>n.type in kr)}function U8(e,t){return uO(e,t).filter(n=>n.type in ts)}function uO(e,t){return[...B8(e,t),...q8(e,t)]}function q8(e,t){const n=[],r=Ll(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:kr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const l=Ll(i.args,o.args);for(const c of l.added)Lu(c)&&n.push({type:kr.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:kr.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:kr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const c of i.locations)o.locations.includes(c)||n.push({type:kr.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function B8(e,t){const n=[],r=Ll(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:kr.TYPE_REMOVED,description:sm(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)Wn(i)&&Wn(o)?n.push(...H8(i,o)):ar(i)&&ar(o)?n.push(...z8(i,o)):nn(i)&&nn(o)?n.push(...$8(i,o)):At(i)&&At(o)?n.push(...fO(i,o),...cO(i,o)):Rt(i)&&Rt(o)?n.push(...fO(i,o),...cO(i,o)):i.constructor!==o.constructor&&n.push({type:kr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${dO(i)} to ${dO(o)}.`});return n}function $8(e,t){const n=[],r=Ll(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)oy(i)?n.push({type:kr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ts.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:kr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)gm(i.type,o.type)||n.push({type:kr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function z8(e,t){const n=[],r=Ll(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:ts.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:kr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function H8(e,t){const n=[],r=Ll(e.getValues(),t.getValues());for(const i of r.added)n.push({type:ts.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:kr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function cO(e,t){const n=[],r=Ll(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:ts.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:kr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function fO(e,t){const n=[],r=Ll(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:kr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...G8(e,i,o)),mm(i.type,o.type)||n.push({type:kr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function G8(e,t,n){const r=[],i=Ll(t.args,n.args);for(const o of i.removed)r.push({type:kr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,l]of i.persisted)if(!gm(o.type,l.type))r.push({type:kr.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:ts.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const p=pO(o.defaultValue,o.type),d=pO(l.defaultValue,l.type);p!==d&&r.push({type:ts.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)Lu(o)?r.push({type:kr.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:ts.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function mm(e,t){return mn(e)?mn(t)&&mm(e.ofType,t.ofType)||_t(t)&&mm(e,t.ofType):_t(e)?_t(t)&&mm(e.ofType,t.ofType):Rl(t)&&e.name===t.name||_t(t)&&mm(e,t.ofType)}function gm(e,t){return mn(e)?mn(t)&&gm(e.ofType,t.ofType):_t(e)?_t(t)&&gm(e.ofType,t.ofType)||!_t(t)&&gm(e.ofType,t):Rl(t)&&e.name===t.name}function dO(e){if(Oi(e))return"a Scalar type";if(At(e))return"an Object type";if(Rt(e))return"an Interface type";if(ar(e))return"a Union type";if(Wn(e))return"an Enum type";if(nn(e))return"an Input type";Vr(!1,"Unexpected type: "+Ue(e))}function pO(e,t){const n=Ml(e,t);return n!=null||Vr(!1),ln(Ey(n))}function Ll(e,t){const n=[],r=[],i=[],o=Ol(e,({name:c})=>c),l=Ol(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 Y8=Object.freeze(Object.defineProperty({__proto__:null,BREAK:df,get BreakingChangeType(){return kr},DEFAULT_DEPRECATION_REASON:vE,get DangerousChangeType(){return ts},get DirectiveLocation(){return lt},ExecutableDefinitionsRule:RE,FieldsOnCorrectTypeRule:GN,FragmentsOnCompositeTypesRule:YN,GRAPHQL_MAX_INT:sy,GRAPHQL_MIN_INT:ly,GraphQLBoolean:Zn,GraphQLDeprecatedDirective:dy,GraphQLDirective:To,GraphQLEnumType:Hi,GraphQLError:Me,GraphQLFloat:im,GraphQLID:om,GraphQLIncludeDirective:cy,GraphQLInputObjectType:so,GraphQLInt:rm,GraphQLInterfaceType:ao,GraphQLList:lr,GraphQLNonNull:Pt,GraphQLObjectType:si,GraphQLOneOfDirective:bE,GraphQLScalarType:ma,GraphQLSchema:mf,GraphQLSkipDirective:fy,GraphQLSpecifiedByDirective:yE,GraphQLString:Xn,GraphQLUnionType:Iu,get Kind(){return Q},KnownArgumentNamesRule:WN,KnownDirectivesRule:ME,KnownFragmentNamesRule:KN,KnownTypeNamesRule:LE,Lexer:fE,Location:hN,LoneAnonymousOperationRule:ZN,LoneSchemaDefinitionRule:JN,MaxIntrospectionDepthRule:eA,NoDeprecatedCustomRule:KA,NoFragmentCyclesRule:tA,NoSchemaIntrospectionCustomRule:v8,NoUndefinedVariablesRule:nA,NoUnusedFragmentsRule:IE,NoUnusedVariablesRule:rA,get OperationTypeNode(){return oi},OverlappingFieldsCanBeMergedRule:oA,PossibleFragmentSpreadsRule:cA,PossibleTypeExtensionsRule:fA,ProvidedRequiredArgumentsRule:dA,ScalarLeafsRule:hA,SchemaMetaFieldDef:va,SingleFieldSubscriptionsRule:EA,Source:Zh,Token:sE,get TokenKind(){return Pe},TypeInfo:Pu,get TypeKind(){return Un},TypeMetaFieldDef:ya,TypeNameMetaFieldDef:ba,UniqueArgumentDefinitionNamesRule:SA,UniqueArgumentNamesRule:$E,UniqueDirectiveNamesRule:TA,UniqueDirectivesPerLocationRule:zE,UniqueEnumValueNamesRule:xA,UniqueFieldDefinitionNamesRule:wA,UniqueFragmentNamesRule:CA,UniqueInputFieldNamesRule:HE,UniqueOperationNamesRule:_A,UniqueOperationTypesRule:NA,UniqueTypeNamesRule:AA,UniqueVariableNamesRule:OA,ValidationContext:IA,ValuesOfCorrectTypeRule:DA,VariablesAreInputTypesRule:kA,VariablesInAllowedPositionRule:RA,__Directive:SE,__DirectiveLocation:TE,__EnumValue:wE,__Field:xE,__InputValue:um,__Schema:hy,__Type:ga,__TypeKind:CE,assertAbstractType:MN,assertCompositeType:i6,assertDirective:u6,assertEnumType:XV,assertEnumValueName:DN,assertInputObjectType:ZV,assertInputType:t6,assertInterfaceType:RN,assertLeafType:r6,assertListType:JV,assertName:Bo,assertNamedType:a6,assertNonNullType:e6,assertNullableType:LN,assertObjectType:kN,assertOutputType:n6,assertScalarType:QV,assertSchema:_E,assertType:WV,assertUnionType:KV,assertValidName:j8,assertValidSchema:vy,assertWrappingType:o6,astFromValue:Ml,buildASTSchema:My,buildClientSchema:QE,buildSchema:KE,coerceInputValue:VE,concatAST:F8,createSourceEventStream:QA,defaultFieldResolver:Dy,defaultTypeResolver:HA,doTypesOverlap:nm,execute:_y,executeSync:jA,extendSchema:E8,findBreakingChanges:V8,findDangerousChanges:U8,formatError:gV,getArgumentValues:wy,getDirectiveValues:Ps,getEnterLeaveForKind:jd,getIntrospectionQuery:ky,getLocation:Kv,getNamedType:gn,getNullableType:Mu,getOperationAST:WE,getOperationRootType:y8,getVariableValues:vA,getVisitFn:HV,graphql:f8,graphqlSync:d8,introspectionFromSchema:b8,introspectionTypes:cm,isAbstractType:sr,isCompositeType:Qr,isConstValueNode:DE,isDefinitionNode:T6,isDirective:uy,isEnumType:Wn,isEqualType:ay,isExecutableDefinitionNode:OE,isInputObjectType:nn,isInputType:Di,isInterfaceType:Rt,isIntrospectionType:hf,isLeafType:ai,isListType:mn,isNamedType:Rl,isNonNullType:_t,isNullableType:tm,isObjectType:At,isOutputType:kl,isRequiredArgument:Lu,isRequiredInputField:oy,isScalarType:Oi,isSchema:my,isSelectionNode:x6,isSpecifiedDirective:py,isSpecifiedScalarType:sm,isType:Vd,isTypeDefinitionNode:qd,isTypeExtensionNode:by,isTypeNode:w6,isTypeSubTypeOf:pf,isTypeSystemDefinitionNode:yy,isTypeSystemExtensionNode:kE,isUnionType:ar,isValidNameError:lO,isValueNode:HN,isWrappingType:em,lexicographicSortSchema:T8,locatedError:xr,parse:Ai,parseConstValue:FV,parseType:PV,parseValue:CN,print:ln,printError:mV,printIntrospectionSchema:w8,printLocation:fN,printSchema:x8,printSourceLocation:aE,printType:nO,recommendedRules:MA,resolveObjMapThunk:gE,resolveReadonlyArrayThunk:mE,responsePathAsArray:bi,separateOperations:P8,specifiedDirectives:Fu,specifiedRules:GE,specifiedScalarTypes:am,stripIgnoredCharacters:tS,subscribe:h8,syntaxError:ii,typeFromAST:yi,validate:pm,validateSchema:gy,valueFromAST:Ea,valueFromASTUntyped:ry,version:dV,versionInfo:Qv,visit:Tr,visitInParallel:hE,visitWithTypeInfo:ju},Symbol.toStringTag,{value:"Module"}));var hO=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 mO(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function W8(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 gO(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function vO(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Q8(e){var t;return hO(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?.(),i.value})}function yO(e){return hO(this,void 0,void 0,function*(){const t=yield e;return vO(t)?Q8(t):gO(t)?W8(t):t})}async function K8(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=new TextDecoder("utf8"),b=o.getReader(),y=!0,x=l.length,w="",k=[];try{let N;e:for(;!(N=await b.read()).done;){let D=E.decode(N.value,{stream:!0});p=w.length,w+=D;let A=D.indexOf(l);for(~A?p+=A:p=w.indexOf(l),k=[];~p;){let _=w.slice(0,p),L=w.slice(p+x);if(d){let V=_.indexOf(`\r
226
226
  \r
227
227
  `)+4,P=_.lastIndexOf(`\r
228
228
  `,V),F=!1,j=_.slice(V,P>-1?void 0:P),$=String(_.slice(0,V)).trim().split(`\r
229
229
  `),X={},J=$.length;for(;m=$[--J];m=m.split(": "),X[m.shift().toLowerCase()]=m.join(": "));if(m=X["content-type"],m&&~m.indexOf("application/json"))try{j=JSON.parse(j),F=!0}catch{}if(m={headers:X,body:j,json:F},y?yield m:k.push(m),L.slice(0,2)==="--")break e}else l=`\r
230
- `+l,d=x+=2;w=L,p=w.indexOf(l)}k.length&&(yield k)}}finally{k.length&&(yield k),await b.cancel()}}(e.body,`--${i}`)}var nS=function(e){return this instanceof nS?(this.v=e,this):new nS(e)};function rS(e){return JSON.stringify(e,null,2)}function X8(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function bO(e){return e instanceof Error?X8(e):e}function vm(e){return Array.isArray(e)?rS({errors:e.map(t=>bO(t))}):rS({errors:[bO(e)]})}function iS(e){return rS(e)}function Z8(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Ai(t)}catch{return{insertions:r,result:t}}const o=n||J8,l=new Pu(e);return Tr(i,{leave(c){l.leave(c)},enter(c){if(l.enter(c),c.kind==="Field"&&!c.selectionSet){const p=l.getType(),d=EO(n9(p),o);if(d&&c.loc){const m=t9(t,c.loc.start);r.push({index:c.loc.end,string:" "+ln(d).replaceAll(`
230
+ `+l,d=x+=2;w=L,p=w.indexOf(l)}k.length&&(yield k)}}finally{k.length&&(yield k),await b.cancel()}})(e.body,`--${i}`)}var nS=function(e){return this instanceof nS?(this.v=e,this):new nS(e)};function rS(e){return JSON.stringify(e,null,2)}function X8(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function bO(e){return e instanceof Error?X8(e):e}function vm(e){return Array.isArray(e)?rS({errors:e.map(t=>bO(t))}):rS({errors:[bO(e)]})}function iS(e){return rS(e)}function Z8(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Ai(t)}catch{return{insertions:r,result:t}}const o=n||J8,l=new Pu(e);return Tr(i,{leave(c){l.leave(c)},enter(c){if(l.enter(c),c.kind==="Field"&&!c.selectionSet){const p=l.getType(),d=EO(n9(p),o);if(d&&c.loc){const m=t9(t,c.loc.start);r.push({index:c.loc.end,string:" "+ln(d).replaceAll(`
231
231
  `,`
232
232
  `+m)})}}}}),{insertions:r,result:e9(t,r)}}function J8(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))ai(t[r].type)&&n.push(r);return n}function EO(e,t){const n=gn(e);if(!e||ai(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:Q.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],l=o?o.type:null;return{kind:Q.FIELD,name:{kind:Q.NAME,value:i},selectionSet:EO(l,t)}})}}function e9(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 t9(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 n9(e){if(e)return e}function r9(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?.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 SO(e,t,n){var r;const i=n?gn(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:Q.INLINE_FRAGMENT,typeCondition:m,directives:E,selectionSet:b}}}if(c.kind===Q.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(...SO(e,c.selectionSet.selections,n));continue}}o.push(c)}return o}function i9(e,t){const n=t?new Pu(t):null,r=Object.create(null);for(const c of e.definitions)c.kind===Q.FRAGMENT_DEFINITION&&(r[c.name.value]=c);const i={SelectionSet(c){const p=n?n.getParentType():null;let{selections:d}=c;return d=SO(r,d,p),Object.assign(Object.assign({},c),{selections:d})},FragmentDefinition(){return null}},o=Tr(e,n?ju(n,i):i);return Tr(o,{SelectionSet(c){let{selections:p}=c;return p=r9(p,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},c),{selections:p})},FragmentDefinition(){return null}})}function o9(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 a9(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 oS{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(`${Iy}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${Iy}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${Iy}:${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=`${Iy}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(l){i=l instanceof Error?l:new Error(`${l}`),r=a9(this.storage,l)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const Iy="graphiql";class TO{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?.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 s9=1e5;class l9{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 TO("queries",this.storage,this.maxHistoryLength),this.favorite=new TO("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{Ai(t)}catch{return!1}return t.length>s9?!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 yf(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 ur(e,t){return u9(t,xO(e.string))}function u9(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return aS(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:c9(xO(r.label),t),entry:r}));return aS(aS(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 aS(e,t){const n=e.filter(t);return n.length===0?e:n}function xO(e){return e.toLowerCase().replaceAll(/\W/g,"")}function c9(e,t){let n=f9(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function f9(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 d9=e=>` {
233
233
  $1
@@ -308,7 +308,7 @@ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHid
308
308
 
309
309
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return M.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},IU="DialogDescriptionWarning",FU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lk(IU).contentName}}.`;return M.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},PU=Ek,jU=Tk,VU=wk,UU=Ck,qU=_k,BU=Ak,$U=Dk,zU=Rk,HU=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),GU="VisuallyHidden",Ik=M.forwardRef((e,t)=>Y.jsx(Rr.span,{...e,ref:t,style:{...HU,...e.style}}));Ik.displayName=GU;var Fk=Ik;function Pk(e){const t=e+"CollectionProvider",[n,r]=Tf(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:k,children:N}=w,D=Ae.useRef(null),A=Ae.useRef(new Map).current;return Y.jsx(i,{scope:k,itemMap:A,collectionRef:D,children:N})};l.displayName=t;const c=e+"CollectionSlot",p=Tm(c),d=Ae.forwardRef((w,k)=>{const{scope:N,children:D}=w,A=o(c,N),_=li(k,A.collectionRef);return Y.jsx(p,{ref:_,children:D})});d.displayName=c;const m=e+"CollectionItemSlot",E="data-radix-collection-item",b=Tm(m),y=Ae.forwardRef((w,k)=>{const{scope:N,children:D,...A}=w,_=Ae.useRef(null),L=li(k,_),V=o(m,N);return Ae.useEffect(()=>(V.itemMap.set(_,{ref:_,...A}),()=>void V.itemMap.delete(_))),Y.jsx(b,{[E]:"",ref:L,children:D})});y.displayName=m;function x(w){const k=o(e+"CollectionConsumer",w);return Ae.useCallback(()=>{const D=k.collectionRef.current;if(!D)return[];const A=Array.from(D.querySelectorAll(`[${E}]`));return Array.from(k.itemMap.values()).sort((V,P)=>A.indexOf(V.ref.current)-A.indexOf(P.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:d,ItemSlot:y},x,r]}var YU=M.createContext(void 0);function jk(e){const t=M.useContext(YU);return e||t||"ltr"}const WU=["top","right","bottom","left"],qu=Math.min,zo=Math.max,o0=Math.round,a0=Math.floor,Vs=e=>({x:e,y:e}),QU={left:"right",right:"left",bottom:"top",top:"bottom"},KU={start:"end",end:"start"};function QS(e,t,n){return zo(e,qu(t,n))}function Fl(e,t){return typeof e=="function"?e(t):e}function Pl(e){return e.split("-")[0]}function Xd(e){return e.split("-")[1]}function KS(e){return e==="x"?"y":"x"}function XS(e){return e==="y"?"height":"width"}const XU=new Set(["top","bottom"]);function Us(e){return XU.has(Pl(e))?"y":"x"}function ZS(e){return KS(Us(e))}function ZU(e,t,n){n===void 0&&(n=!1);const r=Xd(e),i=ZS(e),o=XS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=s0(l)),[l,s0(l)]}function JU(e){const t=s0(e);return[JS(e),t,JS(t)]}function JS(e){return e.replace(/start|end/g,t=>KU[t])}const Vk=["left","right"],Uk=["right","left"],eq=["top","bottom"],tq=["bottom","top"];function nq(e,t,n){switch(e){case"top":case"bottom":return n?t?Uk:Vk:t?Vk:Uk;case"left":case"right":return t?eq:tq;default:return[]}}function rq(e,t,n,r){const i=Xd(e);let o=nq(Pl(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(JS)))),o}function s0(e){return e.replace(/left|right|bottom|top/g,t=>QU[t])}function iq(e){return{top:0,right:0,bottom:0,left:0,...e}}function qk(e){return typeof e!="number"?iq(e):{top:e,right:e,bottom:e,left:e}}function l0(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 Bk(e,t,n){let{reference:r,floating:i}=e;const o=Us(t),l=ZS(t),c=XS(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(Xd(t)){case"start":y[l]-=b*(n&&d?-1:1);break;case"end":y[l]+=b*(n&&d?-1:1);break}return y}const oq=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}=Bk(d,r,p),b=r,y={},x=0;for(let w=0;w<c.length;w++){const{name:k,fn:N}=c[w],{x:D,y:A,data:_,reset:L}=await N({x:m,y:E,initialPlacement:r,placement:b,strategy:i,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});m=D??m,E=A??E,y={...y,[k]:{...y[k],..._}},L&&x<=50&&(x++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(d=L.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:m,y:E}=Bk(d,b,p)),w=-1)}return{x:m,y:E,placement:b,strategy:i,middlewareData:y}};async function xm(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),x=qk(y),k=c[b?E==="floating"?"reference":"floating":E],N=l0(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})),D=E==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),_=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},L=l0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:D,offsetParent:A,strategy:p}):D);return{top:(N.top-L.top+x.top)/_.y,bottom:(L.bottom-N.bottom+x.bottom)/_.y,left:(N.left-L.left+x.left)/_.x,right:(L.right-N.right+x.right)/_.x}}const aq=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=qk(m),b={x:n,y:r},y=ZS(i),x=XS(y),w=await l.getDimensions(d),k=y==="y",N=k?"top":"left",D=k?"bottom":"right",A=k?"clientHeight":"clientWidth",_=o.reference[x]+o.reference[y]-b[y]-o.floating[x],L=b[y]-o.reference[y],V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let P=V?V[A]:0;(!P||!await(l.isElement==null?void 0:l.isElement(V)))&&(P=c.floating[A]||o.floating[x]);const F=_/2-L/2,j=P/2-w[x]/2-1,$=qu(E[N],j),X=qu(E[D],j),J=$,ee=P-w[x]-X,K=P/2-w[x]/2+F,B=QS(J,K,ee),ne=!p.arrow&&Xd(i)!=null&&K!==B&&o.reference[x]/2-(K<J?$:X)-w[x]/2<0,re=ne?K<J?K-J:K-ee:0;return{[y]:b[y]+re,data:{[y]:B,centerOffset:K-B-re,...ne&&{alignmentOffset:re}},reset:ne}}}),sq=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:x="none",flipAlignment:w=!0,...k}=Fl(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const N=Pl(i),D=Us(c),A=Pl(c)===c,_=await(p.isRTL==null?void 0:p.isRTL(d.floating)),L=b||(A||!w?[s0(c)]:JU(c)),V=x!=="none";!b&&V&&L.push(...rq(c,w,x,_));const P=[c,...L],F=await xm(t,k),j=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&j.push(F[N]),E){const K=ZU(i,l,_);j.push(F[K[0]],F[K[1]])}if($=[...$,{placement:i,overflows:j}],!j.every(K=>K<=0)){var X,J;const K=(((X=o.flip)==null?void 0:X.index)||0)+1,B=P[K];if(B&&(!(E==="alignment"?D!==Us(B):!1)||$.every(se=>se.overflows[0]>0&&Us(se.placement)===D)))return{data:{index:K,overflows:$},reset:{placement:B}};let ne=(J=$.filter(re=>re.overflows[0]<=0).sort((re,se)=>re.overflows[1]-se.overflows[1])[0])==null?void 0:J.placement;if(!ne)switch(y){case"bestFit":{var ee;const re=(ee=$.filter(se=>{if(V){const fe=Us(se.placement);return fe===D||fe==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((se,fe)=>se[1]-fe[1])[0])==null?void 0:ee[0];re&&(ne=re);break}case"initialPlacement":ne=c;break}if(i!==ne)return{reset:{placement:ne}}}return{}}}};function $k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zk(e){return WU.some(t=>e[t]>=0)}const lq=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 xm(t,{...i,elementContext:"reference"}),l=$k(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:zk(l)}}}case"escaped":{const o=await xm(t,{...i,altBoundary:!0}),l=$k(o,n.floating);return{data:{escapedOffsets:l,escaped:zk(l)}}}default:return{}}}}},Hk=new Set(["left","top"]);async function uq(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=Xd(n),p=Us(n)==="y",d=Hk.has(l)?-1:1,m=o&&p?-1:1,E=Fl(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:x}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return c&&typeof x=="number"&&(y=c==="end"?x*-1:x),p?{x:y*m,y:b*d}:{x:b*d,y:y*m}}const cq=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 uq(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}}}}},fq=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:D}=k;return{x:N,y:D}}},...p}=Fl(e,t),d={x:n,y:r},m=await xm(t,p),E=Us(Pl(i)),b=KS(E);let y=d[b],x=d[E];if(o){const k=b==="y"?"top":"left",N=b==="y"?"bottom":"right",D=y+m[k],A=y-m[N];y=QS(D,y,A)}if(l){const k=E==="y"?"top":"left",N=E==="y"?"bottom":"right",D=x+m[k],A=x-m[N];x=QS(D,x,A)}const w=c.fn({...t,[b]:y,[E]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[b]:o,[E]:l}}}}}},dq=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=Us(i),b=KS(E);let y=m[b],x=m[E];const w=Fl(c,t),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const A=b==="y"?"height":"width",_=o.reference[b]-o.floating[A]+k.mainAxis,L=o.reference[b]+o.reference[A]-k.mainAxis;y<_?y=_:y>L&&(y=L)}if(d){var N,D;const A=b==="y"?"width":"height",_=Hk.has(Pl(i)),L=o.reference[E]-o.floating[A]+(_&&((N=l.offset)==null?void 0:N[E])||0)+(_?0:k.crossAxis),V=o.reference[E]+o.reference[A]+(_?0:((D=l.offset)==null?void 0:D[E])||0)-(_?k.crossAxis:0);x<L?x=L:x>V&&(x=V)}return{[b]:y,[E]:x}}}},pq=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 xm(t,d),E=Pl(i),b=Xd(i),y=Us(i)==="y",{width:x,height:w}=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 D=w-m.top-m.bottom,A=x-m.left-m.right,_=qu(w-m[k],D),L=qu(x-m[N],A),V=!t.middlewareData.shift;let P=_,F=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=D),V&&!b){const $=zo(m.left,0),X=zo(m.right,0),J=zo(m.top,0),ee=zo(m.bottom,0);y?F=x-2*($!==0||X!==0?$+X:zo(m.left,m.right)):P=w-2*(J!==0||ee!==0?J+ee:zo(m.top,m.bottom))}await p({...t,availableWidth:F,availableHeight:P});const j=await l.getDimensions(c.floating);return x!==j.width||w!==j.height?{reset:{rects:!0}}:{}}}};function u0(){return typeof window<"u"}function Zd(e){return Gk(e)?(e.nodeName||"").toLowerCase():"#document"}function Ho(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qs(e){var t;return(t=(Gk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gk(e){return u0()?e instanceof Node||e instanceof Ho(e).Node:!1}function os(e){return u0()?e instanceof Element||e instanceof Ho(e).Element:!1}function Bs(e){return u0()?e instanceof HTMLElement||e instanceof Ho(e).HTMLElement:!1}function Yk(e){return!u0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ho(e).ShadowRoot}const hq=new Set(["inline","contents"]);function wm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=as(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hq.has(i)}const mq=new Set(["table","td","th"]);function gq(e){return mq.has(Zd(e))}const vq=[":popover-open",":modal"];function c0(e){return vq.some(t=>{try{return e.matches(t)}catch{return!1}})}const yq=["transform","translate","scale","rotate","perspective"],bq=["transform","translate","scale","rotate","perspective","filter"],Eq=["paint","layout","strict","content"];function eT(e){const t=tT(),n=os(e)?as(e):e;return yq.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)||bq.some(r=>(n.willChange||"").includes(r))||Eq.some(r=>(n.contain||"").includes(r))}function Sq(e){let t=Bu(e);for(;Bs(t)&&!Jd(t);){if(eT(t))return t;if(c0(t))return null;t=Bu(t)}return null}function tT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Tq=new Set(["html","body","#document"]);function Jd(e){return Tq.has(Zd(e))}function as(e){return Ho(e).getComputedStyle(e)}function f0(e){return os(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bu(e){if(Zd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yk(e)&&e.host||qs(e);return Yk(t)?t.host:t}function Wk(e){const t=Bu(e);return Jd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bs(t)&&wm(t)?t:Wk(t)}function Cm(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Wk(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Ho(i);if(o){const c=nT(l);return t.concat(l,l.visualViewport||[],wm(i)?i:[],c&&n?Cm(c):[])}return t.concat(i,Cm(i,[],n))}function nT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qk(e){const t=as(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=o0(n)!==o||o0(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function rT(e){return os(e)?e:e.contextElement}function ep(e){const t=rT(e);if(!Bs(t))return Vs(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qk(t);let l=(o?o0(n.width):n.width)/r,c=(o?o0(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const xq=Vs(0);function Kk(e){const t=Ho(e);return!tT()||!t.visualViewport?xq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ho(e)?!1:t}function Cf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=rT(e);let l=Vs(1);t&&(r?os(r)&&(l=ep(r)):l=ep(e));const c=wq(o,n,r)?Kk(o):Vs(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=Ho(o),y=r&&os(r)?Ho(r):r;let x=b,w=nT(x);for(;w&&r&&y!==x;){const k=ep(w),N=w.getBoundingClientRect(),D=as(w),A=N.left+(w.clientLeft+parseFloat(D.paddingLeft))*k.x,_=N.top+(w.clientTop+parseFloat(D.paddingTop))*k.y;p*=k.x,d*=k.y,m*=k.x,E*=k.y,p+=A,d+=_,x=Ho(w),w=nT(x)}}return l0({width:m,height:E,x:p,y:d})}function iT(e,t){const n=f0(e).scrollLeft;return t?t.left+n:Cf(qs(e)).left+n}function Xk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:iT(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Cq(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=qs(r),c=t?c0(t.floating):!1;if(r===l||c&&o)return n;let p={scrollLeft:0,scrollTop:0},d=Vs(1);const m=Vs(0),E=Bs(r);if((E||!E&&!o)&&((Zd(r)!=="body"||wm(l))&&(p=f0(r)),Bs(r))){const y=Cf(r);d=ep(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const b=l&&!E&&!o?Xk(l,p,!0):Vs(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 _q(e){return Array.from(e.getClientRects())}function Nq(e){const t=qs(e),n=f0(e),r=e.ownerDocument.body,i=zo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=zo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+iT(e);const c=-n.scrollTop;return as(r).direction==="rtl"&&(l+=zo(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function Aq(e,t){const n=Ho(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=tT();(!d||d&&t==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:o,height:l,x:c,y:p}}const Oq=new Set(["absolute","fixed"]);function Dq(e,t){const n=Cf(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Bs(e)?ep(e):Vs(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 Zk(e,t,n){let r;if(t==="viewport")r=Aq(e,n);else if(t==="document")r=Nq(qs(e));else if(os(t))r=Dq(t,n);else{const i=Kk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return l0(r)}function Jk(e,t){const n=Bu(e);return n===t||!os(n)||Jd(n)?!1:as(n).position==="fixed"||Jk(n,t)}function kq(e,t){const n=t.get(e);if(n)return n;let r=Cm(e,[],!1).filter(c=>os(c)&&Zd(c)!=="body"),i=null;const o=as(e).position==="fixed";let l=o?Bu(e):e;for(;os(l)&&!Jd(l);){const c=as(l),p=eT(l);!p&&c.position==="fixed"&&(i=null),(o?!p&&!i:!p&&c.position==="static"&&!!i&&Oq.has(i.position)||wm(l)&&!p&&Jk(e,l))?r=r.filter(m=>m!==l):i=c,l=Bu(l)}return t.set(e,r),r}function Rq(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?c0(t)?[]:kq(t,this._c):[].concat(n),r],c=l[0],p=l.reduce((d,m)=>{const E=Zk(t,m,i);return d.top=zo(E.top,d.top),d.right=qu(E.right,d.right),d.bottom=qu(E.bottom,d.bottom),d.left=zo(E.left,d.left),d},Zk(t,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Mq(e){const{width:t,height:n}=Qk(e);return{width:t,height:n}}function Lq(e,t,n){const r=Bs(t),i=qs(t),o=n==="fixed",l=Cf(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const p=Vs(0);function d(){p.x=iT(i)}if(r||!r&&!o)if((Zd(t)!=="body"||wm(i))&&(c=f0(t)),r){const y=Cf(t,!0,o,t);p.x=y.x+t.clientLeft,p.y=y.y+t.clientTop}else i&&d();o&&!r&&i&&d();const m=i&&!r&&!o?Xk(i,c):Vs(0),E=l.left+c.scrollLeft-p.x-m.x,b=l.top+c.scrollTop-p.y-m.y;return{x:E,y:b,width:l.width,height:l.height}}function oT(e){return as(e).position==="static"}function e2(e,t){if(!Bs(e)||as(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qs(e)===n&&(n=n.ownerDocument.body),n}function t2(e,t){const n=Ho(e);if(c0(e))return n;if(!Bs(e)){let i=Bu(e);for(;i&&!Jd(i);){if(os(i)&&!oT(i))return i;i=Bu(i)}return n}let r=e2(e,t);for(;r&&gq(r)&&oT(r);)r=e2(r,t);return r&&Jd(r)&&oT(r)&&!eT(r)?n:r||Sq(e)||n}const Iq=async function(e){const t=this.getOffsetParent||t2,n=this.getDimensions,r=await n(e.floating);return{reference:Lq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fq(e){return as(e).direction==="rtl"}const Pq={convertOffsetParentRelativeRectToViewportRelativeRect:Cq,getDocumentElement:qs,getClippingRect:Rq,getOffsetParent:t2,getElementRects:Iq,getClientRects:_q,getDimensions:Mq,getScale:ep,isElement:os,isRTL:Fq};function n2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jq(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 x=a0(E),w=a0(i.clientWidth-(m+b)),k=a0(i.clientHeight-(E+y)),N=a0(m),A={rootMargin:-x+"px "+-w+"px "+-k+"px "+-N+"px",threshold:zo(0,qu(1,p))||1};let _=!0;function L(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&&!n2(d,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(L,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,A)}n.observe(e)}return l(!0),o}function Vq(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=rT(e),m=i||o?[...d?Cm(d):[],...Cm(t)]:[];m.forEach(N=>{i&&N.addEventListener("scroll",n,{passive:!0}),o&&N.addEventListener("resize",n)});const E=d&&c?jq(d,n):null;let b=-1,y=null;l&&(y=new ResizeObserver(N=>{let[D]=N;D&&D.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),d&&!p&&y.observe(d),y.observe(t));let x,w=p?Cf(e):null;p&&k();function k(){const N=Cf(e);w&&!n2(w,N)&&n(),w=N,x=requestAnimationFrame(k)}return n(),()=>{var N;m.forEach(D=>{i&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),E?.(),(N=y)==null||N.disconnect(),y=null,p&&cancelAnimationFrame(x)}}const Uq=cq,qq=fq,Bq=sq,$q=pq,zq=lq,r2=aq,Hq=dq,Gq=(e,t,n)=>{const r=new Map,i={platform:Pq,...n},o={...i.platform,_c:r};return oq(e,t,{...i,platform:o})};var Yq=typeof document<"u",Wq=function(){},d0=Yq?M.useLayoutEffect:Wq;function p0(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(!p0(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)&&!p0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function i2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function o2(e,t){const n=i2(e);return Math.round(t*n)/n}function aT(e){const t=M.useRef(e);return d0(()=>{t.current=e}),t}function Qq(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]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=M.useState(r);p0(b,r)||y(r);const[x,w]=M.useState(null),[k,N]=M.useState(null),D=M.useCallback(se=>{se!==V.current&&(V.current=se,w(se))},[]),A=M.useCallback(se=>{se!==P.current&&(P.current=se,N(se))},[]),_=o||x,L=l||k,V=M.useRef(null),P=M.useRef(null),F=M.useRef(m),j=p!=null,$=aT(p),X=aT(i),J=aT(d),ee=M.useCallback(()=>{if(!V.current||!P.current)return;const se={placement:t,strategy:n,middleware:b};X.current&&(se.platform=X.current),Gq(V.current,P.current,se).then(fe=>{const Z={...fe,isPositioned:J.current!==!1};K.current&&!p0(F.current,Z)&&(F.current=Z,Gy.flushSync(()=>{E(Z)}))})},[b,t,n,X,J]);d0(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,E(se=>({...se,isPositioned:!1})))},[d]);const K=M.useRef(!1);d0(()=>(K.current=!0,()=>{K.current=!1}),[]),d0(()=>{if(_&&(V.current=_),L&&(P.current=L),_&&L){if($.current)return $.current(_,L,ee);ee()}},[_,L,ee,$,j]);const B=M.useMemo(()=>({reference:V,floating:P,setReference:D,setFloating:A}),[D,A]),ne=M.useMemo(()=>({reference:_,floating:L}),[_,L]),re=M.useMemo(()=>{const se={position:n,left:0,top:0};if(!ne.floating)return se;const fe=o2(ne.floating,m.x),Z=o2(ne.floating,m.y);return c?{...se,transform:"translate("+fe+"px, "+Z+"px)",...i2(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:Z}},[n,c,ne.floating,m.x,m.y]);return M.useMemo(()=>({...m,update:ee,refs:B,elements:ne,floatingStyles:re}),[m,ee,B,ne,re])}const Kq=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?r2({element:r.current,padding:i}).fn(n):{}:r?r2({element:r,padding:i}).fn(n):{}}}},Xq=(e,t)=>({...Uq(e),options:[e,t]}),Zq=(e,t)=>({...qq(e),options:[e,t]}),Jq=(e,t)=>({...Hq(e),options:[e,t]}),eB=(e,t)=>({...Bq(e),options:[e,t]}),tB=(e,t)=>({...$q(e),options:[e,t]}),nB=(e,t)=>({...zq(e),options:[e,t]}),rB=(e,t)=>({...Kq(e),options:[e,t]});var iB="Arrow",a2=M.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return Y.jsx(Rr.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"})})});a2.displayName=iB;var oB=a2;function aB(e){const[t,n]=M.useState(void 0);return Vu(()=>{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 sT="Popper",[s2,h0]=Tf(sT),[sB,l2]=s2(sT),u2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=M.useState(null);return Y.jsx(sB,{scope:t,anchor:r,onAnchorChange:i,children:n})};u2.displayName=sT;var c2="PopperAnchor",f2=M.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=l2(c2,n),l=M.useRef(null),c=li(t,l);return M.useEffect(()=>{o.onAnchorChange(r?.current||l.current)}),r?null:Y.jsx(Rr.div,{...i,ref:c})});f2.displayName=c2;var lT="PopperContent",[lB,uB]=s2(lT),d2=M.forwardRef((e,t)=>{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:x,...w}=e,k=l2(lT,n),[N,D]=M.useState(null),A=li(t,Ie=>D(Ie)),[_,L]=M.useState(null),V=aB(_),P=V?.width??0,F=V?.height??0,j=r+(o!=="center"?"-"+o:""),$=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},X=Array.isArray(d)?d:[d],J=X.length>0,ee={padding:$,boundary:X.filter(fB),altBoundary:J},{refs:K,floatingStyles:B,placement:ne,isPositioned:re,middlewareData:se}=Qq({strategy:"fixed",placement:j,whileElementsMounted:(...Ie)=>Vq(...Ie,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[Xq({mainAxis:i+F,alignmentAxis:l}),p&&Zq({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?Jq():void 0,...ee}),p&&eB({...ee}),tB({...ee,apply:({elements:Ie,rects:Ge,availableWidth:Ze,availableHeight:It})=>{const{width:vt,height:at}=Ge.reference,Oe=Ie.floating.style;Oe.setProperty("--radix-popper-available-width",`${Ze}px`),Oe.setProperty("--radix-popper-available-height",`${It}px`),Oe.setProperty("--radix-popper-anchor-width",`${vt}px`),Oe.setProperty("--radix-popper-anchor-height",`${at}px`)}}),_&&rB({element:_,padding:c}),dB({arrowWidth:P,arrowHeight:F}),b&&nB({strategy:"referenceHidden",...ee})]}),[fe,Z]=m2(ne),ge=Il(x);Vu(()=>{re&&ge?.()},[re,ge]);const ae=se.arrow?.x,pe=se.arrow?.y,ce=se.arrow?.centerOffset!==0,[he,Se]=M.useState();return Vu(()=>{N&&Se(window.getComputedStyle(N).zIndex)},[N]),Y.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:re?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[se.transformOrigin?.x,se.transformOrigin?.y].join(" "),...se.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Y.jsx(lB,{scope:n,placedSide:fe,onArrowChange:L,arrowX:ae,arrowY:pe,shouldHideArrow:ce,children:Y.jsx(Rr.div,{"data-side":fe,"data-align":Z,...w,ref:A,style:{...w.style,animation:re?void 0:"none"}})})})});d2.displayName=lT;var p2="PopperArrow",cB={top:"bottom",right:"left",bottom:"top",left:"right"},h2=M.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=uB(p2,r),l=cB[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(oB,{...i,ref:n,style:{...i.style,display:"block"}})})});h2.displayName=p2;function fB(e){return e!==null}var dB=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,l=i.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[d,m]=m2(n),E={start:"0%",center:"50%",end:"100%"}[m],b=(i.arrow?.x??0)+c/2,y=(i.arrow?.y??0)+p/2;let x="",w="";return d==="bottom"?(x=l?E:`${b}px`,w=`${-p}px`):d==="top"?(x=l?E:`${b}px`,w=`${r.floating.height+p}px`):d==="right"?(x=`${-p}px`,w=l?E:`${y}px`):d==="left"&&(x=`${r.floating.width+p}px`,w=l?E:`${y}px`),{data:{x,y:w}}}});function m2(e){const[t,n="center"]=e.split("-");return[t,n]}var g2=u2,v2=f2,y2=d2,b2=h2,uT="rovingFocusGroup.onEntryFocus",pB={bubbles:!1,cancelable:!0},_m="RovingFocusGroup",[cT,E2,hB]=Pk(_m),[mB,S2]=Tf(_m,[hB]),[gB,vB]=mB(_m),T2=M.forwardRef((e,t)=>Y.jsx(cT.Provider,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(cT.Slot,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(yB,{...e,ref:t})})}));T2.displayName=_m;var yB=M.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=M.useRef(null),y=li(t,b),x=jk(o),[w,k]=Hy({prop:l,defaultProp:c??null,onChange:p,caller:_m}),[N,D]=M.useState(!1),A=Il(d),_=E2(n),L=M.useRef(!1),[V,P]=M.useState(0);return M.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(uT,A),()=>F.removeEventListener(uT,A)},[A]),Y.jsx(gB,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:w,onItemFocus:M.useCallback(F=>k(F),[k]),onItemShiftTab:M.useCallback(()=>D(!0),[]),onFocusableItemAdd:M.useCallback(()=>P(F=>F+1),[]),onFocusableItemRemove:M.useCallback(()=>P(F=>F-1),[]),children:Y.jsx(Rr.div,{tabIndex:N||V===0?-1:0,"data-orientation":r,...E,ref:y,style:{outline:"none",...e.style},onMouseDown:$t(e.onMouseDown,()=>{L.current=!0}),onFocus:$t(e.onFocus,F=>{const j=!L.current;if(F.target===F.currentTarget&&j&&!N){const $=new CustomEvent(uT,pB);if(F.currentTarget.dispatchEvent($),!$.defaultPrevented){const X=_().filter(ne=>ne.focusable),J=X.find(ne=>ne.active),ee=X.find(ne=>ne.id===w),B=[J,ee,...X].filter(Boolean).map(ne=>ne.ref.current);C2(B,m)}}L.current=!1}),onBlur:$t(e.onBlur,()=>D(!1))})})}),x2="RovingFocusGroupItem",w2=M.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:l,...c}=e,p=xf(),d=o||p,m=vB(x2,n),E=m.currentTabStopId===d,b=E2(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:w}=m;return M.useEffect(()=>{if(r)return y(),()=>x()},[r,y,x]),Y.jsx(cT.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:Y.jsx(Rr.span,{tabIndex:E?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:$t(e.onMouseDown,k=>{r?m.onItemFocus(d):k.preventDefault()}),onFocus:$t(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:$t(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){m.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const N=SB(k,m.orientation,m.dir);if(N!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let A=b().filter(_=>_.focusable).map(_=>_.ref.current);if(N==="last")A.reverse();else if(N==="prev"||N==="next"){N==="prev"&&A.reverse();const _=A.indexOf(k.currentTarget);A=m.loop?TB(A,_+1):A.slice(_+1)}setTimeout(()=>C2(A))}}),children:typeof l=="function"?l({isCurrentTabStop:E,hasTabStop:w!=null}):l})})});w2.displayName=x2;var bB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function EB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function SB(e,t,n){const r=EB(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return bB[r]}function C2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function TB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xB=T2,wB=w2,fT=["Enter"," "],CB=["ArrowDown","PageUp","Home"],_2=["ArrowUp","PageDown","End"],_B=[...CB,..._2],NB={ltr:[...fT,"ArrowRight"],rtl:[...fT,"ArrowLeft"]},AB={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nm="Menu",[Am,OB,DB]=Pk(Nm),[_f,N2]=Tf(Nm,[DB,h0,S2]),m0=h0(),A2=S2(),[kB,Nf]=_f(Nm),[RB,Om]=_f(Nm),O2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:l=!0}=e,c=m0(t),[p,d]=M.useState(null),m=M.useRef(!1),E=Il(o),b=jk(i);return M.useEffect(()=>{const y=()=>{m.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>m.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),Y.jsx(g2,{...c,children:Y.jsx(kB,{scope:t,open:n,onOpenChange:E,content:p,onContentChange:d,children:Y.jsx(RB,{scope:t,onClose:M.useCallback(()=>E(!1),[E]),isUsingKeyboardRef:m,dir:b,modal:l,children:r})})})};O2.displayName=Nm;var MB="MenuAnchor",dT=M.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=m0(n);return Y.jsx(v2,{...i,...r,ref:t})});dT.displayName=MB;var pT="MenuPortal",[LB,D2]=_f(pT,{forceMount:void 0}),k2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=Nf(pT,t);return Y.jsx(LB,{scope:t,forceMount:n,children:Y.jsx(js,{present:n||o.open,children:Y.jsx(Wy,{asChild:!0,container:i,children:r})})})};k2.displayName=pT;var Ta="MenuContent",[IB,hT]=_f(Ta),R2=M.forwardRef((e,t)=>{const n=D2(Ta,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Nf(Ta,e.__scopeMenu),l=Om(Ta,e.__scopeMenu);return Y.jsx(Am.Provider,{scope:e.__scopeMenu,children:Y.jsx(js,{present:r||o.open,children:Y.jsx(Am.Slot,{scope:e.__scopeMenu,children:l.modal?Y.jsx(FB,{...i,ref:t}):Y.jsx(PB,{...i,ref:t})})})})}),FB=M.forwardRef((e,t)=>{const n=Nf(Ta,e.__scopeMenu),r=M.useRef(null),i=li(t,r);return M.useEffect(()=>{const o=r.current;if(o)return yk(o)},[]),Y.jsx(mT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$t(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),PB=M.forwardRef((e,t)=>{const n=Nf(Ta,e.__scopeMenu);return Y.jsx(mT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),jB=Tm("MenuContent.ScrollLock"),mT=M.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:x,...w}=e,k=Nf(Ta,n),N=Om(Ta,n),D=m0(n),A=A2(n),_=OB(n),[L,V]=M.useState(null),P=M.useRef(null),F=li(t,P,k.onContentChange),j=M.useRef(0),$=M.useRef(""),X=M.useRef(0),J=M.useRef(null),ee=M.useRef("right"),K=M.useRef(0),B=x?zS:M.Fragment,ne=x?{as:jB,allowPinchZoom:!0}:void 0,re=fe=>{const Z=$.current+fe,ge=_().filter(Ie=>!Ie.disabled),ae=document.activeElement,pe=ge.find(Ie=>Ie.ref.current===ae)?.textValue,ce=ge.map(Ie=>Ie.textValue),he=KB(ce,Z,pe),Se=ge.find(Ie=>Ie.textValue===he)?.ref.current;(function Ie(Ge){$.current=Ge,window.clearTimeout(j.current),Ge!==""&&(j.current=window.setTimeout(()=>Ie(""),1e3))})(Z),Se&&setTimeout(()=>Se.focus())};M.useEffect(()=>()=>window.clearTimeout(j.current),[]),rk();const se=M.useCallback(fe=>ee.current===J.current?.side&&ZB(fe,J.current?.area),[]);return Y.jsx(IB,{scope:n,searchRef:$,onItemEnter:M.useCallback(fe=>{se(fe)&&fe.preventDefault()},[se]),onItemLeave:M.useCallback(fe=>{se(fe)||(P.current?.focus(),V(null))},[se]),onTriggerLeave:M.useCallback(fe=>{se(fe)&&fe.preventDefault()},[se]),pointerGraceTimerRef:X,onPointerGraceIntentChange:M.useCallback(fe=>{J.current=fe},[]),children:Y.jsx(B,{...ne,children:Y.jsx(PS,{asChild:!0,trapped:i,onMountAutoFocus:$t(o,fe=>{fe.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:Y.jsx(Yy,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:b,onDismiss:y,children:Y.jsx(xB,{asChild:!0,...A,dir:N.dir,orientation:"vertical",loop:r,currentTabStopId:L,onCurrentTabStopIdChange:V,onEntryFocus:$t(p,fe=>{N.isUsingKeyboardRef.current||fe.preventDefault()}),preventScrollOnEntryFocus:!0,children:Y.jsx(y2,{role:"menu","aria-orientation":"vertical","data-state":Q2(k.open),"data-radix-menu-content":"",dir:N.dir,...D,...w,ref:F,style:{outline:"none",...w.style},onKeyDown:$t(w.onKeyDown,fe=>{const ge=fe.target.closest("[data-radix-menu-content]")===fe.currentTarget,ae=fe.ctrlKey||fe.altKey||fe.metaKey,pe=fe.key.length===1;ge&&(fe.key==="Tab"&&fe.preventDefault(),!ae&&pe&&re(fe.key));const ce=P.current;if(fe.target!==ce||!_B.includes(fe.key))return;fe.preventDefault();const Se=_().filter(Ie=>!Ie.disabled).map(Ie=>Ie.ref.current);_2.includes(fe.key)&&Se.reverse(),WB(Se)}),onBlur:$t(e.onBlur,fe=>{fe.currentTarget.contains(fe.target)||(window.clearTimeout(j.current),$.current="")}),onPointerMove:$t(e.onPointerMove,km(fe=>{const Z=fe.target,ge=K.current!==fe.clientX;if(fe.currentTarget.contains(Z)&&ge){const ae=fe.clientX>K.current?"right":"left";ee.current=ae,K.current=fe.clientX}}))})})})})})})});R2.displayName=Ta;var VB="MenuGroup",gT=M.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Rr.div,{role:"group",...r,ref:t})});gT.displayName=VB;var UB="MenuLabel",M2=M.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Rr.div,{...r,ref:t})});M2.displayName=UB;var g0="MenuItem",L2="menu.itemSelect",v0=M.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=M.useRef(null),l=Om(g0,e.__scopeMenu),c=hT(g0,e.__scopeMenu),p=li(t,o),d=M.useRef(!1),m=()=>{const E=o.current;if(!n&&E){const b=new CustomEvent(L2,{bubbles:!0,cancelable:!0});E.addEventListener(L2,y=>r?.(y),{once:!0}),YD(E,b),b.defaultPrevented?d.current=!1:l.onClose()}};return Y.jsx(I2,{...i,ref:p,disabled:n,onClick:$t(e.onClick,m),onPointerDown:E=>{e.onPointerDown?.(E),d.current=!0},onPointerUp:$t(e.onPointerUp,E=>{d.current||E.currentTarget?.click()}),onKeyDown:$t(e.onKeyDown,E=>{const b=c.searchRef.current!=="";n||b&&E.key===" "||fT.includes(E.key)&&(E.currentTarget.click(),E.preventDefault())})})});v0.displayName=g0;var I2=M.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,l=hT(g0,n),c=A2(n),p=M.useRef(null),d=li(t,p),[m,E]=M.useState(!1),[b,y]=M.useState("");return M.useEffect(()=>{const x=p.current;x&&y((x.textContent??"").trim())},[o.children]),Y.jsx(Am.ItemSlot,{scope:n,disabled:r,textValue:i??b,children:Y.jsx(wB,{asChild:!0,...c,focusable:!r,children:Y.jsx(Rr.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:d,onPointerMove:$t(e.onPointerMove,km(x=>{r?l.onItemLeave(x):(l.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$t(e.onPointerLeave,km(x=>l.onItemLeave(x))),onFocus:$t(e.onFocus,()=>E(!0)),onBlur:$t(e.onBlur,()=>E(!1))})})})}),qB="MenuCheckboxItem",F2=M.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return Y.jsx(q2,{scope:e.__scopeMenu,checked:n,children:Y.jsx(v0,{role:"menuitemcheckbox","aria-checked":y0(n)?"mixed":n,...i,ref:t,"data-state":yT(n),onSelect:$t(i.onSelect,()=>r?.(y0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});F2.displayName=qB;var P2="MenuRadioGroup",[BB,$B]=_f(P2,{value:void 0,onValueChange:()=>{}}),j2=M.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Il(r);return Y.jsx(BB,{scope:e.__scopeMenu,value:n,onValueChange:o,children:Y.jsx(gT,{...i,ref:t})})});j2.displayName=P2;var V2="MenuRadioItem",U2=M.forwardRef((e,t)=>{const{value:n,...r}=e,i=$B(V2,e.__scopeMenu),o=n===i.value;return Y.jsx(q2,{scope:e.__scopeMenu,checked:o,children:Y.jsx(v0,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":yT(o),onSelect:$t(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});U2.displayName=V2;var vT="MenuItemIndicator",[q2,zB]=_f(vT,{checked:!1}),B2=M.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=zB(vT,n);return Y.jsx(js,{present:r||y0(o.checked)||o.checked===!0,children:Y.jsx(Rr.span,{...i,ref:t,"data-state":yT(o.checked)})})});B2.displayName=vT;var HB="MenuSeparator",$2=M.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Rr.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$2.displayName=HB;var GB="MenuArrow",z2=M.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=m0(n);return Y.jsx(b2,{...i,...r,ref:t})});z2.displayName=GB;var YB="MenuSub",[foe,H2]=_f(YB),Dm="MenuSubTrigger",G2=M.forwardRef((e,t)=>{const n=Nf(Dm,e.__scopeMenu),r=Om(Dm,e.__scopeMenu),i=H2(Dm,e.__scopeMenu),o=hT(Dm,e.__scopeMenu),l=M.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:p}=o,d={__scopeMenu:e.__scopeMenu},m=M.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return M.useEffect(()=>m,[m]),M.useEffect(()=>{const E=c.current;return()=>{window.clearTimeout(E),p(null)}},[c,p]),Y.jsx(dT,{asChild:!0,...d,children:Y.jsx(I2,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Q2(n.open),...e,ref:zy(t,i.onTriggerChange),onClick:E=>{e.onClick?.(E),!(e.disabled||E.defaultPrevented)&&(E.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$t(e.onPointerMove,km(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:$t(e.onPointerLeave,km(E=>{m();const b=n.content?.getBoundingClientRect();if(b){const y=n.content?.dataset.side,x=y==="right",w=x?-5:5,k=b[x?"left":"right"],N=b[x?"right":"left"];o.onPointerGraceIntentChange({area:[{x:E.clientX+w,y:E.clientY},{x:k,y:b.top},{x:N,y:b.top},{x:N,y:b.bottom},{x:k,y:b.bottom}],side:y}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(E),E.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:$t(e.onKeyDown,E=>{const b=o.searchRef.current!=="";e.disabled||b&&E.key===" "||NB[r.dir].includes(E.key)&&(n.onOpenChange(!0),n.content?.focus(),E.preventDefault())})})})});G2.displayName=Dm;var Y2="MenuSubContent",W2=M.forwardRef((e,t)=>{const n=D2(Ta,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Nf(Ta,e.__scopeMenu),l=Om(Ta,e.__scopeMenu),c=H2(Y2,e.__scopeMenu),p=M.useRef(null),d=li(t,p);return Y.jsx(Am.Provider,{scope:e.__scopeMenu,children:Y.jsx(js,{present:r||o.open,children:Y.jsx(Am.Slot,{scope:e.__scopeMenu,children:Y.jsx(mT,{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=>{l.isUsingKeyboardRef.current&&p.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:$t(e.onFocusOutside,m=>{m.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:$t(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:$t(e.onKeyDown,m=>{const E=m.currentTarget.contains(m.target),b=AB[l.dir].includes(m.key);E&&b&&(o.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});W2.displayName=Y2;function Q2(e){return e?"open":"closed"}function y0(e){return e==="indeterminate"}function yT(e){return y0(e)?"indeterminate":e?"checked":"unchecked"}function WB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function QB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function KB(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=QB(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 XB(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],p=t[l],d=c.x,m=c.y,E=p.x,b=p.y;m>r!=b>r&&n<(E-d)*(r-m)/(b-m)+d&&(i=!i)}return i}function ZB(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return XB(n,t)}function km(e){return t=>t.pointerType==="mouse"?e(t):void 0}var JB=O2,e$=dT,t$=k2,n$=R2,r$=gT,i$=M2,o$=v0,a$=F2,s$=j2,l$=U2,u$=B2,c$=$2,f$=z2,d$=G2,p$=W2,b0="DropdownMenu",[h$,doe]=Tf(b0,[N2]),lo=N2(),[m$,K2]=h$(b0),X2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,p=lo(t),d=M.useRef(null),[m,E]=Hy({prop:i,defaultProp:o??!1,onChange:l,caller:b0});return Y.jsx(m$,{scope:t,triggerId:xf(),triggerRef:d,contentId:xf(),open:m,onOpenChange:E,onOpenToggle:M.useCallback(()=>E(b=>!b),[E]),modal:c,children:Y.jsx(JB,{...p,open:m,onOpenChange:E,dir:r,modal:c,children:n})})};X2.displayName=b0;var Z2="DropdownMenuTrigger",J2=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=K2(Z2,n),l=lo(n);return Y.jsx(e$,{asChild:!0,...l,children:Y.jsx(Rr.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:zy(t,o.triggerRef),onPointerDown:$t(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:$t(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&o.onOpenToggle(),c.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});J2.displayName=Z2;var g$="DropdownMenuPortal",eR=e=>{const{__scopeDropdownMenu:t,...n}=e,r=lo(t);return Y.jsx(t$,{...r,...n})};eR.displayName=g$;var tR="DropdownMenuContent",nR=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=K2(tR,n),o=lo(n),l=M.useRef(!1);return Y.jsx(n$,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:$t(e.onCloseAutoFocus,c=>{l.current||i.triggerRef.current?.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:$t(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)"}})});nR.displayName=tR;var v$="DropdownMenuGroup",y$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(r$,{...i,...r,ref:t})});y$.displayName=v$;var b$="DropdownMenuLabel",E$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(i$,{...i,...r,ref:t})});E$.displayName=b$;var S$="DropdownMenuItem",rR=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(o$,{...i,...r,ref:t})});rR.displayName=S$;var T$="DropdownMenuCheckboxItem",x$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(a$,{...i,...r,ref:t})});x$.displayName=T$;var w$="DropdownMenuRadioGroup",C$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(s$,{...i,...r,ref:t})});C$.displayName=w$;var _$="DropdownMenuRadioItem",N$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(l$,{...i,...r,ref:t})});N$.displayName=_$;var A$="DropdownMenuItemIndicator",O$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(u$,{...i,...r,ref:t})});O$.displayName=A$;var D$="DropdownMenuSeparator",k$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(c$,{...i,...r,ref:t})});k$.displayName=D$;var R$="DropdownMenuArrow",M$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(f$,{...i,...r,ref:t})});M$.displayName=R$;var L$="DropdownMenuSubTrigger",I$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(d$,{...i,...r,ref:t})});I$.displayName=L$;var F$="DropdownMenuSubContent",P$=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=lo(n);return Y.jsx(p$,{...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)"}})});P$.displayName=F$;var j$=X2,V$=J2,U$=eR,q$=nR,B$=rR,bT={};const $$={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:`
310
310
  `,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:" ",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 ET,iR;function oR(){return iR||(iR=1,ET=$$),ET}var ST,aR;function TT(){return aR||(aR=1,ST=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),ST}var tp={},xT,sR;function z$(){if(sR)return xT;sR=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="-_.!~*'()",xT=n,xT}var wT,lR;function H$(){if(lR)return wT;lR=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,x="";for(c=0,p=l.length;c<p;c+=3){if(d=parseInt(l.slice(c+1,c+3),16),d<128){x+=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?x+="��":x+=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?x+="���":x+=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?x+="����":(y-=65536,x+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}x+="�"}return x})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",wT=n,wT}var CT,uR;function G$(){return uR||(uR=1,CT=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}),CT}var _T,cR;function Y$(){if(cR)return _T;cR=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",`
311
- `," "],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 x(w,k){if(w&&w instanceof e)return w;var N=new e;return N.parse(w,k),N}return e.prototype.parse=function(w,k){var N,D,A,_,L,V=w;if(V=V.trim(),!k&&w.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],A=F.toLowerCase(),this.protocol=F,V=V.substr(F.length)),(k||F||V.match(/^\/\/[^@\/]+@[^@\/]+/))&&(L=V.substr(0,2)==="//",L&&!(F&&b[F])&&(V=V.substr(2),this.slashes=!0)),!b[F]&&(L||F&&!y[F])){var j=-1;for(N=0;N<p.length;N++)_=V.indexOf(p[N]),_!==-1&&(j===-1||_<j)&&(j=_);var $,X;for(j===-1?X=V.lastIndexOf("@"):X=V.lastIndexOf("@",j),X!==-1&&($=V.slice(0,X),V=V.slice(X+1),this.auth=$),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 J=V.slice(0,j);V=V.slice(j),this.parseHost(J),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee){var K=this.hostname.split(/\./);for(N=0,D=K.length;N<D;N++){var B=K[N];if(B&&!B.match(m)){for(var ne="",re=0,se=B.length;re<se;re++)B.charCodeAt(re)>127?ne+="x":ne+=B[re];if(!ne.match(m)){var fe=K.slice(0,N),Z=K.slice(N+1),ge=B.match(E);ge&&(fe.push(ge[1]),Z.unshift(ge[2])),Z.length&&(V=Z.join(".")+V),this.hostname=fe.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ae=V.indexOf("#");ae!==-1&&(this.hash=V.substr(ae),V=V.slice(0,ae));var pe=V.indexOf("?");return pe!==-1&&(this.search=V.substr(pe),V=V.slice(0,pe)),V&&(this.pathname=V),y[A]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(w){var k=n.exec(w);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),w=w.substr(0,w.length-k.length)),w&&(this.hostname=w)},_T=x,_T}var fR;function dR(){return fR||(fR=1,tp.encode=z$(),tp.decode=H$(),tp.format=G$(),tp.parse=Y$()),tp}var Af={},NT,pR;function hR(){return pR||(pR=1,NT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),NT}var AT,mR;function gR(){return mR||(mR=1,AT=/[\0-\x1F\x7F-\x9F]/),AT}var OT,vR;function W$(){return vR||(vR=1,OT=/[\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]/),OT}var DT,yR;function bR(){return yR||(yR=1,DT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),DT}var ER;function Q$(){return ER||(ER=1,Af.Any=hR(),Af.Cc=gR(),Af.Cf=W$(),Af.P=TT(),Af.Z=bR()),Af}var SR;function In(){return SR||(SR=1,function(e){function t(K){return Object.prototype.toString.call(K)}function n(K){return t(K)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(K,B){return r.call(K,B)}function o(K){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(re){K[re]=ne[re]})}}),K}function l(K,B,ne){return[].concat(K.slice(0,B),ne,K.slice(B+1))}function c(K){return!(K>=55296&&K<=57343||K>=64976&&K<=65007||(K&65535)===65535||(K&65535)===65534||K>=0&&K<=8||K===11||K>=14&&K<=31||K>=127&&K<=159||K>1114111)}function p(K){if(K>65535){K-=65536;var B=55296+(K>>10),ne=56320+(K&1023);return String.fromCharCode(B,ne)}return String.fromCharCode(K)}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=oR();function x(K,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):K}function w(K){return K.indexOf("\\")<0?K:K.replace(d,"$1")}function k(K){return K.indexOf("\\")<0&&K.indexOf("&")<0?K:K.replace(E,function(B,ne,re){return ne||x(B,re)})}var N=/[&<>"]/,D=/[&<>"]/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _(K){return A[K]}function L(K){return N.test(K)?K.replace(D,_):K}var V=/[.?*+^$[\]\\(){}|-]/g;function P(K){return K.replace(V,"\\$&")}function F(K){switch(K){case 9:case 32:return!0}return!1}function j(K){if(K>=8192&&K<=8202)return!0;switch(K){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 $=TT();function X(K){return $.test(K)}function J(K){switch(K){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 ee(K){return K=K.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(K=K.replace(/ẞ/g,"ß")),K.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=dR(),e.lib.ucmicro=Q$(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=w,e.unescapeAll=k,e.isValidEntityCode=c,e.fromCodePoint=p,e.escapeHtml=L,e.arrayReplaceAt=l,e.isSpace=F,e.isWhiteSpace=j,e.isMdAsciiPunct=J,e.isPunctChar=X,e.escapeRE=P,e.normalizeReference=ee}(bT)),bT}var Rm={},kT,TR;function K$(){return TR||(TR=1,kT=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}),kT}var RT,xR;function X$(){if(xR)return RT;xR=1;var e=In().unescapeAll;return RT=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},RT}var MT,wR;function Z$(){if(wR)return MT;wR=1;var e=In().unescapeAll;return MT=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},MT}var CR;function J$(){return CR||(CR=1,Rm.parseLinkLabel=K$(),Rm.parseLinkDestination=X$(),Rm.parseLinkTitle=Z$()),Rm}var LT,_R;function ez(){if(_R)return LT;_R=1;var e=In().assign,t=In().unescapeAll,n=In().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>
311
+ `," "],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 x(w,k){if(w&&w instanceof e)return w;var N=new e;return N.parse(w,k),N}return e.prototype.parse=function(w,k){var N,D,A,_,L,V=w;if(V=V.trim(),!k&&w.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],A=F.toLowerCase(),this.protocol=F,V=V.substr(F.length)),(k||F||V.match(/^\/\/[^@\/]+@[^@\/]+/))&&(L=V.substr(0,2)==="//",L&&!(F&&b[F])&&(V=V.substr(2),this.slashes=!0)),!b[F]&&(L||F&&!y[F])){var j=-1;for(N=0;N<p.length;N++)_=V.indexOf(p[N]),_!==-1&&(j===-1||_<j)&&(j=_);var $,X;for(j===-1?X=V.lastIndexOf("@"):X=V.lastIndexOf("@",j),X!==-1&&($=V.slice(0,X),V=V.slice(X+1),this.auth=$),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 J=V.slice(0,j);V=V.slice(j),this.parseHost(J),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee){var K=this.hostname.split(/\./);for(N=0,D=K.length;N<D;N++){var B=K[N];if(B&&!B.match(m)){for(var ne="",re=0,se=B.length;re<se;re++)B.charCodeAt(re)>127?ne+="x":ne+=B[re];if(!ne.match(m)){var fe=K.slice(0,N),Z=K.slice(N+1),ge=B.match(E);ge&&(fe.push(ge[1]),Z.unshift(ge[2])),Z.length&&(V=Z.join(".")+V),this.hostname=fe.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ae=V.indexOf("#");ae!==-1&&(this.hash=V.substr(ae),V=V.slice(0,ae));var pe=V.indexOf("?");return pe!==-1&&(this.search=V.substr(pe),V=V.slice(0,pe)),V&&(this.pathname=V),y[A]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(w){var k=n.exec(w);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),w=w.substr(0,w.length-k.length)),w&&(this.hostname=w)},_T=x,_T}var fR;function dR(){return fR||(fR=1,tp.encode=z$(),tp.decode=H$(),tp.format=G$(),tp.parse=Y$()),tp}var Af={},NT,pR;function hR(){return pR||(pR=1,NT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),NT}var AT,mR;function gR(){return mR||(mR=1,AT=/[\0-\x1F\x7F-\x9F]/),AT}var OT,vR;function W$(){return vR||(vR=1,OT=/[\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]/),OT}var DT,yR;function bR(){return yR||(yR=1,DT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),DT}var ER;function Q$(){return ER||(ER=1,Af.Any=hR(),Af.Cc=gR(),Af.Cf=W$(),Af.P=TT(),Af.Z=bR()),Af}var SR;function In(){return SR||(SR=1,(function(e){function t(K){return Object.prototype.toString.call(K)}function n(K){return t(K)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(K,B){return r.call(K,B)}function o(K){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(re){K[re]=ne[re]})}}),K}function l(K,B,ne){return[].concat(K.slice(0,B),ne,K.slice(B+1))}function c(K){return!(K>=55296&&K<=57343||K>=64976&&K<=65007||(K&65535)===65535||(K&65535)===65534||K>=0&&K<=8||K===11||K>=14&&K<=31||K>=127&&K<=159||K>1114111)}function p(K){if(K>65535){K-=65536;var B=55296+(K>>10),ne=56320+(K&1023);return String.fromCharCode(B,ne)}return String.fromCharCode(K)}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=oR();function x(K,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):K}function w(K){return K.indexOf("\\")<0?K:K.replace(d,"$1")}function k(K){return K.indexOf("\\")<0&&K.indexOf("&")<0?K:K.replace(E,function(B,ne,re){return ne||x(B,re)})}var N=/[&<>"]/,D=/[&<>"]/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _(K){return A[K]}function L(K){return N.test(K)?K.replace(D,_):K}var V=/[.?*+^$[\]\\(){}|-]/g;function P(K){return K.replace(V,"\\$&")}function F(K){switch(K){case 9:case 32:return!0}return!1}function j(K){if(K>=8192&&K<=8202)return!0;switch(K){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 $=TT();function X(K){return $.test(K)}function J(K){switch(K){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 ee(K){return K=K.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(K=K.replace(/ẞ/g,"ß")),K.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=dR(),e.lib.ucmicro=Q$(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=w,e.unescapeAll=k,e.isValidEntityCode=c,e.fromCodePoint=p,e.escapeHtml=L,e.arrayReplaceAt=l,e.isSpace=F,e.isWhiteSpace=j,e.isMdAsciiPunct=J,e.isPunctChar=X,e.escapeRE=P,e.normalizeReference=ee})(bT)),bT}var Rm={},kT,TR;function K$(){return TR||(TR=1,kT=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}),kT}var RT,xR;function X$(){if(xR)return RT;xR=1;var e=In().unescapeAll;return RT=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},RT}var MT,wR;function Z$(){if(wR)return MT;wR=1;var e=In().unescapeAll;return MT=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},MT}var CR;function J$(){return CR||(CR=1,Rm.parseLinkLabel=K$(),Rm.parseLinkDestination=X$(),Rm.parseLinkTitle=Z$()),Rm}var LT,_R;function ez(){if(_R)return LT;_R=1;var e=In().assign,t=In().unescapeAll,n=In().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>
312
312
  `},r.fence=function(o,l,c,p,d){var m=o[l],E=m.info?t(m.info).trim():"",b="",y="",x,w,k,N,D;return E&&(k=E.split(/(\s+)/g),b=k[0],y=k.slice(2).join("")),c.highlight?x=c.highlight(m.content,b,y)||n(m.content):x=n(m.content),x.indexOf("<pre")===0?x+`
313
313
  `:E?(w=m.attrIndex("class"),N=m.attrs?m.attrs.slice():[],w<0?N.push(["class",c.langPrefix+b]):(N[w]=N[w].slice(),N[w][1]+=" "+c.langPrefix+b),D={attrs:N},"<pre><code"+d.renderAttrs(D)+">"+x+`</code></pre>
314
314
  `):"<pre><code"+d.renderAttrs(m)+">"+x+`</code></pre>
@@ -322,13 +322,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
322
322
  `:">",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+=`
323
323
  `);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},LT=i,LT}var IT,NR;function FT(){if(NR)return IT;NR=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]||[]},IT=e,IT}var PT,AR;function tz(){if(AR)return PT;AR=1;var e=/\r\n?|\n/g,t=/\0/g;return PT=function(r){var i;i=r.src.replace(e,`
324
324
  `),i=i.replace(t,"�"),r.src=i},PT}var jT,OR;function nz(){return OR||(OR=1,jT=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)}),jT}var VT,DR;function rz(){return DR||(DR=1,VT=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)}),VT}var UT,kR;function iz(){if(kR)return UT;kR=1;var e=In().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return UT=function(i){var o,l,c,p,d,m,E,b,y,x,w,k,N,D,A,_,L=i.tokens,V;if(i.md.options.linkify){for(l=0,c=L.length;l<c;l++)if(!(L[l].type!=="inline"||!i.md.linkify.pretest(L[l].content)))for(p=L[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,w=0,b=0;b<V.length;b++)D=V[b].url,A=i.md.normalizeLink(D),i.md.validateLink(A)&&(_=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:\/\//,""),x=V[b].index,x>w&&(d=new i.Token("text","",0),d.content=y.slice(w,x),d.level=k,E.push(d)),d=new i.Token("link_open","a",1),d.attrs=[["href",A]],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),w=V[b].lastIndex);w<y.length&&(d=new i.Token("text","",0),d.content=y.slice(w),d.level=k,E.push(d)),L[l].children=p=e(p,o,E)}}}},UT}var qT,RR;function oz(){if(RR)return qT;RR=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 qT=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))},qT}var BT,MR;function az(){if(MR)return BT;MR=1;var e=In().isWhiteSpace,t=In().isPunctChar,n=In().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,x,w,k,N,D,A,_,L,V,P,F,j,$,X,J,ee,K;for(J=[],m=0;m<p.length;m++){for(E=p[m],k=p[m].level,$=J.length-1;$>=0&&!(J[$].level<=k);$--);if(J.length=$+1,E.type==="text"){b=E.content,x=0,w=b.length;e:for(;x<w&&(i.lastIndex=x,y=i.exec(b),!!y);){if(F=j=!0,x=y.index+1,X=y[0]==="'",D=32,y.index-1>=0)D=b.charCodeAt(y.index-1);else for($=m-1;$>=0&&!(p[$].type==="softbreak"||p[$].type==="hardbreak");$--)if(p[$].content){D=p[$].content.charCodeAt(p[$].content.length-1);break}if(A=32,x<w)A=b.charCodeAt(x);else for($=m+1;$<p.length&&!(p[$].type==="softbreak"||p[$].type==="hardbreak");$++)if(p[$].content){A=p[$].content.charCodeAt(0);break}if(_=n(D)||t(String.fromCharCode(D)),L=n(A)||t(String.fromCharCode(A)),V=e(D),P=e(A),P?F=!1:L&&(V||_||(F=!1)),V?j=!1:_&&(P||L||(j=!1)),A===34&&y[0]==='"'&&D>=48&&D<=57&&(j=F=!1),F&&j&&(F=_,j=L),!F&&!j){X&&(E.content=l(E.content,y.index,o));continue}if(j){for($=J.length-1;$>=0&&(N=J[$],!(J[$].level<k));$--)if(N.single===X&&J[$].level===k){N=J[$],X?(ee=d.md.options.quotes[2],K=d.md.options.quotes[3]):(ee=d.md.options.quotes[0],K=d.md.options.quotes[1]),E.content=l(E.content,y.index,K),p[N.token].content=l(p[N.token].content,N.pos,ee),x+=K.length-1,N.token===m&&(x+=ee.length-1),b=E.content,w=b.length,J.length=$;continue e}}F?J.push({token:m,pos:y.index,single:X,level:k}):j&&X&&(E.content=l(E.content,y.index,o))}}}}return BT=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)},BT}var $T,LR;function zT(){if(LR)return $T;LR=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},$T=e,$T}var HT,IR;function sz(){if(IR)return HT;IR=1;var e=zT();function t(n,r,i){this.src=n,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,HT=t,HT}var GT,FR;function lz(){if(FR)return GT;FR=1;var e=FT(),t=[["normalize",tz()],["block",nz()],["inline",rz()],["linkify",iz()],["replacements",oz()],["smartquotes",az()]];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=sz(),GT=n,GT}var YT,PR;function uz(){if(PR)return YT;PR=1;var e=In().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 YT=function(i,o,l,c){var p,d,m,E,b,y,x,w,k,N,D,A,_,L,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),x=d.split("|"),N=[],E=0;E<x.length;E++){if(D=x[E].trim(),!D){if(E===0||E===x.length-1)continue;return!1}if(!/^:?-+:?$/.test(D))return!1;D.charCodeAt(D.length-1)===58?N.push(D.charCodeAt(0)===58?"center":"right"):D.charCodeAt(0)===58?N.push("left"):N.push("")}if(d=t(i,o).trim(),d.indexOf("|")===-1||i.sCount[o]-i.blkIndent>=4||(x=n(d),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),w=x.length,w===0||w!==N.length))return!1;if(c)return!0;for(L=i.parentType,i.parentType="table",P=i.md.block.ruler.getRules("blockquote"),k=i.push("table_open","table",1),k.map=A=[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<x.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=x[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(x=n(d),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.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<w;E++)k=i.push("td_open","td",1),N[E]&&(k.attrs=[["style","text-align:"+N[E]]]),k=i.push("inline","",0),k.content=x[E]?x[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),A[1]=y,i.parentType=L,i.line=y,!0},YT}var WT,jR;function cz(){return jR||(jR=1,WT=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)+`
325
- `,l.map=[n,t.line],!0}),WT}var QT,VR;function fz(){return VR||(VR=1,QT=function(t,n,r,i){var o,l,c,p,d,m,E,b=!1,y=t.bMarks[n]+t.tShift[n],x=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>x||(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,x),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],x=t.eMarks[p],y<x&&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<x)))){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}),QT}var KT,UR;function dz(){if(UR)return KT;UR=1;var e=In().isSpace;return KT=function(n,r,i,o){var l,c,p,d,m,E,b,y,x,w,k,N,D,A,_,L,V,P,F,j,$=n.lineMax,X=n.bMarks[r]+n.tShift[r],J=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(X++)!==62)return!1;if(o)return!0;for(d=x=n.sCount[r]+1,n.src.charCodeAt(X)===32?(X++,d++,x++,l=!1,L=!0):n.src.charCodeAt(X)===9?(L=!0,(n.bsCount[r]+x)%4===3?(X++,d++,x++,l=!1):l=!0):L=!1,w=[n.bMarks[r]],n.bMarks[r]=X;X<J&&(c=n.src.charCodeAt(X),e(c));){c===9?x+=4-(x+n.bsCount[r]+(l?1:0))%4:x++;X++}for(k=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(L?1:0),E=X>=J,A=[n.sCount[r]],n.sCount[r]=x-d,_=[n.tShift[r]],n.tShift[r]=X-n.bMarks[r],P=n.md.block.ruler.getRules("blockquote"),D=n.parentType,n.parentType="blockquote",y=r+1;y<i&&(j=n.sCount[y]<n.blkIndent,X=n.bMarks[y]+n.tShift[y],J=n.eMarks[y],!(X>=J));y++){if(n.src.charCodeAt(X++)===62&&!j){for(d=x=n.sCount[y]+1,n.src.charCodeAt(X)===32?(X++,d++,x++,l=!1,L=!0):n.src.charCodeAt(X)===9?(L=!0,(n.bsCount[y]+x)%4===3?(X++,d++,x++,l=!1):l=!0):L=!1,w.push(n.bMarks[y]),n.bMarks[y]=X;X<J&&(c=n.src.charCodeAt(X),e(c));){c===9?x+=4-(x+n.bsCount[y]+(l?1:0))%4:x++;X++}E=X>=J,k.push(n.bsCount[y]),n.bsCount[y]=n.sCount[y]+1+(L?1:0),A.push(n.sCount[y]),n.sCount[y]=x-d,_.push(n.tShift[y]),n.tShift[y]=X-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&&(w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),A.push(n.sCount[y]),n.sCount[y]-=n.blkIndent);break}w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),A.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=$,n.parentType=D,b[1]=n.line,p=0;p<_.length;p++)n.bMarks[p+r]=w[p],n.tShift[p+r]=_[p],n.sCount[p+r]=A[p],n.bsCount[p+r]=k[p];return n.blkIndent=N,!0},KT}var XT,qR;function pz(){if(qR)return XT;qR=1;var e=In().isSpace;return XT=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)},XT}var ZT,BR;function hz(){if(BR)return ZT;BR=1;var e=In().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 ZT=function(o,l,c,p){var d,m,E,b,y,x,w,k,N,D,A,_,L,V,P,F,j,$,X,J,ee,K,B,ne,re,se,fe,Z,ge=!1,ae=!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(w=!0,re=o.bMarks[l]+o.tShift[l],L=Number(o.src.slice(re,B-1)),ge&&L!==1)return!1}else if((B=t(o,l))>=0)w=!1;else return!1;if(ge&&o.skipSpaces(B)>=o.eMarks[l])return!1;if(_=o.src.charCodeAt(B-1),p)return!0;for(A=o.tokens.length,w?(Z=o.push("ordered_list_open","ol",1),L!==1&&(Z.attrs=[["start",L]])):Z=o.push("bullet_list_open","ul",1),Z.map=D=[l,0],Z.markup=String.fromCharCode(_),P=l,ne=!1,fe=o.md.block.ruler.getRules("list"),$=o.parentType,o.parentType="list";P<c;){for(K=B,V=o.eMarks[P],x=F=o.sCount[P]+B-(o.bMarks[l]+o.tShift[l]);K<V;){if(d=o.src.charCodeAt(K),d===9)F+=4-(F+o.bsCount[P])%4;else if(d===32)F++;else break;K++}if(m=K,m>=V?y=1:y=F-x,y>4&&(y=1),b=x+y,Z=o.push("list_item_open","li",1),Z.markup=String.fromCharCode(_),Z.map=k=[l,0],w&&(Z.info=o.src.slice(re,B-1)),ee=o.tight,J=o.tShift[l],X=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)&&(ae=!1),ne=o.line-l>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=j,o.tShift[l]=J,o.sCount[l]=X,o.tight=ee,Z=o.push("list_item_close","li",-1),Z.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=fe.length;E<N;E++)if(fe[E](o,P,c,!0)){se=!0;break}if(se)break;if(w){if(B=n(o,P),B<0)break;re=o.bMarks[P]+o.tShift[P]}else if(B=t(o,P),B<0)break;if(_!==o.src.charCodeAt(B-1))break}return w?Z=o.push("ordered_list_close","ol",-1):Z=o.push("bullet_list_close","ul",-1),Z.markup=String.fromCharCode(_),D[1]=P,o.line=P,o.parentType=$,ae&&r(o,A),!0},ZT}var JT,$R;function mz(){if($R)return JT;$R=1;var e=In().normalizeReference,t=In().isSpace;return JT=function(r,i,o,l){var c,p,d,m,E,b,y,x,w,k,N,D,A,_,L,V,P=0,F=r.bMarks[i]+r.tShift[i],j=r.eMarks[i],$=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,L=r.md.block.ruler.getRules("reference"),k=r.parentType,r.parentType="reference";$<m&&!r.isEmpty($);$++)if(!(r.sCount[$]-r.blkIndent>3)&&!(r.sCount[$]<0)){for(_=!1,b=0,y=L.length;b<y;b++)if(L[b](r,$,m,!0)){_=!0;break}if(_)break}for(A=r.getLines(i,$,r.blkIndent,!1).trim(),j=A.length,F=1;F<j;F++){if(c=A.charCodeAt(F),c===91)return!1;if(c===93){w=F;break}else c===10?P++:c===92&&(F++,F<j&&A.charCodeAt(F)===10&&P++)}if(w<0||A.charCodeAt(w+1)!==58)return!1;for(F=w+2;F<j;F++)if(c=A.charCodeAt(F),c===10)P++;else if(!t(c))break;if(N=r.md.helpers.parseLinkDestination(A,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,D=F;F<j;F++)if(c=A.charCodeAt(F),c===10)P++;else if(!t(c))break;for(N=r.md.helpers.parseLinkTitle(A,F,j),F<j&&D!==F&&N.ok?(V=N.str,F=N.pos,P+=N.lines):(V="",F=p,P=d);F<j&&(c=A.charCodeAt(F),!!t(c));)F++;if(F<j&&A.charCodeAt(F)!==10&&V)for(V="",F=p,P=d;F<j&&(c=A.charCodeAt(F),!!t(c));)F++;return F<j&&A.charCodeAt(F)!==10||(x=e(A.slice(1,w)),!x)?!1:(l||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[x]>"u"&&(r.env.references[x]={title:V,href:E}),r.parentType=k,r.line=i+P+1),!0)},JT}var ex,zR;function gz(){return zR||(zR=1,ex=["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"]),ex}var E0={},HR;function GR(){if(HR)return E0;HR=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 E0.HTML_TAG_RE=b,E0.HTML_OPEN_CLOSE_TAG_RE=y,E0}var tx,YR;function vz(){if(YR)return tx;YR=1;var e=gz(),t=GR().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 tx=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},tx}var nx,WR;function yz(){if(WR)return nx;WR=1;var e=In().isSpace;return nx=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)},nx}var rx,QR;function bz(){return QR||(QR=1,rx=function(t,n,r){var i,o,l,c,p,d,m,E,b,y=n+1,x,w=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(x=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=w.length;l<c;l++)if(w[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=x,!0):!1}),rx}var ix,KR;function Ez(){return KR||(KR=1,ix=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}),ix}var ox,XR;function Sz(){if(XR)return ox;XR=1;var e=zT(),t=In().isSpace;function n(r,i,o,l){var c,p,d,m,E,b,y,x;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,x=!1,d=m=b=y=0,E=p.length;m<E;m++){if(c=p.charCodeAt(m),!x)if(t(c)){b++,c===9?y+=4-y%4:y++;continue}else x=!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),x=!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,x,w=i;if(i>=o)return"";for(y=new Array(o-i),p=0;w<o;w++,p++){for(d=0,x=E=this.bMarks[w],w+1<o||c?b=this.eMarks[w]+1:b=this.eMarks[w];E<b&&d<l;){if(m=this.src.charCodeAt(E),t(m))m===9?d+=4-(d+this.bsCount[w])%4:d++;else if(E-x<this.tShift[w])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,ox=n,ox}var ax,ZR;function Tz(){if(ZR)return ax;ZR=1;var e=FT(),t=[["table",uz(),["paragraph","reference"]],["code",cz()],["fence",fz(),["paragraph","reference","blockquote","list"]],["blockquote",dz(),["paragraph","reference","blockquote","list"]],["hr",pz(),["paragraph","reference","blockquote","list"]],["list",hz(),["paragraph","reference","blockquote"]],["reference",mz()],["html_block",vz(),["paragraph","reference","blockquote"]],["heading",yz(),["paragraph","reference","blockquote"]],["lheading",bz()],["paragraph",Ez()]];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=Sz(),ax=n,ax}var sx,JR;function xz(){if(JR)return sx;JR=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 sx=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)},sx}var lx,eM;function wz(){if(eM)return lx;eM=1;var e=In().isSpace;return lx=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},lx}var ux,tM;function Cz(){if(tM)return ux;tM=1;for(var e=In().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),ux=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},ux}var cx,nM;function _z(){return nM||(nM=1,cx=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}),cx}var S0={},rM;function iM(){if(rM)return S0;rM=1,S0.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 S0.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)},S0}var T0={},oM;function aM(){if(oM)return T0;oM=1,T0.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 T0.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)},T0}var fx,sM;function Nz(){if(sM)return fx;sM=1;var e=In().normalizeReference,t=In().isSpace;return fx=function(r,i){var o,l,c,p,d,m,E,b,y,x="",w="",k=r.pos,N=r.posMax,D=r.pos,A=!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(A=!1,m++;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(m>=N)return!1;if(D=m,E=r.md.helpers.parseLinkDestination(r.src,m,r.posMax),E.ok){for(x=r.md.normalizeLink(E.str),r.md.validateLink(x)?m=E.pos:x="",D=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&&D!==m&&E.ok)for(w=E.str,m=E.pos;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);}(m>=N||r.src.charCodeAt(m)!==41)&&(A=!0),m++}if(A){if(typeof r.env.references>"u")return!1;if(m<N&&r.src.charCodeAt(m)===91?(D=m+1,m=r.md.helpers.parseLinkLabel(r,m),m>=0?c=r.src.slice(D,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;x=b.href,w=b.title}return i||(r.pos=d,r.posMax=p,y=r.push("link_open","a",1),y.attrs=o=[["href",x]],w&&o.push(["title",w]),r.md.inline.tokenize(r),y=r.push("link_close","a",-1)),r.pos=m,r.posMax=N,!0},fx}var dx,lM;function Az(){if(lM)return dx;lM=1;var e=In().normalizeReference,t=In().isSpace;return dx=function(r,i){var o,l,c,p,d,m,E,b,y,x,w,k,N,D="",A=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&&(D=r.md.normalizeLink(y.str),r.md.validateLink(D)?E=y.pos:D=""),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(x=y.str,E=y.pos;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);else x="";if(E>=_||r.src.charCodeAt(E)!==41)return r.pos=A,!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=A,!1;D=b.href,x=b.title}return i||(c=r.src.slice(m,d),r.md.inline.parse(c,r.md,r.env,k=[]),w=r.push("image","img",0),w.attrs=o=[["src",D],["alt",""]],w.children=k,w.content=c,x&&o.push(["title",x])),r.pos=E,r.posMax=_,!0},dx}var px,uM;function Oz(){if(uM)return px;uM=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 px=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},px}var hx,cM;function Dz(){if(cM)return hx;cM=1;var e=GR().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return hx=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)},hx}var mx,fM;function kz(){if(fM)return mx;fM=1;var e=oR(),t=In().has,n=In().isValidEntityCode,r=In().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return mx=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},mx}var gx,dM;function Rz(){if(dM)return gx;dM=1;function e(t,n){var r,i,o,l,c,p,d,m,E={},b=n.length;if(b){var y=0,x=-2,w=[];for(r=0;r<b;r++)if(o=n[r],w.push(0),(n[y].marker!==o.marker||x!==o.token-1)&&(y=r),x=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-w[y]-1,p=i;i>c;i-=w[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?w[i-1]+1:0,w[r]=r-i+m,w[i]=m,o.open=!1,l.end=r,l.close=!1,p=-1,x=-2;break}p!==-1&&(E[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}}return gx=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)},gx}var vx,pM;function Mz(){return pM||(pM=1,vx=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)}),vx}var yx,hM;function Lz(){if(hM)return yx;hM=1;var e=zT(),t=In().isWhiteSpace,n=In().isPunctChar,r=In().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,x,w,k,N=!0,D=!0,A=this.posMax,_=this.src.charCodeAt(o);for(p=o>0?this.src.charCodeAt(o-1):32;c<A&&this.src.charCodeAt(c)===_;)c++;return m=c-o,d=c<A?this.src.charCodeAt(c):32,x=r(p)||n(String.fromCharCode(p)),k=r(d)||n(String.fromCharCode(d)),y=t(p),w=t(d),w?N=!1:k&&(y||x||(N=!1)),y?D=!1:x&&(w||k||(D=!1)),l?(E=N,b=D):(E=N&&(!D||x),b=D&&(!N||k)),{can_open:E,can_close:b,length:m}},i.prototype.Token=e,yx=i,yx}var bx,mM;function Iz(){if(mM)return bx;mM=1;var e=FT(),t=[["text",xz()],["newline",wz()],["escape",Cz()],["backticks",_z()],["strikethrough",iM().tokenize],["emphasis",aM().tokenize],["link",Nz()],["image",Az()],["autolink",Oz()],["html_inline",Dz()],["entity",kz()]],n=[["balance_pairs",Rz()],["strikethrough",iM().postProcess],["emphasis",aM().postProcess],["text_collapse",Mz()]];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=Lz(),bx=r,bx}var Ex,gM;function Fz(){return gM||(gM=1,Ex=function(e){var t={};t.src_Any=hR().source,t.src_Cc=gR().source,t.src_Z=bR().source,t.src_P=TT().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}),Ex}var Sx,vM;function Pz(){if(vM)return Sx;vM=1;function e(A){var _=Array.prototype.slice.call(arguments,1);return _.forEach(function(L){L&&Object.keys(L).forEach(function(V){A[V]=L[V]})}),A}function t(A){return Object.prototype.toString.call(A)}function n(A){return t(A)==="[object String]"}function r(A){return t(A)==="[object Object]"}function i(A){return t(A)==="[object RegExp]"}function o(A){return t(A)==="[object Function]"}function l(A){return A.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(A){return Object.keys(A||{}).reduce(function(_,L){return _||c.hasOwnProperty(L)},!1)}var d={"http:":{validate:function(A,_,L){var V=A.slice(_);return L.re.http||(L.re.http=new RegExp("^\\/\\/"+L.re.src_auth+L.re.src_host_port_strict+L.re.src_path,"i")),L.re.http.test(V)?V.match(L.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(A,_,L){var V=A.slice(_);return L.re.no_http||(L.re.no_http=new RegExp("^"+L.re.src_auth+"(?:localhost|(?:(?:"+L.re.src_domain+")\\.)+"+L.re.src_domain_root+")"+L.re.src_port+L.re.src_host_terminator+L.re.src_path,"i")),L.re.no_http.test(V)?_>=3&&A[_-3]===":"||_>=3&&A[_-3]==="/"?0:V.match(L.re.no_http)[0].length:0}},"mailto:":{validate:function(A,_,L){var V=A.slice(_);return L.re.mailto||(L.re.mailto=new RegExp("^"+L.re.src_email_name+"@"+L.re.src_host_strict,"i")),L.re.mailto.test(V)?V.match(L.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(A){A.__index__=-1,A.__text_cache__=""}function y(A){return function(_,L){var V=_.slice(L);return A.test(V)?V.match(A)[0].length:0}}function x(){return function(A,_){_.normalize(A)}}function w(A){var _=A.re=Fz()(A.__opts__),L=A.__tlds__.slice();A.onCompile(),A.__tlds_replaced__||L.push(m),L.push(_.src_xn),_.src_tlds=L.join("|");function V($){return $.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=[];A.__compiled__={};function F($,X){throw new Error('(LinkifyIt) Invalid schema "'+$+'": '+X)}Object.keys(A.__schemas__).forEach(function($){var X=A.__schemas__[$];if(X!==null){var J={validate:null,link:null};if(A.__compiled__[$]=J,r(X)){i(X.validate)?J.validate=y(X.validate):o(X.validate)?J.validate=X.validate:F($,X),o(X.normalize)?J.normalize=X.normalize:X.normalize?F($,X):J.normalize=x();return}if(n(X)){P.push($);return}F($,X)}}),P.forEach(function($){A.__compiled__[A.__schemas__[$]]&&(A.__compiled__[$].validate=A.__compiled__[A.__schemas__[$]].validate,A.__compiled__[$].normalize=A.__compiled__[A.__schemas__[$]].normalize)}),A.__compiled__[""]={validate:null,normalize:x()};var j=Object.keys(A.__compiled__).filter(function($){return $.length>0&&A.__compiled__[$]}).map(l).join("|");A.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+j+")","i"),A.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+j+")","ig"),A.re.pretest=RegExp("("+A.re.schema_test.source+")|("+A.re.host_fuzzy_test.source+")|@","i"),b(A)}function k(A,_){var L=A.__index__,V=A.__last_index__,P=A.__text_cache__.slice(L,V);this.schema=A.__schema__.toLowerCase(),this.index=L+_,this.lastIndex=V+_,this.raw=P,this.text=P,this.url=P}function N(A,_){var L=new k(A,_);return A.__compiled__[L.schema].normalize(L,A),L}function D(A,_){if(!(this instanceof D))return new D(A,_);_||p(A)&&(_=A,A={}),this.__opts__=e({},c,_),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},d,A),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},w(this)}return D.prototype.add=function(_,L){return this.__schemas__[_]=L,w(this),this},D.prototype.set=function(_){return this.__opts__=e(this.__opts__,_),this},D.prototype.test=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return!1;var L,V,P,F,j,$,X,J,ee;if(this.re.schema_test.test(_)){for(X=this.re.schema_search,X.lastIndex=0;(L=X.exec(_))!==null;)if(F=this.testSchemaAt(_,L[2],X.lastIndex),F){this.__schema__=L[2],this.__index__=L.index+L[1].length,this.__last_index__=L.index+L[0].length+F;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(J=_.search(this.re.host_fuzzy_test),J>=0&&(this.__index__<0||J<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:"]&&(ee=_.indexOf("@"),ee>=0&&(P=_.match(this.re.email_fuzzy))!==null&&(j=P.index+P[1].length,$=P.index+P[0].length,(this.__index__<0||j<this.__index__||j===this.__index__&&$>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=j,this.__last_index__=$))),this.__index__>=0},D.prototype.pretest=function(_){return this.re.pretest.test(_)},D.prototype.testSchemaAt=function(_,L,V){return this.__compiled__[L.toLowerCase()]?this.__compiled__[L.toLowerCase()].validate(_,V,this):0},D.prototype.match=function(_){var L=0,V=[];this.__index__>=0&&this.__text_cache__===_&&(V.push(N(this,L)),L=this.__last_index__);for(var P=L?_.slice(L):_;this.test(P);)V.push(N(this,L)),P=P.slice(this.__last_index__),L+=this.__last_index__;return V.length?V:null},D.prototype.tlds=function(_,L){return _=Array.isArray(_)?_:[_],L?(this.__tlds__=this.__tlds__.concat(_).sort().filter(function(V,P,F){return V!==F[P-1]}).reverse(),w(this),this):(this.__tlds__=_.slice(),this.__tlds_replaced__=!0,w(this),this)},D.prototype.normalize=function(_){_.schema||(_.url="http://"+_.url),_.schema==="mailto:"&&!/^mailto:/i.test(_.url)&&(_.url="mailto:"+_.url)},D.prototype.onCompile=function(){},Sx=D,Sx}const np=2147483647,$s=36,Tx=1,Mm=26,jz=38,Vz=700,yM=72,bM=128,EM="-",Uz=/^xn--/,qz=/[^\0-\x7F]/,Bz=/[\x2E\u3002\uFF0E\uFF61]/g,$z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xx=$s-Tx,zs=Math.floor,wx=String.fromCharCode;function $u(e){throw new RangeError($z[e])}function zz(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function SM(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Bz,".");const i=e.split("."),o=zz(i,t).join(".");return r+o}function Cx(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 TM=e=>String.fromCodePoint(...e),Hz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:$s},xM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},wM=function(e,t,n){let r=0;for(e=n?zs(e/Vz):e>>1,e+=zs(e/t);e>xx*Mm>>1;r+=$s)e=zs(e/xx);return zs(r+(xx+1)*e/(e+jz))},_x=function(e){const t=[],n=e.length;let r=0,i=bM,o=yM,l=e.lastIndexOf(EM);l<0&&(l=0);for(let c=0;c<l;++c)e.charCodeAt(c)>=128&&$u("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&&$u("invalid-input");const b=Hz(e.charCodeAt(c++));b>=$s&&$u("invalid-input"),b>zs((np-r)/m)&&$u("overflow"),r+=b*m;const y=E<=o?Tx:E>=o+Mm?Mm:E-o;if(b<y)break;const x=$s-y;m>zs(np/x)&&$u("overflow"),m*=x}const d=t.length+1;o=wM(r-p,d,p==0),zs(r/d)>np-i&&$u("overflow"),i+=zs(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Nx=function(e){const t=[];e=Cx(e);const n=e.length;let r=bM,i=0,o=yM;for(const p of e)p<128&&t.push(wx(p));const l=t.length;let c=l;for(l&&t.push(EM);c<n;){let p=np;for(const m of e)m>=r&&m<p&&(p=m);const d=c+1;p-r>zs((np-i)/d)&&$u("overflow"),i+=(p-r)*d,r=p;for(const m of e)if(m<r&&++i>np&&$u("overflow"),m===r){let E=i;for(let b=$s;;b+=$s){const y=b<=o?Tx:b>=o+Mm?Mm:b-o;if(E<y)break;const x=E-y,w=$s-y;t.push(wx(xM(y+x%w,0))),E=zs(x/w)}t.push(wx(xM(E,0))),o=wM(i,d,c===l),i=0,++c}++i,++r}return t.join("")},CM=function(e){return SM(e,function(t){return Uz.test(t)?_x(t.slice(4).toLowerCase()):t})},_M=function(e){return SM(e,function(t){return qz.test(t)?"xn--"+Nx(t):t})},Gz=Z_(Object.freeze(Object.defineProperty({__proto__:null,decode:_x,default:{version:"2.3.1",ucs2:{decode:Cx,encode:TM},decode:_x,encode:Nx,toASCII:_M,toUnicode:CM},encode:Nx,toASCII:_M,toUnicode:CM,ucs2decode:Cx,ucs2encode:TM},Symbol.toStringTag,{value:"Module"})));var Ax,NM;function Yz(){return NM||(NM=1,Ax={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Ax}var Ox,AM;function Wz(){return AM||(AM=1,Ox={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"]}}}),Ox}var Dx,OM;function Qz(){return OM||(OM=1,Dx={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"]}}}),Dx}var kx,DM;function Kz(){if(DM)return kx;DM=1;var e=In(),t=J$(),n=ez(),r=lz(),i=Tz(),o=Iz(),l=Pz(),c=dR(),p=Gz,d={default:Yz(),zero:Wz(),commonmark:Qz()},m=/^(vbscript|javascript|file|data):/,E=/^data:image\/(gif|png|jpeg|webp);/;function b(N){var D=N.trim().toLowerCase();return m.test(D)?!!E.test(D):!0}var y=["http:","https:","mailto:"];function x(N){var D=c.parse(N,!0);if(D.hostname&&(!D.protocol||y.indexOf(D.protocol)>=0))try{D.hostname=p.toASCII(D.hostname)}catch{}return c.encode(c.format(D))}function w(N){var D=c.parse(N,!0);if(D.hostname&&(!D.protocol||y.indexOf(D.protocol)>=0))try{D.hostname=p.toUnicode(D.hostname)}catch{}return c.decode(c.format(D),c.decode.defaultChars+"%")}function k(N,D){if(!(this instanceof k))return new k(N,D);D||e.isString(N)||(D=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=x,this.normalizeLinkText=w,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(N),D&&this.set(D)}return k.prototype.set=function(N){return e.assign(this.options,N),this},k.prototype.configure=function(N){var D=this,A;if(e.isString(N)&&(A=N,N=d[A],!N))throw new Error('Wrong `markdown-it` preset "'+A+'", check name');if(!N)throw new Error("Wrong `markdown-it` preset, can't be empty");return N.options&&D.set(N.options),N.components&&Object.keys(N.components).forEach(function(_){N.components[_].rules&&D[_].ruler.enableOnly(N.components[_].rules),N.components[_].rules2&&D[_].ruler2.enableOnly(N.components[_].rules2)}),this},k.prototype.enable=function(N,D){var A=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(L){A=A.concat(this[L].ruler.enable(N,!0))},this),A=A.concat(this.inline.ruler2.enable(N,!0));var _=N.filter(function(L){return A.indexOf(L)<0});if(_.length&&!D)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+_);return this},k.prototype.disable=function(N,D){var A=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(L){A=A.concat(this[L].ruler.disable(N,!0))},this),A=A.concat(this.inline.ruler2.disable(N,!0));var _=N.filter(function(L){return A.indexOf(L)<0});if(_.length&&!D)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+_);return this},k.prototype.use=function(N){var D=[this].concat(Array.prototype.slice.call(arguments,1));return N.apply(N,D),this},k.prototype.parse=function(N,D){if(typeof N!="string")throw new Error("Input data should be a String");var A=new this.core.State(N,this,D);return this.core.process(A),A.tokens},k.prototype.render=function(N,D){return D=D||{},this.renderer.render(this.parse(N,D),this.options,D)},k.prototype.parseInline=function(N,D){var A=new this.core.State(N,this,D);return A.inlineMode=!0,this.core.process(A),A.tokens},k.prototype.renderInline=function(N,D){return D=D||{},this.renderer.render(this.parseInline(N,D),this.options,D)},kx=k,kx}var Rx,kM;function Xz(){return kM||(kM=1,Rx=Kz()),Rx}var Zz=Xz();const Jz=Du(Zz);var eH="production";typeof process>"u"||process.env;var jl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Lm={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 tH(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Lm.projectionNodeConstructor=e[t]:Lm[t].Component=e[t])}var x0=function(){},RM=M.createContext({strict:!1}),MM=Object.keys(Lm),nH=MM.length;function rH(e,t,n){var r=[];if(M.useContext(RM),!t)return null;for(var i=0;i<nH;i++){var o=MM[i],l=Lm[o],c=l.isEnabled,p=l.Component;c(e)&&p&&r.push(M.createElement(p,Qe({key:o},e,{visualElement:t})))}return r}var w0=M.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),C0=M.createContext({});function iH(){return M.useContext(C0).visualElement}var _0=M.createContext(null),rp=typeof document<"u",Mx=rp?M.useLayoutEffect:M.useEffect,Lx={current:null},LM=!1;function oH(){if(LM=!0,!!rp)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Lx.current=e.matches};e.addListener(t),t()}else Lx.current=!1}function aH(){!LM&&oH();var e=yr(M.useState(Lx.current),1),t=e[0];return t}function sH(){var e=aH(),t=M.useContext(w0).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function lH(e,t,n,r){var i=M.useContext(RM),o=iH(),l=M.useContext(_0),c=sH(),p=M.useRef(void 0);r||(r=i.renderer),!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceId:l?.id,blockInitialAnimation:l?.initial===!1,shouldReduceMotion:c}));var d=p.current;return Mx(function(){d?.syncRender()}),M.useEffect(function(){var m;(m=d?.animationState)===null||m===void 0||m.animateChanges()}),Mx(function(){return function(){return d?.notifyUnmount()}},[]),d}function ip(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uH(e,t,n){return M.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):ip(n)&&(n.current=r))},[t])}function IM(e){return Array.isArray(e)}function ss(e){return typeof e=="string"||IM(e)}function cH(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function fH(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function FM(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 N0(e,t,n){var r=e.getProps();return FM(r,t,n??r.custom,cH(e),fH(e))}function A0(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||ss(e.initial)||ss(e.animate)||ss(e.whileHover)||ss(e.whileDrag)||ss(e.whileTap)||ss(e.whileFocus)||ss(e.exit)}function PM(e){return!!(A0(e)||e.variants)}function dH(e,t){if(A0(e)){var n=e.initial,r=e.animate;return{initial:n===!1||ss(n)?n:void 0,animate:ss(r)?r:void 0}}return e.inherit!==!1?t:{}}function pH(e){var t=dH(e,M.useContext(C0)),n=t.initial,r=t.animate;return M.useMemo(function(){return{initial:n,animate:r}},[jM(n),jM(r)])}function jM(e){return Array.isArray(e)?e.join(" "):e}function zu(e){var t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}var Im={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hH=1;function mH(){return zu(function(){if(Im.hasEverUpdated)return hH++})}var VM=M.createContext({}),UM=M.createContext({});function gH(e,t,n,r){var i,o=t.layoutId,l=t.layout,c=t.drag,p=t.dragConstraints,d=t.layoutScroll,m=M.useContext(UM);!r||!n||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&&ip(p),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof l=="string"?l:"both",initialPromotionConfig:m,layoutScroll:d}))}var vH=function(e){ok(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}(Ae.Component);function yH(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,l=e.Component;t&&tH(t);function c(p,d){var m=bH(p);p=Qe(Qe({},p),{layoutId:m});var E=M.useContext(w0),b=null,y=pH(p),x=E.isStatic?void 0:mH(),w=o(p,E.isStatic);return!E.isStatic&&rp&&(y.visualElement=lH(l,w,Qe(Qe({},E),p),n),gH(x,p,y.visualElement,r||Lm.projectionNodeConstructor),b=rH(p,y.visualElement)),M.createElement(vH,{visualElement:y.visualElement,props:Qe(Qe({},E),p)},b,M.createElement(C0.Provider,{value:y},i(l,p,x,uH(w,y.visualElement,d),w,E.isStatic,y.visualElement)))}return M.forwardRef(c)}function bH(e){var t,n=e.layoutId,r=(t=M.useContext(VM))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function EH(e){function t(r,i){return i===void 0&&(i={}),yH(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 SH=["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 Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(SH.indexOf(e)>-1||/[A-Z]/.test(e))}var O0={};function TH(e){Object.assign(O0,e)}var Fx=["","X","Y","Z"],xH=["translate","scale","rotate","skew"],Fm=["transformPerspective","x","y","z"];xH.forEach(function(e){return Fx.forEach(function(t){return Fm.push(e+t)})});function wH(e,t){return Fm.indexOf(e)-Fm.indexOf(t)}var CH=new Set(Fm);function Pm(e){return CH.has(e)}var _H=new Set(["originX","originY","originZ"]);function qM(e){return _H.has(e)}function BM(e,t){var n=t.layout,r=t.layoutId;return Pm(e)||qM(e)||(n||r!==void 0)&&(!!O0[e]||e==="opacity")}var Hs=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},NH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function AH(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(wH);for(var E=!1,b=o.length,y=0;y<b;y++){var x=o[y];m+="".concat(NH[x]||x,"(").concat(i[x],") "),x==="z"&&(E=!0)}return!E&&c?m+="translateZ(0)":m=m.trim(),r?m=r(i,n?"":m):d&&n&&(m="none"),m}function OH(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 $M(e){return e.startsWith("--")}var DH=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const zM=(e,t)=>n=>Math.max(Math.min(n,t),e),jm=e=>e%1?Number(e.toFixed(5)):e,Vm=/(-)?([\d]*\.?[\d])+/g,Px=/(#[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,kH=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Um(e){return typeof e=="string"}const Of={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qm=Object.assign(Object.assign({},Of),{transform:zM(0,1)}),D0=Object.assign(Object.assign({},Of),{default:1}),Bm=e=>({test:t=>Um(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hu=Bm("deg"),Gs=Bm("%"),Lt=Bm("px"),RH=Bm("vh"),MH=Bm("vw"),HM=Object.assign(Object.assign({},Gs),{parse:e=>Gs.parse(e)/100,transform:e=>Gs.transform(e*100)}),jx=(e,t)=>n=>!!(Um(n)&&kH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),GM=(e,t,n)=>r=>{if(!Um(r))return r;const[i,o,l,c]=r.match(Vm);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Df={test:jx("hsl","hue"),parse:GM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gs.transform(jm(t))+", "+Gs.transform(jm(n))+", "+jm(qm.transform(r))+")"},LH=zM(0,255),Vx=Object.assign(Object.assign({},Of),{transform:e=>Math.round(LH(e))}),Gu={test:jx("rgb","red"),parse:GM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vx.transform(e)+", "+Vx.transform(t)+", "+Vx.transform(n)+", "+jm(qm.transform(r))+")"};function IH(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 Ux={test:jx("#"),parse:IH,transform:Gu.transform},uo={test:e=>Gu.test(e)||Ux.test(e)||Df.test(e),parse:e=>Gu.test(e)?Gu.parse(e):Df.test(e)?Df.parse(e):Ux.parse(e),transform:e=>Um(e)?e:e.hasOwnProperty("red")?Gu.transform(e):Df.transform(e)},YM="${c}",WM="${n}";function FH(e){var t,n,r,i;return isNaN(e)&&Um(e)&&((n=(t=e.match(Vm))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Px))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function QM(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Px);r&&(n=r.length,e=e.replace(Px,YM),t.push(...r.map(uo.parse)));const i=e.match(Vm);return i&&(e=e.replace(Vm,WM),t.push(...i.map(Of.parse))),{values:t,numColors:n,tokenised:e}}function KM(e){return QM(e).values}function XM(e){const{values:t,numColors:n,tokenised:r}=QM(e),i=t.length;return o=>{let l=r;for(let c=0;c<i;c++)l=l.replace(c<n?YM:WM,c<n?uo.transform(o[c]):jm(o[c]));return l}}const PH=e=>typeof e=="number"?0:e;function jH(e){const t=KM(e);return XM(e)(t.map(PH))}const Vl={test:FH,parse:KM,createTransformer:XM,getAnimatableNone:jH},VH=new Set(["brightness","contrast","saturate","opacity"]);function UH(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vm)||[];if(!r)return e;const i=n.replace(r,"");let o=VH.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qH=/([a-z-]*)\(.*?\)/g,qx=Object.assign(Object.assign({},Vl),{getAnimatableNone:e=>{const t=e.match(qH);return t?t.map(UH).join(" "):e}});var ZM=Qe(Qe({},Of),{transform:Math.round}),JM={borderWidth:Lt,borderTopWidth:Lt,borderRightWidth:Lt,borderBottomWidth:Lt,borderLeftWidth:Lt,borderRadius:Lt,radius:Lt,borderTopLeftRadius:Lt,borderTopRightRadius:Lt,borderBottomRightRadius:Lt,borderBottomLeftRadius:Lt,width:Lt,maxWidth:Lt,height:Lt,maxHeight:Lt,size:Lt,top:Lt,right:Lt,bottom:Lt,left:Lt,padding:Lt,paddingTop:Lt,paddingRight:Lt,paddingBottom:Lt,paddingLeft:Lt,margin:Lt,marginTop:Lt,marginRight:Lt,marginBottom:Lt,marginLeft:Lt,rotate:Hu,rotateX:Hu,rotateY:Hu,rotateZ:Hu,scale:D0,scaleX:D0,scaleY:D0,scaleZ:D0,skew:Hu,skewX:Hu,skewY:Hu,distance:Lt,translateX:Lt,translateY:Lt,translateZ:Lt,x:Lt,y:Lt,z:Lt,perspective:Lt,transformPerspective:Lt,opacity:qm,originX:HM,originY:HM,originZ:Lt,zIndex:ZM,fillOpacity:qm,strokeOpacity:qm,numOctaves:ZM};function Bx(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 x=t[y];if($M(y)){l[y]=x;continue}var w=JM[y],k=DH(x,w);if(Pm(y)){if(m=!0,c[y]=k,p.push(y),!b)continue;x!==((i=w.default)!==null&&i!==void 0?i:0)&&(b=!1)}else qM(y)?(d[y]=k,E=!0):o[y]=k}m?o.transform=AH(e,n,b,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),E&&(o.transformOrigin=OH(d))}var $x=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function eL(e,t,n){for(var r in t)!Hs(t[r])&&!BM(r,n)&&(e[r]=t[r])}function BH(e,t,n){var r=e.transformTemplate;return M.useMemo(function(){var i=$x();Bx(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,l=i.style;return Qe(Qe({},o),l)},[t])}function $H(e,t,n){var r=e.style||{},i={};return eL(i,r,e),Object.assign(i,BH(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function zH(e,t,n){var r={},i=$H(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 HH=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 k0(e){return HH.has(e)}var tL=function(e){return!k0(e)};function GH(e){e&&(tL=function(t){return t.startsWith("on")?!k0(t):e(t)})}try{GH(require("@emotion/is-prop-valid").default)}catch{}function YH(e,t,n){var r={};for(var i in e)(tL(i)||n===!0&&k0(i)||!t&&!k0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function nL(e,t,n){return typeof e=="string"?e:Lt.transform(t+n*e)}function WH(e,t,n){var r=nL(t,e.x,e.width),i=nL(n,e.y,e.height);return"".concat(r," ").concat(i)}var QH={offset:"strokeDashoffset",array:"strokeDasharray"};function KH(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=QH;e[o.offset]=Lt.transform(-r);var l=Lt.transform(t),c=Lt.transform(n);e[o.array]="".concat(l," ").concat(c)}function zx(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=Gi(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Bx(e,y,n,r),e.attrs=e.style,e.style={};var x=e.attrs,w=e.style,k=e.dimensions;x.transform&&(k&&(w.transform=x.transform),delete x.transform),k&&(l!==void 0||c!==void 0||w.transform)&&(w.transformOrigin=WH(k,l!==void 0?l:.5,c!==void 0?c:.5)),i!==void 0&&(x.x=i),o!==void 0&&(x.y=o),p!==void 0&&KH(x,p,m,b)}var rL=function(){return Qe(Qe({},$x()),{attrs:{}})};function XH(e,t){var n=M.useMemo(function(){var i=rL();return zx(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Qe(Qe({},i.attrs),{style:Qe({},i.style)})},[t]);if(e.style){var r={};eL(r,e.style,e),n.style=Qe(Qe({},r),n.style)}return n}function ZH(e){e===void 0&&(e=!1);var t=function(n,r,i,o,l,c){var p=l.latestValues,d=Ix(n)?XH:zH,m=d(r,p,c),E=YH(r,typeof n=="string",e),b=Qe(Qe(Qe({},E),m),{ref:o});return i&&(b["data-projection-id"]=i),M.createElement(n,b)};return t}var JH=/([a-z])([A-Z])/g,eG="$1-$2",iL=function(e){return e.replace(JH,eG).toLowerCase()};function oL(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 aL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function sL(e,t,n,r){oL(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(aL.has(i)?i:iL(i),t.attrs[i])}function Hx(e){var t=e.style,n={};for(var r in t)(Hs(t[r])||BM(r,e))&&(n[r]=t[r]);return n}function lL(e){var t=Hx(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 Gx(e){return typeof e=="object"&&typeof e.start=="function"}var $m=function(e){return Array.isArray(e)},tG=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},uL=function(e){return $m(e)?e[e.length-1]||0:e};function R0(e){var t=Hs(e)?e.get():e;return tG(t)?t.toValue():t}function cL(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,l=e.onMount,c={latestValues:nG(t,n,r,i),renderState:o()};return l&&(c.mount=function(p){return l(t,p,c)}),c}var fL=function(e){return function(t,n){var r=M.useContext(C0),i=M.useContext(_0);return n?cL(e,t,r,i):zu(function(){return cL(e,t,r,i)})}};function nG(e,t,n,r){var i={},o=n?.initial===!1,l=r(e);for(var c in l)i[c]=R0(l[c]);var p=e.initial,d=e.animate,m=A0(e),E=PM(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"&&!Gx(y)){var x=Array.isArray(y)?y:[y];x.forEach(function(w){var k=FM(e,w);if(k){var N=k.transitionEnd;k.transition;var D=Gi(k,["transitionEnd","transition"]);for(var A in D){var _=D[A];if(Array.isArray(_)){var L=b?_.length-1:0;_=_[L]}_!==null&&(i[A]=_)}for(var A in N)i[A]=N[A]}})}return i}var rG={useVisualState:fL({scrapeMotionValuesFromProps:lL,createRenderState:rL,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}}zx(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),sL(t,r)}})},iG={useVisualState:fL({scrapeMotionValuesFromProps:Hx,createRenderState:$x})};function oG(e,t,n,r,i){var o=t.forwardMotionProps,l=o===void 0?!1:o,c=Ix(e)?rG:iG;return Qe(Qe({},c),{preloadedFeatures:n,useRender:ZH(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 M0(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Yx(e,t,n,r){M.useEffect(function(){var i=e.current;if(n&&i)return M0(i,t,n,r)},[e,t,n,r])}function aG(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)};Yx(n,"focus",t?r:void 0),Yx(n,"blur",t?i:void 0)}function dL(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function pL(e){var t=!!e.touches;return t}function sG(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var lG={pageX:0,pageY:0};function uG(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||lG;return{x:r[t+"X"],y:r[t+"Y"]}}function cG(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wx(e,t){return t===void 0&&(t="page"),{point:pL(e)?uG(e,t):cG(e,t)}}var hL=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Wx(r))};return t?sG(n):n},fG=function(){return rp&&window.onpointerdown===null},dG=function(){return rp&&window.ontouchstart===null},pG=function(){return rp&&window.onmousedown===null},hG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},mG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mL(e){return fG()?e:dG()?mG[e]:pG()?hG[e]:e}function op(e,t,n,r){return M0(e,mL(t),hL(n,t==="pointerdown"),r)}function L0(e,t,n,r){return Yx(e,mL(t),n&&hL(n,t==="pointerdown"),r)}function gL(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var vL=gL("dragHorizontal"),yL=gL("dragVertical");function bL(e){var t=!1;if(e==="y")t=yL();else if(e==="x")t=vL();else{var n=vL(),r=yL();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function EL(){var e=bL(!0);return e?(e(),!1):!0}function SL(e,t,n){return function(r,i){var o;!dL(r)||EL()||((o=e.animationState)===null||o===void 0||o.setActive(er.Hover,t),n?.(r,i))}}function gG(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;L0(i,"pointerenter",t||r?SL(i,!0,t):void 0,{passive:!t}),L0(i,"pointerleave",n||r?SL(i,!1,n):void 0,{passive:!n})}var TL=function(e,t){return t?e===t?!0:TL(e,t.parentElement):!1};function xL(e){return M.useEffect(function(){return function(){return e()}},[])}const I0=(e,t,n)=>Math.min(Math.max(n,e),t),Qx=.001,vG=.01,yG=10,bG=.05,EG=1;function SG({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,l=1-t;l=I0(bG,EG,l),e=I0(vG,yG,e/1e3),l<1?(i=d=>{const m=d*l,E=m*e,b=m-n,y=Kx(d,l),x=Math.exp(-E);return Qx-b/y*x},o=d=>{const E=d*l*e,b=E*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,x=Math.exp(-E),w=Kx(Math.pow(d,2),l);return(-i(d)+Qx>0?-1:1)*((b-y)*x)/w}):(i=d=>{const m=Math.exp(-d*e),E=(d-n)*e+1;return-Qx+m*E},o=d=>{const m=Math.exp(-d*e),E=(n-d)*(e*e);return m*E});const c=5/e,p=xG(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 TG=12;function xG(e,t,n){let r=n;for(let i=1;i<TG;i++)r=r-e(r)/t(r);return r}function Kx(e,t){return e*Math.sqrt(1-t*t)}const wG=["duration","bounce"],CG=["stiffness","damping","mass"];function wL(e,t){return t.some(n=>e[n]!==void 0)}function _G(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!wL(e,CG)&&wL(e,wG)){const n=SG(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Xx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Gi(e,["from","to","restSpeed","restDelta"]);const l={done:!1,value:t};let{stiffness:c,damping:p,mass:d,velocity:m,duration:E,isResolvedFromDuration:b}=_G(o),y=CL,x=CL;function w(){const k=m?-(m/1e3):0,N=n-t,D=p/(2*Math.sqrt(c*d)),A=Math.sqrt(c/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),D<1){const _=Kx(A,D);y=L=>{const V=Math.exp(-D*A*L);return n-V*((k+D*A*N)/_*Math.sin(_*L)+N*Math.cos(_*L))},x=L=>{const V=Math.exp(-D*A*L);return D*A*V*(Math.sin(_*L)*(k+D*A*N)/_+N*Math.cos(_*L))-V*(Math.cos(_*L)*(k+D*A*N)-_*N*Math.sin(_*L))}}else if(D===1)y=_=>n-Math.exp(-A*_)*(N+(k+A*N)*_);else{const _=A*Math.sqrt(D*D-1);y=L=>{const V=Math.exp(-D*A*L),P=Math.min(_*L,300);return n-V*((k+D*A*N)*Math.sinh(P)+_*N*Math.cosh(P))/_}}}return w(),{next:k=>{const N=y(k);if(b)l.done=k>=E;else{const D=x(k)*1e3,A=Math.abs(D)<=r,_=Math.abs(n-N)<=i;l.done=A&&_}return l.value=l.done?n:N,l},flipTarget:()=>{m=-m,[t,n]=[n,t],w()}}}Xx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const CL=e=>0,zm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wr=(e,t,n)=>-n*e+n*t+e;function Zx(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 _L({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=Zx(p,c,e+1/3),o=Zx(p,c,e),l=Zx(p,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}const NG=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},AG=[Ux,Gu,Df],NL=e=>AG.find(t=>t.test(e)),AL=(e,t)=>{let n=NL(e),r=NL(t),i=n.parse(e),o=r.parse(t);n===Df&&(i=_L(i),n=Gu),r===Df&&(o=_L(o),r=Gu);const l=Object.assign({},i);return c=>{for(const p in l)p!=="alpha"&&(l[p]=NG(i[p],o[p],c));return l.alpha=wr(i.alpha,o.alpha,c),n.transform(l)}},Jx=e=>typeof e=="number",OG=(e,t)=>n=>t(e(n)),F0=(...e)=>e.reduce(OG);function OL(e,t){return Jx(e)?n=>wr(e,t,n):uo.test(e)?AL(e,t):RL(e,t)}const DL=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,l)=>OL(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}},DG=(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]=OL(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function kL(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 RL=(e,t)=>{const n=Vl.createTransformer(t),r=kL(e),i=kL(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?F0(DL(r.parsed,i.parsed),n):l=>`${l>0?t:e}`},kG=(e,t)=>n=>wr(e,t,n);function RG(e){if(typeof e=="number")return kG;if(typeof e=="string")return uo.test(e)?AL:RL;if(Array.isArray(e))return DL;if(typeof e=="object")return DG}function MG(e,t,n){const r=[],i=n||RG(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=F0(p,c)}r.push(c)}return r}function LG([e,t],[n]){return r=>n(zm(e,t,r))}function IG(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=zm(e[o],e[o+1],i);return t[o](c)}}function ew(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;x0(o===t.length),x0(!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=MG(t,r,i),c=o===2?LG(e,l):IG(e,l);return n?p=>c(I0(e[0],e[o-1],p)):c}const P0=e=>t=>1-e(1-t),tw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FG=e=>t=>Math.pow(t,e),ML=e=>t=>t*t*((e+1)*t-e),PG=e=>{const t=ML(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},LL=1.525,jG=4/11,VG=8/11,UG=9/10,nw=e=>e,rw=FG(2),qG=P0(rw),IL=tw(rw),FL=e=>1-Math.sin(Math.acos(e)),iw=P0(FL),BG=tw(iw),ow=ML(LL),$G=P0(ow),zG=tw(ow),HG=PG(LL),GG=4356/361,YG=35442/1805,WG=16061/1805,j0=e=>{if(e===1||e===0)return e;const t=e*e;return e<jG?7.5625*t:e<VG?9.075*t-9.9*e+3.4:e<UG?GG*t-YG*e+WG:10.8*e*e-20.52*e+10.72},QG=P0(j0),KG=e=>e<.5?.5*(1-j0(1-e*2)):.5*j0(e*2-1)+.5;function XG(e,t){return e.map(()=>t||IL).splice(0,e.length-1)}function ZG(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function JG(e,t){return e.map(n=>n*t)}function V0({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=JG(r&&r.length===l.length?r:ZG(l),i);function p(){return ew(c,l,{ease:Array.isArray(n)?n:XG(l,n)})}let d=p();return{next:m=>(o.value=d(m),o.done=m>=i,o),flipTarget:()=>{l.reverse(),d=p()}}}function eY({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 PL={keyframes:V0,spring:Xx,decay:eY};function tY(e){if(Array.isArray(e.to))return V0;if(PL[e.type])return PL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?V0:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xx:V0}const jL=1/60*1e3,nY=typeof performance<"u"?()=>performance.now():()=>Date.now(),VL=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nY()),jL);function rY(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 iY=40;let aw=!0,Hm=!1,sw=!1;const ap={delta:0,timestamp:0},Gm=["read","update","preRender","render","postRender"],U0=Gm.reduce((e,t)=>(e[t]=rY(()=>Hm=!0),e),{}),ls=Gm.reduce((e,t)=>{const n=U0[t];return e[t]=(r,i=!1,o=!1)=>(Hm||aY(),n.schedule(r,i,o)),e},{}),sp=Gm.reduce((e,t)=>(e[t]=U0[t].cancel,e),{}),lw=Gm.reduce((e,t)=>(e[t]=()=>U0[t].process(ap),e),{}),oY=e=>U0[e].process(ap),UL=e=>{Hm=!1,ap.delta=aw?jL:Math.max(Math.min(e-ap.timestamp,iY),1),ap.timestamp=e,sw=!0,Gm.forEach(oY),sw=!1,Hm&&(aw=!1,VL(UL))},aY=()=>{Hm=!0,aw=!0,sw||VL(UL)},q0=()=>ap;function qL(e,t,n=0){return e-t-n}function sY(e,t,n=0,r=!0){return r?qL(t+-e,t,n):t-(e-t)+n}function lY(e,t,n,r){return r?e>=t+n:e<=-n}const uY=e=>{const t=({delta:n})=>e(n);return{start:()=>ls.update(t,!0),stop:()=>sp.update(t)}};function BL(e){var t,n,{from:r,autoplay:i=!0,driver:o=uY,elapsed:l=0,repeat:c=0,repeatType:p="loop",repeatDelay:d=0,onPlay:m,onStop:E,onComplete:b,onRepeat:y,onUpdate:x}=e,w=Gi(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=w,N,D=0,A=w.duration,_,L=!1,V=!0,P;const F=tY(w);!((n=(t=F).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(P=ew([0,100],[r,k],{clamp:!1}),r=0,k=100);const j=F(Object.assign(Object.assign({},w),{from:r,to:k}));function $(){D++,p==="reverse"?(V=D%2===0,l=sY(l,A,d,V)):(l=qL(l,A,d),p==="mirror"&&j.flipTarget()),L=!1,y&&y()}function X(){N.stop(),b&&b()}function J(K){if(V||(K=-K),l+=K,!L){const B=j.next(Math.max(0,l));_=B.value,P&&(_=P(_)),L=V?B.done:l<=0}x?.(_),L&&(D===0&&(A??(A=l)),D<c?lY(l,A,d,V)&&$():X())}function ee(){m?.(),N=o(J),N.start()}return i&&ee(),{stop:()=>{E?.(),N.stop()}}}function $L(e,t){return t?e*(1e3/t):0}function cY({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 x;function w(A){return n!==void 0&&A<n||r!==void 0&&A>r}function k(A){return n===void 0?r:r===void 0||Math.abs(n-A)<Math.abs(r-A)?n:r}function N(A){x?.stop(),x=BL(Object.assign(Object.assign({},A),{driver:m,onUpdate:_=>{var L;E?.(_),(L=A.onUpdate)===null||L===void 0||L.call(A,_)},onComplete:b,onStop:y}))}function D(A){N(Object.assign({type:"spring",stiffness:l,damping:c,restDelta:p},A))}if(w(e))D({from:e,velocity:t,to:k(e)});else{let A=i*t+e;typeof d<"u"&&(A=d(A));const _=k(A),L=_===n?-1:1;let V,P;const F=j=>{V=P,P=j,t=$L(j-V,q0().delta),(L===1&&j>_||L===-1&&j<_)&&D({from:j,to:_,velocity:t})};N({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:p,modifyTarget:d,onUpdate:w(A)?F:void 0})}return{stop:()=>x?.stop()}}const uw=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),zL=e=>uw(e)&&e.hasOwnProperty("z"),B0=(e,t)=>Math.abs(e-t);function HL(e,t){if(Jx(e)&&Jx(t))return B0(e,t);if(uw(e)&&uw(t)){const n=B0(e.x,t.x),r=B0(e.y,t.y),i=zL(e)&&zL(t)?B0(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const GL=(e,t)=>1-3*t+3*e,YL=(e,t)=>3*t-6*e,WL=e=>3*e,$0=(e,t,n)=>((GL(t,n)*e+YL(t,n))*e+WL(t))*e,QL=(e,t,n)=>3*GL(t,n)*e*e+2*YL(t,n)*e+WL(t),fY=1e-7,dY=10;function pY(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=$0(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>fY&&++c<dY);return l}const hY=8,mY=.001;function gY(e,t,n,r){for(let i=0;i<hY;++i){const o=QL(t,n,r);if(o===0)return t;const l=$0(t,n,r)-e;t-=l/o}return t}const z0=11,H0=1/(z0-1);function vY(e,t,n,r){if(e===t&&n===r)return nw;const i=new Float32Array(z0);for(let l=0;l<z0;++l)i[l]=$0(l*H0,e,n);function o(l){let c=0,p=1;const d=z0-1;for(;p!==d&&i[p]<=l;++p)c+=H0;--p;const m=(l-i[p])/(i[p+1]-i[p]),E=c+m*H0,b=QL(E,e,n);return b>=mY?gY(l,E,e,n):b===0?E:pY(l,c,c+H0,e,n)}return l=>l===0||l===1?l:$0(o(l),t,r)}function yY(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,l=t||n||r||i,c=M.useRef(!1),p=M.useRef(null),d={passive:!(n||t||r||x)};function m(){var w;(w=p.current)===null||w===void 0||w.call(p),p.current=null}function E(){var w;return m(),c.current=!1,(w=o.animationState)===null||w===void 0||w.setActive(er.Tap,!1),!EL()}function b(w,k){E()&&(TL(o.getInstance(),w.target)?t?.(w,k):r?.(w,k))}function y(w,k){E()&&r?.(w,k)}function x(w,k){var N;m(),!c.current&&(c.current=!0,p.current=F0(op(window,"pointerup",b,d),op(window,"pointercancel",y,d)),(N=o.animationState)===null||N===void 0||N.setActive(er.Tap,!0),n?.(w,k))}L0(o,"pointerdown",l?x:void 0,d),xL(m)}var cw=new WeakMap,fw=new WeakMap,bY=function(e){var t;(t=cw.get(e.target))===null||t===void 0||t(e)},EY=function(e){e.forEach(bY)};function SY(e){var t=e.root,n=Gi(e,["root"]),r=t||document;fw.has(r)||fw.set(r,{});var i=fw.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(EY,Qe({root:t},n))),i[o]}function TY(e,t,n){var r=SY(t);return cw.set(e,n),r.observe(e),function(){cw.delete(e),r.unobserve(e)}}function xY(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,l=o===void 0?{}:o,c=M.useRef({hasEnteredView:!1,isInView:!1}),p=!!(n||r||i);l.once&&c.current.hasEnteredView&&(p=!1);var d=typeof IntersectionObserver>"u"?_Y:CY;d(p,c.current,t,l)}var wY={some:0,all:1};function CY(e,t,n,r){var i=r.root,o=r.margin,l=r.amount,c=l===void 0?"some":l,p=r.once;M.useEffect(function(){if(e){var d={root:i?.current,rootMargin:o,threshold:typeof c=="number"?c:wY[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 x=n.getProps(),w=y?x.onViewportEnter:x.onViewportLeave;w?.(E)}};return TY(n.getInstance(),d,m)}},[e,i,o,c])}function _Y(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;M.useEffect(function(){!e||!o||requestAnimationFrame(function(){var l;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c?.(null),(l=n.animationState)===null||l===void 0||l.setActive(er.InView,!0)})},[e])}var Yu=function(e){return function(t){return e(t),null}},NY={inView:Yu(xY),tap:Yu(yY),focus:Yu(aG),hover:Yu(gG)},AY=0,OY=function(){return AY++},DY=function(){return zu(OY)};function KL(){var e=M.useContext(_0);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=DY();M.useEffect(function(){return r(i)},[]);var o=function(){return n?.(i)};return!t&&n?[!1,o]:[!0]}function XL(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 G0=function(e){return e*1e3},kY={linear:nw,easeIn:rw,easeInOut:IL,easeOut:qG,circIn:FL,circInOut:BG,circOut:iw,backIn:ow,backInOut:zG,backOut:$G,anticipate:HG,bounceIn:QG,bounceInOut:KG,bounceOut:j0},ZL=function(e){if(Array.isArray(e)){x0(e.length===4);var t=yr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return vY(n,r,i,o)}else if(typeof e=="string")return kY[e];return e},RY=function(e){return Array.isArray(e)&&typeof e[0]!="number"},JL=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Vl.test(t)&&!t.startsWith("url("))},kf=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Y0=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},dw=function(){return{type:"keyframes",ease:"linear",duration:.3}},MY=function(e){return{type:"keyframes",duration:.8,values:e}},eI={x:kf,y:kf,z:kf,rotate:kf,rotateX:kf,rotateY:kf,rotateZ:kf,scaleX:Y0,scaleY:Y0,scale:Y0,opacity:dw,backgroundColor:dw,color:dw,default:Y0},LY=function(e,t){var n;return $m(t)?n=MY:n=eI[e]||eI.default,Qe({to:t},n(t))},IY=Qe(Qe({},JM),{color:uo,backgroundColor:uo,outlineColor:uo,fill:uo,stroke:uo,borderColor:uo,borderTopColor:uo,borderRightColor:uo,borderBottomColor:uo,borderLeftColor:uo,filter:qx,WebkitFilter:qx}),pw=function(e){return IY[e]};function hw(e,t){var n,r=pw(e);return r!==qx&&(r=Vl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function FY(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Gi(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function PY(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,l=Gi(e,["ease","times","yoyo","flip","loop"]),c=Qe({},l);return n&&(c.offset=n),l.duration&&(c.duration=G0(l.duration)),l.repeatDelay&&(c.repeatDelay=G0(l.repeatDelay)),t&&(c.ease=RY(t)?t.map(ZL):ZL(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 jY(e,t){var n,r,i=mw(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function VY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=rs([],yr(e.to),!1),e.to[0]=e.from),e}function UY(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),VY(t),FY(e)||(e=Qe(Qe({},e),LY(n,t.to))),Qe(Qe({},t),PY(e))}function qY(e,t,n,r,i){var o,l=mw(r,e),c=(o=l.from)!==null&&o!==void 0?o:t.get(),p=JL(e,n);c==="none"&&p&&typeof n=="string"?c=hw(e,n):tI(c)&&typeof n=="string"?c=nI(n):!Array.isArray(n)&&tI(n)&&typeof c=="string"&&(n=nI(c));var d=JL(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"?cY(Qe(Qe({},b),l)):BL(Qe(Qe({},UY(l,b,e)),{onUpdate:function(y){var x;b.onUpdate(y),(x=l.onUpdate)===null||x===void 0||x.call(l,y)},onComplete:function(){var y;b.onComplete(),(y=l.onComplete)===null||y===void 0||y.call(l)}}))}function E(){var b,y,x=uL(n);return t.set(x),i(),(b=l?.onUpdate)===null||b===void 0||b.call(l,x),(y=l?.onComplete)===null||y===void 0||y.call(l),{stop:function(){}}}return!d||!p||l.type===!1?E:m}function tI(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function nI(e){return typeof e=="number"?0:hw("",e)}function mw(e,t){return e[t]||e.default||e}function gw(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,l,c=qY(e,t,n,r,i),p=jY(r,e),d=function(){return l=c()};return p?o=window.setTimeout(d,G0(p)):d(),function(){clearTimeout(o),l?.stop()}})}var BY=function(e){return/^\-?\d*\.?\d+$/.test(e)},$Y=function(e){return/^0[^.\s]+$/.test(e)};function vw(e,t){e.indexOf(t)===-1&&e.push(t)}function yw(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function zY(e,t,n){var r=yr(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=yr(i.splice(t,1),1),p=c[0];i.splice(l,0,p)}return i}var Ym=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return vw(this.subscriptions,t),function(){return yw(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}(),HY=function(e){return!isNaN(parseFloat(e))},GY=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ym,this.velocityUpdateSubscribers=new Ym,this.renderSubscribers=new Ym,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=q0(),l=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=l,n.lastUpdated=c,ls.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 ls.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=HY(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?$L(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 Rf(e){return new GY(e)}var rI=function(e){return function(t){return t.test(e)}},YY={test:function(e){return e==="auto"},parse:function(e){return e}},iI=[Of,Lt,Gs,Hu,MH,RH,YY],Wm=function(e){return iI.find(rI(e))},WY=rs(rs([],yr(iI),!1),[uo,Vl],!1),QY=function(e){return WY.find(rI(e))};function KY(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rf(n))}function XY(e,t){var n=N0(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var l=Gi(r,["transitionEnd","transition"]);l=Qe(Qe({},l),o);for(var c in l){var p=uL(l[c]);KY(e,c,p)}}function ZY(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"&&(BY(b)||$Y(b))?b=parseFloat(b):!QY(b)&&Vl.test(E)&&(b=hw(m,E)),e.addValue(m,Rf(b)),(o=(l=n)[m])!==null&&o!==void 0||(l[m]=b),e.setBaseTarget(m,b))}}function JY(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function eW(e,t,n){var r,i,o={};for(var l in e)o[l]=(r=JY(l,t))!==null&&r!==void 0?r:(i=n.getValue(l))===null||i===void 0?void 0:i.get();return o}function tW(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(l){return bw(e,l,n)});r=Promise.all(i)}else if(typeof t=="string")r=bw(e,t,n);else{var o=typeof t=="function"?N0(e,t,n.custom):t;r=oI(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function bw(e,t,n){var r;n===void 0&&(n={});var i=N0(e,t,n.custom),o=(i||{}).transition,l=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(l=n.transitionOverride);var c=i?function(){return oI(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 x=l.delayChildren,w=x===void 0?0:x,k=l.staggerChildren,N=l.staggerDirection;return nW(e,t,w+y,k,N,n)}:function(){return Promise.resolve()},d=l.when;if(d){var m=yr(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 oI(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=Gi(d,["transition","transitionEnd"]);c&&(E=c);var x=[],w=p&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[p]);for(var k in y){var N=e.getValue(k),D=y[k];if(!(!N||D===void 0||w&&iW(w,k))){var A=Qe({delay:l},E);e.shouldReduceMotion&&Pm(k)&&(A=Qe(Qe({},A),{type:!1,delay:0}));var _=gw(k,N,D,A);x.push(_)}}return Promise.all(x).then(function(){b&&XY(e,b)})}function nW(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(rW).forEach(function(d,m){l.push(bw(d,t,Qe(Qe({},o),{delay:n+p(m)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(l)}function rW(e,t){return e.sortNodePosition(t)}function iW(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Ew=[er.Animate,er.InView,er.Focus,er.Hover,er.Tap,er.Drag,er.Exit],oW=rs([],yr(Ew),!1).reverse(),aW=Ew.length;function sW(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return tW(e,r,i)}))}}function lW(e){var t=sW(e),n=cW(),r={},i=!0,o=function(m,E){var b=N0(e,E);if(b){b.transition;var y=b.transitionEnd,x=Gi(b,["transition","transitionEnd"]);m=Qe(Qe(Qe({},m),x),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(),x=e.getVariantContext(!0)||{},w=[],k=new Set,N={},D=1/0,A=function(P){var F=oW[P],j=n[F],$=(b=y[F])!==null&&b!==void 0?b:x[F],X=ss($),J=F===E?j.isActive:null;J===!1&&(D=P);var ee=$===x[F]&&$!==y[F]&&X;if(ee&&i&&e.manuallyAnimateOnMount&&(ee=!1),j.protectedKeys=Qe({},N),!j.isActive&&J===null||!$&&!j.prevProp||Gx($)||typeof $=="boolean")return"continue";var K=uW(j.prevProp,$),B=K||F===E&&j.isActive&&!ee&&X||P>D&&X,ne=Array.isArray($)?$:[$],re=ne.reduce(o,{});J===!1&&(re={});var se=j.prevResolvedValues,fe=se===void 0?{}:se,Z=Qe(Qe({},fe),re),ge=function(he){B=!0,k.delete(he),j.needsAnimating[he]=!0};for(var ae in Z){var pe=re[ae],ce=fe[ae];N.hasOwnProperty(ae)||(pe!==ce?$m(pe)&&$m(ce)?!XL(pe,ce)||K?ge(ae):j.protectedKeys[ae]=!0:pe!==void 0?ge(ae):k.add(ae):pe!==void 0&&k.has(ae)?ge(ae):j.protectedKeys[ae]=!0)}j.prevProp=$,j.prevResolvedValues=re,j.isActive&&(N=Qe(Qe({},N),re)),i&&e.blockInitialAnimation&&(B=!1),B&&!ee&&w.push.apply(w,rs([],yr(ne.map(function(he){return{animation:he,options:Qe({type:F},m)}})),!1))},_=0;_<aW;_++)A(_);if(r=Qe({},N),k.size){var L={};k.forEach(function(P){var F=e.getBaseTarget(P);F!==void 0&&(L[P]=F)}),w.push({animation:L})}var V=!!w.length;return i&&y.initial===!1&&!e.manuallyAnimateOnMount&&(V=!1),i=!1,V?t(w):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 x=p(b,m);for(var w in n)n[w].protectedKeys={};return x}return{isAnimated:l,animateChanges:p,setActive:d,setAnimateFunction:c,getState:function(){return n}}}function uW(e,t){return typeof t=="string"?t!==e:IM(t)?!XL(t,e):!1}function Mf(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cW(){var e;return e={},e[er.Animate]=Mf(!0),e[er.InView]=Mf(),e[er.Hover]=Mf(),e[er.Tap]=Mf(),e[er.Drag]=Mf(),e[er.Focus]=Mf(),e[er.Exit]=Mf(),e}var fW={animation:Yu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=lW(t)),Gx(n)&&M.useEffect(function(){return n.subscribe(t)},[n])}),exit:Yu(function(e){var t=e.custom,n=e.visualElement,r=yr(KL(),2),i=r[0],o=r[1],l=M.useContext(_0);M.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?.custom)!==null&&p!==void 0?p:t});!i&&d?.then(o)},[i])})},aI=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=Tw(i.lastMoveEventInfo,i.history),y=i.startEvent!==null,x=HL(b.offset,{x:0,y:0})>=3;if(!(!y&&!x)){var w=b.point,k=q0().timestamp;i.history.push(Qe(Qe({},w),{timestamp:k}));var N=i.handlers,D=N.onStart,A=N.onMove;y||(D&&D(i.lastMoveEvent,b),i.startEvent=i.lastMoveEvent),A&&A(i.lastMoveEvent,b)}}},this.handlePointerMove=function(b,y){if(i.lastMoveEvent=b,i.lastMoveEventInfo=Sw(y,i.transformPagePoint),dL(b)&&b.buttons===0){i.handlePointerUp(b,y);return}ls.update(i.updatePoint,!0)},this.handlePointerUp=function(b,y){i.end();var x=i.handlers,w=x.onEnd,k=x.onSessionEnd,N=Tw(Sw(y,i.transformPagePoint),i.history);i.startEvent&&w&&w(b,N),k&&k(b,N)},!(pL(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=l;var c=Wx(t),p=Sw(c,this.transformPagePoint),d=p.point,m=q0().timestamp;this.history=[Qe(Qe({},d),{timestamp:m})];var E=n.onSessionStart;E&&E(t,Tw(p,this.history)),this.removeListeners=F0(op(window,"pointermove",this.handlePointerMove),op(window,"pointerup",this.handlePointerUp),op(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),sp.update(this.updatePoint)},e}();function Sw(e,t){return t?{point:t(e.point)}:e}function sI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tw(e,t){var n=e.point;return{point:n,delta:sI(n,lI(t)),offset:sI(n,dW(t)),velocity:pW(t,.1)}}function dW(e){return e[0]}function lI(e){return e[e.length-1]}function pW(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=lI(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>G0(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 uI(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),HL(e,t)<n}function cI(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=wr(t.min,t.max,e.origin),e.scale=Ul(n)/Ul(t),(uI(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=wr(n.min,n.max,e.origin)-e.originPoint,(uI(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qm(e,t,n,r){cI(e.x,t.x,n.x,r?.originX),cI(e.y,t.y,n.y,r?.originY)}function fI(e,t,n){e.min=n.min+t.min,e.max=e.min+Ul(t)}function hW(e,t,n){fI(e.x,t.x,n.x),fI(e.y,t.y,n.y)}function dI(e,t,n){e.min=t.min-n.min,e.max=e.min+Ul(t)}function Km(e,t,n){dI(e.x,t.x,n.x),dI(e.y,t.y,n.y)}function mW(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?wr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?wr(i,e,n.max):Math.min(e,i)),e}function pI(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 gW(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:pI(e.x,r,o),y:pI(e.y,n,i)}}function hI(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=yr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function vW(e,t){return{x:hI(e.x,t.x),y:hI(e.y,t.y)}}function yW(e,t){var n=.5,r=Ul(e),i=Ul(t);return i>r?n=zm(t.min,t.max-r,e.min):r>i&&(n=zm(e.min,e.max-i,t.min)),I0(0,1,n)}function bW(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 xw=.35;function EW(e){return e===void 0&&(e=xw),e===!1?e=0:e===!0&&(e=xw),{x:mI(e,"left","right"),y:mI(e,"top","bottom")}}function mI(e,t,n){return{min:gI(e,t),max:gI(e,n)}}function gI(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var vI=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Xm=function(){return{x:vI(),y:vI()}},yI=function(){return{min:0,max:0}},Yi=function(){return{x:yI(),y:yI()}};function Ys(e){return[e("x"),e("y")]}function bI(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 SW(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function TW(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 ww(e){return e===void 0||e===1}function EI(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ww(t)||!ww(n)||!ww(r)}function Wu(e){return EI(e)||SI(e.x)||SI(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function SI(e){return e&&e!=="0%"}function W0(e,t,n){var r=e-n,i=t*r;return n+i}function TI(e,t,n,r,i){return i!==void 0&&(e=W0(e,i,r)),W0(e,n,r)+t}function Cw(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=TI(e.min,t,n,r,i),e.max=TI(e.max,t,n,r,i)}function xI(e,t){var n=t.x,r=t.y;Cw(e.x,n.translate,n.scale,n.originPoint),Cw(e.y,r.translate,r.scale,r.originPoint)}function xW(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&&lp(e,{x:-c.scroll.x,y:-c.scroll.y}),p&&(t.x*=p.x.scale,t.y*=p.y.scale,xI(e,p)),r&&Wu(c.latestValues)&&lp(e,c.latestValues))}}function Qu(e,t){e.min=e.min+t,e.max=e.max+t}function wI(e,t,n){var r=yr(n,3),i=r[0],o=r[1],l=r[2],c=t[l]!==void 0?t[l]:.5,p=wr(e.min,e.max,c);Cw(e,t[i],t[o],p,t.scale)}var wW=["x","scaleX","originX"],CW=["y","scaleY","originY"];function lp(e,t){wI(e.x,t,wW),wI(e.y,t,CW)}function CI(e,t){return bI(TW(e.getBoundingClientRect(),t))}function _W(e,t,n){var r=CI(e,n),i=t.scroll;return i&&(Qu(r.x,i.x),Qu(r.y,i.y)),r}var NW=new WeakMap,AW=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=Yi(),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(Wx(E,"page").point)},p=function(E,b){var y,x=r.getProps(),w=x.drag,k=x.dragPropagation,N=x.onDragStart;w&&!k&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=bL(w),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ys(function(D){var A,_,L=r.getAxisMotionValue(D).get()||0;if(Gs.test(L)){var V=(_=(A=r.visualElement.projection)===null||A===void 0?void 0:A.layout)===null||_===void 0?void 0:_.actual[D];if(V){var P=Ul(V);L=P*(parseFloat(L)/100)}}r.originPoint[D]=L}),N?.(E,b),(y=r.visualElement.animationState)===null||y===void 0||y.setActive(er.Drag,!0))},d=function(E,b){var y=r.getProps(),x=y.dragPropagation,w=y.dragDirectionLock,k=y.onDirectionLock,N=y.onDrag;if(!(!x&&!r.openGlobalLock)){var D=b.offset;if(w&&r.currentDirection===null){r.currentDirection=OW(D),r.currentDirection!==null&&k?.(r.currentDirection);return}r.updateAxis("x",b.point,D),r.updateAxis("y",b.point,D),r.visualElement.syncRender(),N?.(E,b)}},m=function(E,b){return r.stop(E,b)};this.panSession=new aI(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?.(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||!Q0(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=mW(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&&ip(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=gW(o.actual,r):this.constraints=!1,this.elastic=EW(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ys(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=bW(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!ip(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var l=_W(i,o.root,this.visualElement.getTransformPagePoint()),c=vW(o.layout.actual,l);if(r){var p=r(SW(c));this.hasMutatedConstraints=!!p,p&&(c=bI(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=Ys(function(b){var y;if(Q0(b,i,n.currentDirection)){var x=(y=m?.[b])!==null&&y!==void 0?y:{};p&&(x={min:0,max:0});var w=l?200:1e6,k=l?40:1e7,N=Qe(Qe({type:"inertia",velocity:o?t[b]:0,bounceStiffness:w,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10},c),x);return n.startAxisValueAnimation(b,N)}});return Promise.all(E).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return gw(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ys(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;Ys(function(r){var i=n.getProps().drag;if(Q0(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]-wr(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(!(!ip(o)||!l||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Ys(function(d){var m=t.getAxisMotionValue(d);if(m){var E=m.get();c[d]=yW({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(),Ys(function(d){if(Q0(d,i,null)){var m=t.getAxisMotionValue(d),E=t.constraints[d],b=E.min,y=E.max;m.set(wr(b,y,c[d]))}})}},e.prototype.addListeners=function(){var t=this,n;NW.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=op(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;ip(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=M0(window,"resize",function(){return t.scalePositionWithinConstraints()});return l.addEventListener("didUpdate",function(d){var m=d.delta,E=d.hasLayoutChanged;t.isDragging&&E&&(Ys(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?xw:m,b=t.dragMomentum,y=b===void 0?!0:b;return Qe(Qe({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:E,dragMomentum:y})},e}();function Q0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function OW(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 DW(e){var t=e.dragControls,n=e.visualElement,r=zu(function(){return new AW(n)});M.useEffect(function(){return t&&t.subscribe(r)},[r,t]),M.useEffect(function(){return r.addListeners()},[r])}function kW(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,l=t||n||r||i,c=M.useRef(null),p=M.useContext(w0).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(E,b){c.current=null,r&&r(E,b)}};M.useEffect(function(){c.current!==null&&c.current.updateHandlers(d)});function m(E){c.current=new aI(E,d,{transformPagePoint:p})}L0(o,"pointerdown",l&&m),xL(function(){return c.current&&c.current.end()})}var RW={pan:Yu(kW),drag:Yu(DW)},K0=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function MW(){var e=K0.map(function(){return new Ym}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){K0.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"+K0[i]]=function(o){return r.add(o)},n["notify"+K0[i]]=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return r.notify.apply(r,rs([],yr(o),!1))}}),n}function LW(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,Rf(o));else if(l!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Rf((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 _I=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 x=b.parent,w=b.props,k=b.presenceId,N=b.blockInitialAnimation,D=b.visualState,A=b.shouldReduceMotion;y===void 0&&(y={});var _=!1,L=D.latestValues,V=D.renderState,P,F=MW(),j=new Map,$=new Map,X={},J=Qe({},L),ee;function K(){!P||!_||(B(),c(P,V,w.style,pe.projection))}function B(){r(pe,V,L,y,w)}function ne(){F.notifyUpdate(L)}function re(ce,he){var Se=he.onChange(function(Ge){L[ce]=Ge,w.onUpdate&&ls.update(ne,!1,!0)}),Ie=he.onRenderRequest(pe.scheduleRender);$.set(ce,function(){Se(),Ie()})}var se=E(w);for(var fe in se){var Z=se[fe];L[fe]!==void 0&&Hs(Z)&&Z.set(L[fe],!1)}var ge=A0(w),ae=PM(w),pe=Qe(Qe({treeType:n,current:null,depth:x?x.depth+1:0,parent:x,children:new Set,presenceId:k,shouldReduceMotion:A,variantChildren:ae?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!x?.isMounted(),blockInitialAnimation:N,isMounted:function(){return!!P},mount:function(ce){_=!0,P=pe.current=ce,pe.projection&&pe.projection.mount(ce),ae&&x&&!ge&&(ee=x?.addVariantChild(pe)),j.forEach(function(he,Se){return re(Se,he)}),x?.children.add(pe),pe.setProps(w)},unmount:function(){var ce;(ce=pe.projection)===null||ce===void 0||ce.unmount(),sp.update(ne),sp.render(K),$.forEach(function(he){return he()}),ee?.(),x?.children.delete(pe),F.clearAllListeners(),P=void 0,_=!1},addVariantChild:function(ce){var he,Se=pe.getClosestVariantNode();if(Se)return(he=Se.variantChildren)===null||he===void 0||he.add(ce),function(){return Se.variantChildren.delete(ce)}},sortNodePosition:function(ce){return!m||n!==ce.treeType?0:m(pe.getInstance(),ce.getInstance())},getClosestVariantNode:function(){return ae?pe:x?.getClosestVariantNode()},getLayoutId:function(){return w.layoutId},getInstance:function(){return P},getStaticValue:function(ce){return L[ce]},setStaticValue:function(ce,he){return L[ce]=he},getLatestValues:function(){return L},setVisibility:function(ce){pe.isVisible!==ce&&(pe.isVisible=ce,pe.scheduleRender())},makeTargetAnimatable:function(ce,he){return he===void 0&&(he=!0),o(pe,ce,w,he)},measureViewportBox:function(){return l(P,w)},addValue:function(ce,he){pe.hasValue(ce)&&pe.removeValue(ce),j.set(ce,he),L[ce]=he.get(),re(ce,he)},removeValue:function(ce){var he;j.delete(ce),(he=$.get(ce))===null||he===void 0||he(),$.delete(ce),delete L[ce],d(ce,V)},hasValue:function(ce){return j.has(ce)},getValue:function(ce,he){var Se=j.get(ce);return Se===void 0&&he!==void 0&&(Se=Rf(he),pe.addValue(ce,Se)),Se},forEachValue:function(ce){return j.forEach(ce)},readValue:function(ce){var he;return(he=L[ce])!==null&&he!==void 0?he:p(P,ce,y)},setBaseTarget:function(ce,he){J[ce]=he},getBaseTarget:function(ce){if(i){var he=i(w,ce);if(he!==void 0&&!Hs(he))return he}return J[ce]}},F),{build:function(){return B(),V},scheduleRender:function(){ls.render(K,!1,!0)},syncRender:K,setProps:function(ce){(ce.transformTemplate||w.transformTemplate)&&pe.scheduleRender(),w=ce,F.updatePropListeners(ce),X=LW(pe,E(w),X)},getProps:function(){return w},getVariant:function(ce){var he;return(he=w.variants)===null||he===void 0?void 0:he[ce]},getDefaultTransition:function(){return w.transition},getTransformPagePoint:function(){return w.transformPagePoint},getVariantContext:function(ce){if(ce===void 0&&(ce=!1),ce)return x?.getVariantContext();if(!ge){var he=x?.getVariantContext()||{};return w.initial!==void 0&&(he.initial=w.initial),he}for(var Se={},Ie=0;Ie<IW;Ie++){var Ge=NI[Ie],Ze=w[Ge];(ss(Ze)||Ze===!1)&&(Se[Ge]=Ze)}return Se}});return pe}},NI=rs(["initial"],yr(Ew),!1),IW=NI.length;function _w(e){return typeof e=="string"&&e.startsWith("var(--")}var AI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function FW(e){var t=AI.exec(e);if(!t)return[,];var n=yr(t,3),r=n[1],i=n[2];return[r,i]}function Nw(e,t,n){var r=yr(FW(e),2),i=r[0],o=r[1];if(i){var l=window.getComputedStyle(t).getPropertyValue(i);return l?l.trim():_w(o)?Nw(o,t):o}}function PW(e,t,n){var r,i=Gi(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Qe({},n)),e.forEachValue(function(d){var m=d.get();if(_w(m)){var E=Nw(m,o);E&&d.set(E)}});for(var l in i){var c=i[l];if(_w(c)){var p=Nw(c,o);p&&(i[l]=p,n&&((r=n[l])!==null&&r!==void 0||(n[l]=c)))}}return{target:i,transitionEnd:n}}var jW=new Set(["width","height","top","left","right","bottom","x","y"]),OI=function(e){return jW.has(e)},VW=function(e){return Object.keys(e).some(OI)},DI=function(e,t){e.set(t,!1),e.set(t)},kI=function(e){return e===Of||e===Lt},RI;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(RI||(RI={}));var MI=function(e,t){return parseFloat(e.split(", ")[t])},LI=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 MI(o[1],t);var l=i.match(/^matrix\((.+)\)$/);return l?MI(l[1],e):0}},UW=new Set(["x","y","z"]),qW=Fm.filter(function(e){return!UW.has(e)});function BW(e){var t=[];return qW.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 II={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:LI(4,13),y:LI(5,14)},$W=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]=II[d](r,o)}),t.syncRender();var p=t.measureViewportBox();return n.forEach(function(d){var m=t.getValue(d);DI(m,c[d]),e[d]=II[d](p,o)}),e},zW=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Qe({},t),r=Qe({},r);var i=Object.keys(t).filter(OI),o=[],l=!1,c=[];if(i.forEach(function(m){var E=e.getValue(m);if(e.hasValue(m)){var b=n[m],y=Wm(b),x=t[m],w;if($m(x)){var k=x.length,N=x[0]===null?1:0;b=x[N],y=Wm(b);for(var D=N;D<k;D++)w?x0(Wm(x[D])===w):w=Wm(x[D])}else w=Wm(x);if(y!==w)if(kI(y)&&kI(w)){var A=E.get();typeof A=="string"&&E.set(parseFloat(A)),typeof x=="string"?t[m]=parseFloat(x):Array.isArray(x)&&w===Lt&&(t[m]=x.map(parseFloat))}else y?.transform&&w?.transform&&(b===0||x===0)?b===0?E.set(w.transform(b)):t[m]=y.transform(x):(l||(o=BW(e),l=!0),c.push(m),r[m]=r[m]!==void 0?r[m]:t[m],DI(E,x))}}),c.length){var p=c.indexOf("height")>=0?window.pageYOffset:null,d=$W(t,e,c);return o.length&&o.forEach(function(m){var E=yr(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 HW(e,t,n,r){return VW(t)?zW(e,t,n,r):{target:t,transitionEnd:r}}var GW=function(e,t,n,r){var i=PW(e,t,r);return t=i.target,r=i.transitionEnd,HW(e,t,n,r)};function YW(e){return window.getComputedStyle(e)}var FI={treeType:"dom",readValueFromInstance:function(e,t){if(Pm(t)){var n=pw(t);return n&&n.default||0}else{var r=YW(e);return($M(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 CI(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=Gi(t,["transition","transitionEnd"]),p=eW(c,o||{},e);if(i&&(l&&(l=i(l)),c&&(c=i(c)),p&&(p=i(p))),r){ZY(e,c,p);var d=GW(e,c,p,l);l=d.transitionEnd,c=d.target}return Qe({transition:o,transitionEnd:l},c)},scrapeMotionValuesFromProps:Hx,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Bx(t,n,r,i.transformTemplate)},render:oL},WW=_I(FI),QW=_I(Qe(Qe({},FI),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Pm(t)?((n=pw(t))===null||n===void 0?void 0:n.default)||0:(t=aL.has(t)?t:iL(t),e.getAttribute(t))},scrapeMotionValuesFromProps:lL,build:function(e,t,n,r,i){zx(t,n,r,i.transformTemplate)},render:sL})),KW=function(e,t){return Ix(e)?QW(t,{enableHardwareAcceleration:!1}):WW(t,{enableHardwareAcceleration:!0})};function PI(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(Lt.test(e))e=parseFloat(e);else return e;var n=PI(e,t.target.x),r=PI(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},jI="_$css",XW={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),l=[];o&&(e=e.replace(AI,function(w){return l.push(w),jI}));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=wr(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 x=0;y=y.replace(jI,function(){var w=l[x];return x++,w})}return y}},ZW=function(e){ok(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;TH(eQ),p&&(o?.group&&o.group.add(p),l?.register&&c&&l.register(p),p.root.didUpdate(),p.addEventListener("animationComplete",function(){n.safeToRemove()}),p.setOptions(Qe(Qe({},p.options),{onExitComplete:function(){return n.safeToRemove()}}))),Im.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()||ls.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?.group&&i.group.remove(l),o?.deregister&&o.deregister(l))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n?.()},t.prototype.render=function(){return null},t}(Ae.Component);function JW(e){var t=yr(KL(),2),n=t[0],r=t[1],i=M.useContext(VM);return Ae.createElement(ZW,Qe({},e,{layoutGroup:i,switchLayoutGroup:M.useContext(UM),isPresent:n,safeToRemove:r}))}var eQ={borderRadius:Qe(Qe({},Zm),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Zm,borderTopRightRadius:Zm,borderBottomLeftRadius:Zm,borderBottomRightRadius:Zm,boxShadow:XW},tQ={measureLayout:JW};function nQ(e,t,n){n===void 0&&(n={});var r=Hs(e)?e:Rf(e);return gw("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var VI=["TopLeft","TopRight","BottomLeft","BottomRight"],rQ=VI.length,UI=function(e){return typeof e=="string"?parseFloat(e):e},qI=function(e){return typeof e=="number"||Lt.test(e)};function iQ(e,t,n,r,i,o){var l,c,p,d;i?(e.opacity=wr(0,(l=n.opacity)!==null&&l!==void 0?l:1,oQ(r)),e.opacityExit=wr((c=t.opacity)!==null&&c!==void 0?c:1,0,aQ(r))):o&&(e.opacity=wr((p=t.opacity)!==null&&p!==void 0?p:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var m=0;m<rQ;m++){var E="border".concat(VI[m],"Radius"),b=BI(t,E),y=BI(n,E);if(!(b===void 0&&y===void 0)){b||(b=0),y||(y=0);var x=b===0||y===0||qI(b)===qI(y);x?(e[E]=Math.max(wr(UI(b),UI(y),r),0),(Gs.test(y)||Gs.test(b))&&(e[E]+="%")):e[E]=y}}(t.rotate||n.rotate)&&(e.rotate=wr(t.rotate||0,n.rotate||0,r))}function BI(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var oQ=$I(0,.5,iw),aQ=$I(.5,.95,nw);function $I(e,t,n){return function(r){return r<e?0:r>t?1:n(zm(e,t,r))}}function zI(e,t){e.min=t.min,e.max=t.max}function us(e,t){zI(e.x,t.x),zI(e.y,t.y)}function HI(e,t,n,r,i){return e-=t,e=W0(e,1/n,r),i!==void 0&&(e=W0(e,1/i,r)),e}function sQ(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=wr(l.min,l.max,t/100);t=c-l.min}if(typeof t=="number"){var p=wr(o.min,o.max,r);e===o&&(p-=t),e.min=HI(e.min,t,n,p,i),e.max=HI(e.max,t,n,p,i)}}function GI(e,t,n,r,i){var o=yr(n,3),l=o[0],c=o[1],p=o[2];sQ(e,t[l],t[c],t[p],t.scale,r,i)}var lQ=["x","scaleX","originX"],uQ=["y","scaleY","originY"];function YI(e,t,n,r){GI(e.x,t,lQ,n?.x,r?.x),GI(e.y,t,uQ,n?.y,r?.y)}function WI(e){return e.translate===0&&e.scale===1}function QI(e){return WI(e.x)&&WI(e.y)}function KI(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 cQ=function(){function e(){this.members=[]}return e.prototype.add=function(t){vw(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(yw(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}(),fQ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function XI(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===fQ?"none":o}var dQ=function(e,t){return e.depth-t.depth},pQ=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){vw(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){yw(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(dQ),this.isDirty=!1,this.children.forEach(t)},e}(),ZI=1e3;function JI(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?.()),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(bQ),m.nodes.forEach(EQ)},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?rs(rs([],yr(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 pQ)}return l.prototype.addEventListener=function(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Ym),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?.notify.apply(m,rs([],yr(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,x=E.visualElement;if(x&&!x.getInstance()&&x.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 w,k=function(){return d.root.updateBlockedByResize=!1};t(c,function(){d.root.updateBlockedByResize=!0,clearTimeout(w),w=window.setTimeout(k,250),Im.hasAnimatedSinceResize&&(Im.hasAnimatedSinceResize=!1,d.nodes.forEach(yQ))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&x&&(b||y)&&this.addEventListener("didUpdate",function(N){var D,A,_,L,V,P=N.delta,F=N.hasLayoutChanged,j=N.hasRelativeTargetChanged,$=N.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var X=(A=(D=d.options.transition)!==null&&D!==void 0?D:x.getDefaultTransition())!==null&&A!==void 0?A:CQ,J=x.getProps(),ee=J.onLayoutAnimationStart,K=J.onLayoutAnimationComplete,B=!d.targetLayout||!KI(d.targetLayout,$)||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 re=Qe(Qe({},mw(X,"layout")),{onPlay:ee,onComplete:K});x.shouldReduceMotion&&(re.delay=0,re.type=!1),d.startAnimation(re)}else!F&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((V=(L=d.options).onExitComplete)===null||V===void 0||V.call(L));d.targetLayout=$})}},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,sp.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(SQ))},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,x=y.layoutId,w=y.layout;if(!(x===void 0&&!w)){var k=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;this.prevTransformTemplateValue=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(e3);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(_Q),this.potentialNodes.clear()),this.nodes.forEach(vQ),this.nodes.forEach(hQ),this.nodes.forEach(mQ),this.clearAllSnapshots(),lw.update(),lw.preRender(),lw.render())},l.prototype.clearAllSnapshots=function(){this.nodes.forEach(gQ),this.sharedNodes.forEach(TQ)},l.prototype.scheduleUpdateProjection=function(){ls.preRender(this.updateProjection,!1,!0)},l.prototype.scheduleCheckAfterUnmount=function(){var c=this;ls.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));i3(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();i3(m);var E=this.layout;this.layout={measured:m,actual:this.removeElementScroll(m)},this.layoutCorrected=Yi(),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?.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&&!QI(this.projectionDelta),m=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,E=m?.(this.latestValues,""),b=E!==this.prevTransformTemplateValue;p&&(d||Wu(this.latestValues)||b)&&(o(this.instance,E),this.shouldResetTransform=!1,this.scheduleRender())}},l.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Yi();var p=c.measureViewportBox(),d=this.root.scroll;return d&&(Qu(p.x,d.x),Qu(p.y,d.y)),p},l.prototype.removeElementScroll=function(c){var p=Yi();us(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){us(p,c);var x=this.root.scroll;x&&(Qu(p.x,-x.x),Qu(p.y,-x.y))}Qu(p.x,E.x),Qu(p.y,E.y)}}return p},l.prototype.applyTransform=function(c,p){p===void 0&&(p=!1);var d=Yi();us(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&&lp(d,{x:-E.scroll.x,y:-E.scroll.y}),Wu(E.latestValues)&&lp(d,E.latestValues)}return Wu(this.latestValues)&&lp(d,this.latestValues),d},l.prototype.removeTransform=function(c){var p,d=Yi();us(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];if(E.instance&&Wu(E.latestValues)){EI(E.latestValues)&&E.updateSnapshot();var b=Yi(),y=E.measure();us(b,y),YI(d,E.latestValues,(p=E.snapshot)===null||p===void 0?void 0:p.layout,b)}}return Wu(this.latestValues)&&YI(d,this.latestValues),d},l.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},l.prototype.setOptions=function(c){var p;this.options=Qe(Qe(Qe({},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=Yi(),this.relativeTargetOrigin=Yi(),Km(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),us(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yi(),this.targetWithTransforms=Yi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?hW(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):us(this.target,this.layout.actual),xI(this.target,this.targetDelta)):us(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=Yi(),this.relativeTargetOrigin=Yi(),Km(this.relativeTargetOrigin,this.target,this.relativeParent.target),us(this.relativeTarget,this.relativeTargetOrigin)))))},l.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Wu(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();us(this.layoutCorrected,this.layout.actual),xW(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==E);var b=E.target;if(b){this.projectionDelta||(this.projectionDelta=Xm(),this.projectionDeltaWithTransform=Xm());var y=this.treeScale.x,x=this.treeScale.y,w=this.projectionTransform;Qm(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=XI(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==y||this.treeScale.y!==x)&&(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?.latestValues||{},y=Qe({},this.latestValues),x=Xm();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;var w=Yi(),k=E?.isShared,N=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,D=!!(k&&!N&&this.options.crossfade===!0&&!this.path.some(wQ));this.animationProgress=0,this.mixTargetDelta=function(A){var _,L=A/1e3;t3(x.x,c.x,L),t3(x.y,c.y,L),d.setTargetDelta(x),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((_=d.relativeParent)===null||_===void 0)&&_.layout)&&(Km(w,d.layout.actual,d.relativeParent.layout.actual),xQ(d.relativeTarget,d.relativeTargetOrigin,w,L)),k&&(d.animationValues=y,iQ(y,b,d.latestValues,L,D,N)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=L},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&&(sp.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ls.update(function(){Im.hasAnimatedSinceResize=!0,p.currentAnimation=nQ(0,ZI,Qe(Qe({},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,ZI),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||(us(p,d),lp(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 cQ);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<Fx.length;m++){var E=Fx[m],b="rotate"+E;c.getStaticValue(b)&&(p=!0,d[b]=c.getStaticValue(b),c.setStaticValue(b,0))}if(p){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 x={};if(!this.instance||this.isSVG)return x;if(this.isVisible)x.visibility="";else return{visibility:"hidden"};var w=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,x.opacity="",x.pointerEvents=R0(c.pointerEvents)||"",x.transform=w?w(this.latestValues,""):"none",x;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=R0(c.pointerEvents)||""),this.hasProjected&&!Wu(this.latestValues)&&(N.transform=w?w({},""):"none",this.hasProjected=!1),N}var D=k.animationValues||k.latestValues;this.applyTransformsToTarget(),x.transform=XI(this.projectionDeltaWithTransform,this.treeScale,D),w&&(x.transform=w(D,x.transform));var A=this.projectionDelta,_=A.x,L=A.y;x.transformOrigin="".concat(_.origin*100,"% ").concat(L.origin*100,"% 0"),k.animationValues?x.opacity=k===this?(E=(m=D.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&E!==void 0?E:1:this.preserveOpacity?this.latestValues.opacity:D.opacityExit:x.opacity=k===this?(b=D.opacity)!==null&&b!==void 0?b:"":(y=D.opacityExit)!==null&&y!==void 0?y:0;for(var V in O0)if(D[V]!==void 0){var P=O0[V],F=P.correct,j=P.applyTo,$=F(D[V],k);if(j)for(var X=j.length,J=0;J<X;J++)x[j[J]]=$;else x[V]=$}return this.options.layoutId&&(x.pointerEvents=k===this?R0(c.pointerEvents)||"":"none"),x},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(e3),this.root.sharedNodes.clear()},l}()}function hQ(e){e.updateLayout()}function mQ(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"?Ys(function(D){var A=o.isShared?o.measured[D]:o.layout[D],_=Ul(A);A.min=c[D].min,A.max=A.min+_}):e.options.animationType==="position"&&Ys(function(D){var A=o.isShared?o.measured[D]:o.layout[D],_=Ul(c[D]);A.max=A.min+_});var d=Xm();Qm(d,c,o.layout);var m=Xm();o.isShared?Qm(m,e.applyTransform(p,!0),o.measured):Qm(m,c,o.layout);var E=!QI(d),b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var y=e.relativeParent,x=y.snapshot,w=y.layout;if(x&&w){var k=Yi();Km(k,o.layout,x.layout);var N=Yi();Km(N,c,w.actual),KI(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 gQ(e){e.clearSnapshot()}function e3(e){e.clearMeasurements()}function vQ(e){var t=e.options.visualElement;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function yQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function bQ(e){e.resolveTargetDelta()}function EQ(e){e.calcProjection()}function SQ(e){e.resetRotation()}function TQ(e){e.removeLeadSnapshot()}function t3(e,t,n){e.translate=wr(t.translate,0,n),e.scale=wr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n3(e,t,n,r){e.min=wr(t.min,n.min,r),e.max=wr(t.max,n.max,r)}function xQ(e,t,n,r){n3(e.x,t.x,n.x,r),n3(e.y,t.y,n.y,r)}function wQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var CQ={duration:.45,ease:[.4,0,.1,1]};function _Q(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 r3(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function i3(e){r3(e.x),r3(e.y)}var NQ=JI({attachResizeListener:function(e,t){return M0(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Aw={current:void 0},AQ=JI({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Aw.current){var e=new NQ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Aw.current=e}return Aw.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),OQ=Qe(Qe(Qe(Qe({},fW),NY),RW),tQ),o3=EH(function(e,t){return oG(e,t,OQ,KW,AQ)}),a3=M.createContext(null);function DQ(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=wr(p.min,p.max,.5);return o===1&&c.layout.max+n>d||o===-1&&c.layout.min+n<d?zY(e,i,i+o):e}function kQ(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=Gi(e,["children","as","axis","onReorder","values"]),m=zu(function(){return o3(i)}),E=[],b=M.useRef(!1),y={axis:l,registerItem:function(x,w){w&&E.findIndex(function(k){return x===k.value})===-1&&(E.push({value:x,layout:w[l]}),E.sort(LQ))},updateOrder:function(x,w,k){if(!b.current){var N=DQ(E,x,w,k);E!==N&&(b.current=!0,c(N.map(MQ).filter(function(D){return p.indexOf(D)!==-1})))}}};return M.useEffect(function(){b.current=!1}),M.createElement(m,Qe({},d,{ref:t}),M.createElement(a3.Provider,{value:y},n))}var RQ=M.forwardRef(kQ);function MQ(e){return e.value}function LQ(e,t){return e.layout.min-t.layout.min}function s3(e){var t=zu(function(){return Rf(e)}),n=M.useContext(w0).isStatic;if(n){var r=yr(M.useState(e),2),i=r[1];M.useEffect(function(){return t.onChange(i)},[])}return t}var IQ=function(e){return typeof e=="object"&&e.mix},FQ=function(e){return IQ(e)?e.mix:void 0};function PQ(){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=ew(o,l,Qe({mixer:FQ(l[0])},c));return n?p(i):p}function jQ(e,t){Mx(function(){var n=e.map(function(r){return r.onChange(t)});return function(){return n.forEach(function(r){return r()})}})}function VQ(e,t){var n=s3(t()),r=function(){return n.set(t())};return r(),jQ(e,function(){return ls.update(r,!1,!0)}),n}function UQ(e,t,n,r){var i=typeof t=="function"?t:PQ(t,n,r);return Array.isArray(e)?l3(e,i):l3([e],function(o){var l=yr(o,1),c=l[0];return i(c)})}function l3(e,t){var n=zu(function(){return[]});return VQ(e,function(){n.length=0;for(var r=e.length,i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function u3(e,t){return t===void 0&&(t=0),Hs(e)?e:s3(t)}function qQ(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=Gi(e,["children","style","value","as","onDrag","layout"]),E=zu(function(){return o3(l)}),b=M.useContext(a3),y={x:u3(r?.x),y:u3(r?.y)},x=UQ([y.x,y.y],function(_){var L=yr(_,2),V=L[0],P=L[1];return V||P?1:"unset"}),w=M.useRef(null),k=b,N=k.axis,D=k.registerItem,A=k.updateOrder;return M.useEffect(function(){D(i,w.current)},[b]),M.createElement(E,Qe({drag:N},m,{dragSnapToOrigin:!0,style:Qe(Qe({},r),{x:y.x,y:y.y,zIndex:x}),layout:d,onDrag:function(_,L){var V=L.velocity;V[N]&&A(i,y[N].get(),V[N]),c?.(_,L)},onLayoutMeasure:function(_){w.current=_},ref:t}),n)}var BQ=M.forwardRef(qQ),c3={Group:RQ,Item:BQ},[X0,Rje]=Tf("Tooltip",[h0]),Z0=h0(),f3="TooltipProvider",$Q=700,Ow="tooltip.open",[zQ,Dw]=X0(f3),d3=e=>{const{__scopeTooltip:t,delayDuration:n=$Q,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,l=M.useRef(!0),c=M.useRef(!1),p=M.useRef(0);return M.useEffect(()=>{const d=p.current;return()=>window.clearTimeout(d)},[]),Y.jsx(zQ,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(p.current),l.current=!1},[]),onClose:M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:M.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:o})};d3.displayName=f3;var Jm="Tooltip",[HQ,eg]=X0(Jm),p3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,p=Dw(Jm,e.__scopeTooltip),d=Z0(t),[m,E]=M.useState(null),b=xf(),y=M.useRef(0),x=l??p.disableHoverableContent,w=c??p.delayDuration,k=M.useRef(!1),[N,D]=Hy({prop:r,defaultProp:i??!1,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Ow))):p.onClose(),o?.(P)},caller:Jm}),A=M.useMemo(()=>N?k.current?"delayed-open":"instant-open":"closed",[N]),_=M.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,D(!0)},[D]),L=M.useCallback(()=>{window.clearTimeout(y.current),y.current=0,D(!1)},[D]),V=M.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,D(!0),y.current=0},w)},[w,D]);return M.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),Y.jsx(g2,{...d,children:Y.jsx(HQ,{scope:t,contentId:b,open:N,stateAttribute:A,trigger:m,onTriggerChange:E,onTriggerEnter:M.useCallback(()=>{p.isOpenDelayedRef.current?V():_()},[p.isOpenDelayedRef,V,_]),onTriggerLeave:M.useCallback(()=>{x?L():(window.clearTimeout(y.current),y.current=0)},[L,x]),onOpen:_,onClose:L,disableHoverableContent:x,children:n})})};p3.displayName=Jm;var kw="TooltipTrigger",h3=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=eg(kw,n),o=Dw(kw,n),l=Z0(n),c=M.useRef(null),p=li(t,c,i.onTriggerChange),d=M.useRef(!1),m=M.useRef(!1),E=M.useCallback(()=>d.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),Y.jsx(v2,{asChild:!0,...l,children:Y.jsx(Rr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:p,onPointerMove:$t(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:$t(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:$t(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:$t(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:$t(e.onBlur,i.onClose),onClick:$t(e.onClick,i.onClose)})})});h3.displayName=kw;var Rw="TooltipPortal",[GQ,YQ]=X0(Rw,{forceMount:void 0}),m3=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=eg(Rw,t);return Y.jsx(GQ,{scope:t,forceMount:n,children:Y.jsx(js,{present:n||o.open,children:Y.jsx(Wy,{asChild:!0,container:i,children:r})})})};m3.displayName=Rw;var up="TooltipContent",g3=M.forwardRef((e,t)=>{const n=YQ(up,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=eg(up,e.__scopeTooltip);return Y.jsx(js,{present:r||l.open,children:l.disableHoverableContent?Y.jsx(v3,{side:i,...o,ref:t}):Y.jsx(WQ,{side:i,...o,ref:t})})}),WQ=M.forwardRef((e,t)=>{const n=eg(up,e.__scopeTooltip),r=Dw(up,e.__scopeTooltip),i=M.useRef(null),o=li(t,i),[l,c]=M.useState(null),{trigger:p,onClose:d}=n,m=i.current,{onPointerInTransitChange:E}=r,b=M.useCallback(()=>{c(null),E(!1)},[E]),y=M.useCallback((x,w)=>{const k=x.currentTarget,N={x:x.clientX,y:x.clientY},D=JQ(N,k.getBoundingClientRect()),A=eK(N,D),_=tK(w.getBoundingClientRect()),L=rK([...A,..._]);c(L),E(!0)},[E]);return M.useEffect(()=>()=>b(),[b]),M.useEffect(()=>{if(p&&m){const x=k=>y(k,m),w=k=>y(k,p);return p.addEventListener("pointerleave",x),m.addEventListener("pointerleave",w),()=>{p.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",w)}}},[p,m,y,b]),M.useEffect(()=>{if(l){const x=w=>{const k=w.target,N={x:w.clientX,y:w.clientY},D=p?.contains(k)||m?.contains(k),A=!nK(N,l);D?b():A&&(b(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[p,m,l,d,b]),Y.jsx(v3,{...e,ref:o})}),[QQ,KQ]=X0(Jm,{isInside:!1}),XQ=E7("TooltipContent"),v3=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,p=eg(up,n),d=Z0(n),{onClose:m}=p;return M.useEffect(()=>(document.addEventListener(Ow,m),()=>document.removeEventListener(Ow,m)),[m]),M.useEffect(()=>{if(p.trigger){const E=b=>{b.target?.contains(p.trigger)&&m()};return window.addEventListener("scroll",E,{capture:!0}),()=>window.removeEventListener("scroll",E,{capture:!0})}},[p.trigger,m]),Y.jsx(Yy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:E=>E.preventDefault(),onDismiss:m,children:Y.jsxs(y2,{"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(XQ,{children:r}),Y.jsx(QQ,{scope:n,isInside:!0,children:Y.jsx(Fk,{id:p.contentId,role:"tooltip",children:i||r})})]})})});g3.displayName=up;var y3="TooltipArrow",ZQ=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Z0(n);return KQ(y3,n).isInside?null:Y.jsx(b2,{...i,...r,ref:t})});ZQ.displayName=y3;function JQ(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 eK(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 tK(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 nK(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],p=t[l],d=c.x,m=c.y,E=p.x,b=p.y;m>r!=b>r&&n<(E-d)*(r-m)/(b-m)+d&&(i=!i)}return i}function rK(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),iK(t)}function iK(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 oK=d3,aK=p3,sK=h3,lK=m3,uK=g3;function cp(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((x,w)=>r[w]!==x)))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 x=Math.round((Date.now()-m)*100)/100,w=Math.round((Date.now()-y)*100)/100,k=w/16,N=(D,A)=>{for(D=String(D);D.length<A;)D=" "+D;return D};console.info(`%c⏱ ${N(w,5)} /${N(x,5)} ms`,`
325
+ `,l.map=[n,t.line],!0}),WT}var QT,VR;function fz(){return VR||(VR=1,QT=function(t,n,r,i){var o,l,c,p,d,m,E,b=!1,y=t.bMarks[n]+t.tShift[n],x=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>x||(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,x),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],x=t.eMarks[p],y<x&&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<x)))){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}),QT}var KT,UR;function dz(){if(UR)return KT;UR=1;var e=In().isSpace;return KT=function(n,r,i,o){var l,c,p,d,m,E,b,y,x,w,k,N,D,A,_,L,V,P,F,j,$=n.lineMax,X=n.bMarks[r]+n.tShift[r],J=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(X++)!==62)return!1;if(o)return!0;for(d=x=n.sCount[r]+1,n.src.charCodeAt(X)===32?(X++,d++,x++,l=!1,L=!0):n.src.charCodeAt(X)===9?(L=!0,(n.bsCount[r]+x)%4===3?(X++,d++,x++,l=!1):l=!0):L=!1,w=[n.bMarks[r]],n.bMarks[r]=X;X<J&&(c=n.src.charCodeAt(X),e(c));){c===9?x+=4-(x+n.bsCount[r]+(l?1:0))%4:x++;X++}for(k=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(L?1:0),E=X>=J,A=[n.sCount[r]],n.sCount[r]=x-d,_=[n.tShift[r]],n.tShift[r]=X-n.bMarks[r],P=n.md.block.ruler.getRules("blockquote"),D=n.parentType,n.parentType="blockquote",y=r+1;y<i&&(j=n.sCount[y]<n.blkIndent,X=n.bMarks[y]+n.tShift[y],J=n.eMarks[y],!(X>=J));y++){if(n.src.charCodeAt(X++)===62&&!j){for(d=x=n.sCount[y]+1,n.src.charCodeAt(X)===32?(X++,d++,x++,l=!1,L=!0):n.src.charCodeAt(X)===9?(L=!0,(n.bsCount[y]+x)%4===3?(X++,d++,x++,l=!1):l=!0):L=!1,w.push(n.bMarks[y]),n.bMarks[y]=X;X<J&&(c=n.src.charCodeAt(X),e(c));){c===9?x+=4-(x+n.bsCount[y]+(l?1:0))%4:x++;X++}E=X>=J,k.push(n.bsCount[y]),n.bsCount[y]=n.sCount[y]+1+(L?1:0),A.push(n.sCount[y]),n.sCount[y]=x-d,_.push(n.tShift[y]),n.tShift[y]=X-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&&(w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),A.push(n.sCount[y]),n.sCount[y]-=n.blkIndent);break}w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),A.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=$,n.parentType=D,b[1]=n.line,p=0;p<_.length;p++)n.bMarks[p+r]=w[p],n.tShift[p+r]=_[p],n.sCount[p+r]=A[p],n.bsCount[p+r]=k[p];return n.blkIndent=N,!0},KT}var XT,qR;function pz(){if(qR)return XT;qR=1;var e=In().isSpace;return XT=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)},XT}var ZT,BR;function hz(){if(BR)return ZT;BR=1;var e=In().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 ZT=function(o,l,c,p){var d,m,E,b,y,x,w,k,N,D,A,_,L,V,P,F,j,$,X,J,ee,K,B,ne,re,se,fe,Z,ge=!1,ae=!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(w=!0,re=o.bMarks[l]+o.tShift[l],L=Number(o.src.slice(re,B-1)),ge&&L!==1)return!1}else if((B=t(o,l))>=0)w=!1;else return!1;if(ge&&o.skipSpaces(B)>=o.eMarks[l])return!1;if(_=o.src.charCodeAt(B-1),p)return!0;for(A=o.tokens.length,w?(Z=o.push("ordered_list_open","ol",1),L!==1&&(Z.attrs=[["start",L]])):Z=o.push("bullet_list_open","ul",1),Z.map=D=[l,0],Z.markup=String.fromCharCode(_),P=l,ne=!1,fe=o.md.block.ruler.getRules("list"),$=o.parentType,o.parentType="list";P<c;){for(K=B,V=o.eMarks[P],x=F=o.sCount[P]+B-(o.bMarks[l]+o.tShift[l]);K<V;){if(d=o.src.charCodeAt(K),d===9)F+=4-(F+o.bsCount[P])%4;else if(d===32)F++;else break;K++}if(m=K,m>=V?y=1:y=F-x,y>4&&(y=1),b=x+y,Z=o.push("list_item_open","li",1),Z.markup=String.fromCharCode(_),Z.map=k=[l,0],w&&(Z.info=o.src.slice(re,B-1)),ee=o.tight,J=o.tShift[l],X=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)&&(ae=!1),ne=o.line-l>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=j,o.tShift[l]=J,o.sCount[l]=X,o.tight=ee,Z=o.push("list_item_close","li",-1),Z.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=fe.length;E<N;E++)if(fe[E](o,P,c,!0)){se=!0;break}if(se)break;if(w){if(B=n(o,P),B<0)break;re=o.bMarks[P]+o.tShift[P]}else if(B=t(o,P),B<0)break;if(_!==o.src.charCodeAt(B-1))break}return w?Z=o.push("ordered_list_close","ol",-1):Z=o.push("bullet_list_close","ul",-1),Z.markup=String.fromCharCode(_),D[1]=P,o.line=P,o.parentType=$,ae&&r(o,A),!0},ZT}var JT,$R;function mz(){if($R)return JT;$R=1;var e=In().normalizeReference,t=In().isSpace;return JT=function(r,i,o,l){var c,p,d,m,E,b,y,x,w,k,N,D,A,_,L,V,P=0,F=r.bMarks[i]+r.tShift[i],j=r.eMarks[i],$=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,L=r.md.block.ruler.getRules("reference"),k=r.parentType,r.parentType="reference";$<m&&!r.isEmpty($);$++)if(!(r.sCount[$]-r.blkIndent>3)&&!(r.sCount[$]<0)){for(_=!1,b=0,y=L.length;b<y;b++)if(L[b](r,$,m,!0)){_=!0;break}if(_)break}for(A=r.getLines(i,$,r.blkIndent,!1).trim(),j=A.length,F=1;F<j;F++){if(c=A.charCodeAt(F),c===91)return!1;if(c===93){w=F;break}else c===10?P++:c===92&&(F++,F<j&&A.charCodeAt(F)===10&&P++)}if(w<0||A.charCodeAt(w+1)!==58)return!1;for(F=w+2;F<j;F++)if(c=A.charCodeAt(F),c===10)P++;else if(!t(c))break;if(N=r.md.helpers.parseLinkDestination(A,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,D=F;F<j;F++)if(c=A.charCodeAt(F),c===10)P++;else if(!t(c))break;for(N=r.md.helpers.parseLinkTitle(A,F,j),F<j&&D!==F&&N.ok?(V=N.str,F=N.pos,P+=N.lines):(V="",F=p,P=d);F<j&&(c=A.charCodeAt(F),!!t(c));)F++;if(F<j&&A.charCodeAt(F)!==10&&V)for(V="",F=p,P=d;F<j&&(c=A.charCodeAt(F),!!t(c));)F++;return F<j&&A.charCodeAt(F)!==10||(x=e(A.slice(1,w)),!x)?!1:(l||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[x]>"u"&&(r.env.references[x]={title:V,href:E}),r.parentType=k,r.line=i+P+1),!0)},JT}var ex,zR;function gz(){return zR||(zR=1,ex=["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"]),ex}var E0={},HR;function GR(){if(HR)return E0;HR=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 E0.HTML_TAG_RE=b,E0.HTML_OPEN_CLOSE_TAG_RE=y,E0}var tx,YR;function vz(){if(YR)return tx;YR=1;var e=gz(),t=GR().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 tx=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},tx}var nx,WR;function yz(){if(WR)return nx;WR=1;var e=In().isSpace;return nx=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)},nx}var rx,QR;function bz(){return QR||(QR=1,rx=function(t,n,r){var i,o,l,c,p,d,m,E,b,y=n+1,x,w=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(x=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=w.length;l<c;l++)if(w[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=x,!0):!1}),rx}var ix,KR;function Ez(){return KR||(KR=1,ix=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}),ix}var ox,XR;function Sz(){if(XR)return ox;XR=1;var e=zT(),t=In().isSpace;function n(r,i,o,l){var c,p,d,m,E,b,y,x;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,x=!1,d=m=b=y=0,E=p.length;m<E;m++){if(c=p.charCodeAt(m),!x)if(t(c)){b++,c===9?y+=4-y%4:y++;continue}else x=!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),x=!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,x,w=i;if(i>=o)return"";for(y=new Array(o-i),p=0;w<o;w++,p++){for(d=0,x=E=this.bMarks[w],w+1<o||c?b=this.eMarks[w]+1:b=this.eMarks[w];E<b&&d<l;){if(m=this.src.charCodeAt(E),t(m))m===9?d+=4-(d+this.bsCount[w])%4:d++;else if(E-x<this.tShift[w])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,ox=n,ox}var ax,ZR;function Tz(){if(ZR)return ax;ZR=1;var e=FT(),t=[["table",uz(),["paragraph","reference"]],["code",cz()],["fence",fz(),["paragraph","reference","blockquote","list"]],["blockquote",dz(),["paragraph","reference","blockquote","list"]],["hr",pz(),["paragraph","reference","blockquote","list"]],["list",hz(),["paragraph","reference","blockquote"]],["reference",mz()],["html_block",vz(),["paragraph","reference","blockquote"]],["heading",yz(),["paragraph","reference","blockquote"]],["lheading",bz()],["paragraph",Ez()]];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=Sz(),ax=n,ax}var sx,JR;function xz(){if(JR)return sx;JR=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 sx=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)},sx}var lx,eM;function wz(){if(eM)return lx;eM=1;var e=In().isSpace;return lx=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},lx}var ux,tM;function Cz(){if(tM)return ux;tM=1;for(var e=In().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),ux=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},ux}var cx,nM;function _z(){return nM||(nM=1,cx=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}),cx}var S0={},rM;function iM(){if(rM)return S0;rM=1,S0.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 S0.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)},S0}var T0={},oM;function aM(){if(oM)return T0;oM=1,T0.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 T0.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)},T0}var fx,sM;function Nz(){if(sM)return fx;sM=1;var e=In().normalizeReference,t=In().isSpace;return fx=function(r,i){var o,l,c,p,d,m,E,b,y,x="",w="",k=r.pos,N=r.posMax,D=r.pos,A=!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(A=!1,m++;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(m>=N)return!1;if(D=m,E=r.md.helpers.parseLinkDestination(r.src,m,r.posMax),E.ok){for(x=r.md.normalizeLink(E.str),r.md.validateLink(x)?m=E.pos:x="",D=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&&D!==m&&E.ok)for(w=E.str,m=E.pos;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);}(m>=N||r.src.charCodeAt(m)!==41)&&(A=!0),m++}if(A){if(typeof r.env.references>"u")return!1;if(m<N&&r.src.charCodeAt(m)===91?(D=m+1,m=r.md.helpers.parseLinkLabel(r,m),m>=0?c=r.src.slice(D,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;x=b.href,w=b.title}return i||(r.pos=d,r.posMax=p,y=r.push("link_open","a",1),y.attrs=o=[["href",x]],w&&o.push(["title",w]),r.md.inline.tokenize(r),y=r.push("link_close","a",-1)),r.pos=m,r.posMax=N,!0},fx}var dx,lM;function Az(){if(lM)return dx;lM=1;var e=In().normalizeReference,t=In().isSpace;return dx=function(r,i){var o,l,c,p,d,m,E,b,y,x,w,k,N,D="",A=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&&(D=r.md.normalizeLink(y.str),r.md.validateLink(D)?E=y.pos:D=""),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(x=y.str,E=y.pos;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);else x="";if(E>=_||r.src.charCodeAt(E)!==41)return r.pos=A,!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=A,!1;D=b.href,x=b.title}return i||(c=r.src.slice(m,d),r.md.inline.parse(c,r.md,r.env,k=[]),w=r.push("image","img",0),w.attrs=o=[["src",D],["alt",""]],w.children=k,w.content=c,x&&o.push(["title",x])),r.pos=E,r.posMax=_,!0},dx}var px,uM;function Oz(){if(uM)return px;uM=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 px=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},px}var hx,cM;function Dz(){if(cM)return hx;cM=1;var e=GR().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return hx=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)},hx}var mx,fM;function kz(){if(fM)return mx;fM=1;var e=oR(),t=In().has,n=In().isValidEntityCode,r=In().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return mx=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},mx}var gx,dM;function Rz(){if(dM)return gx;dM=1;function e(t,n){var r,i,o,l,c,p,d,m,E={},b=n.length;if(b){var y=0,x=-2,w=[];for(r=0;r<b;r++)if(o=n[r],w.push(0),(n[y].marker!==o.marker||x!==o.token-1)&&(y=r),x=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-w[y]-1,p=i;i>c;i-=w[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?w[i-1]+1:0,w[r]=r-i+m,w[i]=m,o.open=!1,l.end=r,l.close=!1,p=-1,x=-2;break}p!==-1&&(E[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}}return gx=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)},gx}var vx,pM;function Mz(){return pM||(pM=1,vx=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)}),vx}var yx,hM;function Lz(){if(hM)return yx;hM=1;var e=zT(),t=In().isWhiteSpace,n=In().isPunctChar,r=In().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,x,w,k,N=!0,D=!0,A=this.posMax,_=this.src.charCodeAt(o);for(p=o>0?this.src.charCodeAt(o-1):32;c<A&&this.src.charCodeAt(c)===_;)c++;return m=c-o,d=c<A?this.src.charCodeAt(c):32,x=r(p)||n(String.fromCharCode(p)),k=r(d)||n(String.fromCharCode(d)),y=t(p),w=t(d),w?N=!1:k&&(y||x||(N=!1)),y?D=!1:x&&(w||k||(D=!1)),l?(E=N,b=D):(E=N&&(!D||x),b=D&&(!N||k)),{can_open:E,can_close:b,length:m}},i.prototype.Token=e,yx=i,yx}var bx,mM;function Iz(){if(mM)return bx;mM=1;var e=FT(),t=[["text",xz()],["newline",wz()],["escape",Cz()],["backticks",_z()],["strikethrough",iM().tokenize],["emphasis",aM().tokenize],["link",Nz()],["image",Az()],["autolink",Oz()],["html_inline",Dz()],["entity",kz()]],n=[["balance_pairs",Rz()],["strikethrough",iM().postProcess],["emphasis",aM().postProcess],["text_collapse",Mz()]];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=Lz(),bx=r,bx}var Ex,gM;function Fz(){return gM||(gM=1,Ex=function(e){var t={};t.src_Any=hR().source,t.src_Cc=gR().source,t.src_Z=bR().source,t.src_P=TT().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}),Ex}var Sx,vM;function Pz(){if(vM)return Sx;vM=1;function e(A){var _=Array.prototype.slice.call(arguments,1);return _.forEach(function(L){L&&Object.keys(L).forEach(function(V){A[V]=L[V]})}),A}function t(A){return Object.prototype.toString.call(A)}function n(A){return t(A)==="[object String]"}function r(A){return t(A)==="[object Object]"}function i(A){return t(A)==="[object RegExp]"}function o(A){return t(A)==="[object Function]"}function l(A){return A.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(A){return Object.keys(A||{}).reduce(function(_,L){return _||c.hasOwnProperty(L)},!1)}var d={"http:":{validate:function(A,_,L){var V=A.slice(_);return L.re.http||(L.re.http=new RegExp("^\\/\\/"+L.re.src_auth+L.re.src_host_port_strict+L.re.src_path,"i")),L.re.http.test(V)?V.match(L.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(A,_,L){var V=A.slice(_);return L.re.no_http||(L.re.no_http=new RegExp("^"+L.re.src_auth+"(?:localhost|(?:(?:"+L.re.src_domain+")\\.)+"+L.re.src_domain_root+")"+L.re.src_port+L.re.src_host_terminator+L.re.src_path,"i")),L.re.no_http.test(V)?_>=3&&A[_-3]===":"||_>=3&&A[_-3]==="/"?0:V.match(L.re.no_http)[0].length:0}},"mailto:":{validate:function(A,_,L){var V=A.slice(_);return L.re.mailto||(L.re.mailto=new RegExp("^"+L.re.src_email_name+"@"+L.re.src_host_strict,"i")),L.re.mailto.test(V)?V.match(L.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(A){A.__index__=-1,A.__text_cache__=""}function y(A){return function(_,L){var V=_.slice(L);return A.test(V)?V.match(A)[0].length:0}}function x(){return function(A,_){_.normalize(A)}}function w(A){var _=A.re=Fz()(A.__opts__),L=A.__tlds__.slice();A.onCompile(),A.__tlds_replaced__||L.push(m),L.push(_.src_xn),_.src_tlds=L.join("|");function V($){return $.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=[];A.__compiled__={};function F($,X){throw new Error('(LinkifyIt) Invalid schema "'+$+'": '+X)}Object.keys(A.__schemas__).forEach(function($){var X=A.__schemas__[$];if(X!==null){var J={validate:null,link:null};if(A.__compiled__[$]=J,r(X)){i(X.validate)?J.validate=y(X.validate):o(X.validate)?J.validate=X.validate:F($,X),o(X.normalize)?J.normalize=X.normalize:X.normalize?F($,X):J.normalize=x();return}if(n(X)){P.push($);return}F($,X)}}),P.forEach(function($){A.__compiled__[A.__schemas__[$]]&&(A.__compiled__[$].validate=A.__compiled__[A.__schemas__[$]].validate,A.__compiled__[$].normalize=A.__compiled__[A.__schemas__[$]].normalize)}),A.__compiled__[""]={validate:null,normalize:x()};var j=Object.keys(A.__compiled__).filter(function($){return $.length>0&&A.__compiled__[$]}).map(l).join("|");A.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+j+")","i"),A.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+j+")","ig"),A.re.pretest=RegExp("("+A.re.schema_test.source+")|("+A.re.host_fuzzy_test.source+")|@","i"),b(A)}function k(A,_){var L=A.__index__,V=A.__last_index__,P=A.__text_cache__.slice(L,V);this.schema=A.__schema__.toLowerCase(),this.index=L+_,this.lastIndex=V+_,this.raw=P,this.text=P,this.url=P}function N(A,_){var L=new k(A,_);return A.__compiled__[L.schema].normalize(L,A),L}function D(A,_){if(!(this instanceof D))return new D(A,_);_||p(A)&&(_=A,A={}),this.__opts__=e({},c,_),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},d,A),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},w(this)}return D.prototype.add=function(_,L){return this.__schemas__[_]=L,w(this),this},D.prototype.set=function(_){return this.__opts__=e(this.__opts__,_),this},D.prototype.test=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return!1;var L,V,P,F,j,$,X,J,ee;if(this.re.schema_test.test(_)){for(X=this.re.schema_search,X.lastIndex=0;(L=X.exec(_))!==null;)if(F=this.testSchemaAt(_,L[2],X.lastIndex),F){this.__schema__=L[2],this.__index__=L.index+L[1].length,this.__last_index__=L.index+L[0].length+F;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(J=_.search(this.re.host_fuzzy_test),J>=0&&(this.__index__<0||J<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:"]&&(ee=_.indexOf("@"),ee>=0&&(P=_.match(this.re.email_fuzzy))!==null&&(j=P.index+P[1].length,$=P.index+P[0].length,(this.__index__<0||j<this.__index__||j===this.__index__&&$>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=j,this.__last_index__=$))),this.__index__>=0},D.prototype.pretest=function(_){return this.re.pretest.test(_)},D.prototype.testSchemaAt=function(_,L,V){return this.__compiled__[L.toLowerCase()]?this.__compiled__[L.toLowerCase()].validate(_,V,this):0},D.prototype.match=function(_){var L=0,V=[];this.__index__>=0&&this.__text_cache__===_&&(V.push(N(this,L)),L=this.__last_index__);for(var P=L?_.slice(L):_;this.test(P);)V.push(N(this,L)),P=P.slice(this.__last_index__),L+=this.__last_index__;return V.length?V:null},D.prototype.tlds=function(_,L){return _=Array.isArray(_)?_:[_],L?(this.__tlds__=this.__tlds__.concat(_).sort().filter(function(V,P,F){return V!==F[P-1]}).reverse(),w(this),this):(this.__tlds__=_.slice(),this.__tlds_replaced__=!0,w(this),this)},D.prototype.normalize=function(_){_.schema||(_.url="http://"+_.url),_.schema==="mailto:"&&!/^mailto:/i.test(_.url)&&(_.url="mailto:"+_.url)},D.prototype.onCompile=function(){},Sx=D,Sx}const np=2147483647,$s=36,Tx=1,Mm=26,jz=38,Vz=700,yM=72,bM=128,EM="-",Uz=/^xn--/,qz=/[^\0-\x7F]/,Bz=/[\x2E\u3002\uFF0E\uFF61]/g,$z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xx=$s-Tx,zs=Math.floor,wx=String.fromCharCode;function $u(e){throw new RangeError($z[e])}function zz(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function SM(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Bz,".");const i=e.split("."),o=zz(i,t).join(".");return r+o}function Cx(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 TM=e=>String.fromCodePoint(...e),Hz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:$s},xM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},wM=function(e,t,n){let r=0;for(e=n?zs(e/Vz):e>>1,e+=zs(e/t);e>xx*Mm>>1;r+=$s)e=zs(e/xx);return zs(r+(xx+1)*e/(e+jz))},_x=function(e){const t=[],n=e.length;let r=0,i=bM,o=yM,l=e.lastIndexOf(EM);l<0&&(l=0);for(let c=0;c<l;++c)e.charCodeAt(c)>=128&&$u("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&&$u("invalid-input");const b=Hz(e.charCodeAt(c++));b>=$s&&$u("invalid-input"),b>zs((np-r)/m)&&$u("overflow"),r+=b*m;const y=E<=o?Tx:E>=o+Mm?Mm:E-o;if(b<y)break;const x=$s-y;m>zs(np/x)&&$u("overflow"),m*=x}const d=t.length+1;o=wM(r-p,d,p==0),zs(r/d)>np-i&&$u("overflow"),i+=zs(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Nx=function(e){const t=[];e=Cx(e);const n=e.length;let r=bM,i=0,o=yM;for(const p of e)p<128&&t.push(wx(p));const l=t.length;let c=l;for(l&&t.push(EM);c<n;){let p=np;for(const m of e)m>=r&&m<p&&(p=m);const d=c+1;p-r>zs((np-i)/d)&&$u("overflow"),i+=(p-r)*d,r=p;for(const m of e)if(m<r&&++i>np&&$u("overflow"),m===r){let E=i;for(let b=$s;;b+=$s){const y=b<=o?Tx:b>=o+Mm?Mm:b-o;if(E<y)break;const x=E-y,w=$s-y;t.push(wx(xM(y+x%w,0))),E=zs(x/w)}t.push(wx(xM(E,0))),o=wM(i,d,c===l),i=0,++c}++i,++r}return t.join("")},CM=function(e){return SM(e,function(t){return Uz.test(t)?_x(t.slice(4).toLowerCase()):t})},_M=function(e){return SM(e,function(t){return qz.test(t)?"xn--"+Nx(t):t})},Gz=Z_(Object.freeze(Object.defineProperty({__proto__:null,decode:_x,default:{version:"2.3.1",ucs2:{decode:Cx,encode:TM},decode:_x,encode:Nx,toASCII:_M,toUnicode:CM},encode:Nx,toASCII:_M,toUnicode:CM,ucs2decode:Cx,ucs2encode:TM},Symbol.toStringTag,{value:"Module"})));var Ax,NM;function Yz(){return NM||(NM=1,Ax={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Ax}var Ox,AM;function Wz(){return AM||(AM=1,Ox={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"]}}}),Ox}var Dx,OM;function Qz(){return OM||(OM=1,Dx={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"]}}}),Dx}var kx,DM;function Kz(){if(DM)return kx;DM=1;var e=In(),t=J$(),n=ez(),r=lz(),i=Tz(),o=Iz(),l=Pz(),c=dR(),p=Gz,d={default:Yz(),zero:Wz(),commonmark:Qz()},m=/^(vbscript|javascript|file|data):/,E=/^data:image\/(gif|png|jpeg|webp);/;function b(N){var D=N.trim().toLowerCase();return m.test(D)?!!E.test(D):!0}var y=["http:","https:","mailto:"];function x(N){var D=c.parse(N,!0);if(D.hostname&&(!D.protocol||y.indexOf(D.protocol)>=0))try{D.hostname=p.toASCII(D.hostname)}catch{}return c.encode(c.format(D))}function w(N){var D=c.parse(N,!0);if(D.hostname&&(!D.protocol||y.indexOf(D.protocol)>=0))try{D.hostname=p.toUnicode(D.hostname)}catch{}return c.decode(c.format(D),c.decode.defaultChars+"%")}function k(N,D){if(!(this instanceof k))return new k(N,D);D||e.isString(N)||(D=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=x,this.normalizeLinkText=w,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(N),D&&this.set(D)}return k.prototype.set=function(N){return e.assign(this.options,N),this},k.prototype.configure=function(N){var D=this,A;if(e.isString(N)&&(A=N,N=d[A],!N))throw new Error('Wrong `markdown-it` preset "'+A+'", check name');if(!N)throw new Error("Wrong `markdown-it` preset, can't be empty");return N.options&&D.set(N.options),N.components&&Object.keys(N.components).forEach(function(_){N.components[_].rules&&D[_].ruler.enableOnly(N.components[_].rules),N.components[_].rules2&&D[_].ruler2.enableOnly(N.components[_].rules2)}),this},k.prototype.enable=function(N,D){var A=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(L){A=A.concat(this[L].ruler.enable(N,!0))},this),A=A.concat(this.inline.ruler2.enable(N,!0));var _=N.filter(function(L){return A.indexOf(L)<0});if(_.length&&!D)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+_);return this},k.prototype.disable=function(N,D){var A=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(L){A=A.concat(this[L].ruler.disable(N,!0))},this),A=A.concat(this.inline.ruler2.disable(N,!0));var _=N.filter(function(L){return A.indexOf(L)<0});if(_.length&&!D)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+_);return this},k.prototype.use=function(N){var D=[this].concat(Array.prototype.slice.call(arguments,1));return N.apply(N,D),this},k.prototype.parse=function(N,D){if(typeof N!="string")throw new Error("Input data should be a String");var A=new this.core.State(N,this,D);return this.core.process(A),A.tokens},k.prototype.render=function(N,D){return D=D||{},this.renderer.render(this.parse(N,D),this.options,D)},k.prototype.parseInline=function(N,D){var A=new this.core.State(N,this,D);return A.inlineMode=!0,this.core.process(A),A.tokens},k.prototype.renderInline=function(N,D){return D=D||{},this.renderer.render(this.parseInline(N,D),this.options,D)},kx=k,kx}var Rx,kM;function Xz(){return kM||(kM=1,Rx=Kz()),Rx}var Zz=Xz();const Jz=Du(Zz);var eH="production";typeof process>"u"||process.env;var jl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Lm={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 tH(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Lm.projectionNodeConstructor=e[t]:Lm[t].Component=e[t])}var x0=function(){},RM=M.createContext({strict:!1}),MM=Object.keys(Lm),nH=MM.length;function rH(e,t,n){var r=[];if(M.useContext(RM),!t)return null;for(var i=0;i<nH;i++){var o=MM[i],l=Lm[o],c=l.isEnabled,p=l.Component;c(e)&&p&&r.push(M.createElement(p,Qe({key:o},e,{visualElement:t})))}return r}var w0=M.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),C0=M.createContext({});function iH(){return M.useContext(C0).visualElement}var _0=M.createContext(null),rp=typeof document<"u",Mx=rp?M.useLayoutEffect:M.useEffect,Lx={current:null},LM=!1;function oH(){if(LM=!0,!!rp)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Lx.current=e.matches};e.addListener(t),t()}else Lx.current=!1}function aH(){!LM&&oH();var e=yr(M.useState(Lx.current),1),t=e[0];return t}function sH(){var e=aH(),t=M.useContext(w0).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function lH(e,t,n,r){var i=M.useContext(RM),o=iH(),l=M.useContext(_0),c=sH(),p=M.useRef(void 0);r||(r=i.renderer),!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceId:l?.id,blockInitialAnimation:l?.initial===!1,shouldReduceMotion:c}));var d=p.current;return Mx(function(){d?.syncRender()}),M.useEffect(function(){var m;(m=d?.animationState)===null||m===void 0||m.animateChanges()}),Mx(function(){return function(){return d?.notifyUnmount()}},[]),d}function ip(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uH(e,t,n){return M.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):ip(n)&&(n.current=r))},[t])}function IM(e){return Array.isArray(e)}function ss(e){return typeof e=="string"||IM(e)}function cH(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function fH(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function FM(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 N0(e,t,n){var r=e.getProps();return FM(r,t,n??r.custom,cH(e),fH(e))}function A0(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||ss(e.initial)||ss(e.animate)||ss(e.whileHover)||ss(e.whileDrag)||ss(e.whileTap)||ss(e.whileFocus)||ss(e.exit)}function PM(e){return!!(A0(e)||e.variants)}function dH(e,t){if(A0(e)){var n=e.initial,r=e.animate;return{initial:n===!1||ss(n)?n:void 0,animate:ss(r)?r:void 0}}return e.inherit!==!1?t:{}}function pH(e){var t=dH(e,M.useContext(C0)),n=t.initial,r=t.animate;return M.useMemo(function(){return{initial:n,animate:r}},[jM(n),jM(r)])}function jM(e){return Array.isArray(e)?e.join(" "):e}function zu(e){var t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}var Im={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hH=1;function mH(){return zu(function(){if(Im.hasEverUpdated)return hH++})}var VM=M.createContext({}),UM=M.createContext({});function gH(e,t,n,r){var i,o=t.layoutId,l=t.layout,c=t.drag,p=t.dragConstraints,d=t.layoutScroll,m=M.useContext(UM);!r||!n||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&&ip(p),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof l=="string"?l:"both",initialPromotionConfig:m,layoutScroll:d}))}var vH=(function(e){ok(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})(Ae.Component);function yH(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,l=e.Component;t&&tH(t);function c(p,d){var m=bH(p);p=Qe(Qe({},p),{layoutId:m});var E=M.useContext(w0),b=null,y=pH(p),x=E.isStatic?void 0:mH(),w=o(p,E.isStatic);return!E.isStatic&&rp&&(y.visualElement=lH(l,w,Qe(Qe({},E),p),n),gH(x,p,y.visualElement,r||Lm.projectionNodeConstructor),b=rH(p,y.visualElement)),M.createElement(vH,{visualElement:y.visualElement,props:Qe(Qe({},E),p)},b,M.createElement(C0.Provider,{value:y},i(l,p,x,uH(w,y.visualElement,d),w,E.isStatic,y.visualElement)))}return M.forwardRef(c)}function bH(e){var t,n=e.layoutId,r=(t=M.useContext(VM))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function EH(e){function t(r,i){return i===void 0&&(i={}),yH(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 SH=["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 Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(SH.indexOf(e)>-1||/[A-Z]/.test(e))}var O0={};function TH(e){Object.assign(O0,e)}var Fx=["","X","Y","Z"],xH=["translate","scale","rotate","skew"],Fm=["transformPerspective","x","y","z"];xH.forEach(function(e){return Fx.forEach(function(t){return Fm.push(e+t)})});function wH(e,t){return Fm.indexOf(e)-Fm.indexOf(t)}var CH=new Set(Fm);function Pm(e){return CH.has(e)}var _H=new Set(["originX","originY","originZ"]);function qM(e){return _H.has(e)}function BM(e,t){var n=t.layout,r=t.layoutId;return Pm(e)||qM(e)||(n||r!==void 0)&&(!!O0[e]||e==="opacity")}var Hs=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},NH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function AH(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(wH);for(var E=!1,b=o.length,y=0;y<b;y++){var x=o[y];m+="".concat(NH[x]||x,"(").concat(i[x],") "),x==="z"&&(E=!0)}return!E&&c?m+="translateZ(0)":m=m.trim(),r?m=r(i,n?"":m):d&&n&&(m="none"),m}function OH(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 $M(e){return e.startsWith("--")}var DH=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const zM=(e,t)=>n=>Math.max(Math.min(n,t),e),jm=e=>e%1?Number(e.toFixed(5)):e,Vm=/(-)?([\d]*\.?[\d])+/g,Px=/(#[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,kH=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Um(e){return typeof e=="string"}const Of={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qm=Object.assign(Object.assign({},Of),{transform:zM(0,1)}),D0=Object.assign(Object.assign({},Of),{default:1}),Bm=e=>({test:t=>Um(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hu=Bm("deg"),Gs=Bm("%"),Lt=Bm("px"),RH=Bm("vh"),MH=Bm("vw"),HM=Object.assign(Object.assign({},Gs),{parse:e=>Gs.parse(e)/100,transform:e=>Gs.transform(e*100)}),jx=(e,t)=>n=>!!(Um(n)&&kH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),GM=(e,t,n)=>r=>{if(!Um(r))return r;const[i,o,l,c]=r.match(Vm);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Df={test:jx("hsl","hue"),parse:GM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gs.transform(jm(t))+", "+Gs.transform(jm(n))+", "+jm(qm.transform(r))+")"},LH=zM(0,255),Vx=Object.assign(Object.assign({},Of),{transform:e=>Math.round(LH(e))}),Gu={test:jx("rgb","red"),parse:GM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vx.transform(e)+", "+Vx.transform(t)+", "+Vx.transform(n)+", "+jm(qm.transform(r))+")"};function IH(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 Ux={test:jx("#"),parse:IH,transform:Gu.transform},uo={test:e=>Gu.test(e)||Ux.test(e)||Df.test(e),parse:e=>Gu.test(e)?Gu.parse(e):Df.test(e)?Df.parse(e):Ux.parse(e),transform:e=>Um(e)?e:e.hasOwnProperty("red")?Gu.transform(e):Df.transform(e)},YM="${c}",WM="${n}";function FH(e){var t,n,r,i;return isNaN(e)&&Um(e)&&((n=(t=e.match(Vm))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Px))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function QM(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Px);r&&(n=r.length,e=e.replace(Px,YM),t.push(...r.map(uo.parse)));const i=e.match(Vm);return i&&(e=e.replace(Vm,WM),t.push(...i.map(Of.parse))),{values:t,numColors:n,tokenised:e}}function KM(e){return QM(e).values}function XM(e){const{values:t,numColors:n,tokenised:r}=QM(e),i=t.length;return o=>{let l=r;for(let c=0;c<i;c++)l=l.replace(c<n?YM:WM,c<n?uo.transform(o[c]):jm(o[c]));return l}}const PH=e=>typeof e=="number"?0:e;function jH(e){const t=KM(e);return XM(e)(t.map(PH))}const Vl={test:FH,parse:KM,createTransformer:XM,getAnimatableNone:jH},VH=new Set(["brightness","contrast","saturate","opacity"]);function UH(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vm)||[];if(!r)return e;const i=n.replace(r,"");let o=VH.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qH=/([a-z-]*)\(.*?\)/g,qx=Object.assign(Object.assign({},Vl),{getAnimatableNone:e=>{const t=e.match(qH);return t?t.map(UH).join(" "):e}});var ZM=Qe(Qe({},Of),{transform:Math.round}),JM={borderWidth:Lt,borderTopWidth:Lt,borderRightWidth:Lt,borderBottomWidth:Lt,borderLeftWidth:Lt,borderRadius:Lt,radius:Lt,borderTopLeftRadius:Lt,borderTopRightRadius:Lt,borderBottomRightRadius:Lt,borderBottomLeftRadius:Lt,width:Lt,maxWidth:Lt,height:Lt,maxHeight:Lt,size:Lt,top:Lt,right:Lt,bottom:Lt,left:Lt,padding:Lt,paddingTop:Lt,paddingRight:Lt,paddingBottom:Lt,paddingLeft:Lt,margin:Lt,marginTop:Lt,marginRight:Lt,marginBottom:Lt,marginLeft:Lt,rotate:Hu,rotateX:Hu,rotateY:Hu,rotateZ:Hu,scale:D0,scaleX:D0,scaleY:D0,scaleZ:D0,skew:Hu,skewX:Hu,skewY:Hu,distance:Lt,translateX:Lt,translateY:Lt,translateZ:Lt,x:Lt,y:Lt,z:Lt,perspective:Lt,transformPerspective:Lt,opacity:qm,originX:HM,originY:HM,originZ:Lt,zIndex:ZM,fillOpacity:qm,strokeOpacity:qm,numOctaves:ZM};function Bx(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 x=t[y];if($M(y)){l[y]=x;continue}var w=JM[y],k=DH(x,w);if(Pm(y)){if(m=!0,c[y]=k,p.push(y),!b)continue;x!==((i=w.default)!==null&&i!==void 0?i:0)&&(b=!1)}else qM(y)?(d[y]=k,E=!0):o[y]=k}m?o.transform=AH(e,n,b,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),E&&(o.transformOrigin=OH(d))}var $x=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function eL(e,t,n){for(var r in t)!Hs(t[r])&&!BM(r,n)&&(e[r]=t[r])}function BH(e,t,n){var r=e.transformTemplate;return M.useMemo(function(){var i=$x();Bx(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,l=i.style;return Qe(Qe({},o),l)},[t])}function $H(e,t,n){var r=e.style||{},i={};return eL(i,r,e),Object.assign(i,BH(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function zH(e,t,n){var r={},i=$H(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 HH=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 k0(e){return HH.has(e)}var tL=function(e){return!k0(e)};function GH(e){e&&(tL=function(t){return t.startsWith("on")?!k0(t):e(t)})}try{GH(require("@emotion/is-prop-valid").default)}catch{}function YH(e,t,n){var r={};for(var i in e)(tL(i)||n===!0&&k0(i)||!t&&!k0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function nL(e,t,n){return typeof e=="string"?e:Lt.transform(t+n*e)}function WH(e,t,n){var r=nL(t,e.x,e.width),i=nL(n,e.y,e.height);return"".concat(r," ").concat(i)}var QH={offset:"strokeDashoffset",array:"strokeDasharray"};function KH(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=QH;e[o.offset]=Lt.transform(-r);var l=Lt.transform(t),c=Lt.transform(n);e[o.array]="".concat(l," ").concat(c)}function zx(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=Gi(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Bx(e,y,n,r),e.attrs=e.style,e.style={};var x=e.attrs,w=e.style,k=e.dimensions;x.transform&&(k&&(w.transform=x.transform),delete x.transform),k&&(l!==void 0||c!==void 0||w.transform)&&(w.transformOrigin=WH(k,l!==void 0?l:.5,c!==void 0?c:.5)),i!==void 0&&(x.x=i),o!==void 0&&(x.y=o),p!==void 0&&KH(x,p,m,b)}var rL=function(){return Qe(Qe({},$x()),{attrs:{}})};function XH(e,t){var n=M.useMemo(function(){var i=rL();return zx(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Qe(Qe({},i.attrs),{style:Qe({},i.style)})},[t]);if(e.style){var r={};eL(r,e.style,e),n.style=Qe(Qe({},r),n.style)}return n}function ZH(e){e===void 0&&(e=!1);var t=function(n,r,i,o,l,c){var p=l.latestValues,d=Ix(n)?XH:zH,m=d(r,p,c),E=YH(r,typeof n=="string",e),b=Qe(Qe(Qe({},E),m),{ref:o});return i&&(b["data-projection-id"]=i),M.createElement(n,b)};return t}var JH=/([a-z])([A-Z])/g,eG="$1-$2",iL=function(e){return e.replace(JH,eG).toLowerCase()};function oL(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 aL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function sL(e,t,n,r){oL(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(aL.has(i)?i:iL(i),t.attrs[i])}function Hx(e){var t=e.style,n={};for(var r in t)(Hs(t[r])||BM(r,e))&&(n[r]=t[r]);return n}function lL(e){var t=Hx(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 Gx(e){return typeof e=="object"&&typeof e.start=="function"}var $m=function(e){return Array.isArray(e)},tG=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},uL=function(e){return $m(e)?e[e.length-1]||0:e};function R0(e){var t=Hs(e)?e.get():e;return tG(t)?t.toValue():t}function cL(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,l=e.onMount,c={latestValues:nG(t,n,r,i),renderState:o()};return l&&(c.mount=function(p){return l(t,p,c)}),c}var fL=function(e){return function(t,n){var r=M.useContext(C0),i=M.useContext(_0);return n?cL(e,t,r,i):zu(function(){return cL(e,t,r,i)})}};function nG(e,t,n,r){var i={},o=n?.initial===!1,l=r(e);for(var c in l)i[c]=R0(l[c]);var p=e.initial,d=e.animate,m=A0(e),E=PM(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"&&!Gx(y)){var x=Array.isArray(y)?y:[y];x.forEach(function(w){var k=FM(e,w);if(k){var N=k.transitionEnd;k.transition;var D=Gi(k,["transitionEnd","transition"]);for(var A in D){var _=D[A];if(Array.isArray(_)){var L=b?_.length-1:0;_=_[L]}_!==null&&(i[A]=_)}for(var A in N)i[A]=N[A]}})}return i}var rG={useVisualState:fL({scrapeMotionValuesFromProps:lL,createRenderState:rL,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}}zx(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),sL(t,r)}})},iG={useVisualState:fL({scrapeMotionValuesFromProps:Hx,createRenderState:$x})};function oG(e,t,n,r,i){var o=t.forwardMotionProps,l=o===void 0?!1:o,c=Ix(e)?rG:iG;return Qe(Qe({},c),{preloadedFeatures:n,useRender:ZH(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 M0(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Yx(e,t,n,r){M.useEffect(function(){var i=e.current;if(n&&i)return M0(i,t,n,r)},[e,t,n,r])}function aG(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)};Yx(n,"focus",t?r:void 0),Yx(n,"blur",t?i:void 0)}function dL(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function pL(e){var t=!!e.touches;return t}function sG(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var lG={pageX:0,pageY:0};function uG(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||lG;return{x:r[t+"X"],y:r[t+"Y"]}}function cG(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wx(e,t){return t===void 0&&(t="page"),{point:pL(e)?uG(e,t):cG(e,t)}}var hL=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Wx(r))};return t?sG(n):n},fG=function(){return rp&&window.onpointerdown===null},dG=function(){return rp&&window.ontouchstart===null},pG=function(){return rp&&window.onmousedown===null},hG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},mG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mL(e){return fG()?e:dG()?mG[e]:pG()?hG[e]:e}function op(e,t,n,r){return M0(e,mL(t),hL(n,t==="pointerdown"),r)}function L0(e,t,n,r){return Yx(e,mL(t),n&&hL(n,t==="pointerdown"),r)}function gL(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var vL=gL("dragHorizontal"),yL=gL("dragVertical");function bL(e){var t=!1;if(e==="y")t=yL();else if(e==="x")t=vL();else{var n=vL(),r=yL();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function EL(){var e=bL(!0);return e?(e(),!1):!0}function SL(e,t,n){return function(r,i){var o;!dL(r)||EL()||((o=e.animationState)===null||o===void 0||o.setActive(er.Hover,t),n?.(r,i))}}function gG(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;L0(i,"pointerenter",t||r?SL(i,!0,t):void 0,{passive:!t}),L0(i,"pointerleave",n||r?SL(i,!1,n):void 0,{passive:!n})}var TL=function(e,t){return t?e===t?!0:TL(e,t.parentElement):!1};function xL(e){return M.useEffect(function(){return function(){return e()}},[])}const I0=(e,t,n)=>Math.min(Math.max(n,e),t),Qx=.001,vG=.01,yG=10,bG=.05,EG=1;function SG({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,l=1-t;l=I0(bG,EG,l),e=I0(vG,yG,e/1e3),l<1?(i=d=>{const m=d*l,E=m*e,b=m-n,y=Kx(d,l),x=Math.exp(-E);return Qx-b/y*x},o=d=>{const E=d*l*e,b=E*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,x=Math.exp(-E),w=Kx(Math.pow(d,2),l);return(-i(d)+Qx>0?-1:1)*((b-y)*x)/w}):(i=d=>{const m=Math.exp(-d*e),E=(d-n)*e+1;return-Qx+m*E},o=d=>{const m=Math.exp(-d*e),E=(n-d)*(e*e);return m*E});const c=5/e,p=xG(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 TG=12;function xG(e,t,n){let r=n;for(let i=1;i<TG;i++)r=r-e(r)/t(r);return r}function Kx(e,t){return e*Math.sqrt(1-t*t)}const wG=["duration","bounce"],CG=["stiffness","damping","mass"];function wL(e,t){return t.some(n=>e[n]!==void 0)}function _G(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!wL(e,CG)&&wL(e,wG)){const n=SG(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Xx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Gi(e,["from","to","restSpeed","restDelta"]);const l={done:!1,value:t};let{stiffness:c,damping:p,mass:d,velocity:m,duration:E,isResolvedFromDuration:b}=_G(o),y=CL,x=CL;function w(){const k=m?-(m/1e3):0,N=n-t,D=p/(2*Math.sqrt(c*d)),A=Math.sqrt(c/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),D<1){const _=Kx(A,D);y=L=>{const V=Math.exp(-D*A*L);return n-V*((k+D*A*N)/_*Math.sin(_*L)+N*Math.cos(_*L))},x=L=>{const V=Math.exp(-D*A*L);return D*A*V*(Math.sin(_*L)*(k+D*A*N)/_+N*Math.cos(_*L))-V*(Math.cos(_*L)*(k+D*A*N)-_*N*Math.sin(_*L))}}else if(D===1)y=_=>n-Math.exp(-A*_)*(N+(k+A*N)*_);else{const _=A*Math.sqrt(D*D-1);y=L=>{const V=Math.exp(-D*A*L),P=Math.min(_*L,300);return n-V*((k+D*A*N)*Math.sinh(P)+_*N*Math.cosh(P))/_}}}return w(),{next:k=>{const N=y(k);if(b)l.done=k>=E;else{const D=x(k)*1e3,A=Math.abs(D)<=r,_=Math.abs(n-N)<=i;l.done=A&&_}return l.value=l.done?n:N,l},flipTarget:()=>{m=-m,[t,n]=[n,t],w()}}}Xx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const CL=e=>0,zm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wr=(e,t,n)=>-n*e+n*t+e;function Zx(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 _L({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=Zx(p,c,e+1/3),o=Zx(p,c,e),l=Zx(p,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}const NG=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},AG=[Ux,Gu,Df],NL=e=>AG.find(t=>t.test(e)),AL=(e,t)=>{let n=NL(e),r=NL(t),i=n.parse(e),o=r.parse(t);n===Df&&(i=_L(i),n=Gu),r===Df&&(o=_L(o),r=Gu);const l=Object.assign({},i);return c=>{for(const p in l)p!=="alpha"&&(l[p]=NG(i[p],o[p],c));return l.alpha=wr(i.alpha,o.alpha,c),n.transform(l)}},Jx=e=>typeof e=="number",OG=(e,t)=>n=>t(e(n)),F0=(...e)=>e.reduce(OG);function OL(e,t){return Jx(e)?n=>wr(e,t,n):uo.test(e)?AL(e,t):RL(e,t)}const DL=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,l)=>OL(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}},DG=(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]=OL(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function kL(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 RL=(e,t)=>{const n=Vl.createTransformer(t),r=kL(e),i=kL(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?F0(DL(r.parsed,i.parsed),n):l=>`${l>0?t:e}`},kG=(e,t)=>n=>wr(e,t,n);function RG(e){if(typeof e=="number")return kG;if(typeof e=="string")return uo.test(e)?AL:RL;if(Array.isArray(e))return DL;if(typeof e=="object")return DG}function MG(e,t,n){const r=[],i=n||RG(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=F0(p,c)}r.push(c)}return r}function LG([e,t],[n]){return r=>n(zm(e,t,r))}function IG(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=zm(e[o],e[o+1],i);return t[o](c)}}function ew(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;x0(o===t.length),x0(!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=MG(t,r,i),c=o===2?LG(e,l):IG(e,l);return n?p=>c(I0(e[0],e[o-1],p)):c}const P0=e=>t=>1-e(1-t),tw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FG=e=>t=>Math.pow(t,e),ML=e=>t=>t*t*((e+1)*t-e),PG=e=>{const t=ML(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},LL=1.525,jG=4/11,VG=8/11,UG=9/10,nw=e=>e,rw=FG(2),qG=P0(rw),IL=tw(rw),FL=e=>1-Math.sin(Math.acos(e)),iw=P0(FL),BG=tw(iw),ow=ML(LL),$G=P0(ow),zG=tw(ow),HG=PG(LL),GG=4356/361,YG=35442/1805,WG=16061/1805,j0=e=>{if(e===1||e===0)return e;const t=e*e;return e<jG?7.5625*t:e<VG?9.075*t-9.9*e+3.4:e<UG?GG*t-YG*e+WG:10.8*e*e-20.52*e+10.72},QG=P0(j0),KG=e=>e<.5?.5*(1-j0(1-e*2)):.5*j0(e*2-1)+.5;function XG(e,t){return e.map(()=>t||IL).splice(0,e.length-1)}function ZG(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function JG(e,t){return e.map(n=>n*t)}function V0({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=JG(r&&r.length===l.length?r:ZG(l),i);function p(){return ew(c,l,{ease:Array.isArray(n)?n:XG(l,n)})}let d=p();return{next:m=>(o.value=d(m),o.done=m>=i,o),flipTarget:()=>{l.reverse(),d=p()}}}function eY({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 PL={keyframes:V0,spring:Xx,decay:eY};function tY(e){if(Array.isArray(e.to))return V0;if(PL[e.type])return PL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?V0:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xx:V0}const jL=1/60*1e3,nY=typeof performance<"u"?()=>performance.now():()=>Date.now(),VL=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nY()),jL);function rY(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 iY=40;let aw=!0,Hm=!1,sw=!1;const ap={delta:0,timestamp:0},Gm=["read","update","preRender","render","postRender"],U0=Gm.reduce((e,t)=>(e[t]=rY(()=>Hm=!0),e),{}),ls=Gm.reduce((e,t)=>{const n=U0[t];return e[t]=(r,i=!1,o=!1)=>(Hm||aY(),n.schedule(r,i,o)),e},{}),sp=Gm.reduce((e,t)=>(e[t]=U0[t].cancel,e),{}),lw=Gm.reduce((e,t)=>(e[t]=()=>U0[t].process(ap),e),{}),oY=e=>U0[e].process(ap),UL=e=>{Hm=!1,ap.delta=aw?jL:Math.max(Math.min(e-ap.timestamp,iY),1),ap.timestamp=e,sw=!0,Gm.forEach(oY),sw=!1,Hm&&(aw=!1,VL(UL))},aY=()=>{Hm=!0,aw=!0,sw||VL(UL)},q0=()=>ap;function qL(e,t,n=0){return e-t-n}function sY(e,t,n=0,r=!0){return r?qL(t+-e,t,n):t-(e-t)+n}function lY(e,t,n,r){return r?e>=t+n:e<=-n}const uY=e=>{const t=({delta:n})=>e(n);return{start:()=>ls.update(t,!0),stop:()=>sp.update(t)}};function BL(e){var t,n,{from:r,autoplay:i=!0,driver:o=uY,elapsed:l=0,repeat:c=0,repeatType:p="loop",repeatDelay:d=0,onPlay:m,onStop:E,onComplete:b,onRepeat:y,onUpdate:x}=e,w=Gi(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=w,N,D=0,A=w.duration,_,L=!1,V=!0,P;const F=tY(w);!((n=(t=F).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(P=ew([0,100],[r,k],{clamp:!1}),r=0,k=100);const j=F(Object.assign(Object.assign({},w),{from:r,to:k}));function $(){D++,p==="reverse"?(V=D%2===0,l=sY(l,A,d,V)):(l=qL(l,A,d),p==="mirror"&&j.flipTarget()),L=!1,y&&y()}function X(){N.stop(),b&&b()}function J(K){if(V||(K=-K),l+=K,!L){const B=j.next(Math.max(0,l));_=B.value,P&&(_=P(_)),L=V?B.done:l<=0}x?.(_),L&&(D===0&&(A??(A=l)),D<c?lY(l,A,d,V)&&$():X())}function ee(){m?.(),N=o(J),N.start()}return i&&ee(),{stop:()=>{E?.(),N.stop()}}}function $L(e,t){return t?e*(1e3/t):0}function cY({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 x;function w(A){return n!==void 0&&A<n||r!==void 0&&A>r}function k(A){return n===void 0?r:r===void 0||Math.abs(n-A)<Math.abs(r-A)?n:r}function N(A){x?.stop(),x=BL(Object.assign(Object.assign({},A),{driver:m,onUpdate:_=>{var L;E?.(_),(L=A.onUpdate)===null||L===void 0||L.call(A,_)},onComplete:b,onStop:y}))}function D(A){N(Object.assign({type:"spring",stiffness:l,damping:c,restDelta:p},A))}if(w(e))D({from:e,velocity:t,to:k(e)});else{let A=i*t+e;typeof d<"u"&&(A=d(A));const _=k(A),L=_===n?-1:1;let V,P;const F=j=>{V=P,P=j,t=$L(j-V,q0().delta),(L===1&&j>_||L===-1&&j<_)&&D({from:j,to:_,velocity:t})};N({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:p,modifyTarget:d,onUpdate:w(A)?F:void 0})}return{stop:()=>x?.stop()}}const uw=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),zL=e=>uw(e)&&e.hasOwnProperty("z"),B0=(e,t)=>Math.abs(e-t);function HL(e,t){if(Jx(e)&&Jx(t))return B0(e,t);if(uw(e)&&uw(t)){const n=B0(e.x,t.x),r=B0(e.y,t.y),i=zL(e)&&zL(t)?B0(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const GL=(e,t)=>1-3*t+3*e,YL=(e,t)=>3*t-6*e,WL=e=>3*e,$0=(e,t,n)=>((GL(t,n)*e+YL(t,n))*e+WL(t))*e,QL=(e,t,n)=>3*GL(t,n)*e*e+2*YL(t,n)*e+WL(t),fY=1e-7,dY=10;function pY(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=$0(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>fY&&++c<dY);return l}const hY=8,mY=.001;function gY(e,t,n,r){for(let i=0;i<hY;++i){const o=QL(t,n,r);if(o===0)return t;const l=$0(t,n,r)-e;t-=l/o}return t}const z0=11,H0=1/(z0-1);function vY(e,t,n,r){if(e===t&&n===r)return nw;const i=new Float32Array(z0);for(let l=0;l<z0;++l)i[l]=$0(l*H0,e,n);function o(l){let c=0,p=1;const d=z0-1;for(;p!==d&&i[p]<=l;++p)c+=H0;--p;const m=(l-i[p])/(i[p+1]-i[p]),E=c+m*H0,b=QL(E,e,n);return b>=mY?gY(l,E,e,n):b===0?E:pY(l,c,c+H0,e,n)}return l=>l===0||l===1?l:$0(o(l),t,r)}function yY(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,l=t||n||r||i,c=M.useRef(!1),p=M.useRef(null),d={passive:!(n||t||r||x)};function m(){var w;(w=p.current)===null||w===void 0||w.call(p),p.current=null}function E(){var w;return m(),c.current=!1,(w=o.animationState)===null||w===void 0||w.setActive(er.Tap,!1),!EL()}function b(w,k){E()&&(TL(o.getInstance(),w.target)?t?.(w,k):r?.(w,k))}function y(w,k){E()&&r?.(w,k)}function x(w,k){var N;m(),!c.current&&(c.current=!0,p.current=F0(op(window,"pointerup",b,d),op(window,"pointercancel",y,d)),(N=o.animationState)===null||N===void 0||N.setActive(er.Tap,!0),n?.(w,k))}L0(o,"pointerdown",l?x:void 0,d),xL(m)}var cw=new WeakMap,fw=new WeakMap,bY=function(e){var t;(t=cw.get(e.target))===null||t===void 0||t(e)},EY=function(e){e.forEach(bY)};function SY(e){var t=e.root,n=Gi(e,["root"]),r=t||document;fw.has(r)||fw.set(r,{});var i=fw.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(EY,Qe({root:t},n))),i[o]}function TY(e,t,n){var r=SY(t);return cw.set(e,n),r.observe(e),function(){cw.delete(e),r.unobserve(e)}}function xY(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,l=o===void 0?{}:o,c=M.useRef({hasEnteredView:!1,isInView:!1}),p=!!(n||r||i);l.once&&c.current.hasEnteredView&&(p=!1);var d=typeof IntersectionObserver>"u"?_Y:CY;d(p,c.current,t,l)}var wY={some:0,all:1};function CY(e,t,n,r){var i=r.root,o=r.margin,l=r.amount,c=l===void 0?"some":l,p=r.once;M.useEffect(function(){if(e){var d={root:i?.current,rootMargin:o,threshold:typeof c=="number"?c:wY[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 x=n.getProps(),w=y?x.onViewportEnter:x.onViewportLeave;w?.(E)}};return TY(n.getInstance(),d,m)}},[e,i,o,c])}function _Y(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;M.useEffect(function(){!e||!o||requestAnimationFrame(function(){var l;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c?.(null),(l=n.animationState)===null||l===void 0||l.setActive(er.InView,!0)})},[e])}var Yu=function(e){return function(t){return e(t),null}},NY={inView:Yu(xY),tap:Yu(yY),focus:Yu(aG),hover:Yu(gG)},AY=0,OY=function(){return AY++},DY=function(){return zu(OY)};function KL(){var e=M.useContext(_0);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=DY();M.useEffect(function(){return r(i)},[]);var o=function(){return n?.(i)};return!t&&n?[!1,o]:[!0]}function XL(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 G0=function(e){return e*1e3},kY={linear:nw,easeIn:rw,easeInOut:IL,easeOut:qG,circIn:FL,circInOut:BG,circOut:iw,backIn:ow,backInOut:zG,backOut:$G,anticipate:HG,bounceIn:QG,bounceInOut:KG,bounceOut:j0},ZL=function(e){if(Array.isArray(e)){x0(e.length===4);var t=yr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return vY(n,r,i,o)}else if(typeof e=="string")return kY[e];return e},RY=function(e){return Array.isArray(e)&&typeof e[0]!="number"},JL=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Vl.test(t)&&!t.startsWith("url("))},kf=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Y0=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},dw=function(){return{type:"keyframes",ease:"linear",duration:.3}},MY=function(e){return{type:"keyframes",duration:.8,values:e}},eI={x:kf,y:kf,z:kf,rotate:kf,rotateX:kf,rotateY:kf,rotateZ:kf,scaleX:Y0,scaleY:Y0,scale:Y0,opacity:dw,backgroundColor:dw,color:dw,default:Y0},LY=function(e,t){var n;return $m(t)?n=MY:n=eI[e]||eI.default,Qe({to:t},n(t))},IY=Qe(Qe({},JM),{color:uo,backgroundColor:uo,outlineColor:uo,fill:uo,stroke:uo,borderColor:uo,borderTopColor:uo,borderRightColor:uo,borderBottomColor:uo,borderLeftColor:uo,filter:qx,WebkitFilter:qx}),pw=function(e){return IY[e]};function hw(e,t){var n,r=pw(e);return r!==qx&&(r=Vl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function FY(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Gi(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function PY(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,l=Gi(e,["ease","times","yoyo","flip","loop"]),c=Qe({},l);return n&&(c.offset=n),l.duration&&(c.duration=G0(l.duration)),l.repeatDelay&&(c.repeatDelay=G0(l.repeatDelay)),t&&(c.ease=RY(t)?t.map(ZL):ZL(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 jY(e,t){var n,r,i=mw(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function VY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=rs([],yr(e.to),!1),e.to[0]=e.from),e}function UY(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),VY(t),FY(e)||(e=Qe(Qe({},e),LY(n,t.to))),Qe(Qe({},t),PY(e))}function qY(e,t,n,r,i){var o,l=mw(r,e),c=(o=l.from)!==null&&o!==void 0?o:t.get(),p=JL(e,n);c==="none"&&p&&typeof n=="string"?c=hw(e,n):tI(c)&&typeof n=="string"?c=nI(n):!Array.isArray(n)&&tI(n)&&typeof c=="string"&&(n=nI(c));var d=JL(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"?cY(Qe(Qe({},b),l)):BL(Qe(Qe({},UY(l,b,e)),{onUpdate:function(y){var x;b.onUpdate(y),(x=l.onUpdate)===null||x===void 0||x.call(l,y)},onComplete:function(){var y;b.onComplete(),(y=l.onComplete)===null||y===void 0||y.call(l)}}))}function E(){var b,y,x=uL(n);return t.set(x),i(),(b=l?.onUpdate)===null||b===void 0||b.call(l,x),(y=l?.onComplete)===null||y===void 0||y.call(l),{stop:function(){}}}return!d||!p||l.type===!1?E:m}function tI(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function nI(e){return typeof e=="number"?0:hw("",e)}function mw(e,t){return e[t]||e.default||e}function gw(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,l,c=qY(e,t,n,r,i),p=jY(r,e),d=function(){return l=c()};return p?o=window.setTimeout(d,G0(p)):d(),function(){clearTimeout(o),l?.stop()}})}var BY=function(e){return/^\-?\d*\.?\d+$/.test(e)},$Y=function(e){return/^0[^.\s]+$/.test(e)};function vw(e,t){e.indexOf(t)===-1&&e.push(t)}function yw(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function zY(e,t,n){var r=yr(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=yr(i.splice(t,1),1),p=c[0];i.splice(l,0,p)}return i}var Ym=(function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return vw(this.subscriptions,t),function(){return yw(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})(),HY=function(e){return!isNaN(parseFloat(e))},GY=(function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ym,this.velocityUpdateSubscribers=new Ym,this.renderSubscribers=new Ym,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=q0(),l=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=l,n.lastUpdated=c,ls.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 ls.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=HY(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?$L(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 Rf(e){return new GY(e)}var rI=function(e){return function(t){return t.test(e)}},YY={test:function(e){return e==="auto"},parse:function(e){return e}},iI=[Of,Lt,Gs,Hu,MH,RH,YY],Wm=function(e){return iI.find(rI(e))},WY=rs(rs([],yr(iI),!1),[uo,Vl],!1),QY=function(e){return WY.find(rI(e))};function KY(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rf(n))}function XY(e,t){var n=N0(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var l=Gi(r,["transitionEnd","transition"]);l=Qe(Qe({},l),o);for(var c in l){var p=uL(l[c]);KY(e,c,p)}}function ZY(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"&&(BY(b)||$Y(b))?b=parseFloat(b):!QY(b)&&Vl.test(E)&&(b=hw(m,E)),e.addValue(m,Rf(b)),(o=(l=n)[m])!==null&&o!==void 0||(l[m]=b),e.setBaseTarget(m,b))}}function JY(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function eW(e,t,n){var r,i,o={};for(var l in e)o[l]=(r=JY(l,t))!==null&&r!==void 0?r:(i=n.getValue(l))===null||i===void 0?void 0:i.get();return o}function tW(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(l){return bw(e,l,n)});r=Promise.all(i)}else if(typeof t=="string")r=bw(e,t,n);else{var o=typeof t=="function"?N0(e,t,n.custom):t;r=oI(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function bw(e,t,n){var r;n===void 0&&(n={});var i=N0(e,t,n.custom),o=(i||{}).transition,l=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(l=n.transitionOverride);var c=i?function(){return oI(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 x=l.delayChildren,w=x===void 0?0:x,k=l.staggerChildren,N=l.staggerDirection;return nW(e,t,w+y,k,N,n)}:function(){return Promise.resolve()},d=l.when;if(d){var m=yr(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 oI(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=Gi(d,["transition","transitionEnd"]);c&&(E=c);var x=[],w=p&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[p]);for(var k in y){var N=e.getValue(k),D=y[k];if(!(!N||D===void 0||w&&iW(w,k))){var A=Qe({delay:l},E);e.shouldReduceMotion&&Pm(k)&&(A=Qe(Qe({},A),{type:!1,delay:0}));var _=gw(k,N,D,A);x.push(_)}}return Promise.all(x).then(function(){b&&XY(e,b)})}function nW(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(rW).forEach(function(d,m){l.push(bw(d,t,Qe(Qe({},o),{delay:n+p(m)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(l)}function rW(e,t){return e.sortNodePosition(t)}function iW(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Ew=[er.Animate,er.InView,er.Focus,er.Hover,er.Tap,er.Drag,er.Exit],oW=rs([],yr(Ew),!1).reverse(),aW=Ew.length;function sW(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return tW(e,r,i)}))}}function lW(e){var t=sW(e),n=cW(),r={},i=!0,o=function(m,E){var b=N0(e,E);if(b){b.transition;var y=b.transitionEnd,x=Gi(b,["transition","transitionEnd"]);m=Qe(Qe(Qe({},m),x),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(),x=e.getVariantContext(!0)||{},w=[],k=new Set,N={},D=1/0,A=function(P){var F=oW[P],j=n[F],$=(b=y[F])!==null&&b!==void 0?b:x[F],X=ss($),J=F===E?j.isActive:null;J===!1&&(D=P);var ee=$===x[F]&&$!==y[F]&&X;if(ee&&i&&e.manuallyAnimateOnMount&&(ee=!1),j.protectedKeys=Qe({},N),!j.isActive&&J===null||!$&&!j.prevProp||Gx($)||typeof $=="boolean")return"continue";var K=uW(j.prevProp,$),B=K||F===E&&j.isActive&&!ee&&X||P>D&&X,ne=Array.isArray($)?$:[$],re=ne.reduce(o,{});J===!1&&(re={});var se=j.prevResolvedValues,fe=se===void 0?{}:se,Z=Qe(Qe({},fe),re),ge=function(he){B=!0,k.delete(he),j.needsAnimating[he]=!0};for(var ae in Z){var pe=re[ae],ce=fe[ae];N.hasOwnProperty(ae)||(pe!==ce?$m(pe)&&$m(ce)?!XL(pe,ce)||K?ge(ae):j.protectedKeys[ae]=!0:pe!==void 0?ge(ae):k.add(ae):pe!==void 0&&k.has(ae)?ge(ae):j.protectedKeys[ae]=!0)}j.prevProp=$,j.prevResolvedValues=re,j.isActive&&(N=Qe(Qe({},N),re)),i&&e.blockInitialAnimation&&(B=!1),B&&!ee&&w.push.apply(w,rs([],yr(ne.map(function(he){return{animation:he,options:Qe({type:F},m)}})),!1))},_=0;_<aW;_++)A(_);if(r=Qe({},N),k.size){var L={};k.forEach(function(P){var F=e.getBaseTarget(P);F!==void 0&&(L[P]=F)}),w.push({animation:L})}var V=!!w.length;return i&&y.initial===!1&&!e.manuallyAnimateOnMount&&(V=!1),i=!1,V?t(w):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 x=p(b,m);for(var w in n)n[w].protectedKeys={};return x}return{isAnimated:l,animateChanges:p,setActive:d,setAnimateFunction:c,getState:function(){return n}}}function uW(e,t){return typeof t=="string"?t!==e:IM(t)?!XL(t,e):!1}function Mf(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cW(){var e;return e={},e[er.Animate]=Mf(!0),e[er.InView]=Mf(),e[er.Hover]=Mf(),e[er.Tap]=Mf(),e[er.Drag]=Mf(),e[er.Focus]=Mf(),e[er.Exit]=Mf(),e}var fW={animation:Yu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=lW(t)),Gx(n)&&M.useEffect(function(){return n.subscribe(t)},[n])}),exit:Yu(function(e){var t=e.custom,n=e.visualElement,r=yr(KL(),2),i=r[0],o=r[1],l=M.useContext(_0);M.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?.custom)!==null&&p!==void 0?p:t});!i&&d?.then(o)},[i])})},aI=(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=Tw(i.lastMoveEventInfo,i.history),y=i.startEvent!==null,x=HL(b.offset,{x:0,y:0})>=3;if(!(!y&&!x)){var w=b.point,k=q0().timestamp;i.history.push(Qe(Qe({},w),{timestamp:k}));var N=i.handlers,D=N.onStart,A=N.onMove;y||(D&&D(i.lastMoveEvent,b),i.startEvent=i.lastMoveEvent),A&&A(i.lastMoveEvent,b)}}},this.handlePointerMove=function(b,y){if(i.lastMoveEvent=b,i.lastMoveEventInfo=Sw(y,i.transformPagePoint),dL(b)&&b.buttons===0){i.handlePointerUp(b,y);return}ls.update(i.updatePoint,!0)},this.handlePointerUp=function(b,y){i.end();var x=i.handlers,w=x.onEnd,k=x.onSessionEnd,N=Tw(Sw(y,i.transformPagePoint),i.history);i.startEvent&&w&&w(b,N),k&&k(b,N)},!(pL(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=l;var c=Wx(t),p=Sw(c,this.transformPagePoint),d=p.point,m=q0().timestamp;this.history=[Qe(Qe({},d),{timestamp:m})];var E=n.onSessionStart;E&&E(t,Tw(p,this.history)),this.removeListeners=F0(op(window,"pointermove",this.handlePointerMove),op(window,"pointerup",this.handlePointerUp),op(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),sp.update(this.updatePoint)},e})();function Sw(e,t){return t?{point:t(e.point)}:e}function sI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tw(e,t){var n=e.point;return{point:n,delta:sI(n,lI(t)),offset:sI(n,dW(t)),velocity:pW(t,.1)}}function dW(e){return e[0]}function lI(e){return e[e.length-1]}function pW(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=lI(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>G0(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 uI(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),HL(e,t)<n}function cI(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=wr(t.min,t.max,e.origin),e.scale=Ul(n)/Ul(t),(uI(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=wr(n.min,n.max,e.origin)-e.originPoint,(uI(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qm(e,t,n,r){cI(e.x,t.x,n.x,r?.originX),cI(e.y,t.y,n.y,r?.originY)}function fI(e,t,n){e.min=n.min+t.min,e.max=e.min+Ul(t)}function hW(e,t,n){fI(e.x,t.x,n.x),fI(e.y,t.y,n.y)}function dI(e,t,n){e.min=t.min-n.min,e.max=e.min+Ul(t)}function Km(e,t,n){dI(e.x,t.x,n.x),dI(e.y,t.y,n.y)}function mW(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?wr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?wr(i,e,n.max):Math.min(e,i)),e}function pI(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 gW(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:pI(e.x,r,o),y:pI(e.y,n,i)}}function hI(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=yr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function vW(e,t){return{x:hI(e.x,t.x),y:hI(e.y,t.y)}}function yW(e,t){var n=.5,r=Ul(e),i=Ul(t);return i>r?n=zm(t.min,t.max-r,e.min):r>i&&(n=zm(e.min,e.max-i,t.min)),I0(0,1,n)}function bW(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 xw=.35;function EW(e){return e===void 0&&(e=xw),e===!1?e=0:e===!0&&(e=xw),{x:mI(e,"left","right"),y:mI(e,"top","bottom")}}function mI(e,t,n){return{min:gI(e,t),max:gI(e,n)}}function gI(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var vI=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Xm=function(){return{x:vI(),y:vI()}},yI=function(){return{min:0,max:0}},Yi=function(){return{x:yI(),y:yI()}};function Ys(e){return[e("x"),e("y")]}function bI(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 SW(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function TW(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 ww(e){return e===void 0||e===1}function EI(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ww(t)||!ww(n)||!ww(r)}function Wu(e){return EI(e)||SI(e.x)||SI(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function SI(e){return e&&e!=="0%"}function W0(e,t,n){var r=e-n,i=t*r;return n+i}function TI(e,t,n,r,i){return i!==void 0&&(e=W0(e,i,r)),W0(e,n,r)+t}function Cw(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=TI(e.min,t,n,r,i),e.max=TI(e.max,t,n,r,i)}function xI(e,t){var n=t.x,r=t.y;Cw(e.x,n.translate,n.scale,n.originPoint),Cw(e.y,r.translate,r.scale,r.originPoint)}function xW(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&&lp(e,{x:-c.scroll.x,y:-c.scroll.y}),p&&(t.x*=p.x.scale,t.y*=p.y.scale,xI(e,p)),r&&Wu(c.latestValues)&&lp(e,c.latestValues))}}function Qu(e,t){e.min=e.min+t,e.max=e.max+t}function wI(e,t,n){var r=yr(n,3),i=r[0],o=r[1],l=r[2],c=t[l]!==void 0?t[l]:.5,p=wr(e.min,e.max,c);Cw(e,t[i],t[o],p,t.scale)}var wW=["x","scaleX","originX"],CW=["y","scaleY","originY"];function lp(e,t){wI(e.x,t,wW),wI(e.y,t,CW)}function CI(e,t){return bI(TW(e.getBoundingClientRect(),t))}function _W(e,t,n){var r=CI(e,n),i=t.scroll;return i&&(Qu(r.x,i.x),Qu(r.y,i.y)),r}var NW=new WeakMap,AW=(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=Yi(),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(Wx(E,"page").point)},p=function(E,b){var y,x=r.getProps(),w=x.drag,k=x.dragPropagation,N=x.onDragStart;w&&!k&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=bL(w),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ys(function(D){var A,_,L=r.getAxisMotionValue(D).get()||0;if(Gs.test(L)){var V=(_=(A=r.visualElement.projection)===null||A===void 0?void 0:A.layout)===null||_===void 0?void 0:_.actual[D];if(V){var P=Ul(V);L=P*(parseFloat(L)/100)}}r.originPoint[D]=L}),N?.(E,b),(y=r.visualElement.animationState)===null||y===void 0||y.setActive(er.Drag,!0))},d=function(E,b){var y=r.getProps(),x=y.dragPropagation,w=y.dragDirectionLock,k=y.onDirectionLock,N=y.onDrag;if(!(!x&&!r.openGlobalLock)){var D=b.offset;if(w&&r.currentDirection===null){r.currentDirection=OW(D),r.currentDirection!==null&&k?.(r.currentDirection);return}r.updateAxis("x",b.point,D),r.updateAxis("y",b.point,D),r.visualElement.syncRender(),N?.(E,b)}},m=function(E,b){return r.stop(E,b)};this.panSession=new aI(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?.(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||!Q0(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=mW(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&&ip(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=gW(o.actual,r):this.constraints=!1,this.elastic=EW(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ys(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=bW(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!ip(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var l=_W(i,o.root,this.visualElement.getTransformPagePoint()),c=vW(o.layout.actual,l);if(r){var p=r(SW(c));this.hasMutatedConstraints=!!p,p&&(c=bI(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=Ys(function(b){var y;if(Q0(b,i,n.currentDirection)){var x=(y=m?.[b])!==null&&y!==void 0?y:{};p&&(x={min:0,max:0});var w=l?200:1e6,k=l?40:1e7,N=Qe(Qe({type:"inertia",velocity:o?t[b]:0,bounceStiffness:w,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10},c),x);return n.startAxisValueAnimation(b,N)}});return Promise.all(E).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return gw(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ys(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;Ys(function(r){var i=n.getProps().drag;if(Q0(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]-wr(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(!(!ip(o)||!l||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Ys(function(d){var m=t.getAxisMotionValue(d);if(m){var E=m.get();c[d]=yW({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(),Ys(function(d){if(Q0(d,i,null)){var m=t.getAxisMotionValue(d),E=t.constraints[d],b=E.min,y=E.max;m.set(wr(b,y,c[d]))}})}},e.prototype.addListeners=function(){var t=this,n;NW.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=op(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;ip(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=M0(window,"resize",function(){return t.scalePositionWithinConstraints()});return l.addEventListener("didUpdate",(function(d){var m=d.delta,E=d.hasLayoutChanged;t.isDragging&&E&&(Ys(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?xw:m,b=t.dragMomentum,y=b===void 0?!0:b;return Qe(Qe({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:E,dragMomentum:y})},e})();function Q0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function OW(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 DW(e){var t=e.dragControls,n=e.visualElement,r=zu(function(){return new AW(n)});M.useEffect(function(){return t&&t.subscribe(r)},[r,t]),M.useEffect(function(){return r.addListeners()},[r])}function kW(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,l=t||n||r||i,c=M.useRef(null),p=M.useContext(w0).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(E,b){c.current=null,r&&r(E,b)}};M.useEffect(function(){c.current!==null&&c.current.updateHandlers(d)});function m(E){c.current=new aI(E,d,{transformPagePoint:p})}L0(o,"pointerdown",l&&m),xL(function(){return c.current&&c.current.end()})}var RW={pan:Yu(kW),drag:Yu(DW)},K0=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function MW(){var e=K0.map(function(){return new Ym}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){K0.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"+K0[i]]=function(o){return r.add(o)},n["notify"+K0[i]]=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return r.notify.apply(r,rs([],yr(o),!1))}}),n}function LW(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,Rf(o));else if(l!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Rf((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 _I=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 x=b.parent,w=b.props,k=b.presenceId,N=b.blockInitialAnimation,D=b.visualState,A=b.shouldReduceMotion;y===void 0&&(y={});var _=!1,L=D.latestValues,V=D.renderState,P,F=MW(),j=new Map,$=new Map,X={},J=Qe({},L),ee;function K(){!P||!_||(B(),c(P,V,w.style,pe.projection))}function B(){r(pe,V,L,y,w)}function ne(){F.notifyUpdate(L)}function re(ce,he){var Se=he.onChange(function(Ge){L[ce]=Ge,w.onUpdate&&ls.update(ne,!1,!0)}),Ie=he.onRenderRequest(pe.scheduleRender);$.set(ce,function(){Se(),Ie()})}var se=E(w);for(var fe in se){var Z=se[fe];L[fe]!==void 0&&Hs(Z)&&Z.set(L[fe],!1)}var ge=A0(w),ae=PM(w),pe=Qe(Qe({treeType:n,current:null,depth:x?x.depth+1:0,parent:x,children:new Set,presenceId:k,shouldReduceMotion:A,variantChildren:ae?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!x?.isMounted(),blockInitialAnimation:N,isMounted:function(){return!!P},mount:function(ce){_=!0,P=pe.current=ce,pe.projection&&pe.projection.mount(ce),ae&&x&&!ge&&(ee=x?.addVariantChild(pe)),j.forEach(function(he,Se){return re(Se,he)}),x?.children.add(pe),pe.setProps(w)},unmount:function(){var ce;(ce=pe.projection)===null||ce===void 0||ce.unmount(),sp.update(ne),sp.render(K),$.forEach(function(he){return he()}),ee?.(),x?.children.delete(pe),F.clearAllListeners(),P=void 0,_=!1},addVariantChild:function(ce){var he,Se=pe.getClosestVariantNode();if(Se)return(he=Se.variantChildren)===null||he===void 0||he.add(ce),function(){return Se.variantChildren.delete(ce)}},sortNodePosition:function(ce){return!m||n!==ce.treeType?0:m(pe.getInstance(),ce.getInstance())},getClosestVariantNode:function(){return ae?pe:x?.getClosestVariantNode()},getLayoutId:function(){return w.layoutId},getInstance:function(){return P},getStaticValue:function(ce){return L[ce]},setStaticValue:function(ce,he){return L[ce]=he},getLatestValues:function(){return L},setVisibility:function(ce){pe.isVisible!==ce&&(pe.isVisible=ce,pe.scheduleRender())},makeTargetAnimatable:function(ce,he){return he===void 0&&(he=!0),o(pe,ce,w,he)},measureViewportBox:function(){return l(P,w)},addValue:function(ce,he){pe.hasValue(ce)&&pe.removeValue(ce),j.set(ce,he),L[ce]=he.get(),re(ce,he)},removeValue:function(ce){var he;j.delete(ce),(he=$.get(ce))===null||he===void 0||he(),$.delete(ce),delete L[ce],d(ce,V)},hasValue:function(ce){return j.has(ce)},getValue:function(ce,he){var Se=j.get(ce);return Se===void 0&&he!==void 0&&(Se=Rf(he),pe.addValue(ce,Se)),Se},forEachValue:function(ce){return j.forEach(ce)},readValue:function(ce){var he;return(he=L[ce])!==null&&he!==void 0?he:p(P,ce,y)},setBaseTarget:function(ce,he){J[ce]=he},getBaseTarget:function(ce){if(i){var he=i(w,ce);if(he!==void 0&&!Hs(he))return he}return J[ce]}},F),{build:function(){return B(),V},scheduleRender:function(){ls.render(K,!1,!0)},syncRender:K,setProps:function(ce){(ce.transformTemplate||w.transformTemplate)&&pe.scheduleRender(),w=ce,F.updatePropListeners(ce),X=LW(pe,E(w),X)},getProps:function(){return w},getVariant:function(ce){var he;return(he=w.variants)===null||he===void 0?void 0:he[ce]},getDefaultTransition:function(){return w.transition},getTransformPagePoint:function(){return w.transformPagePoint},getVariantContext:function(ce){if(ce===void 0&&(ce=!1),ce)return x?.getVariantContext();if(!ge){var he=x?.getVariantContext()||{};return w.initial!==void 0&&(he.initial=w.initial),he}for(var Se={},Ie=0;Ie<IW;Ie++){var Ge=NI[Ie],Ze=w[Ge];(ss(Ze)||Ze===!1)&&(Se[Ge]=Ze)}return Se}});return pe}},NI=rs(["initial"],yr(Ew),!1),IW=NI.length;function _w(e){return typeof e=="string"&&e.startsWith("var(--")}var AI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function FW(e){var t=AI.exec(e);if(!t)return[,];var n=yr(t,3),r=n[1],i=n[2];return[r,i]}function Nw(e,t,n){var r=yr(FW(e),2),i=r[0],o=r[1];if(i){var l=window.getComputedStyle(t).getPropertyValue(i);return l?l.trim():_w(o)?Nw(o,t):o}}function PW(e,t,n){var r,i=Gi(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Qe({},n)),e.forEachValue(function(d){var m=d.get();if(_w(m)){var E=Nw(m,o);E&&d.set(E)}});for(var l in i){var c=i[l];if(_w(c)){var p=Nw(c,o);p&&(i[l]=p,n&&((r=n[l])!==null&&r!==void 0||(n[l]=c)))}}return{target:i,transitionEnd:n}}var jW=new Set(["width","height","top","left","right","bottom","x","y"]),OI=function(e){return jW.has(e)},VW=function(e){return Object.keys(e).some(OI)},DI=function(e,t){e.set(t,!1),e.set(t)},kI=function(e){return e===Of||e===Lt},RI;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(RI||(RI={}));var MI=function(e,t){return parseFloat(e.split(", ")[t])},LI=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 MI(o[1],t);var l=i.match(/^matrix\((.+)\)$/);return l?MI(l[1],e):0}},UW=new Set(["x","y","z"]),qW=Fm.filter(function(e){return!UW.has(e)});function BW(e){var t=[];return qW.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 II={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:LI(4,13),y:LI(5,14)},$W=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]=II[d](r,o)}),t.syncRender();var p=t.measureViewportBox();return n.forEach(function(d){var m=t.getValue(d);DI(m,c[d]),e[d]=II[d](p,o)}),e},zW=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Qe({},t),r=Qe({},r);var i=Object.keys(t).filter(OI),o=[],l=!1,c=[];if(i.forEach(function(m){var E=e.getValue(m);if(e.hasValue(m)){var b=n[m],y=Wm(b),x=t[m],w;if($m(x)){var k=x.length,N=x[0]===null?1:0;b=x[N],y=Wm(b);for(var D=N;D<k;D++)w?x0(Wm(x[D])===w):w=Wm(x[D])}else w=Wm(x);if(y!==w)if(kI(y)&&kI(w)){var A=E.get();typeof A=="string"&&E.set(parseFloat(A)),typeof x=="string"?t[m]=parseFloat(x):Array.isArray(x)&&w===Lt&&(t[m]=x.map(parseFloat))}else y?.transform&&w?.transform&&(b===0||x===0)?b===0?E.set(w.transform(b)):t[m]=y.transform(x):(l||(o=BW(e),l=!0),c.push(m),r[m]=r[m]!==void 0?r[m]:t[m],DI(E,x))}}),c.length){var p=c.indexOf("height")>=0?window.pageYOffset:null,d=$W(t,e,c);return o.length&&o.forEach(function(m){var E=yr(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 HW(e,t,n,r){return VW(t)?zW(e,t,n,r):{target:t,transitionEnd:r}}var GW=function(e,t,n,r){var i=PW(e,t,r);return t=i.target,r=i.transitionEnd,HW(e,t,n,r)};function YW(e){return window.getComputedStyle(e)}var FI={treeType:"dom",readValueFromInstance:function(e,t){if(Pm(t)){var n=pw(t);return n&&n.default||0}else{var r=YW(e);return($M(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 CI(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=Gi(t,["transition","transitionEnd"]),p=eW(c,o||{},e);if(i&&(l&&(l=i(l)),c&&(c=i(c)),p&&(p=i(p))),r){ZY(e,c,p);var d=GW(e,c,p,l);l=d.transitionEnd,c=d.target}return Qe({transition:o,transitionEnd:l},c)},scrapeMotionValuesFromProps:Hx,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Bx(t,n,r,i.transformTemplate)},render:oL},WW=_I(FI),QW=_I(Qe(Qe({},FI),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Pm(t)?((n=pw(t))===null||n===void 0?void 0:n.default)||0:(t=aL.has(t)?t:iL(t),e.getAttribute(t))},scrapeMotionValuesFromProps:lL,build:function(e,t,n,r,i){zx(t,n,r,i.transformTemplate)},render:sL})),KW=function(e,t){return Ix(e)?QW(t,{enableHardwareAcceleration:!1}):WW(t,{enableHardwareAcceleration:!0})};function PI(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(Lt.test(e))e=parseFloat(e);else return e;var n=PI(e,t.target.x),r=PI(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},jI="_$css",XW={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),l=[];o&&(e=e.replace(AI,function(w){return l.push(w),jI}));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=wr(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 x=0;y=y.replace(jI,function(){var w=l[x];return x++,w})}return y}},ZW=(function(e){ok(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;TH(eQ),p&&(o?.group&&o.group.add(p),l?.register&&c&&l.register(p),p.root.didUpdate(),p.addEventListener("animationComplete",function(){n.safeToRemove()}),p.setOptions(Qe(Qe({},p.options),{onExitComplete:function(){return n.safeToRemove()}}))),Im.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()||ls.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?.group&&i.group.remove(l),o?.deregister&&o.deregister(l))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n?.()},t.prototype.render=function(){return null},t})(Ae.Component);function JW(e){var t=yr(KL(),2),n=t[0],r=t[1],i=M.useContext(VM);return Ae.createElement(ZW,Qe({},e,{layoutGroup:i,switchLayoutGroup:M.useContext(UM),isPresent:n,safeToRemove:r}))}var eQ={borderRadius:Qe(Qe({},Zm),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Zm,borderTopRightRadius:Zm,borderBottomLeftRadius:Zm,borderBottomRightRadius:Zm,boxShadow:XW},tQ={measureLayout:JW};function nQ(e,t,n){n===void 0&&(n={});var r=Hs(e)?e:Rf(e);return gw("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var VI=["TopLeft","TopRight","BottomLeft","BottomRight"],rQ=VI.length,UI=function(e){return typeof e=="string"?parseFloat(e):e},qI=function(e){return typeof e=="number"||Lt.test(e)};function iQ(e,t,n,r,i,o){var l,c,p,d;i?(e.opacity=wr(0,(l=n.opacity)!==null&&l!==void 0?l:1,oQ(r)),e.opacityExit=wr((c=t.opacity)!==null&&c!==void 0?c:1,0,aQ(r))):o&&(e.opacity=wr((p=t.opacity)!==null&&p!==void 0?p:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var m=0;m<rQ;m++){var E="border".concat(VI[m],"Radius"),b=BI(t,E),y=BI(n,E);if(!(b===void 0&&y===void 0)){b||(b=0),y||(y=0);var x=b===0||y===0||qI(b)===qI(y);x?(e[E]=Math.max(wr(UI(b),UI(y),r),0),(Gs.test(y)||Gs.test(b))&&(e[E]+="%")):e[E]=y}}(t.rotate||n.rotate)&&(e.rotate=wr(t.rotate||0,n.rotate||0,r))}function BI(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var oQ=$I(0,.5,iw),aQ=$I(.5,.95,nw);function $I(e,t,n){return function(r){return r<e?0:r>t?1:n(zm(e,t,r))}}function zI(e,t){e.min=t.min,e.max=t.max}function us(e,t){zI(e.x,t.x),zI(e.y,t.y)}function HI(e,t,n,r,i){return e-=t,e=W0(e,1/n,r),i!==void 0&&(e=W0(e,1/i,r)),e}function sQ(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=wr(l.min,l.max,t/100);t=c-l.min}if(typeof t=="number"){var p=wr(o.min,o.max,r);e===o&&(p-=t),e.min=HI(e.min,t,n,p,i),e.max=HI(e.max,t,n,p,i)}}function GI(e,t,n,r,i){var o=yr(n,3),l=o[0],c=o[1],p=o[2];sQ(e,t[l],t[c],t[p],t.scale,r,i)}var lQ=["x","scaleX","originX"],uQ=["y","scaleY","originY"];function YI(e,t,n,r){GI(e.x,t,lQ,n?.x,r?.x),GI(e.y,t,uQ,n?.y,r?.y)}function WI(e){return e.translate===0&&e.scale===1}function QI(e){return WI(e.x)&&WI(e.y)}function KI(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 cQ=(function(){function e(){this.members=[]}return e.prototype.add=function(t){vw(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(yw(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})(),fQ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function XI(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===fQ?"none":o}var dQ=function(e,t){return e.depth-t.depth},pQ=(function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){vw(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){yw(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(dQ),this.isDirty=!1,this.children.forEach(t)},e})(),ZI=1e3;function JI(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?.()),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(bQ),m.nodes.forEach(EQ)},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?rs(rs([],yr(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 pQ)}return l.prototype.addEventListener=function(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Ym),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?.notify.apply(m,rs([],yr(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,x=E.visualElement;if(x&&!x.getInstance()&&x.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 w,k=function(){return d.root.updateBlockedByResize=!1};t(c,function(){d.root.updateBlockedByResize=!0,clearTimeout(w),w=window.setTimeout(k,250),Im.hasAnimatedSinceResize&&(Im.hasAnimatedSinceResize=!1,d.nodes.forEach(yQ))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&x&&(b||y)&&this.addEventListener("didUpdate",function(N){var D,A,_,L,V,P=N.delta,F=N.hasLayoutChanged,j=N.hasRelativeTargetChanged,$=N.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var X=(A=(D=d.options.transition)!==null&&D!==void 0?D:x.getDefaultTransition())!==null&&A!==void 0?A:CQ,J=x.getProps(),ee=J.onLayoutAnimationStart,K=J.onLayoutAnimationComplete,B=!d.targetLayout||!KI(d.targetLayout,$)||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 re=Qe(Qe({},mw(X,"layout")),{onPlay:ee,onComplete:K});x.shouldReduceMotion&&(re.delay=0,re.type=!1),d.startAnimation(re)}else!F&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((V=(L=d.options).onExitComplete)===null||V===void 0||V.call(L));d.targetLayout=$})}},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,sp.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(SQ))},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,x=y.layoutId,w=y.layout;if(!(x===void 0&&!w)){var k=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;this.prevTransformTemplateValue=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(e3);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(_Q),this.potentialNodes.clear()),this.nodes.forEach(vQ),this.nodes.forEach(hQ),this.nodes.forEach(mQ),this.clearAllSnapshots(),lw.update(),lw.preRender(),lw.render())},l.prototype.clearAllSnapshots=function(){this.nodes.forEach(gQ),this.sharedNodes.forEach(TQ)},l.prototype.scheduleUpdateProjection=function(){ls.preRender(this.updateProjection,!1,!0)},l.prototype.scheduleCheckAfterUnmount=function(){var c=this;ls.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));i3(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();i3(m);var E=this.layout;this.layout={measured:m,actual:this.removeElementScroll(m)},this.layoutCorrected=Yi(),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?.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&&!QI(this.projectionDelta),m=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,E=m?.(this.latestValues,""),b=E!==this.prevTransformTemplateValue;p&&(d||Wu(this.latestValues)||b)&&(o(this.instance,E),this.shouldResetTransform=!1,this.scheduleRender())}},l.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Yi();var p=c.measureViewportBox(),d=this.root.scroll;return d&&(Qu(p.x,d.x),Qu(p.y,d.y)),p},l.prototype.removeElementScroll=function(c){var p=Yi();us(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){us(p,c);var x=this.root.scroll;x&&(Qu(p.x,-x.x),Qu(p.y,-x.y))}Qu(p.x,E.x),Qu(p.y,E.y)}}return p},l.prototype.applyTransform=function(c,p){p===void 0&&(p=!1);var d=Yi();us(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&&lp(d,{x:-E.scroll.x,y:-E.scroll.y}),Wu(E.latestValues)&&lp(d,E.latestValues)}return Wu(this.latestValues)&&lp(d,this.latestValues),d},l.prototype.removeTransform=function(c){var p,d=Yi();us(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];if(E.instance&&Wu(E.latestValues)){EI(E.latestValues)&&E.updateSnapshot();var b=Yi(),y=E.measure();us(b,y),YI(d,E.latestValues,(p=E.snapshot)===null||p===void 0?void 0:p.layout,b)}}return Wu(this.latestValues)&&YI(d,this.latestValues),d},l.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},l.prototype.setOptions=function(c){var p;this.options=Qe(Qe(Qe({},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=Yi(),this.relativeTargetOrigin=Yi(),Km(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),us(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yi(),this.targetWithTransforms=Yi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?hW(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):us(this.target,this.layout.actual),xI(this.target,this.targetDelta)):us(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=Yi(),this.relativeTargetOrigin=Yi(),Km(this.relativeTargetOrigin,this.target,this.relativeParent.target),us(this.relativeTarget,this.relativeTargetOrigin)))))},l.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Wu(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();us(this.layoutCorrected,this.layout.actual),xW(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==E);var b=E.target;if(b){this.projectionDelta||(this.projectionDelta=Xm(),this.projectionDeltaWithTransform=Xm());var y=this.treeScale.x,x=this.treeScale.y,w=this.projectionTransform;Qm(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=XI(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==y||this.treeScale.y!==x)&&(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?.latestValues||{},y=Qe({},this.latestValues),x=Xm();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;var w=Yi(),k=E?.isShared,N=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,D=!!(k&&!N&&this.options.crossfade===!0&&!this.path.some(wQ));this.animationProgress=0,this.mixTargetDelta=function(A){var _,L=A/1e3;t3(x.x,c.x,L),t3(x.y,c.y,L),d.setTargetDelta(x),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((_=d.relativeParent)===null||_===void 0)&&_.layout)&&(Km(w,d.layout.actual,d.relativeParent.layout.actual),xQ(d.relativeTarget,d.relativeTargetOrigin,w,L)),k&&(d.animationValues=y,iQ(y,b,d.latestValues,L,D,N)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=L},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&&(sp.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ls.update(function(){Im.hasAnimatedSinceResize=!0,p.currentAnimation=nQ(0,ZI,Qe(Qe({},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,ZI),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||(us(p,d),lp(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 cQ);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<Fx.length;m++){var E=Fx[m],b="rotate"+E;c.getStaticValue(b)&&(p=!0,d[b]=c.getStaticValue(b),c.setStaticValue(b,0))}if(p){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 x={};if(!this.instance||this.isSVG)return x;if(this.isVisible)x.visibility="";else return{visibility:"hidden"};var w=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,x.opacity="",x.pointerEvents=R0(c.pointerEvents)||"",x.transform=w?w(this.latestValues,""):"none",x;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=R0(c.pointerEvents)||""),this.hasProjected&&!Wu(this.latestValues)&&(N.transform=w?w({},""):"none",this.hasProjected=!1),N}var D=k.animationValues||k.latestValues;this.applyTransformsToTarget(),x.transform=XI(this.projectionDeltaWithTransform,this.treeScale,D),w&&(x.transform=w(D,x.transform));var A=this.projectionDelta,_=A.x,L=A.y;x.transformOrigin="".concat(_.origin*100,"% ").concat(L.origin*100,"% 0"),k.animationValues?x.opacity=k===this?(E=(m=D.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&E!==void 0?E:1:this.preserveOpacity?this.latestValues.opacity:D.opacityExit:x.opacity=k===this?(b=D.opacity)!==null&&b!==void 0?b:"":(y=D.opacityExit)!==null&&y!==void 0?y:0;for(var V in O0)if(D[V]!==void 0){var P=O0[V],F=P.correct,j=P.applyTo,$=F(D[V],k);if(j)for(var X=j.length,J=0;J<X;J++)x[j[J]]=$;else x[V]=$}return this.options.layoutId&&(x.pointerEvents=k===this?R0(c.pointerEvents)||"":"none"),x},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(e3),this.root.sharedNodes.clear()},l})()}function hQ(e){e.updateLayout()}function mQ(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"?Ys(function(D){var A=o.isShared?o.measured[D]:o.layout[D],_=Ul(A);A.min=c[D].min,A.max=A.min+_}):e.options.animationType==="position"&&Ys(function(D){var A=o.isShared?o.measured[D]:o.layout[D],_=Ul(c[D]);A.max=A.min+_});var d=Xm();Qm(d,c,o.layout);var m=Xm();o.isShared?Qm(m,e.applyTransform(p,!0),o.measured):Qm(m,c,o.layout);var E=!QI(d),b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var y=e.relativeParent,x=y.snapshot,w=y.layout;if(x&&w){var k=Yi();Km(k,o.layout,x.layout);var N=Yi();Km(N,c,w.actual),KI(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 gQ(e){e.clearSnapshot()}function e3(e){e.clearMeasurements()}function vQ(e){var t=e.options.visualElement;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function yQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function bQ(e){e.resolveTargetDelta()}function EQ(e){e.calcProjection()}function SQ(e){e.resetRotation()}function TQ(e){e.removeLeadSnapshot()}function t3(e,t,n){e.translate=wr(t.translate,0,n),e.scale=wr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n3(e,t,n,r){e.min=wr(t.min,n.min,r),e.max=wr(t.max,n.max,r)}function xQ(e,t,n,r){n3(e.x,t.x,n.x,r),n3(e.y,t.y,n.y,r)}function wQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var CQ={duration:.45,ease:[.4,0,.1,1]};function _Q(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 r3(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function i3(e){r3(e.x),r3(e.y)}var NQ=JI({attachResizeListener:function(e,t){return M0(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Aw={current:void 0},AQ=JI({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Aw.current){var e=new NQ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Aw.current=e}return Aw.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),OQ=Qe(Qe(Qe(Qe({},fW),NY),RW),tQ),o3=EH(function(e,t){return oG(e,t,OQ,KW,AQ)}),a3=M.createContext(null);function DQ(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=wr(p.min,p.max,.5);return o===1&&c.layout.max+n>d||o===-1&&c.layout.min+n<d?zY(e,i,i+o):e}function kQ(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=Gi(e,["children","as","axis","onReorder","values"]),m=zu(function(){return o3(i)}),E=[],b=M.useRef(!1),y={axis:l,registerItem:function(x,w){w&&E.findIndex(function(k){return x===k.value})===-1&&(E.push({value:x,layout:w[l]}),E.sort(LQ))},updateOrder:function(x,w,k){if(!b.current){var N=DQ(E,x,w,k);E!==N&&(b.current=!0,c(N.map(MQ).filter(function(D){return p.indexOf(D)!==-1})))}}};return M.useEffect(function(){b.current=!1}),M.createElement(m,Qe({},d,{ref:t}),M.createElement(a3.Provider,{value:y},n))}var RQ=M.forwardRef(kQ);function MQ(e){return e.value}function LQ(e,t){return e.layout.min-t.layout.min}function s3(e){var t=zu(function(){return Rf(e)}),n=M.useContext(w0).isStatic;if(n){var r=yr(M.useState(e),2),i=r[1];M.useEffect(function(){return t.onChange(i)},[])}return t}var IQ=function(e){return typeof e=="object"&&e.mix},FQ=function(e){return IQ(e)?e.mix:void 0};function PQ(){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=ew(o,l,Qe({mixer:FQ(l[0])},c));return n?p(i):p}function jQ(e,t){Mx(function(){var n=e.map(function(r){return r.onChange(t)});return function(){return n.forEach(function(r){return r()})}})}function VQ(e,t){var n=s3(t()),r=function(){return n.set(t())};return r(),jQ(e,function(){return ls.update(r,!1,!0)}),n}function UQ(e,t,n,r){var i=typeof t=="function"?t:PQ(t,n,r);return Array.isArray(e)?l3(e,i):l3([e],function(o){var l=yr(o,1),c=l[0];return i(c)})}function l3(e,t){var n=zu(function(){return[]});return VQ(e,function(){n.length=0;for(var r=e.length,i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function u3(e,t){return t===void 0&&(t=0),Hs(e)?e:s3(t)}function qQ(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=Gi(e,["children","style","value","as","onDrag","layout"]),E=zu(function(){return o3(l)}),b=M.useContext(a3),y={x:u3(r?.x),y:u3(r?.y)},x=UQ([y.x,y.y],function(_){var L=yr(_,2),V=L[0],P=L[1];return V||P?1:"unset"}),w=M.useRef(null),k=b,N=k.axis,D=k.registerItem,A=k.updateOrder;return M.useEffect(function(){D(i,w.current)},[b]),M.createElement(E,Qe({drag:N},m,{dragSnapToOrigin:!0,style:Qe(Qe({},r),{x:y.x,y:y.y,zIndex:x}),layout:d,onDrag:function(_,L){var V=L.velocity;V[N]&&A(i,y[N].get(),V[N]),c?.(_,L)},onLayoutMeasure:function(_){w.current=_},ref:t}),n)}var BQ=M.forwardRef(qQ),c3={Group:RQ,Item:BQ},[X0,Rje]=Tf("Tooltip",[h0]),Z0=h0(),f3="TooltipProvider",$Q=700,Ow="tooltip.open",[zQ,Dw]=X0(f3),d3=e=>{const{__scopeTooltip:t,delayDuration:n=$Q,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,l=M.useRef(!0),c=M.useRef(!1),p=M.useRef(0);return M.useEffect(()=>{const d=p.current;return()=>window.clearTimeout(d)},[]),Y.jsx(zQ,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(p.current),l.current=!1},[]),onClose:M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:M.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:o})};d3.displayName=f3;var Jm="Tooltip",[HQ,eg]=X0(Jm),p3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,p=Dw(Jm,e.__scopeTooltip),d=Z0(t),[m,E]=M.useState(null),b=xf(),y=M.useRef(0),x=l??p.disableHoverableContent,w=c??p.delayDuration,k=M.useRef(!1),[N,D]=Hy({prop:r,defaultProp:i??!1,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Ow))):p.onClose(),o?.(P)},caller:Jm}),A=M.useMemo(()=>N?k.current?"delayed-open":"instant-open":"closed",[N]),_=M.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,D(!0)},[D]),L=M.useCallback(()=>{window.clearTimeout(y.current),y.current=0,D(!1)},[D]),V=M.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,D(!0),y.current=0},w)},[w,D]);return M.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),Y.jsx(g2,{...d,children:Y.jsx(HQ,{scope:t,contentId:b,open:N,stateAttribute:A,trigger:m,onTriggerChange:E,onTriggerEnter:M.useCallback(()=>{p.isOpenDelayedRef.current?V():_()},[p.isOpenDelayedRef,V,_]),onTriggerLeave:M.useCallback(()=>{x?L():(window.clearTimeout(y.current),y.current=0)},[L,x]),onOpen:_,onClose:L,disableHoverableContent:x,children:n})})};p3.displayName=Jm;var kw="TooltipTrigger",h3=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=eg(kw,n),o=Dw(kw,n),l=Z0(n),c=M.useRef(null),p=li(t,c,i.onTriggerChange),d=M.useRef(!1),m=M.useRef(!1),E=M.useCallback(()=>d.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),Y.jsx(v2,{asChild:!0,...l,children:Y.jsx(Rr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:p,onPointerMove:$t(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:$t(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:$t(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:$t(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:$t(e.onBlur,i.onClose),onClick:$t(e.onClick,i.onClose)})})});h3.displayName=kw;var Rw="TooltipPortal",[GQ,YQ]=X0(Rw,{forceMount:void 0}),m3=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=eg(Rw,t);return Y.jsx(GQ,{scope:t,forceMount:n,children:Y.jsx(js,{present:n||o.open,children:Y.jsx(Wy,{asChild:!0,container:i,children:r})})})};m3.displayName=Rw;var up="TooltipContent",g3=M.forwardRef((e,t)=>{const n=YQ(up,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=eg(up,e.__scopeTooltip);return Y.jsx(js,{present:r||l.open,children:l.disableHoverableContent?Y.jsx(v3,{side:i,...o,ref:t}):Y.jsx(WQ,{side:i,...o,ref:t})})}),WQ=M.forwardRef((e,t)=>{const n=eg(up,e.__scopeTooltip),r=Dw(up,e.__scopeTooltip),i=M.useRef(null),o=li(t,i),[l,c]=M.useState(null),{trigger:p,onClose:d}=n,m=i.current,{onPointerInTransitChange:E}=r,b=M.useCallback(()=>{c(null),E(!1)},[E]),y=M.useCallback((x,w)=>{const k=x.currentTarget,N={x:x.clientX,y:x.clientY},D=JQ(N,k.getBoundingClientRect()),A=eK(N,D),_=tK(w.getBoundingClientRect()),L=rK([...A,..._]);c(L),E(!0)},[E]);return M.useEffect(()=>()=>b(),[b]),M.useEffect(()=>{if(p&&m){const x=k=>y(k,m),w=k=>y(k,p);return p.addEventListener("pointerleave",x),m.addEventListener("pointerleave",w),()=>{p.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",w)}}},[p,m,y,b]),M.useEffect(()=>{if(l){const x=w=>{const k=w.target,N={x:w.clientX,y:w.clientY},D=p?.contains(k)||m?.contains(k),A=!nK(N,l);D?b():A&&(b(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[p,m,l,d,b]),Y.jsx(v3,{...e,ref:o})}),[QQ,KQ]=X0(Jm,{isInside:!1}),XQ=E7("TooltipContent"),v3=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,p=eg(up,n),d=Z0(n),{onClose:m}=p;return M.useEffect(()=>(document.addEventListener(Ow,m),()=>document.removeEventListener(Ow,m)),[m]),M.useEffect(()=>{if(p.trigger){const E=b=>{b.target?.contains(p.trigger)&&m()};return window.addEventListener("scroll",E,{capture:!0}),()=>window.removeEventListener("scroll",E,{capture:!0})}},[p.trigger,m]),Y.jsx(Yy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:E=>E.preventDefault(),onDismiss:m,children:Y.jsxs(y2,{"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(XQ,{children:r}),Y.jsx(QQ,{scope:n,isInside:!0,children:Y.jsx(Fk,{id:p.contentId,role:"tooltip",children:i||r})})]})})});g3.displayName=up;var y3="TooltipArrow",ZQ=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Z0(n);return KQ(y3,n).isInside?null:Y.jsx(b2,{...i,...r,ref:t})});ZQ.displayName=y3;function JQ(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 eK(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 tK(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 nK(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],p=t[l],d=c.x,m=c.y,E=p.x,b=p.y;m>r!=b>r&&n<(E-d)*(r-m)/(b-m)+d&&(i=!i)}return i}function rK(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),iK(t)}function iK(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 oK=d3,aK=p3,sK=h3,lK=m3,uK=g3;function cp(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((x,w)=>r[w]!==x)))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 x=Math.round((Date.now()-m)*100)/100,w=Math.round((Date.now()-y)*100)/100,k=w/16,N=(D,A)=>{for(D=String(D);D.length<A;)D=" "+D;return D};console.info(`%c⏱ ${N(w,5)} /${N(x,5)} ms`,`
326
326
  font-size: .6rem;
327
327
  font-weight: bold;
328
- color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,n?.key)}return(d=n?.onChange)==null||d.call(n,i),i}return o.updateDeps=l=>{r=l},o}function b3(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const cK=(e,t)=>Math.abs(e-t)<1.01,fK=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},E3=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},dK=e=>e,pK=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},hK=(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(E3(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(l=>{const c=()=>{const p=l[0];if(p?.borderBoxSize){const d=p.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(E3(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},S3={passive:!0},T3=typeof window>"u"?!0:"onscrollend"in window,mK=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&T3?()=>{}:fK(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,S3);const d=e.options.useScrollendEvent&&T3;return d&&n.addEventListener("scrollend",p,S3),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",p)}},gK=(e,t,n)=>{if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},vK=(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 yK{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const 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:dK,rangeExtractor:pK,onChange:()=>{},measureElement:gK,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=cp(()=>(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=cp(()=>[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=cp(()=>[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,x=c.get(E),w=typeof x=="number"?x:this.options.estimateSize(m),k=y+w,N=b?b.lane:m%this.options.lanes;d[m]={index:m,start:y,size:w,end:k,key:E,lane:N}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cp(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?bK({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cp(()=>{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=cp(()=>[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 b3(r[x3(0,r.length-1,i=>b3(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.getTotalSize()+this.options.scrollMargin-o;return Math.max(Math.min(c,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.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{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}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let o=0;const l=10,c=d=>{if(!this.targetWindow)return;const m=this.getOffsetForIndex(n,d);if(!m){console.warn("Failed to get offset for index:",n);return}const[E,b]=m;this._scrollToOffset(E,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const y=this.getScrollOffset(),x=this.getOffsetForIndex(n,b);if(!x){console.warn("Failed to get offset for index:",n);return}cK(x[0],y)||p(b)})},p=d=>{this.targetWindow&&(o++,o<l?this.targetWindow.requestAnimationFrame(()=>c(d)):console.warn(`Failed to scroll to index ${n} after ${l} attempts.`))};c(r)},this.scrollBy=(n,{behavior:r}={})=>{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 x3=(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 bK({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=p=>e[p].start;if(e.length<=r)return{startIndex:0,endIndex:i};let l=x3(0,i,o,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 w3=typeof document<"u"?M.useLayoutEffect:M.useEffect;function EK(e){const t=M.useReducer(()=>({}),{})[1],n={...e,onChange:(i,o)=>{var l;o?Gy.flushSync(t):t(),(l=e.onChange)==null||l.call(e,i,o)}},[r]=M.useState(()=>new yK(n));return r.setOptions(n),w3(()=>r._didMount(),[]),w3(()=>r._willUpdate()),r}function SK(e){return EK({observeElementRect:hK,observeElementOffset:mK,scrollToFn:vK,...e})}var TK=Object.defineProperty,xK=(e,t,n)=>t in e?TK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mw=(e,t,n)=>(xK(e,typeof t!="symbol"?t+"":t,n),n);let wK=class{constructor(){Mw(this,"current",this.detect()),Mw(this,"handoffState","pending"),Mw(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"}},Lf=new wK,co=(e,t)=>{Lf.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function tg(e){let t=M.useRef(e);return co(()=>{t.current=e},[e]),t}function Lw(e,t){let[n,r]=M.useState(e),i=tg(e);return co(()=>r(i.current),[i,r,...t]),n}let Fn=function(e){let t=tg(e);return Ae.useCallback((...n)=>t.current(...n),[t])};function CK(e,t,n){let[r,i]=M.useState(n),o=e!==void 0,l=M.useRef(o),c=M.useRef(!1),p=M.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,Fn(d=>(o||i(d),t?.(d)))]}function _K(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function J0(){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 _K(()=>{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=J0();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 Iw(){let[e]=M.useState(J0);return M.useEffect(()=>()=>e.dispose(),[e]),e}function NK(){let e=typeof document>"u";return(t=>t.useSyncExternalStore)(tE)(()=>()=>{},()=>!1,()=>!e)}function AK(){let e=NK(),[t,n]=M.useState(Lf.isHandoffComplete);return t&&Lf.isHandoffComplete===!1&&n(!1),M.useEffect(()=>{t!==!0&&n(!0)},[t]),M.useEffect(()=>Lf.handoff(),[]),e?!1:t}var C3;let ng=(C3=Ae.useId)!=null?C3:function(){let e=AK(),[t,n]=Ae.useState(e?()=>Lf.nextId():null);return co(()=>{t===null&&n(Lf.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 Fw(e){return Lf.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let _3=["[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 OK=(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))(OK||{}),DK=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(DK||{}),kK=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(kK||{}),N3=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(N3||{});function RK(e,t=0){var n;return e===((n=Fw(e))==null?void 0:n.body)?!1:ql(t,{0(){return e.matches(_3)},1(){let r=e;for(;r!==null;){if(r.matches(_3))return!0;r=r.parentElement}return!1}})}var MK=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(MK||{});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 LK(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 IK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function FK(){return/Android/gi.test(window.navigator.userAgent)}function A3(){return IK()||FK()}function eb(e,t,n){let r=tg(t);M.useEffect(()=>{function i(o){r.current(o)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function PK(e,t,n){let r=tg(t);M.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function jK(e,t,n=!0){let r=M.useRef(!1);M.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!RK(p,N3.Loose)&&p.tabIndex!==-1&&l.preventDefault(),t(l,p)}let o=M.useRef(null);eb("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),eb("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),eb("click",l=>{A3()||o.current&&(i(l,()=>o.current),o.current=null)},!0),eb("touchend",l=>i(l,()=>l.target instanceof HTMLElement?l.target:null),!0),PK("blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function VK(...e){return M.useMemo(()=>Fw(...e),[...e])}function O3(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 UK(e,t){let[n,r]=M.useState(()=>O3(e));return co(()=>{r(O3(e))},[e.type,e.as]),co(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let qK=Symbol();function rg(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let n=Fn(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[qK])?void 0:n}function D3(e){return[e.screenX,e.screenY]}function BK(){let e=M.useRef([-1,-1]);return{wasMoved(t){let n=D3(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=D3(t)}}}function $K({container:e,accept:t,walk:n,enabled:r=!0}){let i=M.useRef(t),o=M.useRef(n);M.useEffect(()=>{i.current=t,o.current=n},[t,n]),co(()=>{if(!e||!r)return;let l=Fw(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 k3(e,t){let n=M.useRef([]),r=Fn(e);M.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 R3(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Pw=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pw||{}),zK=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zK||{});function If({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:l,mergeRefs:c}){c=c??HK;let p=M3(t,e);if(o)return tb(p,n,r,l,c);let d=i??0;if(d&2){let{static:m=!1,...E}=p;if(m)return tb(E,n,r,l,c)}if(d&1){let{unmount:m=!0,...E}=p;return ql(m?0:1,{0(){return null},1(){return tb({...E,hidden:!0,style:{display:"none"}},n,r,l,c)}})}return tb(p,n,r,l,c)}function tb(e,t={},n,r,i){let{as:o=n,children:l,refName:c="ref",...p}=Vw(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[x,w]of Object.entries(t))typeof w=="boolean"&&(b=!0),w===!0&&y.push(x);b&&(E["data-headlessui-state"]=y.join(" "))}if(o===M.Fragment&&Object.keys(jw(p)).length>0){if(!M.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(w=>` - ${w}`).join(`
328
+ color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,n?.key)}return(d=n?.onChange)==null||d.call(n,i),i}return o.updateDeps=l=>{r=l},o}function b3(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const cK=(e,t)=>Math.abs(e-t)<1.01,fK=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},E3=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},dK=e=>e,pK=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},hK=(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(E3(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(l=>{const c=()=>{const p=l[0];if(p?.borderBoxSize){const d=p.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(E3(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},S3={passive:!0},T3=typeof window>"u"?!0:"onscrollend"in window,mK=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&T3?()=>{}:fK(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,S3);const d=e.options.useScrollendEvent&&T3;return d&&n.addEventListener("scrollend",p,S3),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",p)}},gK=(e,t,n)=>{if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},vK=(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 yK{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const 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:dK,rangeExtractor:pK,onChange:()=>{},measureElement:gK,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=cp(()=>(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=cp(()=>[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=cp(()=>[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,x=c.get(E),w=typeof x=="number"?x:this.options.estimateSize(m),k=y+w,N=b?b.lane:m%this.options.lanes;d[m]={index:m,start:y,size:w,end:k,key:E,lane:N}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cp(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?bK({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cp(()=>{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=cp(()=>[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 b3(r[x3(0,r.length-1,i=>b3(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.getTotalSize()+this.options.scrollMargin-o;return Math.max(Math.min(c,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.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{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}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let o=0;const l=10,c=d=>{if(!this.targetWindow)return;const m=this.getOffsetForIndex(n,d);if(!m){console.warn("Failed to get offset for index:",n);return}const[E,b]=m;this._scrollToOffset(E,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const y=this.getScrollOffset(),x=this.getOffsetForIndex(n,b);if(!x){console.warn("Failed to get offset for index:",n);return}cK(x[0],y)||p(b)})},p=d=>{this.targetWindow&&(o++,o<l?this.targetWindow.requestAnimationFrame(()=>c(d)):console.warn(`Failed to scroll to index ${n} after ${l} attempts.`))};c(r)},this.scrollBy=(n,{behavior:r}={})=>{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 x3=(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 bK({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=p=>e[p].start;if(e.length<=r)return{startIndex:0,endIndex:i};let l=x3(0,i,o,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 w3=typeof document<"u"?M.useLayoutEffect:M.useEffect;function EK(e){const t=M.useReducer(()=>({}),{})[1],n={...e,onChange:(i,o)=>{var l;o?Gy.flushSync(t):t(),(l=e.onChange)==null||l.call(e,i,o)}},[r]=M.useState(()=>new yK(n));return r.setOptions(n),w3(()=>r._didMount(),[]),w3(()=>r._willUpdate()),r}function SK(e){return EK({observeElementRect:hK,observeElementOffset:mK,scrollToFn:vK,...e})}var TK=Object.defineProperty,xK=(e,t,n)=>t in e?TK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mw=(e,t,n)=>(xK(e,typeof t!="symbol"?t+"":t,n),n);let wK=class{constructor(){Mw(this,"current",this.detect()),Mw(this,"handoffState","pending"),Mw(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"}},Lf=new wK,co=(e,t)=>{Lf.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function tg(e){let t=M.useRef(e);return co(()=>{t.current=e},[e]),t}function Lw(e,t){let[n,r]=M.useState(e),i=tg(e);return co(()=>r(i.current),[i,r,...t]),n}let Fn=function(e){let t=tg(e);return Ae.useCallback((...n)=>t.current(...n),[t])};function CK(e,t,n){let[r,i]=M.useState(n),o=e!==void 0,l=M.useRef(o),c=M.useRef(!1),p=M.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,Fn(d=>(o||i(d),t?.(d)))]}function _K(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function J0(){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 _K(()=>{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=J0();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 Iw(){let[e]=M.useState(J0);return M.useEffect(()=>()=>e.dispose(),[e]),e}function NK(){let e=typeof document>"u";return(t=>t.useSyncExternalStore)(tE)(()=>()=>{},()=>!1,()=>!e)}function AK(){let e=NK(),[t,n]=M.useState(Lf.isHandoffComplete);return t&&Lf.isHandoffComplete===!1&&n(!1),M.useEffect(()=>{t!==!0&&n(!0)},[t]),M.useEffect(()=>Lf.handoff(),[]),e?!1:t}var C3;let ng=(C3=Ae.useId)!=null?C3:function(){let e=AK(),[t,n]=Ae.useState(e?()=>Lf.nextId():null);return co(()=>{t===null&&n(Lf.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 Fw(e){return Lf.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let _3=["[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 OK=(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))(OK||{}),DK=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(DK||{}),kK=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(kK||{}),N3=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(N3||{});function RK(e,t=0){var n;return e===((n=Fw(e))==null?void 0:n.body)?!1:ql(t,{0(){return e.matches(_3)},1(){let r=e;for(;r!==null;){if(r.matches(_3))return!0;r=r.parentElement}return!1}})}var MK=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(MK||{});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 LK(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 IK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function FK(){return/Android/gi.test(window.navigator.userAgent)}function A3(){return IK()||FK()}function eb(e,t,n){let r=tg(t);M.useEffect(()=>{function i(o){r.current(o)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function PK(e,t,n){let r=tg(t);M.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function jK(e,t,n=!0){let r=M.useRef(!1);M.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!RK(p,N3.Loose)&&p.tabIndex!==-1&&l.preventDefault(),t(l,p)}let o=M.useRef(null);eb("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),eb("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),eb("click",l=>{A3()||o.current&&(i(l,()=>o.current),o.current=null)},!0),eb("touchend",l=>i(l,()=>l.target instanceof HTMLElement?l.target:null),!0),PK("blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function VK(...e){return M.useMemo(()=>Fw(...e),[...e])}function O3(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 UK(e,t){let[n,r]=M.useState(()=>O3(e));return co(()=>{r(O3(e))},[e.type,e.as]),co(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let qK=Symbol();function rg(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let n=Fn(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[qK])?void 0:n}function D3(e){return[e.screenX,e.screenY]}function BK(){let e=M.useRef([-1,-1]);return{wasMoved(t){let n=D3(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=D3(t)}}}function $K({container:e,accept:t,walk:n,enabled:r=!0}){let i=M.useRef(t),o=M.useRef(n);M.useEffect(()=>{i.current=t,o.current=n},[t,n]),co(()=>{if(!e||!r)return;let l=Fw(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 k3(e,t){let n=M.useRef([]),r=Fn(e);M.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 R3(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Pw=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pw||{}),zK=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zK||{});function If({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:l,mergeRefs:c}){c=c??HK;let p=M3(t,e);if(o)return tb(p,n,r,l,c);let d=i??0;if(d&2){let{static:m=!1,...E}=p;if(m)return tb(E,n,r,l,c)}if(d&1){let{unmount:m=!0,...E}=p;return ql(m?0:1,{0(){return null},1(){return tb({...E,hidden:!0,style:{display:"none"}},n,r,l,c)}})}return tb(p,n,r,l,c)}function tb(e,t={},n,r,i){let{as:o=n,children:l,refName:c="ref",...p}=Vw(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[x,w]of Object.entries(t))typeof w=="boolean"&&(b=!0),w===!0&&y.push(x);b&&(E["data-headlessui-state"]=y.join(" "))}if(o===M.Fragment&&Object.keys(jw(p)).length>0){if(!M.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(w=>` - ${w}`).join(`
329
329
  `),"","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(w=>` - ${w}`).join(`
330
330
  `)].join(`
331
- `));let b=m.props,y=typeof b?.className=="function"?(...w)=>R3(b?.className(...w),p.className):R3(b?.className,p.className),x=y?{className:y}:{};return M.cloneElement(m,Object.assign({},M3(m.props,jw(Vw(p,["ref"]))),E,d,{ref:i(m.ref,d.ref)},x))}return M.createElement(o,Object.assign({},Vw(p,["ref"]),o!==M.Fragment&&d,o!==M.Fragment&&E),m)}function HK(...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 M3(...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?.nativeEvent instanceof Event)&&i.defaultPrevented)return;c(i,...o)}}});return t}function Ff(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function jw(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Vw(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let GK="div";var L3=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(L3||{});function YK(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 If({ourProps:o,theirProps:i,slot:{},defaultTag:GK,name:"Hidden"})}let WK=Ff(YK),Uw=M.createContext(null);Uw.displayName="OpenClosedContext";var ig=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ig||{});function QK(){return M.useContext(Uw)}function KK({value:e,children:t}){return Ae.createElement(Uw.Provider,{value:e},t)}function XK(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Pf=[];XK(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Pf[0]!==t.target&&(Pf.unshift(t.target),Pf=Pf.filter(n=>n!=null&&n.isConnected),Pf.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 ZK(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&JK(n)?!1:r}function JK(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function eX(e){throw new Error("Unexpected object: "+e)}var ui=(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))(ui||{});function I3(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:eX(e)}}function F3(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))j3(n,P3(t,r),i);return n}function P3(e,t){return e?e+"["+t+"]":t}function j3(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())j3(e,P3(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,""]):F3(n,t,e)}var Go=(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))(Go||{}),tX=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tX||{}),nX=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(nX||{}),rX=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(rX||{}),iX=(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))(iX||{});function qw(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):LK(r,l=>l.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let oX={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===ui.Specific?t.idx:I3(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,y;return(y=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(x=>!e.virtual.disabled(x)))!=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=qw(e);if(c.activeOptionIndex===null){let m=c.options.findIndex(E=>!E.dataRef.current.disabled);m!==-1&&(c.activeOptionIndex=m)}let p=t.focus===ui.Specific?t.idx:I3(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=qw(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=qw(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})}}},Bw=M.createContext(null);Bw.displayName="ComboboxActionsContext";function og(e){let t=M.useContext(Bw);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,og),n}return t}let V3=M.createContext(null);function aX(e){var t;let n=jf("VirtualProvider"),[r,i]=M.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=SK({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]=M.useState(0);return co(()=>{c(p=>p+1)},[(t=n.virtual)==null?void 0:t.options]),Ae.createElement(V3.Provider,{value:o},Ae.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 Ae.createElement(M.Fragment,{key:p.key},Ae.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 $w=M.createContext(null);$w.displayName="ComboboxDataContext";function jf(e){let t=M.useContext($w);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,jf),n}return t}function sX(e,t){return ql(t.type,oX,e,t)}let lX=M.Fragment;function uX(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,...x}=e,w=!1,k=null,[N=E?[]:void 0,D]=CK(n,i,r),[A,_]=M.useReducer(sX,{dataRef:M.createRef(),comboboxState:d?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),L=M.useRef(!1),V=M.useRef({static:!1,hold:!1}),P=M.useRef(null),F=M.useRef(null),j=M.useRef(null),$=M.useRef(null),X=Fn(typeof c=="string"?(Ze,It)=>{let vt=c;return Ze?.[vt]===It?.[vt]}:c??((Ze,It)=>Ze===It)),J=Fn(Ze=>A.options.findIndex(It=>X(It.dataRef.current.value,Ze))),ee=M.useCallback(Ze=>ql(B.mode,{1:()=>N.some(It=>X(It,Ze)),0:()=>X(N,Ze)}),[N]),K=Fn(Ze=>A.activeOptionIndex===J(Ze)),B=M.useMemo(()=>({...A,immediate:w,optionsPropsRef:V,labelRef:P,inputRef:F,buttonRef:j,optionsRef:$,value:N,defaultValue:r,disabled:p,mode:E?1:0,virtual:A.virtual,get activeOptionIndex(){if(L.current&&A.activeOptionIndex===null&&A.options.length>0){let Ze=A.options.findIndex(It=>!It.dataRef.current.disabled);if(Ze!==-1)return Ze}return A.activeOptionIndex},calculateIndex:J,compare:X,isSelected:ee,isActive:K,nullable:m,__demoMode:d}),[N,r,p,E,m,d,A,k]);co(()=>{},[k,void 0]),co(()=>{A.dataRef.current=B},[B]),jK([B.buttonRef,B.inputRef,B.optionsRef],()=>he.closeCombobox(),B.comboboxState===0);let ne=M.useMemo(()=>{var Ze,It,vt;return{open:B.comboboxState===0,disabled:p,activeIndex:B.activeOptionIndex,activeOption:B.activeOptionIndex===null?null:B.virtual?B.virtual.options[(Ze=B.activeOptionIndex)!=null?Ze:0]:(vt=(It=B.options[B.activeOptionIndex])==null?void 0:It.dataRef.current.value)!=null?vt:null,value:N}},[B,p,N]),re=Fn(()=>{if(B.activeOptionIndex!==null){if(B.virtual)pe(B.virtual.options[B.activeOptionIndex]);else{let{dataRef:Ze}=B.options[B.activeOptionIndex];pe(Ze.current.value)}he.goToOption(ui.Specific,B.activeOptionIndex)}}),se=Fn(()=>{_({type:0}),L.current=!0}),fe=Fn(()=>{_({type:1}),L.current=!1}),Z=Fn((Ze,It,vt)=>(L.current=!1,Ze===ui.Specific?_({type:2,focus:ui.Specific,idx:It,trigger:vt}):_({type:2,focus:Ze,trigger:vt}))),ge=Fn((Ze,It)=>(_({type:3,payload:{id:Ze,dataRef:It}}),()=>{B.isActive(It.current.value)&&(L.current=!0),_({type:4,id:Ze})})),ae=Fn(Ze=>(_({type:5,id:Ze}),()=>_({type:5,id:null}))),pe=Fn(Ze=>ql(B.mode,{0(){return D?.(Ze)},1(){let It=B.value.slice(),vt=It.findIndex(at=>X(at,Ze));return vt===-1?It.push(Ze):It.splice(vt,1),D?.(It)}})),ce=Fn(Ze=>{_({type:6,trigger:Ze})}),he=M.useMemo(()=>({onChange:pe,registerOption:ge,registerLabel:ae,goToOption:Z,closeCombobox:fe,openCombobox:se,setActivationTrigger:ce,selectActiveOption:re}),[]),Se=t===null?{}:{ref:t},Ie=M.useRef(null),Ge=Iw();return M.useEffect(()=>{Ie.current&&r!==void 0&&Ge.addEventListener(Ie.current,"reset",()=>{D?.(r)})},[Ie,D]),Ae.createElement(Bw.Provider,{value:he},Ae.createElement($w.Provider,{value:B},Ae.createElement(KK,{value:ql(B.comboboxState,{0:ig.Open,1:ig.Closed})},l!=null&&N!=null&&F3({[l]:N}).map(([Ze,It],vt)=>Ae.createElement(WK,{features:L3.Hidden,ref:vt===0?at=>{var Oe;Ie.current=(Oe=at?.closest("form"))!=null?Oe:null}:void 0,...jw({key:Ze,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:p,name:Ze,value:It})})),If({ourProps:Se,theirProps:x,slot:ne,defaultTag:lX,name:"Combobox"}))))}let cX="input";function fX(e,t){var n,r,i,o,l;let c=ng(),{id:p=`headlessui-combobox-input-${c}`,onChange:d,displayValue:m,type:E="text",...b}=e,y=jf("Combobox.Input"),x=og("Combobox.Input"),w=rg(y.inputRef,t),k=VK(y.inputRef),N=M.useRef(!1),D=Iw(),A=Fn(()=>{x.onChange(null),y.optionsRef.current&&(y.optionsRef.current.scrollTop=0),x.goToOption(ui.Nothing)}),_=function(){var B;return typeof m=="function"&&y.value!==void 0?(B=m(y.value))!=null?B:"":typeof y.value=="string"?y.value:""}();k3(([B,ne],[re,se])=>{if(N.current)return;let fe=y.inputRef.current;fe&&((se===0&&ne===1||B!==re)&&(fe.value=B),requestAnimationFrame(()=>{if(N.current||!fe||k?.activeElement!==fe)return;let{selectionStart:Z,selectionEnd:ge}=fe;Math.abs((ge??0)-(Z??0))===0&&Z===0&&fe.setSelectionRange(fe.value.length,fe.value.length)}))},[_,y.comboboxState,k]),k3(([B],[ne])=>{if(B===0&&ne===1){if(N.current)return;let re=y.inputRef.current;if(!re)return;let se=re.value,{selectionStart:fe,selectionEnd:Z,selectionDirection:ge}=re;re.value="",re.value=se,ge!==null?re.setSelectionRange(fe,Z,ge):re.setSelectionRange(fe,Z)}},[y.comboboxState]);let L=M.useRef(!1),V=Fn(()=>{L.current=!0}),P=Fn(()=>{D.nextFrame(()=>{L.current=!1})}),F=Fn(B=>{switch(N.current=!0,B.key){case Go.Enter:if(N.current=!1,y.comboboxState!==0||L.current)return;if(B.preventDefault(),B.stopPropagation(),y.activeOptionIndex===null){x.closeCombobox();return}x.selectActiveOption(),y.mode===0&&x.closeCombobox();break;case Go.ArrowDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>x.goToOption(ui.Next),1:()=>x.openCombobox()});case Go.ArrowUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>x.goToOption(ui.Previous),1:()=>{x.openCombobox(),D.nextFrame(()=>{y.value||x.goToOption(ui.Last)})}});case Go.Home:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.First);case Go.PageUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.First);case Go.End:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.Last);case Go.PageDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.Last);case Go.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&&A(),x.closeCombobox());case Go.Tab:if(N.current=!1,y.comboboxState!==0)return;y.mode===0&&y.activationTrigger!==1&&x.selectActiveOption(),x.closeCombobox();break}}),j=Fn(B=>{d?.(B),y.nullable&&y.mode===0&&B.target.value===""&&A(),x.openCombobox()}),$=Fn(B=>{var ne,re,se;let fe=(ne=B.relatedTarget)!=null?ne:Pf.find(Z=>Z!==B.currentTarget);if(N.current=!1,!((re=y.optionsRef.current)!=null&&re.contains(fe))&&!((se=y.buttonRef.current)!=null&&se.contains(fe))&&y.comboboxState===0)return B.preventDefault(),y.mode===0&&(y.nullable&&y.value===null?A():y.activationTrigger!==1&&x.selectActiveOption()),x.closeCombobox()}),X=Fn(B=>{var ne,re,se;let fe=(ne=B.relatedTarget)!=null?ne:Pf.find(Z=>Z!==B.currentTarget);(re=y.buttonRef.current)!=null&&re.contains(fe)||(se=y.optionsRef.current)!=null&&se.contains(fe)||y.disabled||y.immediate&&y.comboboxState!==0&&(x.openCombobox(),D.nextFrame(()=>{x.setActivationTrigger(1)}))}),J=Lw(()=>{if(y.labelId)return[y.labelId].join(" ")},[y.labelId]),ee=M.useMemo(()=>({open:y.comboboxState===0,disabled:y.disabled}),[y]),K={ref:w,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":J,"aria-autocomplete":"list",defaultValue:(l=(o=e.defaultValue)!=null?o:y.defaultValue!==void 0?m?.(y.defaultValue):null)!=null?l:y.defaultValue,disabled:y.disabled,onCompositionStart:V,onCompositionEnd:P,onKeyDown:F,onChange:j,onFocus:X,onBlur:$};return If({ourProps:K,theirProps:b,slot:ee,defaultTag:cX,name:"Combobox.Input"})}let dX="button";function pX(e,t){var n;let r=jf("Combobox.Button"),i=og("Combobox.Button"),o=rg(r.buttonRef,t),l=ng(),{id:c=`headlessui-combobox-button-${l}`,...p}=e,d=Iw(),m=Fn(w=>{switch(w.key){case Go.ArrowDown:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&i.openCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Go.ArrowUp:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),d.nextFrame(()=>{r.value||i.goToOption(ui.Last)})),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Go.Escape:return r.comboboxState!==0?void 0:(w.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&w.stopPropagation(),i.closeCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})}));default:return}}),E=Fn(w=>{if(ZK(w.currentTarget))return w.preventDefault();r.comboboxState===0?i.closeCombobox():(w.preventDefault(),i.openCombobox()),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})})}),b=Lw(()=>{if(r.labelId)return[r.labelId,c].join(" ")},[r.labelId,c]),y=M.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),x={ref:o,id:c,type:UK(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 If({ourProps:x,theirProps:p,slot:y,defaultTag:dX,name:"Combobox.Button"})}let hX="label";function mX(e,t){let n=ng(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=jf("Combobox.Label"),l=og("Combobox.Label"),c=rg(o.labelRef,t);co(()=>l.registerLabel(r),[r]);let p=Fn(()=>{var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),d=M.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return If({ourProps:{ref:c,id:r,onClick:p},theirProps:i,slot:d,defaultTag:hX,name:"Combobox.Label"})}let gX="ul",vX=Pw.RenderStrategy|Pw.Static;function yX(e,t){let n=ng(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,l=jf("Combobox.Options"),c=rg(l.optionsRef,t),p=QK(),d=p!==null?(p&ig.Open)===ig.Open:l.comboboxState===0;co(()=>{var y;l.optionsPropsRef.current.static=(y=e.static)!=null?y:!1},[l.optionsPropsRef,e.static]),co(()=>{l.optionsPropsRef.current.hold=i},[l.optionsPropsRef,i]),$K({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=Lw(()=>{var y,x;return(x=l.labelId)!=null?x:(y=l.buttonRef.current)==null?void 0:y.id},[l.labelId,l.buttonRef.current]),E=M.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:Ae.createElement(aX,null,o.children)}),If({ourProps:b,theirProps:o,slot:E,defaultTag:gX,features:vX,visible:d,name:"Combobox.Options"})}let bX="li";function EX(e,t){var n;let r=ng(),{id:i=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,order:c=null,...p}=e,d=jf("Combobox.Option"),m=og("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=M.useRef(null),x=tg({disabled:o,value:l,domRef:y,order:c}),w=M.useContext(V3),k=rg(t,y,w?w.measureElement:null),N=Fn(()=>m.onChange(l));co(()=>m.registerOption(i,x),[x,i]);let D=M.useRef(!(d.virtual||d.__demoMode));co(()=>{if(!d.virtual||!d.__demoMode)return;let $=J0();return $.requestAnimationFrame(()=>{D.current=!0}),$.dispose},[d.virtual,d.__demoMode]),co(()=>{if(!D.current||d.comboboxState!==0||!E||d.activationTrigger===0)return;let $=J0();return $.requestAnimationFrame(()=>{var X,J;(J=(X=y.current)==null?void 0:X.scrollIntoView)==null||J.call(X,{block:"nearest"})}),$.dispose},[y,E,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let A=Fn($=>{var X;if(o||(X=d.virtual)!=null&&X.disabled(l))return $.preventDefault();N(),A3()||requestAnimationFrame(()=>{var J;return(J=d.inputRef.current)==null?void 0:J.focus({preventScroll:!0})}),d.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),_=Fn(()=>{var $;if(o||($=d.virtual)!=null&&$.disabled(l))return m.goToOption(ui.Nothing);let X=d.calculateIndex(l);m.goToOption(ui.Specific,X)}),L=BK(),V=Fn($=>L.update($)),P=Fn($=>{var X;if(!L.wasMoved($)||o||(X=d.virtual)!=null&&X.disabled(l)||E)return;let J=d.calculateIndex(l);m.goToOption(ui.Specific,J,0)}),F=Fn($=>{var X;L.wasMoved($)&&(o||(X=d.virtual)!=null&&X.disabled(l)||E&&(d.optionsPropsRef.current.hold||m.goToOption(ui.Nothing)))}),j=M.useMemo(()=>({active:E,selected:b,disabled:o}),[E,b,o]);return If({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:A,onFocus:_,onPointerEnter:V,onMouseEnter:V,onPointerMove:P,onMouseMove:P,onPointerLeave:F,onMouseLeave:F},theirProps:p,slot:j,defaultTag:bX,name:"Combobox.Option"})}let SX=Ff(uX),TX=Ff(pX),xX=Ff(fX),wX=Ff(mX),CX=Ff(yX),_X=Ff(EX),fp=Object.assign(SX,{Input:xX,Button:TX,Label:wX,Options:CX,Option:_X});var NX=Object.defineProperty,ke=(e,t)=>NX(e,"name",{value:t,configurable:!0});function Ku(e){const t=M.createContext(null);return t.displayName=e,t}ke(Ku,"createNullableContext");function Xu(e){function t(n){var r;const i=M.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 ke(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}ke(Xu,"createContextHook");const U3=Ku("StorageContext");function q3(e){const t=M.useRef(!0),[n,r]=M.useState(new oS(e.storage));return M.useEffect(()=>{t.current?t.current=!1:r(new oS(e.storage))},[e.storage]),Y.jsx(U3.Provider,{value:n,children:e.children})}ke(q3,"StorageContextProvider");const Zu=Xu(U3),AX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),OX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),DX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),kX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),RX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),M.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5})),"SvgClose"),MX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),LX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),IX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),M.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"),FX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),PX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),M.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"),jX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.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}),M.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"),VX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),UX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),M.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"),qX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),M.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),BX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),M.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),M.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"),$X=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),zX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.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"}),M.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"}),M.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),M.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"),HX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),M.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),GX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.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}),M.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),M.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),YX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),M.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),WX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),QX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),KX=ke(({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),M.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),M.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}),M.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),M.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"),XX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),M.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),M.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}),M.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"),ZX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),M.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"),JX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),eZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),tZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),nZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),rZ=ke(({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},"trash icon"):e?M.createElement("title",{id:t},e):null,M.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"),iZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),M.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),oZ=_n(AX),aZ=_n(OX),sZ=_n(DX),lZ=_n(kX),zw=_n(RX),uZ=_n(MX),cZ=_n(LX),fZ=_n(IX),dZ=_n(FX),pZ=_n(PX),hZ=_n(jX,"filled docs icon"),mZ=_n(VX),gZ=_n(UX),vZ=_n(qX),yZ=_n(BX),bZ=_n($X),EZ=_n(zX),SZ=_n(HX),TZ=_n(GX),xZ=_n(YX),wZ=_n(WX),CZ=_n(QX),_Z=_n(KX),NZ=_n(XX),AZ=_n(ZX),OZ=_n(JX),DZ=_n(eZ,"filled star icon"),kZ=_n(tZ),RZ=_n(nZ),MZ=_n(rZ,"trash icon"),nb=_n(iZ);function _n(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){return e.defaultProps={title:t},e}ke(_n,"generateIcon");const ci=M.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:vi("graphiql-un-styled",e.className)}));ci.displayName="UnStyledButton";const cs=M.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:vi("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));cs.displayName="Button";const Hw=M.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:vi("graphiql-button-group",e.className)}));Hw.displayName="ButtonGroup";const ag=ke((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),"createComponentGroup"),B3=M.forwardRef((e,t)=>Y.jsx(zU,{asChild:!0,children:Y.jsxs(ci,{...e,ref:t,type:"button",className:vi("graphiql-dialog-close",e.className),children:[Y.jsx(Fk,{children:"Close dialog"}),Y.jsx(zw,{})]})}));B3.displayName="Dialog.Close";function $3({children:e,...t}){return Y.jsx(PU,{...t,children:Y.jsxs(VU,{children:[Y.jsx(UU,{className:"graphiql-dialog-overlay"}),Y.jsx(qU,{className:"graphiql-dialog",children:e})]})})}ke($3,"DialogRoot");const dp=ag($3,{Close:B3,Title:BU,Trigger:jU,Description:$U}),z3=M.forwardRef((e,t)=>Y.jsx(V$,{asChild:!0,children:Y.jsx("button",{...e,ref:t,className:vi("graphiql-un-styled",e.className)})}));z3.displayName="DropdownMenuButton";function H3({children:e,align:t="start",sideOffset:n=5,className:r,...i}){return Y.jsx(U$,{children:Y.jsx(q$,{align:t,sideOffset:n,className:vi("graphiql-dropdown-content",r),...i,children:e})})}ke(H3,"Content");const LZ=ke(({className:e,children:t,...n})=>Y.jsx(B$,{className:vi("graphiql-dropdown-item",e),...n,children:t}),"Item"),Ju=ag(j$,{Button:z3,Item:LZ,Content:H3}),rb=new Jz({breaks:!0,linkify:!0}),Ws=M.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>Y.jsx("div",{...r,ref:i,className:vi(`graphiql-markdown-${n}`,t&&"graphiql-markdown-preview",r.className),dangerouslySetInnerHTML:{__html:rb.render(e)}}));Ws.displayName="MarkdownContent";const Gw=M.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:vi("graphiql-spinner",e.className)}));Gw.displayName="Spinner";function G3({children:e,align:t="start",side:n="bottom",sideOffset:r=5,label:i}){return Y.jsxs(aK,{children:[Y.jsx(sK,{asChild:!0,children:e}),Y.jsx(lK,{children:Y.jsx(uK,{className:"graphiql-tooltip",align:t,side:n,sideOffset:r,children:i})})]})}ke(G3,"TooltipRoot");const Wi=ag(G3,{Provider:oK}),Y3=M.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>Y.jsx(c3.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:vi("graphiql-tab",e&&"graphiql-tab-active",r),children:n}));Y3.displayName="Tab";const W3=M.forwardRef((e,t)=>Y.jsx(ci,{...e,ref:t,type:"button",className:vi("graphiql-tab-button",e.className),children:e.children}));W3.displayName="Tab.Button";const Q3=M.forwardRef((e,t)=>Y.jsx(Wi,{label:"Close Tab",children:Y.jsx(ci,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:vi("graphiql-tab-close",e.className),children:Y.jsx(zw,{})})}));Q3.displayName="Tab.Close";const Yw=ag(Y3,{Button:W3,Close:Q3}),K3=M.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>Y.jsx(c3.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:vi("graphiql-tabs",r),children:n}));K3.displayName="Tabs";const X3=Ku("HistoryContext");function Z3(e){var t;const n=Zu(),r=M.useRef(new l9(n||new oS(null),e.maxHistoryLength||IZ)),[i,o]=M.useState(((t=r.current)==null?void 0:t.queries)||[]),l=M.useCallback(b=>{var y;(y=r.current)==null||y.updateHistory(b),o(r.current.queries)},[]),c=M.useCallback((b,y)=>{r.current.editLabel(b,y),o(r.current.queries)},[]),p=M.useCallback(b=>{r.current.toggleFavorite(b),o(r.current.queries)},[]),d=M.useCallback(b=>b,[]),m=M.useCallback((b,y=!1)=>{r.current.deleteHistory(b,y),o(r.current.queries)},[]),E=M.useMemo(()=>({addToHistory:l,editLabel:c,items:i,toggleFavorite:p,setActive:d,deleteFromHistory:m}),[l,c,i,p,d,m]);return Y.jsx(X3.Provider,{value:E,children:e.children})}ke(Z3,"HistoryContextProvider");const ib=Xu(X3),IZ=20;function J3(){const{items:e,deleteFromHistory:t}=ib({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]=M.useState(null);M.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const l=M.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(cs,{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(sg,{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(sg,{item:c},c.index))})]})}ke(J3,"History");function sg(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=ib({nonNull:!0,caller:sg}),{headerEditor:o,queryEditor:l,variableEditor:c}=Ei({nonNull:!0,caller:sg}),p=M.useRef(null),d=M.useRef(null),[m,E]=M.useState(!1);M.useEffect(()=>{var A;m&&((A=p.current)==null||A.focus())},[m]);const b=e.item.label||e.item.operationName||eF(e.item.query),y=M.useCallback(()=>{var A;E(!1);const{index:_,...L}=e.item;t({...L,label:(A=p.current)==null?void 0:A.value},_)},[t,e.item]),x=M.useCallback(()=>{E(!1)},[]),w=M.useCallback(A=>{A.stopPropagation(),E(!0)},[]),k=M.useCallback(()=>{const{query:A,variables:_,headers:L}=e.item;l?.setValue(A??""),c?.setValue(_??""),o?.setValue(L??""),i(e.item)},[o,e.item,l,i,c]),N=M.useCallback(A=>{A.stopPropagation(),r(e.item)},[e.item,r]),D=M.useCallback(A=>{A.stopPropagation(),n(e.item)},[e.item,n]);return Y.jsx("li",{className:vi("graphiql-history-item",m&&"editable"),children:m?Y.jsxs(Y.Fragment,{children:[Y.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:A=>{A.key==="Esc"?E(!1):A.key==="Enter"&&(E(!1),t({...e.item,label:A.currentTarget.value}))},placeholder:"Type a label"}),Y.jsx(ci,{type:"button",ref:d,onClick:y,children:"Save"}),Y.jsx(ci,{type:"button",ref:d,onClick:x,children:Y.jsx(zw,{})})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Wi,{label:"Set active",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-label",onClick:k,"aria-label":"Set active",children:b})}),Y.jsx(Wi,{label:"Edit label",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:w,"aria-label":"Edit label",children:Y.jsx(xZ,{"aria-hidden":"true"})})}),Y.jsx(Wi,{label:e.item.favorite?"Remove favorite":"Add favorite",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?Y.jsx(DZ,{"aria-hidden":"true"}):Y.jsx(kZ,{"aria-hidden":"true"})})}),Y.jsx(Wi,{label:"Delete from history",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:N,"aria-label":"Delete from history",children:Y.jsx(MZ,{"aria-hidden":"true"})})})]})})}ke(sg,"HistoryItem");function eF(e){return e?.split(`
331
+ `));let b=m.props,y=typeof b?.className=="function"?(...w)=>R3(b?.className(...w),p.className):R3(b?.className,p.className),x=y?{className:y}:{};return M.cloneElement(m,Object.assign({},M3(m.props,jw(Vw(p,["ref"]))),E,d,{ref:i(m.ref,d.ref)},x))}return M.createElement(o,Object.assign({},Vw(p,["ref"]),o!==M.Fragment&&d,o!==M.Fragment&&E),m)}function HK(...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 M3(...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?.nativeEvent instanceof Event)&&i.defaultPrevented)return;c(i,...o)}}});return t}function Ff(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function jw(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Vw(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let GK="div";var L3=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(L3||{});function YK(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 If({ourProps:o,theirProps:i,slot:{},defaultTag:GK,name:"Hidden"})}let WK=Ff(YK),Uw=M.createContext(null);Uw.displayName="OpenClosedContext";var ig=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ig||{});function QK(){return M.useContext(Uw)}function KK({value:e,children:t}){return Ae.createElement(Uw.Provider,{value:e},t)}function XK(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Pf=[];XK(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Pf[0]!==t.target&&(Pf.unshift(t.target),Pf=Pf.filter(n=>n!=null&&n.isConnected),Pf.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 ZK(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&JK(n)?!1:r}function JK(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function eX(e){throw new Error("Unexpected object: "+e)}var ui=(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))(ui||{});function I3(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:eX(e)}}function F3(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))j3(n,P3(t,r),i);return n}function P3(e,t){return e?e+"["+t+"]":t}function j3(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())j3(e,P3(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,""]):F3(n,t,e)}var Go=(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))(Go||{}),tX=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tX||{}),nX=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(nX||{}),rX=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(rX||{}),iX=(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))(iX||{});function qw(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):LK(r,l=>l.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let oX={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===ui.Specific?t.idx:I3(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,y;return(y=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(x=>!e.virtual.disabled(x)))!=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=qw(e);if(c.activeOptionIndex===null){let m=c.options.findIndex(E=>!E.dataRef.current.disabled);m!==-1&&(c.activeOptionIndex=m)}let p=t.focus===ui.Specific?t.idx:I3(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=qw(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=qw(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})}}},Bw=M.createContext(null);Bw.displayName="ComboboxActionsContext";function og(e){let t=M.useContext(Bw);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,og),n}return t}let V3=M.createContext(null);function aX(e){var t;let n=jf("VirtualProvider"),[r,i]=M.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=SK({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]=M.useState(0);return co(()=>{c(p=>p+1)},[(t=n.virtual)==null?void 0:t.options]),Ae.createElement(V3.Provider,{value:o},Ae.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 Ae.createElement(M.Fragment,{key:p.key},Ae.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 $w=M.createContext(null);$w.displayName="ComboboxDataContext";function jf(e){let t=M.useContext($w);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,jf),n}return t}function sX(e,t){return ql(t.type,oX,e,t)}let lX=M.Fragment;function uX(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,...x}=e,w=!1,k=null,[N=E?[]:void 0,D]=CK(n,i,r),[A,_]=M.useReducer(sX,{dataRef:M.createRef(),comboboxState:d?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),L=M.useRef(!1),V=M.useRef({static:!1,hold:!1}),P=M.useRef(null),F=M.useRef(null),j=M.useRef(null),$=M.useRef(null),X=Fn(typeof c=="string"?(Ze,It)=>{let vt=c;return Ze?.[vt]===It?.[vt]}:c??((Ze,It)=>Ze===It)),J=Fn(Ze=>A.options.findIndex(It=>X(It.dataRef.current.value,Ze))),ee=M.useCallback(Ze=>ql(B.mode,{1:()=>N.some(It=>X(It,Ze)),0:()=>X(N,Ze)}),[N]),K=Fn(Ze=>A.activeOptionIndex===J(Ze)),B=M.useMemo(()=>({...A,immediate:w,optionsPropsRef:V,labelRef:P,inputRef:F,buttonRef:j,optionsRef:$,value:N,defaultValue:r,disabled:p,mode:E?1:0,virtual:A.virtual,get activeOptionIndex(){if(L.current&&A.activeOptionIndex===null&&A.options.length>0){let Ze=A.options.findIndex(It=>!It.dataRef.current.disabled);if(Ze!==-1)return Ze}return A.activeOptionIndex},calculateIndex:J,compare:X,isSelected:ee,isActive:K,nullable:m,__demoMode:d}),[N,r,p,E,m,d,A,k]);co(()=>{},[k,void 0]),co(()=>{A.dataRef.current=B},[B]),jK([B.buttonRef,B.inputRef,B.optionsRef],()=>he.closeCombobox(),B.comboboxState===0);let ne=M.useMemo(()=>{var Ze,It,vt;return{open:B.comboboxState===0,disabled:p,activeIndex:B.activeOptionIndex,activeOption:B.activeOptionIndex===null?null:B.virtual?B.virtual.options[(Ze=B.activeOptionIndex)!=null?Ze:0]:(vt=(It=B.options[B.activeOptionIndex])==null?void 0:It.dataRef.current.value)!=null?vt:null,value:N}},[B,p,N]),re=Fn(()=>{if(B.activeOptionIndex!==null){if(B.virtual)pe(B.virtual.options[B.activeOptionIndex]);else{let{dataRef:Ze}=B.options[B.activeOptionIndex];pe(Ze.current.value)}he.goToOption(ui.Specific,B.activeOptionIndex)}}),se=Fn(()=>{_({type:0}),L.current=!0}),fe=Fn(()=>{_({type:1}),L.current=!1}),Z=Fn((Ze,It,vt)=>(L.current=!1,Ze===ui.Specific?_({type:2,focus:ui.Specific,idx:It,trigger:vt}):_({type:2,focus:Ze,trigger:vt}))),ge=Fn((Ze,It)=>(_({type:3,payload:{id:Ze,dataRef:It}}),()=>{B.isActive(It.current.value)&&(L.current=!0),_({type:4,id:Ze})})),ae=Fn(Ze=>(_({type:5,id:Ze}),()=>_({type:5,id:null}))),pe=Fn(Ze=>ql(B.mode,{0(){return D?.(Ze)},1(){let It=B.value.slice(),vt=It.findIndex(at=>X(at,Ze));return vt===-1?It.push(Ze):It.splice(vt,1),D?.(It)}})),ce=Fn(Ze=>{_({type:6,trigger:Ze})}),he=M.useMemo(()=>({onChange:pe,registerOption:ge,registerLabel:ae,goToOption:Z,closeCombobox:fe,openCombobox:se,setActivationTrigger:ce,selectActiveOption:re}),[]),Se=t===null?{}:{ref:t},Ie=M.useRef(null),Ge=Iw();return M.useEffect(()=>{Ie.current&&r!==void 0&&Ge.addEventListener(Ie.current,"reset",()=>{D?.(r)})},[Ie,D]),Ae.createElement(Bw.Provider,{value:he},Ae.createElement($w.Provider,{value:B},Ae.createElement(KK,{value:ql(B.comboboxState,{0:ig.Open,1:ig.Closed})},l!=null&&N!=null&&F3({[l]:N}).map(([Ze,It],vt)=>Ae.createElement(WK,{features:L3.Hidden,ref:vt===0?at=>{var Oe;Ie.current=(Oe=at?.closest("form"))!=null?Oe:null}:void 0,...jw({key:Ze,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:p,name:Ze,value:It})})),If({ourProps:Se,theirProps:x,slot:ne,defaultTag:lX,name:"Combobox"}))))}let cX="input";function fX(e,t){var n,r,i,o,l;let c=ng(),{id:p=`headlessui-combobox-input-${c}`,onChange:d,displayValue:m,type:E="text",...b}=e,y=jf("Combobox.Input"),x=og("Combobox.Input"),w=rg(y.inputRef,t),k=VK(y.inputRef),N=M.useRef(!1),D=Iw(),A=Fn(()=>{x.onChange(null),y.optionsRef.current&&(y.optionsRef.current.scrollTop=0),x.goToOption(ui.Nothing)}),_=(function(){var B;return typeof m=="function"&&y.value!==void 0?(B=m(y.value))!=null?B:"":typeof y.value=="string"?y.value:""})();k3(([B,ne],[re,se])=>{if(N.current)return;let fe=y.inputRef.current;fe&&((se===0&&ne===1||B!==re)&&(fe.value=B),requestAnimationFrame(()=>{if(N.current||!fe||k?.activeElement!==fe)return;let{selectionStart:Z,selectionEnd:ge}=fe;Math.abs((ge??0)-(Z??0))===0&&Z===0&&fe.setSelectionRange(fe.value.length,fe.value.length)}))},[_,y.comboboxState,k]),k3(([B],[ne])=>{if(B===0&&ne===1){if(N.current)return;let re=y.inputRef.current;if(!re)return;let se=re.value,{selectionStart:fe,selectionEnd:Z,selectionDirection:ge}=re;re.value="",re.value=se,ge!==null?re.setSelectionRange(fe,Z,ge):re.setSelectionRange(fe,Z)}},[y.comboboxState]);let L=M.useRef(!1),V=Fn(()=>{L.current=!0}),P=Fn(()=>{D.nextFrame(()=>{L.current=!1})}),F=Fn(B=>{switch(N.current=!0,B.key){case Go.Enter:if(N.current=!1,y.comboboxState!==0||L.current)return;if(B.preventDefault(),B.stopPropagation(),y.activeOptionIndex===null){x.closeCombobox();return}x.selectActiveOption(),y.mode===0&&x.closeCombobox();break;case Go.ArrowDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>x.goToOption(ui.Next),1:()=>x.openCombobox()});case Go.ArrowUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),ql(y.comboboxState,{0:()=>x.goToOption(ui.Previous),1:()=>{x.openCombobox(),D.nextFrame(()=>{y.value||x.goToOption(ui.Last)})}});case Go.Home:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.First);case Go.PageUp:return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.First);case Go.End:if(B.shiftKey)break;return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.Last);case Go.PageDown:return N.current=!1,B.preventDefault(),B.stopPropagation(),x.goToOption(ui.Last);case Go.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&&A(),x.closeCombobox());case Go.Tab:if(N.current=!1,y.comboboxState!==0)return;y.mode===0&&y.activationTrigger!==1&&x.selectActiveOption(),x.closeCombobox();break}}),j=Fn(B=>{d?.(B),y.nullable&&y.mode===0&&B.target.value===""&&A(),x.openCombobox()}),$=Fn(B=>{var ne,re,se;let fe=(ne=B.relatedTarget)!=null?ne:Pf.find(Z=>Z!==B.currentTarget);if(N.current=!1,!((re=y.optionsRef.current)!=null&&re.contains(fe))&&!((se=y.buttonRef.current)!=null&&se.contains(fe))&&y.comboboxState===0)return B.preventDefault(),y.mode===0&&(y.nullable&&y.value===null?A():y.activationTrigger!==1&&x.selectActiveOption()),x.closeCombobox()}),X=Fn(B=>{var ne,re,se;let fe=(ne=B.relatedTarget)!=null?ne:Pf.find(Z=>Z!==B.currentTarget);(re=y.buttonRef.current)!=null&&re.contains(fe)||(se=y.optionsRef.current)!=null&&se.contains(fe)||y.disabled||y.immediate&&y.comboboxState!==0&&(x.openCombobox(),D.nextFrame(()=>{x.setActivationTrigger(1)}))}),J=Lw(()=>{if(y.labelId)return[y.labelId].join(" ")},[y.labelId]),ee=M.useMemo(()=>({open:y.comboboxState===0,disabled:y.disabled}),[y]),K={ref:w,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":J,"aria-autocomplete":"list",defaultValue:(l=(o=e.defaultValue)!=null?o:y.defaultValue!==void 0?m?.(y.defaultValue):null)!=null?l:y.defaultValue,disabled:y.disabled,onCompositionStart:V,onCompositionEnd:P,onKeyDown:F,onChange:j,onFocus:X,onBlur:$};return If({ourProps:K,theirProps:b,slot:ee,defaultTag:cX,name:"Combobox.Input"})}let dX="button";function pX(e,t){var n;let r=jf("Combobox.Button"),i=og("Combobox.Button"),o=rg(r.buttonRef,t),l=ng(),{id:c=`headlessui-combobox-button-${l}`,...p}=e,d=Iw(),m=Fn(w=>{switch(w.key){case Go.ArrowDown:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&i.openCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Go.ArrowUp:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),d.nextFrame(()=>{r.value||i.goToOption(ui.Last)})),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Go.Escape:return r.comboboxState!==0?void 0:(w.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&w.stopPropagation(),i.closeCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})}));default:return}}),E=Fn(w=>{if(ZK(w.currentTarget))return w.preventDefault();r.comboboxState===0?i.closeCombobox():(w.preventDefault(),i.openCombobox()),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})})}),b=Lw(()=>{if(r.labelId)return[r.labelId,c].join(" ")},[r.labelId,c]),y=M.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),x={ref:o,id:c,type:UK(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 If({ourProps:x,theirProps:p,slot:y,defaultTag:dX,name:"Combobox.Button"})}let hX="label";function mX(e,t){let n=ng(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=jf("Combobox.Label"),l=og("Combobox.Label"),c=rg(o.labelRef,t);co(()=>l.registerLabel(r),[r]);let p=Fn(()=>{var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),d=M.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return If({ourProps:{ref:c,id:r,onClick:p},theirProps:i,slot:d,defaultTag:hX,name:"Combobox.Label"})}let gX="ul",vX=Pw.RenderStrategy|Pw.Static;function yX(e,t){let n=ng(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,l=jf("Combobox.Options"),c=rg(l.optionsRef,t),p=QK(),d=p!==null?(p&ig.Open)===ig.Open:l.comboboxState===0;co(()=>{var y;l.optionsPropsRef.current.static=(y=e.static)!=null?y:!1},[l.optionsPropsRef,e.static]),co(()=>{l.optionsPropsRef.current.hold=i},[l.optionsPropsRef,i]),$K({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=Lw(()=>{var y,x;return(x=l.labelId)!=null?x:(y=l.buttonRef.current)==null?void 0:y.id},[l.labelId,l.buttonRef.current]),E=M.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:Ae.createElement(aX,null,o.children)}),If({ourProps:b,theirProps:o,slot:E,defaultTag:gX,features:vX,visible:d,name:"Combobox.Options"})}let bX="li";function EX(e,t){var n;let r=ng(),{id:i=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,order:c=null,...p}=e,d=jf("Combobox.Option"),m=og("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=M.useRef(null),x=tg({disabled:o,value:l,domRef:y,order:c}),w=M.useContext(V3),k=rg(t,y,w?w.measureElement:null),N=Fn(()=>m.onChange(l));co(()=>m.registerOption(i,x),[x,i]);let D=M.useRef(!(d.virtual||d.__demoMode));co(()=>{if(!d.virtual||!d.__demoMode)return;let $=J0();return $.requestAnimationFrame(()=>{D.current=!0}),$.dispose},[d.virtual,d.__demoMode]),co(()=>{if(!D.current||d.comboboxState!==0||!E||d.activationTrigger===0)return;let $=J0();return $.requestAnimationFrame(()=>{var X,J;(J=(X=y.current)==null?void 0:X.scrollIntoView)==null||J.call(X,{block:"nearest"})}),$.dispose},[y,E,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let A=Fn($=>{var X;if(o||(X=d.virtual)!=null&&X.disabled(l))return $.preventDefault();N(),A3()||requestAnimationFrame(()=>{var J;return(J=d.inputRef.current)==null?void 0:J.focus({preventScroll:!0})}),d.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),_=Fn(()=>{var $;if(o||($=d.virtual)!=null&&$.disabled(l))return m.goToOption(ui.Nothing);let X=d.calculateIndex(l);m.goToOption(ui.Specific,X)}),L=BK(),V=Fn($=>L.update($)),P=Fn($=>{var X;if(!L.wasMoved($)||o||(X=d.virtual)!=null&&X.disabled(l)||E)return;let J=d.calculateIndex(l);m.goToOption(ui.Specific,J,0)}),F=Fn($=>{var X;L.wasMoved($)&&(o||(X=d.virtual)!=null&&X.disabled(l)||E&&(d.optionsPropsRef.current.hold||m.goToOption(ui.Nothing)))}),j=M.useMemo(()=>({active:E,selected:b,disabled:o}),[E,b,o]);return If({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:A,onFocus:_,onPointerEnter:V,onMouseEnter:V,onPointerMove:P,onMouseMove:P,onPointerLeave:F,onMouseLeave:F},theirProps:p,slot:j,defaultTag:bX,name:"Combobox.Option"})}let SX=Ff(uX),TX=Ff(pX),xX=Ff(fX),wX=Ff(mX),CX=Ff(yX),_X=Ff(EX),fp=Object.assign(SX,{Input:xX,Button:TX,Label:wX,Options:CX,Option:_X});var NX=Object.defineProperty,ke=(e,t)=>NX(e,"name",{value:t,configurable:!0});function Ku(e){const t=M.createContext(null);return t.displayName=e,t}ke(Ku,"createNullableContext");function Xu(e){function t(n){var r;const i=M.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 ke(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}ke(Xu,"createContextHook");const U3=Ku("StorageContext");function q3(e){const t=M.useRef(!0),[n,r]=M.useState(new oS(e.storage));return M.useEffect(()=>{t.current?t.current=!1:r(new oS(e.storage))},[e.storage]),Y.jsx(U3.Provider,{value:n,children:e.children})}ke(q3,"StorageContextProvider");const Zu=Xu(U3),AX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),OX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),DX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),kX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),RX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),M.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5})),"SvgClose"),MX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),LX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),IX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),M.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"),FX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),M.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),PX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),M.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"),jX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.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}),M.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"),VX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),UX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),M.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"),qX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),M.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),BX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),M.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),M.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"),$X=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),zX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.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"}),M.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"}),M.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),M.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"),HX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),M.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),GX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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}),M.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}),M.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),M.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),YX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"}),M.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),M.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),WX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),QX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),KX=ke(({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),M.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),M.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}),M.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),M.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"),XX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),M.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),M.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}),M.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"),ZX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),M.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"),JX=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),eZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),tZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"),nZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),rZ=ke(({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},"trash icon"):e?M.createElement("title",{id:t},e):null,M.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"),iZ=ke(({title:e,titleId:t,...n})=>M.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),M.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),oZ=_n(AX),aZ=_n(OX),sZ=_n(DX),lZ=_n(kX),zw=_n(RX),uZ=_n(MX),cZ=_n(LX),fZ=_n(IX),dZ=_n(FX),pZ=_n(PX),hZ=_n(jX,"filled docs icon"),mZ=_n(VX),gZ=_n(UX),vZ=_n(qX),yZ=_n(BX),bZ=_n($X),EZ=_n(zX),SZ=_n(HX),TZ=_n(GX),xZ=_n(YX),wZ=_n(WX),CZ=_n(QX),_Z=_n(KX),NZ=_n(XX),AZ=_n(ZX),OZ=_n(JX),DZ=_n(eZ,"filled star icon"),kZ=_n(tZ),RZ=_n(nZ),MZ=_n(rZ,"trash icon"),nb=_n(iZ);function _n(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){return e.defaultProps={title:t},e}ke(_n,"generateIcon");const ci=M.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:vi("graphiql-un-styled",e.className)}));ci.displayName="UnStyledButton";const cs=M.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:vi("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));cs.displayName="Button";const Hw=M.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:vi("graphiql-button-group",e.className)}));Hw.displayName="ButtonGroup";const ag=ke((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),"createComponentGroup"),B3=M.forwardRef((e,t)=>Y.jsx(zU,{asChild:!0,children:Y.jsxs(ci,{...e,ref:t,type:"button",className:vi("graphiql-dialog-close",e.className),children:[Y.jsx(Fk,{children:"Close dialog"}),Y.jsx(zw,{})]})}));B3.displayName="Dialog.Close";function $3({children:e,...t}){return Y.jsx(PU,{...t,children:Y.jsxs(VU,{children:[Y.jsx(UU,{className:"graphiql-dialog-overlay"}),Y.jsx(qU,{className:"graphiql-dialog",children:e})]})})}ke($3,"DialogRoot");const dp=ag($3,{Close:B3,Title:BU,Trigger:jU,Description:$U}),z3=M.forwardRef((e,t)=>Y.jsx(V$,{asChild:!0,children:Y.jsx("button",{...e,ref:t,className:vi("graphiql-un-styled",e.className)})}));z3.displayName="DropdownMenuButton";function H3({children:e,align:t="start",sideOffset:n=5,className:r,...i}){return Y.jsx(U$,{children:Y.jsx(q$,{align:t,sideOffset:n,className:vi("graphiql-dropdown-content",r),...i,children:e})})}ke(H3,"Content");const LZ=ke(({className:e,children:t,...n})=>Y.jsx(B$,{className:vi("graphiql-dropdown-item",e),...n,children:t}),"Item"),Ju=ag(j$,{Button:z3,Item:LZ,Content:H3}),rb=new Jz({breaks:!0,linkify:!0}),Ws=M.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>Y.jsx("div",{...r,ref:i,className:vi(`graphiql-markdown-${n}`,t&&"graphiql-markdown-preview",r.className),dangerouslySetInnerHTML:{__html:rb.render(e)}}));Ws.displayName="MarkdownContent";const Gw=M.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:vi("graphiql-spinner",e.className)}));Gw.displayName="Spinner";function G3({children:e,align:t="start",side:n="bottom",sideOffset:r=5,label:i}){return Y.jsxs(aK,{children:[Y.jsx(sK,{asChild:!0,children:e}),Y.jsx(lK,{children:Y.jsx(uK,{className:"graphiql-tooltip",align:t,side:n,sideOffset:r,children:i})})]})}ke(G3,"TooltipRoot");const Wi=ag(G3,{Provider:oK}),Y3=M.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>Y.jsx(c3.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:vi("graphiql-tab",e&&"graphiql-tab-active",r),children:n}));Y3.displayName="Tab";const W3=M.forwardRef((e,t)=>Y.jsx(ci,{...e,ref:t,type:"button",className:vi("graphiql-tab-button",e.className),children:e.children}));W3.displayName="Tab.Button";const Q3=M.forwardRef((e,t)=>Y.jsx(Wi,{label:"Close Tab",children:Y.jsx(ci,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:vi("graphiql-tab-close",e.className),children:Y.jsx(zw,{})})}));Q3.displayName="Tab.Close";const Yw=ag(Y3,{Button:W3,Close:Q3}),K3=M.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>Y.jsx(c3.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:vi("graphiql-tabs",r),children:n}));K3.displayName="Tabs";const X3=Ku("HistoryContext");function Z3(e){var t;const n=Zu(),r=M.useRef(new l9(n||new oS(null),e.maxHistoryLength||IZ)),[i,o]=M.useState(((t=r.current)==null?void 0:t.queries)||[]),l=M.useCallback(b=>{var y;(y=r.current)==null||y.updateHistory(b),o(r.current.queries)},[]),c=M.useCallback((b,y)=>{r.current.editLabel(b,y),o(r.current.queries)},[]),p=M.useCallback(b=>{r.current.toggleFavorite(b),o(r.current.queries)},[]),d=M.useCallback(b=>b,[]),m=M.useCallback((b,y=!1)=>{r.current.deleteHistory(b,y),o(r.current.queries)},[]),E=M.useMemo(()=>({addToHistory:l,editLabel:c,items:i,toggleFavorite:p,setActive:d,deleteFromHistory:m}),[l,c,i,p,d,m]);return Y.jsx(X3.Provider,{value:E,children:e.children})}ke(Z3,"HistoryContextProvider");const ib=Xu(X3),IZ=20;function J3(){const{items:e,deleteFromHistory:t}=ib({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]=M.useState(null);M.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const l=M.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(cs,{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(sg,{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(sg,{item:c},c.index))})]})}ke(J3,"History");function sg(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=ib({nonNull:!0,caller:sg}),{headerEditor:o,queryEditor:l,variableEditor:c}=Ei({nonNull:!0,caller:sg}),p=M.useRef(null),d=M.useRef(null),[m,E]=M.useState(!1);M.useEffect(()=>{var A;m&&((A=p.current)==null||A.focus())},[m]);const b=e.item.label||e.item.operationName||eF(e.item.query),y=M.useCallback(()=>{var A;E(!1);const{index:_,...L}=e.item;t({...L,label:(A=p.current)==null?void 0:A.value},_)},[t,e.item]),x=M.useCallback(()=>{E(!1)},[]),w=M.useCallback(A=>{A.stopPropagation(),E(!0)},[]),k=M.useCallback(()=>{const{query:A,variables:_,headers:L}=e.item;l?.setValue(A??""),c?.setValue(_??""),o?.setValue(L??""),i(e.item)},[o,e.item,l,i,c]),N=M.useCallback(A=>{A.stopPropagation(),r(e.item)},[e.item,r]),D=M.useCallback(A=>{A.stopPropagation(),n(e.item)},[e.item,n]);return Y.jsx("li",{className:vi("graphiql-history-item",m&&"editable"),children:m?Y.jsxs(Y.Fragment,{children:[Y.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:A=>{A.key==="Esc"?E(!1):A.key==="Enter"&&(E(!1),t({...e.item,label:A.currentTarget.value}))},placeholder:"Type a label"}),Y.jsx(ci,{type:"button",ref:d,onClick:y,children:"Save"}),Y.jsx(ci,{type:"button",ref:d,onClick:x,children:Y.jsx(zw,{})})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Wi,{label:"Set active",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-label",onClick:k,"aria-label":"Set active",children:b})}),Y.jsx(Wi,{label:"Edit label",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:w,"aria-label":"Edit label",children:Y.jsx(xZ,{"aria-hidden":"true"})})}),Y.jsx(Wi,{label:e.item.favorite?"Remove favorite":"Add favorite",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?Y.jsx(DZ,{"aria-hidden":"true"}):Y.jsx(kZ,{"aria-hidden":"true"})})}),Y.jsx(Wi,{label:"Delete from history",children:Y.jsx(ci,{type:"button",className:"graphiql-history-item-action",onClick:N,"aria-label":"Delete from history",children:Y.jsx(MZ,{"aria-hidden":"true"})})})]})})}ke(sg,"HistoryItem");function eF(e){return e?.split(`
332
332
  `).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}ke(eF,"formatQuery");const tF=Ku("ExecutionContext");function ob({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}=Ei({nonNull:!0,caller:ob}),m=ib(),E=gb({getDefaultFieldNames:t,caller:ob}),[b,y]=M.useState(!1),[x,w]=M.useState(null),k=M.useRef(0),N=M.useCallback(()=>{x?.unsubscribe(),y(!1),w(null)},[x]),D=M.useCallback(async()=>{if(!l||!c)return;if(x){N();return}const L=ke(ee=>{c.setValue(ee),d({response:ee})},"setResponse");k.current+=1;const V=k.current;let P=E()||l.getValue();const F=p?.getValue();let j;try{j=Ww({json:F,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(ee){L(ee instanceof Error?ee.message:`${ee}`);return}const $=o?.getValue();let X;try{X=Ww({json:$,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(ee){L(ee instanceof Error?ee.message:`${ee}`);return}if(i){const ee=l.documentAST?Y9(l.documentAST,i):[];ee.length>0&&(P+=`
333
333
  `+ee.map(K=>ln(K)).join(`
334
334
  `))}L(""),y(!0);const J=r??l.operationName??void 0;m?.addToHistory({query:P,variables:F,headers:$,operationName:J});try{let ee={data:{}};const K=ke(re=>{if(V!==k.current)return;let se=Array.isArray(re)?re:!1;if(!se&&typeof re=="object"&&re!==null&&"hasNext"in re&&(se=[re]),se){const fe={data:ee.data},Z=[...ee?.errors||[],...se.flatMap(ge=>ge.errors).filter(Boolean)];Z.length&&(fe.errors=Z);for(const ge of se){const{path:ae,data:pe,errors:ce,...he}=ge;if(ae){if(!pe)throw new Error(`Expected part to contain a data property, but got ${ge}`);s7(fe.data,ae,pe,{merge:!0})}else pe&&(fe.data=pe);ee={...fe,...he}}y(!1),L(iS(ee))}else{const fe=iS(re);y(!1),L(fe)}},"handleResponse"),B=e({query:P,variables:j,operationName:J},{headers:X??void 0,documentAST:l.documentAST??void 0}),ne=await Promise.resolve(B);if(gO(ne))w(ne.subscribe({next(re){K(re)},error(re){y(!1),re&&L(vm(re)),w(null)},complete(){y(!1),w(null)}}));else if(vO(ne)){w({unsubscribe:()=>{var re,se;return(se=(re=ne[Symbol.asyncIterator]()).return)==null?void 0:se.call(re)}});for await(const re of ne)K(re);y(!1),w(null)}else K(ne)}catch(ee){y(!1),L(vm(ee)),w(null)}},[E,i,e,o,m,r,l,c,N,x,d,p]),A=!!x,_=M.useMemo(()=>({isFetching:b,isSubscribed:A,operationName:r??null,run:D,stop:N}),[b,A,r,D,N]);return Y.jsx(tF.Provider,{value:_,children:n})}ke(ob,"ExecutionContextProvider");const pp=Xu(tF);function Ww({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}ke(Ww,"tryParseJsonObject");const ab="graphiql",sb="sublime";let nF=!1;typeof window=="object"&&(nF=window.navigator.platform.toLowerCase().indexOf("mac")===0);const lb={[nF?"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 hp(e,t){const n=await Promise.resolve().then(()=>Zne).then(r=>r.c).then(r=>typeof r=="function"?r:r.default);return await Promise.all(t?.useCommonAddons===!1?e:[Promise.resolve().then(()=>tre).then(r=>r.s),Promise.resolve().then(()=>are).then(r=>r.m),Promise.resolve().then(()=>ure).then(r=>r.c),Promise.resolve().then(()=>YP).then(r=>r.b),Promise.resolve().then(()=>ZP).then(r=>r.f),Promise.resolve().then(()=>vre).then(r=>r.l),Promise.resolve().then(()=>i4).then(r=>r.s),Promise.resolve().then(()=>u4).then(r=>r.j),Promise.resolve().then(()=>a4).then(r=>r.d),Promise.resolve().then(()=>d4).then(r=>r.s),...e]),n}ke(hp,"importCodeMirror");const FZ=ke(e=>e?ln(e):"","printDefault");function Qw({field:e}){if(!("defaultValue"in e)||e.defaultValue===void 0)return null;const t=Ml(e.defaultValue,e.type);return t?Y.jsxs(Y.Fragment,{children:[" = ",Y.jsx("span",{className:"graphiql-doc-explorer-default-value",children:FZ(t)})]}):null}ke(Qw,"DefaultValue");const rF=Ku("SchemaContext");function Kw(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:t,headerEditor:n}=Ei({nonNull:!0,caller:Kw}),[r,i]=M.useState(),[o,l]=M.useState(!1),[c,p]=M.useState(null),d=M.useRef(0);M.useEffect(()=>{i(my(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),d.current++},[e.schema]);const m=M.useRef(t);M.useEffect(()=>{n&&(m.current=n.getValue())});const{introspectionQuery:E,introspectionQueryName:b,introspectionQuerySansSubscriptions:y}=iF({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:x,onSchemaChange:w,dangerouslyAssumeSchemaIsValid:k,children:N}=e,D=M.useCallback(()=>{if(my(e.schema)||e.schema===null)return;const L=++d.current,V=e.schema;async function P(){if(V)return V;const F=oF(m.current);if(!F.isValidJSON){p("Introspection failed as headers are invalid.");return}const j=F.headers?{headers:F.headers}:{},$=yO(x({query:E,operationName:b},j));if(!mO($)){p("Fetcher did not return a Promise for introspection.");return}l(!0),p(null);let X=await $;if(typeof X!="object"||X===null||!("data"in X)){const ee=yO(x({query:y,operationName:b},j));if(!mO(ee))throw new Error("Fetcher did not return a Promise for introspection.");X=await ee}if(l(!1),X!=null&&X.data&&"__schema"in X.data)return X.data;const J=typeof X=="string"?X:iS(X);p(J)}ke(P,"fetchIntrospectionData"),P().then(F=>{if(!(L!==d.current||!F))try{const j=QE(F);i(j),w?.(j)}catch(j){p(vm(j))}}).catch(F=>{L===d.current&&(p(vm(F)),l(!1))})},[x,b,E,y,w,e.schema]);M.useEffect(()=>{D()},[D]),M.useEffect(()=>{function L(V){V.ctrlKey&&V.key==="R"&&D()}return ke(L,"triggerIntrospection"),window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)});const A=M.useMemo(()=>!r||k?[]:gy(r),[r,k]),_=M.useMemo(()=>({fetchError:c,introspect:D,isFetching:o,schema:r,validationErrors:A}),[c,D,o,r,A]);return Y.jsx(rF.Provider,{value:_,children:N})}ke(Kw,"SchemaContextProvider");const fs=Xu(rF);function iF({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return M.useMemo(()=>{const r=t||"IntrospectionQuery";let i=ky({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])}ke(iF,"useIntrospectionQuery");function oF(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}ke(oF,"parseHeaderString");const ub={name:"Docs"},aF=Ku("ExplorerContext");function Xw(e){const{schema:t,validationErrors:n}=fs({nonNull:!0,caller:Xw}),[r,i]=M.useState([ub]),o=M.useCallback(d=>{i(m=>m.at(-1).def===d.def?m:[...m,d])},[]),l=M.useCallback(()=>{i(d=>d.length>1?d.slice(0,-1):d)},[]),c=M.useCallback(()=>{i(d=>d.length===1?d:[ub])},[]);M.useEffect(()=>{t==null||n.length>0?c():i(d=>{if(d.length===1)return d;const m=[ub];let E=null;for(const b of d)if(b!==ub)if(b.def)if(Rl(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)||nn(E)){const y=E.getFields()[b.name];if(y)m.push({name:b.name,def:y});else break}else{if(Oi(E)||Wn(E)||Rt(E)||ar(E))break;{const y=E;if(y.args.find(x=>x.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=M.useMemo(()=>({explorerNavStack:r,push:o,pop:l,reset:c}),[r,o,l,c]);return Y.jsx(aF.Provider,{value:p,children:e.children})}ke(Xw,"ExplorerContextProvider");const ec=Xu(aF);function lg(e,t){return _t(e)?Y.jsxs(Y.Fragment,{children:[lg(e.ofType,t),"!"]}):mn(e)?Y.jsxs(Y.Fragment,{children:["[",lg(e.ofType,t),"]"]}):t(e)}ke(lg,"renderType");function ds(e){const{push:t}=ec({nonNull:!0,caller:ds});return e.type?lg(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}ke(ds,"TypeLink");function ug({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(ds,{type:e.type}),t!==!1&&Y.jsx(Qw,{field:e})]});return n?r:Y.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[r,e.description?Y.jsx(Ws,{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(Ws,{type:"deprecation",children:e.deprecationReason})]}):null]})}ke(ug,"Argument");function Zw(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(Ws,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}ke(Zw,"DeprecationReason");function sF({directive:e}){return Y.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}ke(sF,"Directive");function Yo(e){const t=PZ[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})]})}ke(Yo,"ExplorerSection");const PZ={Arguments:oZ,"Deprecated Arguments":cZ,"Deprecated Enum Values":fZ,"Deprecated Fields":dZ,Directives:pZ,"Enum Values":gZ,Fields:vZ,Implements:bZ,Implementations:nb,"Possible Types":nb,"Root Types":AZ,Type:nb,"All Schema Types":nb};function lF(e){return Y.jsxs(Y.Fragment,{children:[e.field.description?Y.jsx(Ws,{type:"description",children:e.field.description}):null,Y.jsx(Zw,{preview:!1,children:e.field.deprecationReason}),Y.jsx(Yo,{title:"Type",children:Y.jsx(ds,{type:e.field.type})}),Y.jsx(uF,{field:e.field}),Y.jsx(cF,{field:e.field})]})}ke(lF,"FieldDocumentation");function uF({field:e}){const[t,n]=M.useState(!1),r=M.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(Yo,{title:"Arguments",children:i.map(l=>Y.jsx(ug,{arg:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Yo,{title:"Deprecated Arguments",children:o.map(l=>Y.jsx(ug,{arg:l},l.name))}):Y.jsx(cs,{type:"button",onClick:r,children:"Show Deprecated Arguments"}):null]})}ke(uF,"Arguments");function cF({field:e}){var t;const n=((t=e.astNode)==null?void 0:t.directives)||[];return!n||n.length===0?null:Y.jsx(Yo,{title:"Directives",children:n.map(r=>Y.jsx("div",{children:Y.jsx(sF,{directive:r})},r.name.value))})}ke(cF,"Directives");function fF(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?.name,l?.name,c?.name];return Y.jsxs(Y.Fragment,{children:[Y.jsx(Ws,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),Y.jsxs(Yo,{title:"Root Types",children:[o?Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",Y.jsx(ds,{type:o})]}):null,l&&Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",Y.jsx(ds,{type:l})]}),c&&Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",Y.jsx(ds,{type:c})]})]}),Y.jsx(Yo,{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(ds,{type:m})},m.name))})})]})}ke(fF,"SchemaDocumentation");function Vf(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}ke(Vf,"debounce");function Jw(){const{explorerNavStack:e,push:t}=ec({nonNull:!0,caller:Jw}),n=M.useRef(null),r=cb(),[i,o]=M.useState(""),[l,c]=M.useState(r(i)),p=M.useMemo(()=>Vf(200,y=>{c(r(y))}),[r]);M.useEffect(()=>{p(i)},[p,i]),M.useEffect(()=>{function y(x){var w;x.metaKey&&x.key==="k"&&((w=n.current)==null||w.focus())}return ke(y,"handleKeyDown"),window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[]);const d=e.at(-1),m=M.useCallback(y=>{t("field"in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type})},[t]),E=M.useRef(!1),b=M.useCallback(y=>{E.current=y.type==="focus"},[]);return e.length===1||At(d.def)||Rt(d.def)||nn(d.def)?Y.jsxs(fp,{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(SZ,{}),Y.jsx(fp.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(fp.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,x)=>Y.jsx(fp.Option,{value:y,"data-cy":"doc-explorer-option",children:Y.jsx(eC,{field:y.field,argument:y.argument})},`within-${x}`)),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,x)=>Y.jsx(fp.Option,{value:y,"data-cy":"doc-explorer-option",children:Y.jsx(db,{type:y.type})},`type-${x}`)),l.fields.map((y,x)=>Y.jsxs(fp.Option,{value:y,"data-cy":"doc-explorer-option",children:[Y.jsx(db,{type:y.type}),".",Y.jsx(eC,{field:y.field,argument:y.argument})]},`field-${x}`))]})]}):null}ke(Jw,"Search");function cb(e){const{explorerNavStack:t}=ec({nonNull:!0,caller:e||cb}),{schema:n}=fs({nonNull:!0,caller:e||cb}),r=t.at(-1);return M.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&&fb(d,i)&&o.types.push({type:m}),!At(m)&&!Rt(m)&&!nn(m))continue;const E=m.getFields();for(const b in E){const y=E[b];let x;if(!fb(b,i))if("args"in y){if(x=y.args.filter(w=>fb(w.name,i)),x.length===0)continue}else continue;o[l===m?"within":"fields"].push(...x?x.map(w=>({type:m,field:y,argument:w})):[{type:m,field:y}])}}return o},[r.def,n])}ke(cb,"useSearchResults");function fb(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())}}ke(fb,"isMatch");function db(e){return Y.jsx("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}ke(db,"Type");function eC({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}),":"," ",lg(t.type,n=>Y.jsx(db,{type:n})),")"]}):null]})}ke(eC,"Field$1");function dF(e){const{push:t}=ec({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})}ke(dF,"FieldLink");function pF(e){return Rl(e.type)?Y.jsxs(Y.Fragment,{children:[e.type.description?Y.jsx(Ws,{type:"description",children:e.type.description}):null,Y.jsx(hF,{type:e.type}),Y.jsx(mF,{type:e.type}),Y.jsx(gF,{type:e.type}),Y.jsx(vF,{type:e.type})]}):null}ke(pF,"TypeDocumentation");function hF({type:e}){return At(e)&&e.getInterfaces().length>0?Y.jsx(Yo,{title:"Implements",children:e.getInterfaces().map(t=>Y.jsx("div",{children:Y.jsx(ds,{type:t})},t.name))}):null}ke(hF,"ImplementsInterfaces");function mF({type:e}){const[t,n]=M.useState(!1),r=M.useCallback(()=>{n(!0)},[]);if(!At(e)&&!Rt(e)&&!nn(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(Yo,{title:"Fields",children:o.map(c=>Y.jsx(tC,{field:c},c.name))}):null,l.length>0?t||o.length===0?Y.jsx(Yo,{title:"Deprecated Fields",children:l.map(c=>Y.jsx(tC,{field:c},c.name))}):Y.jsx(cs,{type:"button",onClick:r,children:"Show Deprecated Fields"}):null]})}ke(mF,"Fields");function tC({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(dF,{field:e}),t.length>0?Y.jsxs(Y.Fragment,{children:["(",Y.jsx("span",{children:t.map(n=>t.length===1?Y.jsx(ug,{arg:n,inline:!0},n.name):Y.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:Y.jsx(ug,{arg:n,inline:!0})},n.name))}),")"]}):null,": ",Y.jsx(ds,{type:e.type}),Y.jsx(Qw,{field:e})]}),e.description?Y.jsx(Ws,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,Y.jsx(Zw,{children:e.deprecationReason})]})}ke(tC,"Field");function gF({type:e}){const[t,n]=M.useState(!1),r=M.useCallback(()=>{n(!0)},[]);if(!Wn(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(Yo,{title:"Enum Values",children:i.map(l=>Y.jsx(nC,{value:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Yo,{title:"Deprecated Enum Values",children:o.map(l=>Y.jsx(nC,{value:l},l.name))}):Y.jsx(cs,{type:"button",onClick:r,children:"Show Deprecated Values"}):null]})}ke(gF,"EnumValues");function nC({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(Ws,{type:"description",children:e.description}):null,e.deprecationReason?Y.jsx(Ws,{type:"deprecation",children:e.deprecationReason}):null]})}ke(nC,"EnumValue");function vF({type:e}){const{schema:t}=fs({nonNull:!0});return!t||!sr(e)?null:Y.jsx(Yo,{title:Rt(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map(n=>Y.jsx("div",{children:Y.jsx(ds,{type:n})},n.name))})}ke(vF,"PossibleTypes");function pb(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=fs({nonNull:!0,caller:pb}),{explorerNavStack:i,pop:o}=ec({nonNull:!0,caller:pb}),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(Gw,{}):n?i.length===1?c=Y.jsx(fF,{schema:n}):Vd(l.def)?c=Y.jsx(pF,{type:l.def}):l.def&&(c=Y.jsx(lF,{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(sZ,{}),p]}),Y.jsx("div",{className:"graphiql-doc-explorer-title",children:l.name})]}),Y.jsx(Jw,{},l.name)]}),Y.jsx("div",{className:"graphiql-doc-explorer-content",children:c})]})}ke(pb,"DocExplorer");const cg={title:"Documentation Explorer",icon:ke(function(){const e=hb();return e?.visiblePlugin===cg?Y.jsx(hZ,{}):Y.jsx(mZ,{})},"Icon"),content:pb},yF={title:"History",icon:yZ,content:J3},bF=Ku("PluginContext");function EF(e){const t=Zu(),n=ec(),r=ib(),i=!!n,o=!!r,l=M.useMemo(()=>{const y=[],x={};i&&(y.push(cg),x[cg.title]=!0),o&&(y.push(yF),x[yF.title]=!0);for(const w of e.plugins||[]){if(typeof w.title!="string"||!w.title)throw new Error("All GraphiQL plugins must have a unique title");if(x[w.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${w.title}'`);y.push(w),x[w.title]=!0}return y},[i,o,e.plugins]),[c,p]=M.useState(()=>{const y=t?.get(SF);return l.find(w=>w.title===y)||(y&&t?.set(SF,""),e.visiblePlugin&&l.find(w=>(typeof e.visiblePlugin=="string"?w.title:w)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:d,children:m}=e,E=M.useCallback(y=>{const x=y&&l.find(w=>(typeof y=="string"?w.title:w)===y)||null;p(w=>x===w?w:(d?.(x),x))},[d,l]);M.useEffect(()=>{e.visiblePlugin&&E(e.visiblePlugin)},[l,e.visiblePlugin,E]);const b=M.useMemo(()=>({plugins:l,setVisiblePlugin:E,visiblePlugin:c}),[l,E,c]);return Y.jsx(bF.Provider,{value:b,children:m})}ke(EF,"PluginContextProvider");const hb=Xu(bF),SF="visiblePlugin";function TF(e,t,n,r,i,o){hp([],{useCommonAddons:!1}).then(c=>{let p,d,m,E,b,y,x,w,k;c.on(t,"select",(N,D)=>{if(!p){const A=D.parentNode;p=document.createElement("div"),p.className="CodeMirror-hint-information",A.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),x=document.createElement("div"),x.className="CodeMirror-hint-information-description",p.append(x),w=document.createElement("div"),w.className="CodeMirror-hint-information-deprecation",p.append(w);const L=document.createElement("span");L.className="CodeMirror-hint-information-deprecation-label",L.textContent="Deprecated",w.append(L),k=document.createElement("div"),k.className="CodeMirror-hint-information-deprecation-reason",w.append(k);const V=parseInt(window.getComputedStyle(p).paddingBottom.replace(/px$/,""),10)||0,P=parseInt(window.getComputedStyle(p).maxHeight.replace(/px$/,""),10)||0,F=ke(()=>{p&&(p.style.paddingTop=A.scrollTop+V+"px",p.style.maxHeight=A.scrollTop+P+"px")},"handleScroll");A.addEventListener("scroll",F);let j;A.addEventListener("DOMNodeRemoved",j=ke($=>{$.target===A&&(A.removeEventListener("scroll",F),A.removeEventListener("DOMNodeRemoved",j),p&&p.removeEventListener("click",l),p=null,d=null,m=null,E=null,b=null,y=null,x=null,w=null,k=null,j=null)},"onRemoveFn"))}if(d&&(d.textContent=N.text),m&&E&&b&&y)if(N.type){m.style.display="inline";const A=ke(_=>{_t(_)?(y.textContent="!"+y.textContent,A(_.ofType)):mn(_)?(E.textContent+="[",y.textContent="]"+y.textContent,A(_.ofType)):b.textContent=_.name},"renderType");E.textContent="",y.textContent="",A(N.type)}else E.textContent="",b.textContent="",y.textContent="",m.style.display="none";x&&(N.description?(x.style.display="block",x.innerHTML=rb.render(N.description)):(x.style.display="none",x.innerHTML="")),w&&k&&(N.deprecationReason?(w.style.display="block",k.innerHTML=rb.render(N.deprecationReason)):(w.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(cg),r.push({name:d.name,def:d}),o?.(d))}ke(l,"onClickHintInformation")}ke(TF,"onHasCompletion");function fg(e,t){M.useEffect(()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},[e,t])}ke(fg,"useSynchronizeValue");function dg(e,t,n){M.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}ke(dg,"useSynchronizeOption");function rC(e,t,n,r,i){const{updateActiveTabValues:o}=Ei({nonNull:!0,caller:i}),l=Zu();M.useEffect(()=>{if(!e)return;const c=Vf(500,m=>{!l||n===null||l.set(n,m)}),p=Vf(100,m=>{o({[r]:m})}),d=ke((m,E)=>{if(!E)return;const b=m.getValue();c(b),p(b),t?.(b)},"handleChange");return e.on("change",d),()=>e.off("change",d)},[t,e,l,n,r,o])}ke(rC,"useChangeHandler");function iC(e,t,n){const{schema:r}=fs({nonNull:!0,caller:n}),i=ec(),o=hb();M.useEffect(()=>{if(!e)return;const l=ke((c,p)=>{TF(c,p,r,i,o,d=>{t?.({kind:"Type",type:d,schema:r||void 0})})},"handleCompletion");return e.on("hasCompletion",l),()=>e.off("hasCompletion",l)},[t,e,i,o,r])}ke(iC,"useCompletion");function ps(e,t,n){M.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])}ke(ps,"useKeyMap");function mb({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Ei({nonNull:!0,caller:e||mb});return M.useCallback(()=>{if(!n)return;const r=n.getValue();f7(r),t?.(r)},[n,t])}ke(mb,"useCopyQuery");function Uf({caller:e}={}){const{queryEditor:t}=Ei({nonNull:!0,caller:e||Uf}),{schema:n}=fs({nonNull:!0,caller:Uf});return M.useCallback(()=>{const r=t?.documentAST,i=t?.getValue();!r||!i||t.setValue(ln(i9(r,n)))},[t,n])}ke(Uf,"useMergeQuery");function mp({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=Ei({nonNull:!0,caller:e||mp});return M.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=ln(Ai(i));o!==i&&t.setValue(o)}},[t,r,n])}ke(mp,"usePrettifyEditors");function gb({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=fs({nonNull:!0,caller:t||gb}),{queryEditor:r}=Ei({nonNull:!0,caller:t||gb});return M.useCallback(()=>{if(!r)return;const i=r.getValue(),{insertions:o,result:l}=Z8(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])}ke(gb,"useAutoCompleteLeafs");const jZ=ke(e=>{const t=Ei({nonNull:!0})[`${e}Editor`];let n="";const r=t?.getValue()??!1;r&&r.length>0&&(n=r);const i=M.useCallback(o=>t?.setValue(o),[t]);return M.useMemo(()=>[n,i],[n,i])},"useEditorState"),VZ=ke(()=>jZ("query"),"useOperationsEditorState");function xF([e,t]){const n=M.useRef({pending:null,last:e}),[r,i]=M.useState(e);M.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=M.useCallback(l=>{i(l),n.current.pending===null&&n.current.last!==l&&(n.current.pending=l,t(l))},[t]);return M.useMemo(()=>[r,o],[r,o])}ke(xF,"useOptimisticState");function gp({editorTheme:e=ab,keyMap:t=sb,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:l,setHeaderEditor:c,shouldPersistHeaders:p}=Ei({nonNull:!0,caller:i||gp}),d=pp(),m=Uf({caller:i||gp}),E=mp({caller:i||gp}),b=M.useRef(null);return M.useEffect(()=>{let y=!0;return hp([Promise.resolve().then(()=>Dre).then(x=>x.j)]).then(x=>{if(!y)return;const w=b.current;if(!w)return;const k=x(w,{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:lb});k.addKeyMap({"Cmd-Space"(){k.showHint({completeSingle:!1,container:w})},"Ctrl-Space"(){k.showHint({completeSingle:!1,container:w})},"Alt-Space"(){k.showHint({completeSingle:!1,container:w})},"Shift-Space"(){k.showHint({completeSingle:!1,container:w})}}),k.on("keyup",(N,D)=>{const{code:A,key:_,shiftKey:L}=D,V=A.startsWith("Key"),P=!L&&A.startsWith("Digit");(V||P||_==="_"||_==='"')&&N.execCommand("autocomplete")}),c(k)}),()=>{y=!1}},[e,o,r,c]),dg(l,"keyMap",t),rC(l,n,p?vb:null,"headers",gp),ps(l,["Cmd-Enter","Ctrl-Enter"],d?.run),ps(l,["Shift-Ctrl-P"],E),ps(l,["Shift-Ctrl-M"],m),b}ke(gp,"useHeaderEditor");const vb="headers",UZ=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),qZ=new RegExp("["+UZ.join("")+"]","g");function wF(e){return e.replace(qZ," ")}ke(wF,"normalizeWhitespace");function tc({editorTheme:e=ab,keyMap:t=sb,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},l){const{schema:c}=fs({nonNull:!0,caller:l||tc}),{externalFragments:p,initialQuery:d,queryEditor:m,setOperationName:E,setQueryEditor:b,validationRules:y,variableEditor:x,updateActiveTabValues:w}=Ei({nonNull:!0,caller:l||tc}),k=pp(),N=Zu(),D=ec(),A=hb(),_=mb({caller:l||tc,onCopyQuery:r}),L=Uf({caller:l||tc}),V=mp({caller:l||tc}),P=M.useRef(null),F=M.useRef(),j=M.useRef(()=>{});M.useEffect(()=>{j.current=J=>{if(!(!D||!A)){switch(A.setVisiblePlugin(cg),J.kind){case"Type":{D.push({name:J.type.name,def:J.type});break}case"Field":{D.push({name:J.field.name,def:J.field});break}case"Argument":{J.field&&D.push({name:J.field.name,def:J.field});break}case"EnumValue":{J.type&&D.push({name:J.type.name,def:J.type});break}}n?.(J)}}},[D,n,A]),M.useEffect(()=>{let J=!0;return hp([Promise.resolve().then(()=>Mre).then(ee=>ee.c),Promise.resolve().then(()=>b4).then(ee=>ee.s),Promise.resolve().then(()=>Fre),Promise.resolve().then(()=>jre),Promise.resolve().then(()=>Hre),Promise.resolve().then(()=>Wre),Promise.resolve().then(()=>eie)]).then(ee=>{if(!J)return;F.current=ee;const K=P.current;if(!K)return;const B=ee(K,{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:K,externalFragments:void 0},info:{schema:void 0,renderDescription:re=>rb.render(re),onClick(re){j.current(re)}},jump:{schema:void 0,onClick(re){j.current(re)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...lb,"Cmd-S"(){},"Ctrl-S"(){}}});B.addKeyMap({"Cmd-Space"(){B.showHint({completeSingle:!0,container:K})},"Ctrl-Space"(){B.showHint({completeSingle:!0,container:K})},"Alt-Space"(){B.showHint({completeSingle:!0,container:K})},"Shift-Space"(){B.showHint({completeSingle:!0,container:K})},"Shift-Alt-Space"(){B.showHint({completeSingle:!0,container:K})}}),B.on("keyup",(re,se)=>{BZ.test(se.key)&&re.execCommand("autocomplete")});let ne=!1;B.on("startCompletion",()=>{ne=!0}),B.on("endCompletion",()=>{ne=!1}),B.on("keydown",(re,se)=>{se.key==="Escape"&&ne&&se.stopPropagation()}),B.on("beforeChange",(re,se)=>{var fe;if(se.origin==="paste"){const Z=se.text.map(wF);(fe=se.update)==null||fe.call(se,se.from,se.to,Z)}}),B.documentAST=null,B.operationName=null,B.operations=null,B.variableToType=null,b(B)}),()=>{J=!1}},[e,d,o,b]),dg(m,"keyMap",t),M.useEffect(()=>{if(!m)return;function J(K){var B;const ne=X9(c,K.getValue()),re=o9(K.operations??void 0,K.operationName??void 0,ne?.operations);return K.documentAST=ne?.documentAST??null,K.operationName=re??null,K.operations=ne?.operations??null,x&&(x.state.lint.linterOptions.variableToType=ne?.variableToType,x.options.lint.variableToType=ne?.variableToType,x.options.hintOptions.variableToType=ne?.variableToType,(B=F.current)==null||B.signal(x,"change",x)),ne?{...ne,operationName:re}:null}ke(J,"getAndUpdateOperationFacts");const ee=Vf(100,K=>{const B=K.getValue();N?.set(AF,B);const ne=K.operationName,re=J(K);re?.operationName!==void 0&&N?.set($Z,re.operationName),i?.(B,re?.documentAST),re!=null&&re.operationName&&ne!==re.operationName&&E(re.operationName),w({query:B,operationName:re?.operationName??null})});return J(m),m.on("change",ee),()=>m.off("change",ee)},[i,m,c,E,N,x,w]),CF(m,c??null,F),_F(m,y??null,F),NF(m,p,F),iC(m,n||null,tc);const $=k?.run,X=M.useCallback(()=>{var J;if(!$||!m||!m.operations||!m.hasFocus()){$?.();return}const ee=m.indexFromPos(m.getCursor());let K;for(const B of m.operations)B.loc&&B.loc.start<=ee&&B.loc.end>=ee&&(K=(J=B.name)==null?void 0:J.value);K&&K!==m.operationName&&E(K),$()},[m,$,E]);return ps(m,["Cmd-Enter","Ctrl-Enter"],X),ps(m,["Shift-Ctrl-C"],_),ps(m,["Shift-Ctrl-P","Shift-Ctrl-F"],V),ps(m,["Shift-Ctrl-M"],L),P}ke(tc,"useQueryEditor");function CF(e,t,n){M.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])}ke(CF,"useSynchronizeSchema");function _F(e,t,n){M.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])}ke(_F,"useSynchronizeValidationRules");function NF(e,t,n){const r=M.useMemo(()=>[...t.values()],[t]);M.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])}ke(NF,"useSynchronizeExternalFragments");const BZ=/^[a-zA-Z0-9_@(]$/,AF="query",$Z="operationName";function OF({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:l,shouldPersistHeaders:c}){const p=l?.get(hg);try{if(!p)throw new Error("Storage for tabs is empty");const d=JSON.parse(p),m=c?n:void 0;if(DF(d)){const E=pg({query:i,variables:o,headers:m});let b=-1;for(let y=0;y<d.tabs.length;y++){const x=d.tabs[y];x.hash=pg({query:x.query,variables:x.variables,headers:x.headers}),x.hash===E&&(b=y)}if(b>=0)d.activeTabIndex=b;else{const y=i?yb(i):null;d.tabs.push({id:uC(),hash:E,title:y||cC,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(sC)}}}ke(OF,"getDefaultTabState");function DF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&RF(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(kF)}ke(DF,"isTabsState");function kF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&oC(e,"id")&&oC(e,"title")&&vp(e,"query")&&vp(e,"variables")&&vp(e,"headers")&&vp(e,"operationName")&&vp(e,"response")}ke(kF,"isTabState");function RF(e,t){return t in e&&typeof e[t]=="number"}ke(RF,"hasNumberKey");function oC(e,t){return t in e&&typeof e[t]=="string"}ke(oC,"hasStringKey");function vp(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}ke(vp,"hasStringOrNullKey");function MF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return M.useCallback(i=>{const o=e?.getValue()??null,l=t?.getValue()??null,c=n?.getValue()??null,p=e?.operationName??null,d=r?.getValue()??null;return lC(i,{query:o,variables:l,headers:c,response:d,operationName:p})},[e,t,n,r])}ke(MF,"useSynchronizeActiveTabValues");function aC(e,t=!1){return JSON.stringify(e,(n,r)=>n==="hash"||n==="response"||!t&&n==="headers"?null:r)}ke(aC,"serializeTabState");function LF({storage:e,shouldPersistHeaders:t}){const n=M.useMemo(()=>Vf(500,r=>{e?.set(hg,r)}),[e]);return M.useCallback(r=>{n(aC(r,t))},[t,n])}ke(LF,"useStoreTabs");function IF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return M.useCallback(({query:i,variables:o,headers:l,response:c})=>{e?.setValue(i??""),t?.setValue(o??""),n?.setValue(l??""),r?.setValue(c??"")},[n,e,r,t])}ke(IF,"useSetEditorValues");function sC({query:e=null,variables:t=null,headers:n=null}={}){return{id:uC(),hash:pg({query:e,variables:t,headers:n}),title:e&&yb(e)||cC,query:e,variables:t,headers:n,operationName:null,response:null}}ke(sC,"createTab");function lC(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:pg(i),title:i.operationName||(i.query?yb(i.query):void 0)||cC}})}}ke(lC,"setPropertiesInActiveTab");function uC(){const e=ke(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}ke(uC,"guid");function pg(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}ke(pg,"hashFromTabContents");function yb(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return t?.[2]??null}ke(yb,"fuzzyExtractOperationName");function FF(e){const t=e?.get(hg);if(t){const n=JSON.parse(t);e?.set(hg,JSON.stringify(n,(r,i)=>r==="headers"?null:i))}}ke(FF,"clearHeadersFromTabs");const cC="<untitled>",hg="tabState";function qf({editorTheme:e=ab,keyMap:t=sb,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:l,variableEditor:c,setVariableEditor:p}=Ei({nonNull:!0,caller:o||qf}),d=pp(),m=Uf({caller:o||qf}),E=mp({caller:o||qf}),b=M.useRef(null),y=M.useRef();return M.useEffect(()=>{let x=!0;return hp([Promise.resolve().then(()=>nie),Promise.resolve().then(()=>iie),Promise.resolve().then(()=>uie)]).then(w=>{if(!x)return;y.current=w;const k=b.current;if(!k)return;const N=w(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:lb});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",(D,A)=>{const{code:_,key:L,shiftKey:V}=A,P=_.startsWith("Key"),F=!V&&_.startsWith("Digit");(P||F||L==="_"||L==='"')&&D.execCommand("autocomplete")}),p(N)}),()=>{x=!1}},[e,l,i,p]),dg(c,"keyMap",t),rC(c,r,PF,"variables",qf),iC(c,n||null,qf),ps(c,["Cmd-Enter","Ctrl-Enter"],d?.run),ps(c,["Shift-Ctrl-P"],E),ps(c,["Shift-Ctrl-M"],m),b}ke(qf,"useVariableEditor");const PF="variables",jF=Ku("EditorContext");function VF(e){const t=Zu(),[n,r]=M.useState(null),[i,o]=M.useState(null),[l,c]=M.useState(null),[p,d]=M.useState(null),[m,E]=M.useState(()=>{const re=t?.get(fC)!==null;return e.shouldPersistHeaders!==!1&&re?t?.get(fC)==="true":!!e.shouldPersistHeaders});fg(n,e.headers),fg(i,e.query),fg(l,e.response),fg(p,e.variables);const b=LF({storage:t,shouldPersistHeaders:m}),[y]=M.useState(()=>{const re=e.query??t?.get(AF)??null,se=e.variables??t?.get(PF)??null,fe=e.headers??t?.get(vb)??null,Z=e.response??"",ge=OF({query:re,variables:se,headers:fe,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||zZ,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:m});return b(ge),{query:re??(ge.activeTabIndex===0?ge.tabs[0].query:null)??"",variables:se??"",headers:fe??e.defaultHeaders??"",response:Z,tabState:ge}}),[x,w]=M.useState(y.tabState),k=M.useCallback(re=>{if(re){t?.set(vb,n?.getValue()??"");const se=aC(x,!0);t?.set(hg,se)}else t?.set(vb,""),FF(t);E(re),t?.set(fC,re.toString())},[t,x,n]),N=M.useRef();M.useEffect(()=>{const re=!!e.shouldPersistHeaders;N?.current!==re&&(k(re),N.current=re)},[e.shouldPersistHeaders,k]);const D=MF({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),A=IF({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),{onTabChange:_,defaultHeaders:L,children:V}=e,P=M.useCallback(()=>{w(re=>{const se=D(re),fe={tabs:[...se.tabs,sC({headers:L})],activeTabIndex:se.tabs.length};return b(fe),A(fe.tabs[fe.activeTabIndex]),_?.(fe),fe})},[L,_,A,b,D]),F=M.useCallback(re=>{w(se=>{const fe={...se,activeTabIndex:re};return b(fe),A(fe.tabs[fe.activeTabIndex]),_?.(fe),fe})},[_,A,b]),j=M.useCallback(re=>{w(se=>{const fe=se.tabs[se.activeTabIndex],Z={tabs:re,activeTabIndex:re.indexOf(fe)};return b(Z),A(Z.tabs[Z.activeTabIndex]),_?.(Z),Z})},[_,A,b]),$=M.useCallback(re=>{w(se=>{const fe={tabs:se.tabs.filter((Z,ge)=>re!==ge),activeTabIndex:Math.max(se.activeTabIndex-1,0)};return b(fe),A(fe.tabs[fe.activeTabIndex]),_?.(fe),fe})},[_,A,b]),X=M.useCallback(re=>{w(se=>{const fe=lC(se,re);return b(fe),_?.(fe),fe})},[_,b]),{onEditOperationName:J}=e,ee=M.useCallback(re=>{i&&(i.operationName=re,X({operationName:re}),J?.(re))},[J,i,X]),K=M.useMemo(()=>{const re=new Map;if(Array.isArray(e.externalFragments))for(const se of e.externalFragments)re.set(se.name.value,se);else if(typeof e.externalFragments=="string")Tr(Ai(e.externalFragments,{}),{FragmentDefinition(se){re.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 re},[e.externalFragments]),B=M.useMemo(()=>e.validationRules||[],[e.validationRules]),ne=M.useMemo(()=>({...x,addTab:P,changeTab:F,moveTab:j,closeTab:$,updateActiveTabValues:X,headerEditor:n,queryEditor:i,responseEditor:l,variableEditor:p,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:c,setVariableEditor:d,setOperationName:ee,initialQuery:y.query,initialVariables:y.variables,initialHeaders:y.headers,initialResponse:y.response,externalFragments:K,validationRules:B,shouldPersistHeaders:m,setShouldPersistHeaders:k}),[x,P,F,j,$,X,n,i,l,p,ee,y,K,B,m,k]);return Y.jsx(jF.Provider,{value:ne,children:V})}ke(VF,"EditorContextProvider");const Ei=Xu(jF),fC="shouldPersistHeaders",zZ=`# Welcome to GraphiQL
@@ -362,8 +362,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
362
362
  # Auto Complete: Ctrl-Space (or just start typing)
363
363
  #
364
364
 
365
- `;function bb({isHidden:e,...t}){const{headerEditor:n}=Ei({nonNull:!0,caller:bb}),r=gp(t,bb);return M.useEffect(()=>{e||n==null||n.refresh()},[n,e]),Y.jsx("div",{className:vi("graphiql-editor",e&&"hidden"),ref:r})}ke(bb,"HeaderEditor");function Eb(e){var t;const[n,r]=M.useState({width:null,height:null}),[i,o]=M.useState(null),l=M.useRef(null),c=(t=dC(e.token))==null?void 0:t.href;M.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]})}ke(Eb,"ImagePreview"),Eb.shouldRender=ke(function(e){const t=dC(e);return t?UF(t):!1},"shouldRender");function dC(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}}ke(dC,"tokenToURL");function UF(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}ke(UF,"isImageURL");function pC(e){const t=tc(e,pC);return Y.jsx("div",{className:"graphiql-editor",ref:t})}ke(pC,"QueryEditor");function Sb({responseTooltip:e,editorTheme:t=ab,keyMap:n=sb}={},r){const{fetchError:i,validationErrors:o}=fs({nonNull:!0,caller:r||Sb}),{initialResponse:l,responseEditor:c,setResponseEditor:p}=Ei({nonNull:!0,caller:r||Sb}),d=M.useRef(null),m=M.useRef(e);return M.useEffect(()=>{m.current=e},[e]),M.useEffect(()=>{let E=!0;return hp([Promise.resolve().then(()=>ZP).then(b=>b.f),Promise.resolve().then(()=>YP).then(b=>b.b),Promise.resolve().then(()=>a4).then(b=>b.d),Promise.resolve().then(()=>b4).then(b=>b.s),Promise.resolve().then(()=>i4).then(b=>b.s),Promise.resolve().then(()=>u4).then(b=>b.j),Promise.resolve().then(()=>d4).then(b=>b.s),Promise.resolve().then(()=>die),Promise.resolve().then(()=>$re)],{useCommonAddons:!1}).then(b=>{if(!E)return;const y=document.createElement("div");b.registerHelper("info","graphql-results",(k,N,D,A)=>{const _=[],L=m.current;return L&&_.push(Y.jsx(L,{pos:A,token:k})),Eb.shouldRender(k)&&_.push(Y.jsx(Eb,{token:k},"image-preview")),_.length?(MS.render(_,y),y):(MS.unmountComponentAtNode(y),null)});const x=d.current;if(!x)return;const w=b(x,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:lb});p(w)}),()=>{E=!1}},[t,l,p]),dg(c,"keyMap",n),M.useEffect(()=>{i&&c?.setValue(i),o.length>0&&c?.setValue(vm(o))},[c,i,o]),d}ke(Sb,"useResponseEditor");function hC(e){const t=Sb(e,hC);return Y.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}ke(hC,"ResponseEditor");function Tb({isHidden:e,...t}){const{variableEditor:n}=Ei({nonNull:!0,caller:Tb}),r=qf(t,Tb);return M.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),Y.jsx("div",{className:vi("graphiql-editor",e&&"hidden"),ref:r})}ke(Tb,"VariableEditor");function mC({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:x,onTogglePluginVisibility:w,operationName:k,plugins:N,query:D,response:A,schema:_,schemaDescription:L,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j,visiblePlugin:$}){return Y.jsx(q3,{storage:P,children:Y.jsx(Z3,{maxHistoryLength:E,children:Y.jsx(VF,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:p,onEditOperationName:b,onTabChange:x,query:D,response:A,shouldPersistHeaders:V,validationRules:F,variables:j,children:Y.jsx(Kw,{dangerouslyAssumeSchemaIsValid:t,fetcher:l,inputValueDeprecation:d,introspectionQueryName:m,onSchemaChange:y,schema:_,schemaDescription:L,children:Y.jsx(ob,{getDefaultFieldNames:c,fetcher:l,operationName:k,children:Y.jsx(Xw,{children:Y.jsx(EF,{onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,children:e})})})})})})})}ke(mC,"GraphiQLProvider");function qF(){const e=Zu(),[t,n]=M.useState(()=>{if(!e)return null;const i=e.get(gC);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&e.set(gC,""),null}});M.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=M.useCallback(i=>{e?.set(gC,i||""),n(i)},[e]);return M.useMemo(()=>({theme:t,setTheme:r}),[t,r])}ke(qF,"useTheme");const gC="theme";function xb({defaultSizeRelation:e=HZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:l}){const c=Zu(),p=M.useMemo(()=>Vf(500,D=>{l&&c?.set(l,D)}),[c,l]),[d,m]=M.useState(()=>{const D=l&&c?.get(l);return D===wb||n==="first"?"first":D===Cb||n==="second"?"second":null}),E=M.useCallback(D=>{D!==d&&(m(D),r?.(D))},[d,r]),b=M.useRef(null),y=M.useRef(null),x=M.useRef(null),w=M.useRef(`${e}`);M.useLayoutEffect(()=>{const D=l&&c?.get(l)||w.current;b.current&&(b.current.style.display="flex",b.current.style.flex=D===wb||D===Cb?w.current:D),x.current&&(x.current.style.display="flex",x.current.style.flex="1"),y.current&&(y.current.style.display="flex")},[t,c,l]);const k=M.useCallback(D=>{const A=D==="first"?b.current:x.current;if(A&&(A.style.left="-1000px",A.style.position="absolute",A.style.opacity="0",A.style.height="500px",A.style.width="500px",b.current)){const _=parseFloat(b.current.style.flex);(!Number.isFinite(_)||_<1)&&(b.current.style.flex="1")}},[]),N=M.useCallback(D=>{const A=D==="first"?b.current:x.current;if(A&&(A.style.width="",A.style.height="",A.style.opacity="",A.style.position="",A.style.left="",c&&l)){const _=c.get(l);b.current&&_!==wb&&_!==Cb&&(b.current.style.flex=_||w.current)}},[c,l]);return M.useLayoutEffect(()=>{d==="first"?k("first"):N("first"),d==="second"?k("second"):N("second")},[d,k,N]),M.useEffect(()=>{if(!y.current||!b.current||!x.current)return;const D=y.current,A=b.current,_=A.parentElement,L=t==="horizontal"?"clientX":"clientY",V=t==="horizontal"?"left":"top",P=t==="horizontal"?"right":"bottom",F=t==="horizontal"?"clientWidth":"clientHeight";function j(X){X.preventDefault();const J=X[L]-D.getBoundingClientRect()[V];function ee(B){if(B.buttons===0)return K();const ne=B[L]-_.getBoundingClientRect()[V]-J,re=_.getBoundingClientRect()[P]-B[L]+J-D[F];if(ne<i)E("first"),p(wb);else if(re<o)E("second"),p(Cb);else{E(null);const se=`${ne/re}`;A.style.flex=se,p(se)}}ke(ee,"handleMouseMove");function K(){document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",K)}ke(K,"handleMouseUp"),document.addEventListener("mousemove",ee),document.addEventListener("mouseup",K)}ke(j,"handleMouseDown"),D.addEventListener("mousedown",j);function $(){b.current&&(b.current.style.flex=w.current),p(w.current),E(null)}return ke($,"reset"),D.addEventListener("dblclick",$),()=>{D.removeEventListener("mousedown",j),D.removeEventListener("dblclick",$)}},[t,E,i,o,p]),M.useMemo(()=>({dragBarRef:y,hiddenElement:d,firstRef:b,setHiddenElement:m,secondRef:x}),[d,m])}ke(xb,"useDragResize");const HZ=1,wb="hide-first",Cb="hide-second",_b=M.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=M.useState(null),l=M.useCallback(c=>{try{t?.(c),o(null)}catch(p){o(p instanceof Error?p:new Error(`Toolbar button click failed: ${p}`))}},[t]);return Y.jsx(Wi,{label:e,children:Y.jsx(ci,{...n,ref:r,type:"button",className:vi("graphiql-toolbar-button",i&&"error",n.className),onClick:l,"aria-label":i?i.message:e,"aria-invalid":i?"true":n["aria-invalid"]})})});_b.displayName="ToolbarButton";function Nb(){const{queryEditor:e,setOperationName:t}=Ei({nonNull:!0,caller:Nb}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:l}=pp({nonNull:!0,caller:Nb}),c=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(RZ,{}):Y.jsx(wZ,{}),"aria-label":m};return p&&!d?Y.jsxs(Ju,{children:[Y.jsx(Wi,{label:m,children:Y.jsx(Ju.Button,{...E})}),Y.jsx(Ju.Content,{children:c.map((b,y)=>{const x=b.name?b.name.value:`<Unnamed ${b.operation}>`;return Y.jsx(Ju.Item,{onSelect:()=>{var w;const k=(w=b.name)==null?void 0:w.value;e&&k&&k!==e.operationName&&t(k),o()},children:x},`${x}-${y}`)})})]}):Y.jsx(Wi,{label:m,children:Y.jsx("button",{...E,onClick:()=>{d?l():o()}})})}ke(Nb,"ExecuteButton"),ag(ke(({button:e,children:t,label:n,...r})=>Y.jsxs(Ju,{...r,children:[Y.jsx(Wi,{label:n,children:Y.jsx(Ju.Button,{className:vi("graphiql-un-styled graphiql-toolbar-menu",r.className),"aria-label":n,children:e})}),Y.jsx(Ju.Content,{children:t})]}),"ToolbarMenuRoot"),{Item:Ju.Item});var yp={},mg={};const GZ=Z_(Y8);var BF;function YZ(){if(BF)return mg;BF=1,Object.defineProperty(mg,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},t=function(){function Oe(be,Le){var Ee=[],oe=!0,je=!1,et=void 0;try{for(var ct=be[Symbol.iterator](),Ye;!(oe=(Ye=ct.next()).done)&&(Ee.push(Ye.value),!(Le&&Ee.length===Le));oe=!0);}catch(xe){je=!0,et=xe}finally{try{!oe&&ct.return&&ct.return()}finally{if(je)throw et}}return Ee}return function(be,Le){if(Array.isArray(be))return be;if(Symbol.iterator in Object(be))return Oe(be,Le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=Object.assign||function(Oe){for(var be=1;be<arguments.length;be++){var Le=arguments[be];for(var Ee in Le)Object.prototype.hasOwnProperty.call(Le,Ee)&&(Oe[Ee]=Le[Ee])}return Oe},r=function(){function Oe(be,Le){for(var Ee=0;Ee<Le.length;Ee++){var oe=Le[Ee];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(be,oe.key,oe)}}return function(be,Le,Ee){return Le&&Oe(be.prototype,Le),Ee&&Oe(be,Ee),be}}();mg.defaultValue=$;var i=Wv(),o=c(i),l=GZ;function c(Oe){if(Oe&&Oe.__esModule)return Oe;var be={};if(Oe!=null)for(var Le in Oe)Object.prototype.hasOwnProperty.call(Oe,Le)&&(be[Le]=Oe[Le]);return be.default=Oe,be}function p(Oe,be,Le){return be in Oe?Object.defineProperty(Oe,be,{value:Le,enumerable:!0,configurable:!0,writable:!0}):Oe[be]=Le,Oe}function d(Oe){if(Array.isArray(Oe)){for(var be=0,Le=Array(Oe.length);be<Oe.length;be++)Le[be]=Oe[be];return Le}else return Array.from(Oe)}function m(Oe,be){if(!(Oe instanceof be))throw new TypeError("Cannot call a class as a function")}function E(Oe,be){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:Oe}function b(Oe,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);Oe.prototype=Object.create(be&&be.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,be):Oe.__proto__=be)}function y(Oe){return Oe.charAt(0).toUpperCase()+Oe.slice(1)}var x={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},w=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),k=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),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"})),D=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 A(Oe){return Oe.checked?Oe.styleConfig.checkboxChecked:Oe.styleConfig.checkboxUnchecked}function _(Oe){var be=Oe.getFields();if(be.id){var Le=["id"];return be.email?Le.push("email"):be.name&&Le.push("name"),Le}if(be.edges)return["edges"];if(be.node)return["node"];if(be.nodes)return["nodes"];var Ee=[];return Object.keys(be).forEach(function(oe){(0,l.isLeafType)(be[oe].type)&&Ee.push(oe)}),Ee.length?Ee.slice(0,2):["__typename"]}function L(Oe){return(0,l.isNonNullType)(Oe.type)&&Oe.defaultValue===void 0}function V(Oe){for(var be=Oe;(0,l.isWrappingType)(be);)be=be.ofType;return be}function P(Oe){for(var be=Oe;(0,l.isWrappingType)(be);)be=be.ofType;return be}function F(Oe,be){if(typeof be!="string"&&be.kind==="VariableDefinition")return be.variable;if((0,l.isScalarType)(Oe))try{switch(Oe.name){case"String":return{kind:"StringValue",value:String(Oe.parseValue(be))};case"Float":return{kind:"FloatValue",value:String(Oe.parseValue(parseFloat(be)))};case"Int":return{kind:"IntValue",value:String(Oe.parseValue(parseInt(be,10)))};case"Boolean":try{var Le=JSON.parse(be);return typeof Le=="boolean"?{kind:"BooleanValue",value:Le}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(Oe.parseValue(be))}}}catch(oe){return console.error("error coercing arg value",oe,be),{kind:"StringValue",value:be}}else try{var Ee=Oe.parseValue(be);return Ee?{kind:"EnumValue",value:String(Ee)}:{kind:"EnumValue",value:Oe.getValues()[0].name}}catch{return{kind:"EnumValue",value:Oe.getValues()[0].name}}}var j=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){return oe.props.selection.fields.find(function(xe){return xe.name.value===oe.props.arg.name})},oe._removeArg=function(){var xe=oe.props.selection,$e=oe._getArgSelection();oe._previousArgSelection=$e,oe.props.modifyFields(xe.fields.filter(function(nt){return nt!==$e}),!0)},oe._addArg=function(){var xe=oe.props,$e=xe.selection,nt=xe.arg,ht=xe.getDefaultScalarArgValue,Ot=xe.parentField,jt=xe.makeDefaultArg,dt=P(nt.type),Et=null;if(oe._previousArgSelection)Et=oe._previousArgSelection;else if((0,l.isInputObjectType)(dt)){var pt=dt.getFields();Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:{kind:"ObjectValue",fields:fe(ht,jt,Ot,Object.keys(pt).map(function(Wt){return pt[Wt]}))}}}else(0,l.isLeafType)(dt)&&(Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:ht(Ot,nt,dt)});if(!Et)console.error("Unable to add arg for argType",dt);else return oe.props.modifyFields([].concat(d($e.fields||[]),[Et]),!0)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Ot=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Ot=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Ot;if(!pt){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",xe);return}var Wt=void 0,Vt=void 0;xe===null||typeof xe>"u"?Vt=null:!xe.target&&xe.kind&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"?Vt=xe:xe.target&&typeof xe.target.value=="string"&&(Wt=xe.target.value,Vt=F(Et,Wt));var Jt=oe.props.modifyFields((jt.fields||[]).map(function(ot){var qn=ot===dt,vn=qn?n({},ot,{value:Vt}):ot;return vn}),$e);return Jt},oe._modifyChildFields=function(xe){return oe.props.modifyFields(oe.props.selection.fields.map(function($e){return $e.name.value===oe.props.arg.name?n({},$e,{value:{kind:"ObjectValue",fields:xe}}):$e}),!0)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props,oe=Ee.arg,je=Ee.parentField,et=this._getArgSelection();return o.createElement(ne,{argValue:et?et.value:null,arg:oe,parentField:je,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})}}]),be}(o.PureComponent);function $(Oe){if((0,l.isEnumType)(Oe))return{kind:"EnumValue",value:Oe.getValues()[0].name};switch(Oe.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 X(Oe,be,Le){return $(Le)}var J=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){var xe=oe.props.selection;return(xe.arguments||[]).find(function($e){return $e.name.value===oe.props.arg.name})},oe._removeArg=function(xe){var $e=oe.props.selection,nt=oe._getArgSelection();return oe._previousArgSelection=nt,oe.props.modifyArguments(($e.arguments||[]).filter(function(ht){return ht!==nt}),xe)},oe._addArg=function(xe){var $e=oe.props,nt=$e.selection,ht=$e.getDefaultScalarArgValue,Ot=$e.makeDefaultArg,jt=$e.parentField,dt=$e.arg,Et=P(dt.type),pt=null;if(oe._previousArgSelection)pt=oe._previousArgSelection;else if((0,l.isInputObjectType)(Et)){var Wt=Et.getFields();pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:{kind:"ObjectValue",fields:fe(ht,Ot,jt,Object.keys(Wt).map(function(Vt){return Wt[Vt]}))}}}else(0,l.isLeafType)(Et)&&(pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:ht(jt,dt,Et)});return pt?oe.props.modifyArguments([].concat(d(nt.arguments||[]),[pt]),xe):(console.error("Unable to add arg for argType",Et),null)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Ot=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Ot=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt&&!ht){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Ot;if(!pt){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var Wt=void 0,Vt=void 0;return xe===null||typeof xe>"u"?Vt=null:xe.target&&typeof xe.target.value=="string"?(Wt=xe.target.value,Vt=F(Et,Wt)):!xe.target&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"&&(Vt=xe),oe.props.modifyArguments((jt.arguments||[]).map(function(Jt){return Jt===dt?n({},Jt,{value:Vt}):Jt}),$e)},oe._setArgFields=function(xe,$e){var nt=oe.props.selection,ht=oe._getArgSelection();if(!ht){console.error("missing arg selection when setting arg value");return}return oe.props.modifyArguments((nt.arguments||[]).map(function(Ot){return Ot===ht?n({},Ot,{value:{kind:"ObjectValue",fields:xe}}):Ot}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props,oe=Ee.arg,je=Ee.parentField,et=this._getArgSelection();return o.createElement(ne,{argValue:et?et.value:null,arg:oe,parentField:je,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})}}]),be}(o.PureComponent);function ee(Oe){return Oe.ctrlKey&&Oe.key==="Enter"}function K(Oe){return Oe!=="FragmentDefinition"}var B=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._handleChange=function(xe){oe.props.setArgValue(xe,!0)},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){var Ee=this._ref,oe=document.activeElement;Ee&&oe&&!(oe instanceof HTMLTextAreaElement)&&(Ee.focus(),Ee.setSelectionRange(0,Ee.value.length))}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.arg,et=oe.argValue,ct=oe.styleConfig,Ye=P(je.type),xe=typeof et.value=="string"?et.value:"",$e=this.props.argValue.kind==="StringValue"?ct.colors.string:ct.colors.number;return o.createElement("span",{style:{color:$e}},Ye.name==="String"?'"':"",o.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,xe.length))+"ch",color:$e},ref:function(ht){Ee._ref=ht},type:"text",onChange:this._handleChange,value:xe}),Ye.name==="String"?'"':"")}}]),be}(o.PureComponent),ne=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayArgActions:!1},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.argValue,et=oe.arg,ct=oe.styleConfig,Ye=P(et.type),xe=null;if(je){if(je.kind==="Variable")xe=o.createElement("span",{style:{color:ct.colors.variable}},"$",je.name.value);else if((0,l.isScalarType)(Ye))Ye.name==="Boolean"?xe=o.createElement("select",{style:{color:ct.colors.builtin},onChange:this.props.setArgValue,value:je.kind==="BooleanValue"?je.value:void 0},o.createElement("option",{key:"true",value:"true"},"true"),o.createElement("option",{key:"false",value:"false"},"false")):xe=o.createElement(B,{setArgValue:this.props.setArgValue,arg:et,argValue:je,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(Ye))je.kind==="EnumValue"?xe=o.createElement("select",{style:{backgroundColor:"white",color:ct.colors.string2},onChange:this.props.setArgValue,value:je.value},Ye.getValues().map(function(dt){return o.createElement("option",{key:dt.name,value:dt.name},dt.name)})):console.error("arg mismatch between arg and selection",Ye,je);else if((0,l.isInputObjectType)(Ye))if(je.kind==="ObjectValue"){var $e=Ye.getFields();xe=o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(dt){return o.createElement(j,{key:dt,arg:$e[dt],parentField:Ee.props.parentField,selection:je,modifyFields:Ee.props.setArgFields,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})}))}else console.error("arg mismatch between arg and selection",Ye,je)}var nt=function(){var Et=et.name,pt=(Ee.props.definition.variableDefinitions||[]).filter(function(Ft){return Ft.variable.name.value.startsWith(Et)}).length,Wt=void 0;pt>0?Wt=""+Et+pt:Wt=Et;var Vt=et.type.toString(),Jt=(0,l.parseType)(Vt),ot={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:Wt}},type:Jt,directives:[]},qn=function(fn){return(Ee.props.definition.variableDefinitions||[]).find(function(Gt){return Gt.variable.name.value===fn})},vn=void 0,mt={};if(typeof je<"u"&&je!==null){var yn=(0,l.visit)(je,{Variable:function(fn){var Gt=fn.name.value,bn=qn(Gt);if(mt[Gt]=mt[Gt]+1||1,!!bn)return bn.defaultValue}}),di=ot.type.kind==="NonNullType",on=di?n({},ot,{type:ot.type.type}):ot;vn=n({},on,{defaultValue:yn})}else vn=ot;var Mr=Object.entries(mt).filter(function(Ft){var fn=t(Ft,2);fn[0];var Gt=fn[1];return Gt<2}).map(function(Ft){var fn=t(Ft,2),Gt=fn[0];return fn[1],Gt});if(vn){var An=Ee.props.setArgValue(vn,!1);if(An){var Xi=An.definitions.find(function(Ft){return Ft.operation&&Ft.name&&Ft.name.value&&Ee.props.definition.name&&Ee.props.definition.name.value?Ft.name.value===Ee.props.definition.name.value:!1}),wt=[].concat(d(Xi.variableDefinitions||[]),[vn]).filter(function(Ft){return Mr.indexOf(Ft.variable.name.value)===-1}),Bt=n({},Xi,{variableDefinitions:wt}),cn=An.definitions,kn=cn.map(function(Ft){return Xi===Ft?Bt:Ft}),tr=n({},An,{definitions:kn});Ee.props.onCommit(tr)}}},ht=function(){if(!(!je||!je.name||!je.name.value)){var Et=je.name.value,pt=(Ee.props.definition.variableDefinitions||[]).find(function(on){return on.variable.name.value===Et});if(pt){var Wt=pt.defaultValue,Vt=Ee.props.setArgValue(Wt,{commit:!1});if(Vt){var Jt=Vt.definitions.find(function(on){return on.name.value===Ee.props.definition.name.value});if(!Jt)return;var ot=0;(0,l.visit)(Jt,{Variable:function(Mr){Mr.name.value===Et&&(ot=ot+1)}});var qn=Jt.variableDefinitions||[];ot<2&&(qn=qn.filter(function(on){return on.variable.name.value!==Et}));var vn=n({},Jt,{variableDefinitions:qn}),mt=Vt.definitions,yn=mt.map(function(on){return Jt===on?vn:on}),di=n({},Vt,{definitions:yn});Ee.props.onCommit(di)}}}},Ot=je&&je.kind==="Variable",jt=this.state.displayArgActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:Ot?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(Et){Et.preventDefault(),Et.stopPropagation(),Ot?ht():nt()},style:ct.styles.actionButtonStyle},o.createElement("span",{style:{color:ct.colors.variable}},"$")):null;return o.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":et.name,"data-arg-type":Ye.name,className:"graphiql-explorer-"+et.name},o.createElement("span",{style:{cursor:"pointer"},onClick:function(Et){var pt=!je;pt?Ee.props.addArg(!0):Ee.props.removeArg(!0),Ee.setState({displayArgActions:pt})}},(0,l.isInputObjectType)(Ye)?o.createElement("span",null,je?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):o.createElement(A,{checked:!!je,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:ct.colors.attribute},title:et.description,onMouseEnter:function(){je!==null&&typeof je<"u"&&Ee.setState({displayArgActions:!0})},onMouseLeave:function(){return Ee.setState({displayArgActions:!1})}},et.name,L(et)?"*":"",": ",jt," ")," "),xe||o.createElement("span",null)," ")}}]),be}(o.PureComponent),re=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:oe.props.getDefaultFieldNames(oe.props.implementingType).map(function(xe){return{kind:"Field",name:{kind:"Name",value:xe}}})}}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="InlineFragment"&&$e.typeCondition&&oe.props.implementingType.name===$e.typeCondition.name.value});if(!xe)return null;if(xe.kind==="InlineFragment")return xe},oe._modifyChildSelections=function(xe,$e){var nt=oe._getSelection();return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{directives:ht.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:xe}}:ht}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.implementingType,et=oe.schema,ct=oe.getDefaultFieldNames,Ye=oe.styleConfig,xe=this._getSelection(),$e=je.getFields(),nt=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+je.name},o.createElement("span",{style:{cursor:"pointer"},onClick:xe?this._removeFragment:this._addFragment},o.createElement(A,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ye.colors.atom}},this.props.implementingType.name)),xe?o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(ht){return o.createElement(ge,{key:ht,field:$e[ht],selections:nt,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,onCommit:Ee.props.onCommit,styleConfig:Ee.props.styleConfig,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})})):null)}}]),be}(o.PureComponent),se=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"FragmentSpread",name:oe.props.fragment.name}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){var nt=$e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value;return!nt}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value});return xe},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props.styleConfig,oe=this._getSelection();return o.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},o.createElement("span",{style:{cursor:"pointer"},onClick:oe?this._removeFragment:this._addFragment},o.createElement(A,{checked:!!oe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ee.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),be}(o.PureComponent);function fe(Oe,be,Le,Ee){var oe=[],je=!0,et=!1,ct=void 0;try{for(var Ye=Ee[Symbol.iterator](),xe;!(je=(xe=Ye.next()).done);je=!0){var $e=xe.value;if((0,l.isRequiredInputField)($e)||be&&be(Le,$e)){var nt=P($e.type);(0,l.isInputObjectType)(nt)?function(){var ht=nt.getFields();oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:{kind:"ObjectValue",fields:fe(Oe,be,Le,Object.keys(ht).map(function(Ot){return ht[Ot]}))}})}():(0,l.isLeafType)(nt)&&oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:Oe(Le,$e,nt)})}}}catch(ht){et=!0,ct=ht}finally{try{!je&&Ye.return&&Ye.return()}finally{if(et)throw ct}}return oe}function Z(Oe,be,Le){var Ee=[],oe=!0,je=!1,et=void 0;try{for(var ct=Le.args[Symbol.iterator](),Ye;!(oe=(Ye=ct.next()).done);oe=!0){var xe=Ye.value;if(L(xe)||be&&be(Le,xe)){var $e=P(xe.type);(0,l.isInputObjectType)($e)?function(){var nt=$e.getFields();Ee.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:{kind:"ObjectValue",fields:fe(Oe,be,Le,Object.keys(nt).map(function(ht){return nt[ht]}))}})}():(0,l.isLeafType)($e)&&Ee.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:Oe(Le,xe,$e)})}}}catch(nt){je=!0,et=nt}finally{try{!oe&&ct.return&&ct.return()}finally{if(je)throw et}}return Ee}var ge=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayFieldActions:!1},oe._addAllFieldsToSelections=function(xe){var $e=xe?Object.keys(xe).map(function(Ot){return{kind:"Field",name:{kind:"Name",value:Ot},arguments:[]}}):[],nt={kind:"SelectionSet",selections:$e},ht=[].concat(d(oe.props.selections.filter(function(Ot){return Ot.kind==="InlineFragment"?!0:Ot.name.value!==oe.props.field.name})),[{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field),selectionSet:nt}]);oe.props.modifySelections(ht)},oe._addFieldToSelections=function(xe){var $e=[].concat(d(oe.props.selections),[oe._previousSelection||{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field)}]);oe.props.modifySelections($e)},oe._handleUpdateSelections=function(xe){var $e=oe._getSelection();if($e&&!xe.altKey)oe._removeFieldFromSelections();else{var nt=(0,l.getNamedType)(oe.props.field.type),ht=(0,l.isObjectType)(nt)&&nt.getFields(),Ot=!!ht&&xe.altKey;Ot?oe._addAllFieldsToSelections(ht):oe._addFieldToSelections(ht)}},oe._removeFieldFromSelections=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="Field"&&oe.props.field.name===$e.name.value});if(!xe)return null;if(xe.kind==="Field")return xe},oe._setArguments=function(xe,$e){var nt=oe._getSelection();if(!nt){console.error("Missing selection when setting arguments",xe);return}return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{alias:nt.alias,arguments:xe,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:nt.selectionSet}:ht}),$e)},oe._modifyChildSelections=function(xe,$e){return oe.props.modifySelections(oe.props.selections.map(function(nt){if(nt.kind==="Field"&&oe.props.field.name===nt.name.value){if(nt.kind!=="Field")throw new Error("invalid selection");return{alias:nt.alias,arguments:nt.arguments,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:{kind:"SelectionSet",selections:xe}}}return nt}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.field,et=oe.schema,ct=oe.getDefaultFieldNames,Ye=oe.styleConfig,xe=this._getSelection(),$e=V(je.type),nt=je.args.sort(function(pt,Wt){return pt.name.localeCompare(Wt.name)}),ht="graphiql-explorer-node graphiql-explorer-"+je.name;je.isDeprecated&&(ht+=" graphiql-explorer-deprecated");var Ot=(0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?this.props.availableFragments&&this.props.availableFragments[$e.name]:null,jt=o.createElement("div",{className:ht},o.createElement("span",{title:je.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":je.name,"data-field-type":$e.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Wt=(0,l.isObjectType)($e)&&xe&&xe.selectionSet&&xe.selectionSet.selections.filter(function(Vt){return Vt.kind!=="FragmentSpread"}).length>0;Wt&&Ee.setState({displayFieldActions:!0})},onMouseLeave:function(){return Ee.setState({displayFieldActions:!1})}},(0,l.isObjectType)($e)?o.createElement("span",null,xe?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)($e)?null:o.createElement(A,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ye.colors.property},className:"graphiql-explorer-field-view"},je.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=$e.name,Jt=Vt+"Fragment",ot=(Ot||[]).filter(function(on){return on.name.value.startsWith(Jt)}).length;ot>0&&(Jt=""+Jt+ot);var qn=xe?xe.selectionSet?xe.selectionSet.selections:[]:[],vn=[{kind:"FragmentSpread",name:{kind:"Name",value:Jt},directives:[]}],mt={kind:"FragmentDefinition",name:{kind:"Name",value:Jt},typeCondition:{kind:"NamedType",name:{kind:"Name",value:$e.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:qn}},yn=Ee._modifyChildSelections(vn,!1);if(yn){var di=n({},yn,{definitions:[].concat(d(yn.definitions),[mt])});Ee.props.onCommit(di)}else console.warn("Unable to complete extractFragment operation")},style:n({},Ye.styles.actionButtonStyle)},o.createElement("span",null,"…")):null),xe&&nt.length?o.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},nt.map(function(pt){return o.createElement(J,{key:pt.name,parentField:je,arg:pt,selection:xe,modifyArguments:Ee._setArguments,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})})):null);if(xe&&((0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e))){var dt=(0,l.isUnionType)($e)?{}:$e.getFields(),Et=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+je.name},jt,o.createElement("div",{style:{marginLeft:16}},Ot?Ot.map(function(pt){var Wt=et.getType(pt.typeCondition.name.value),Vt=pt.name.value;return Wt?o.createElement(se,{key:Vt,fragment:pt,selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit}):null}):null,Object.keys(dt).sort().map(function(pt){return o.createElement(be,{key:pt,field:dt[pt],selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})}),(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?et.getPossibleTypes($e).map(function(pt){return o.createElement(re,{key:pt.name,implementingType:pt,selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})}):null))}return jt}}]),be}(o.PureComponent);function ae(Oe){try{return Oe.trim()?(0,l.parse)(Oe,{noLocation:!0}):null}catch(be){return new Error(be)}}var pe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ce={kind:"Document",definitions:[pe]},he=null;function Se(Oe){if(he&&he[0]===Oe)return he[1];var be=ae(Oe);return be?be instanceof Error?he?he[1]:ce:(he=[Oe,be],be):ce}var Ie={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Ge=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",displayTitleActions:!1},oe._modifySelections=function(xe,$e){var nt=oe.props.definition;nt.selectionSet.selections.length===0&&oe._previousOperationDef&&(nt=oe._previousOperationDef);var ht=void 0;if(nt.kind==="FragmentDefinition")ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:xe})});else if(nt.kind==="OperationDefinition"){var Ot=xe.filter(function(jt){return!(jt.kind==="Field"&&jt.name.value==="__typename")});Ot.length===0&&(Ot=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:Ot})})}return oe.props.onEdit(ht,$e)},oe._onOperationRename=function(xe){return oe.props.onOperationRename(xe.target.value)},oe._handlePotentialRun=function(xe){ee(xe)&&K(oe.props.definition.kind)&&oe.props.onRunOperation(oe.props.name)},oe._rootViewElId=function(){var xe=oe.props,$e=xe.operationType,nt=xe.name,ht=$e+"-"+(nt||"unknown");return ht},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){var Ee=this._rootViewElId();this.props.onMount(Ee)}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.operationType,et=oe.definition,ct=oe.schema,Ye=oe.getDefaultFieldNames,xe=oe.styleConfig,$e=this._rootViewElId(),nt=this.props.fields||{},ht=et,Ot=ht.selectionSet.selections,jt=this.props.name||y(je)+" Name";return o.createElement("div",{id:$e,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},o.createElement("div",{style:{color:xe.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return Ee.setState({displayTitleActions:!0})},onMouseLeave:function(){return Ee.setState({displayTitleActions:!1})}},je," ",o.createElement("span",{style:{color:xe.colors.def}},o.createElement("input",{style:{color:xe.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,jt.length)+"ch"},autoComplete:"false",placeholder:y(je)+" 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 Ee.props.onOperationDestroy()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"✕")),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Ee.props.onOperationClone()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"⎘"))):""),Object.keys(nt).sort().map(function(dt){return o.createElement(ge,{key:dt,field:nt[dt],selections:Ot,modifySelections:Ee._modifySelections,schema:ct,getDefaultFieldNames:Ye,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})}))}}]),be}(o.PureComponent);function Ze(){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 It=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",operation:null,operationToScrollTo:null},oe._resetScroll=function(){var xe=oe._ref;xe&&(xe.scrollLeft=0)},oe._onEdit=function(xe){return oe.props.onEdit(xe)},oe._setAddOperationType=function(xe){oe.setState({newOperationType:xe})},oe._handleRootViewMount=function(xe){if(oe.state.operationToScrollTo&&oe.state.operationToScrollTo===xe){var $e=".graphiql-explorer-root #"+xe,nt=document.querySelector($e);nt&&nt.scrollIntoView()}},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.schema,et=oe.query,ct=oe.makeDefaultArg;if(!je)return o.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var Ye={colors:this.props.colors||x,checkboxChecked:this.props.checkboxChecked||N,checkboxUnchecked:this.props.checkboxUnchecked||D,arrowClosed:this.props.arrowClosed||k,arrowOpen:this.props.arrowOpen||w,styles:this.props.styles?n({},Ie,this.props.styles):Ie},xe=je.getQueryType(),$e=je.getMutationType(),nt=je.getSubscriptionType();if(!xe&&!$e&&!nt)return o.createElement("div",null,"Missing query type");var ht=xe&&xe.getFields(),Ot=$e&&$e.getFields(),jt=nt&&nt.getFields(),dt=Se(et),Et=this.props.getDefaultFieldNames||_,pt=this.props.getDefaultScalarArgValue||X,Wt=dt.definitions,Vt=Wt.map(function(wt){return wt.kind==="FragmentDefinition"||wt.kind==="OperationDefinition"?wt:null}).filter(Boolean),Jt=Vt.length===0?ce.definitions:Vt,ot=function(Bt,cn){var kn=cn==null||cn===""?null:{kind:"Name",value:cn,loc:void 0},tr=n({},Bt,{name:kn}),Ft=dt.definitions,fn=Ft.map(function(Gt){return Bt===Gt?tr:Gt});return n({},dt,{definitions:fn})},qn=function(Bt){var cn=void 0;Bt.kind==="FragmentDefinition"?cn="fragment":cn=Bt.operation;var kn=(Bt.name&&Bt.name.value||"")+"Copy",tr={kind:"Name",value:kn,loc:void 0},Ft=n({},Bt,{name:tr}),fn=dt.definitions,Gt=[].concat(d(fn),[Ft]);return Ee.setState({operationToScrollTo:cn+"-"+kn}),n({},dt,{definitions:Gt})},vn=function(Bt){var cn=dt.definitions,kn=cn.filter(function(tr){return Bt!==tr});return n({},dt,{definitions:kn})},mt=function(Bt){var cn=dt.definitions,kn=dt.definitions.length===1&&dt.definitions[0]===ce.definitions[0],tr=kn?[]:cn.filter(function(Xo){return Xo.kind==="OperationDefinition"?Xo.operation===Bt:!1}),Ft="My"+y(Bt)+(tr.length===0?"":tr.length+1),fn="__typename # Placeholder value",Gt={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:fn,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},bn={kind:"OperationDefinition",operation:Bt,name:{kind:"Name",value:Ft},variableDefinitions:[],directives:[],selectionSet:Gt,loc:null},Ii=kn?[bn]:[].concat(d(dt.definitions),[bn]),Ko=n({},dt,{definitions:Ii});Ee.setState({operationToScrollTo:Bt+"-"+Ft}),Ee.props.onEdit((0,l.print)(Ko))},yn=[ht?o.createElement("option",{key:"query",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"query"},"Query"):null,Ot?o.createElement("option",{key:"mutation",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,jt?o.createElement("option",{key:"subscription",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),di=yn.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({},Ye.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(Bt){return Bt.preventDefault()}},o.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),o.createElement("select",{onChange:function(Bt){return Ee._setAddOperationType(Bt.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},yn),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Ee.state.newOperationType?mt(Ee.state.newOperationType):null},style:n({},Ye.styles.buttonStyle,{height:"22px",width:"22px"})},o.createElement("span",null,"+")))),on=this.props.externalFragments&&this.props.externalFragments.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,kn=wt[cn]||[],tr=[].concat(d(kn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,tr))}return wt},{}),Mr=Jt.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,kn=wt[cn]||[],tr=[].concat(d(kn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,tr))}return wt},{}),An=n({},Mr,on),Xi=this.props.showAttribution?o.createElement(Ze,null):null;return o.createElement("div",{ref:function(Bt){Ee._ref=Bt},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"}},Jt.map(function(wt,Bt){var cn=wt&&wt.name&&wt.name.value,kn=wt.kind==="FragmentDefinition"?"fragment":wt&&wt.operation||"query",tr=function(Er){var Bn=ot(wt,Er);Ee.props.onEdit((0,l.print)(Bn))},Ft=function(){var Er=qn(wt);Ee.props.onEdit((0,l.print)(Er))},fn=function(){var Er=vn(wt);Ee.props.onEdit((0,l.print)(Er))},Gt=wt.kind==="FragmentDefinition"&&wt.typeCondition.kind==="NamedType"&&je.getType(wt.typeCondition.name.value),bn=Gt instanceof l.GraphQLObjectType?Gt.getFields():null,Ii=kn==="query"?ht:kn==="mutation"?Ot:kn==="subscription"?jt:wt.kind==="FragmentDefinition"?bn:null,Ko=wt.kind==="FragmentDefinition"?wt.typeCondition.name.value:null,Xo=function(Er){var Bn=(0,l.print)(Er);Ee.props.onEdit(Bn)};return o.createElement(Ge,{key:Bt,isLast:Bt===Jt.length-1,fields:Ii,operationType:kn,name:cn,definition:wt,onOperationRename:tr,onOperationDestroy:fn,onOperationClone:Ft,onTypeName:Ko,onMount:Ee._handleRootViewMount,onCommit:Xo,onEdit:function(Er,Bn){var Lr=void 0;if((typeof Bn>"u"?"undefined":e(Bn))==="object"&&typeof Bn.commit<"u"?Lr=Bn.commit:Lr=!0,Er){var Fi=n({},dt,{definitions:dt.definitions.map(function($r){return $r===wt?Er:$r})});return Lr&&Xo(Fi),Fi}else return dt},schema:je,getDefaultFieldNames:Et,getDefaultScalarArgValue:pt,makeDefaultArg:ct,onRunOperation:function(){Ee.props.onRunOperation&&Ee.props.onRunOperation(cn)},styleConfig:Ye,availableFragments:An})}),Xi),di)}}]),be}(o.PureComponent);It.defaultProps={getDefaultFieldNames:_,getDefaultScalarArgValue:X};var vt=function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={hasError:!1,error:null,errorInfo:null},Ee),E(oe,je)}return r(be,[{key:"componentDidCatch",value:function(Ee,oe){this.setState({hasError:!0,error:Ee,errorInfo:oe}),console.error("Error in component",Ee,oe)}},{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}}]),be}(o.Component),at=function(Oe){b(be,Oe);function be(){return m(this,be),E(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return r(be,[{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(vt,null,o.createElement(It,this.props))))}}]),be}(o.PureComponent);return at.defaultValue=$,at.defaultProps={width:320,title:"Explorer"},mg.default=at,mg}var $F;function WZ(){if($F)return yp;$F=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.Explorer=void 0;var e=YZ(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return yp.Explorer=t.default,yp.default=t.default,yp}var QZ=WZ();const zF=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.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"})),KZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),M.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"}),M.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"})),XZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),ZZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),M.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),JZ={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))"},eJ=Ae.createElement(zF,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),tJ=Ae.createElement(zF,{style:{width:"var(--px-16)"}}),nJ=Ae.createElement(XZ,{style:{marginRight:"var(--px-4)"}}),rJ=Ae.createElement(ZZ,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),iJ={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}};function oJ(e){const{setOperationName:t}=Ei({nonNull:!0}),{schema:n}=fs({nonNull:!0}),{run:r}=pp({nonNull:!0}),i=M.useCallback(c=>{c&&t(c),r()},[r,t]),[o,l]=xF(VZ());return Ae.createElement(QZ.Explorer,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:JZ,arrowOpen:eJ,arrowClosed:tJ,checkboxUnchecked:nJ,checkboxChecked:rJ,styles:iJ,query:o,onEdit:l,...e})}function aJ(e){return{title:"GraphiQL Explorer",icon:KZ,content:()=>Ae.createElement(oJ,{...e})}}var vC=function(){return vC=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},vC.apply(this,arguments)},sJ=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},Ab=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},lJ=parseInt(Ae.version.slice(0,2),10);if(lJ<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(`
366
- `));function nc(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,x=e.onTabChange,w=e.onTogglePluginVisibility,k=e.operationName,N=e.plugins,D=e.query,A=e.response,_=e.schema,L=e.schemaDescription,V=e.shouldPersistHeaders,P=e.storage,F=e.validationRules,j=e.variables,$=e.visiblePlugin,X=e.defaultHeaders,J=sJ(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 Ae.createElement(mC,{getDefaultFieldNames:c,dangerouslyAssumeSchemaIsValid:n,defaultQuery:r,defaultHeaders:X,defaultTabs:i,externalFragments:o,fetcher:l,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:x,onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,operationName:k,query:D,response:A,schema:_,schemaDescription:L,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j},Ae.createElement(HF,vC({showPersistHeadersSettings:V!==!1,disableTabs:(t=J.disableTabs)!==null&&t!==void 0?t:!1},J)))}nc.Logo=GF,nc.Toolbar=YF,nc.Footer=WF;function HF(e){var t,n,r,i,o=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,l=Ei({nonNull:!0}),c=pp({nonNull:!0}),p=fs({nonNull:!0}),d=Zu(),m=hb(),E=mb({onCopyQuery:e.onCopyQuery}),b=Uf(),y=mp(),x=qF(),w=x.theme,k=x.setTheme,N=(n=m?.visiblePlugin)===null||n===void 0?void 0:n.content,D=xb({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:m?.visiblePlugin?void 0:"first",onHiddenElementChange:function(at){at==="first"&&m?.setVisiblePlugin(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),A=xb({direction:"horizontal",storageKey:"editorFlex"}),_=xb({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"}),L=Ab(M.useState(function(){return e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!l.initialVariables&&l.initialHeaders&&o?"headers":"variables"}),2),V=L[0],P=L[1],F=Ab(M.useState(null),2),j=F[0],$=F[1],X=Ab(M.useState(null),2),J=X[0],ee=X[1],K=Ae.Children.toArray(e.children),B=K.find(function(at){return bC(at,nc.Logo)})||Ae.createElement(nc.Logo,null),ne=K.find(function(at){return bC(at,nc.Toolbar)})||Ae.createElement(Ae.Fragment,null,Ae.createElement(_b,{onClick:y,label:"Prettify query (Shift-Ctrl-P)"},Ae.createElement(_Z,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(_b,{onClick:b,label:"Merge fragments into query (Shift-Ctrl-M)"},Ae.createElement(TZ,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(_b,{onClick:E,label:"Copy query (Shift-Ctrl-C)"},Ae.createElement(uZ,{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)&&Ae.createElement(e.toolbar.additionalComponent,null)),re=K.find(function(at){return bC(at,nc.Footer)}),se=M.useCallback(function(){D.hiddenElement==="first"&&D.setHiddenElement(null)},[D]),fe=M.useCallback(function(){try{d?.clear(),ee("success")}catch{ee("error")}},[d]),Z=M.useCallback(function(at){l.setShouldPersistHeaders(at.currentTarget.dataset.value==="true")},[l]),ge=M.useCallback(function(at){var Oe=at.currentTarget.dataset.theme;k(Oe||null)},[k]),ae=l.addTab,pe=p.introspect,ce=l.moveTab,he=M.useCallback(function(at){$(at.currentTarget.dataset.value)},[]),Se=M.useCallback(function(at){var Oe=m,be=Number(at.currentTarget.dataset.index),Le=Oe.plugins.find(function(oe,je){return be===je}),Ee=Le===Oe.visiblePlugin;Ee?(Oe.setVisiblePlugin(null),D.setHiddenElement("first")):(Oe.setVisiblePlugin(Le),D.setHiddenElement(null))},[m,D]),Ie=M.useCallback(function(at){_.hiddenElement==="second"&&_.setHiddenElement(null),P(at.currentTarget.dataset.name)},[_]),Ge=M.useCallback(function(){_.setHiddenElement(_.hiddenElement==="second"?null:"second")},[_]),Ze=M.useCallback(function(at){at||$(null)},[]),It=M.useCallback(function(at){at||($(null),ee(null))},[]),vt=Ae.createElement(Wi,{label:"Add tab"},Ae.createElement(ci,{type:"button",className:"graphiql-tab-add",onClick:ae,"aria-label":"Add tab"},Ae.createElement(CZ,{"aria-hidden":"true"})));return Ae.createElement(Wi.Provider,null,Ae.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},Ae.createElement("div",{className:"graphiql-sidebar"},Ae.createElement("div",{className:"graphiql-sidebar-section"},m?.plugins.map(function(at,Oe){var be=at===m.visiblePlugin,Le="".concat(be?"Hide":"Show"," ").concat(at.title),Ee=at.icon;return Ae.createElement(Wi,{key:at.title,label:Le},Ae.createElement(ci,{type:"button",className:be?"active":"",onClick:Se,"data-index":Oe,"aria-label":Le},Ae.createElement(Ee,{"aria-hidden":"true"})))})),Ae.createElement("div",{className:"graphiql-sidebar-section"},Ae.createElement(Wi,{label:"Re-fetch GraphQL schema"},Ae.createElement(ci,{type:"button",disabled:p.isFetching,onClick:pe,"aria-label":"Re-fetch GraphQL schema"},Ae.createElement(NZ,{className:p.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),Ae.createElement(Wi,{label:"Open short keys dialog"},Ae.createElement(ci,{type:"button","data-value":"short-keys",onClick:he,"aria-label":"Open short keys dialog"},Ae.createElement(EZ,{"aria-hidden":"true"}))),Ae.createElement(Wi,{label:"Open settings dialog"},Ae.createElement(ci,{type:"button","data-value":"settings",onClick:he,"aria-label":"Open settings dialog"},Ae.createElement(OZ,{"aria-hidden":"true"}))))),Ae.createElement("div",{className:"graphiql-main"},Ae.createElement("div",{ref:D.firstRef,style:{minWidth:"200px"}},Ae.createElement("div",{className:"graphiql-plugin"},N?Ae.createElement(N,null):null)),m?.visiblePlugin&&Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:D.dragBarRef}),Ae.createElement("div",{ref:D.secondRef,className:"graphiql-sessions"},Ae.createElement("div",{className:"graphiql-session-header"},e.disableTabs?null:Ae.createElement(K3,{values:l.tabs,onReorder:ce,"aria-label":"Select active operation"},l.tabs.length>1&&Ae.createElement(Ae.Fragment,null,l.tabs.map(function(at,Oe){return Ae.createElement(Yw,{key:at.id,value:at,isActive:Oe===l.activeTabIndex},Ae.createElement(Yw.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(Oe),onClick:function(){c.stop(),l.changeTab(Oe)}},at.title),Ae.createElement(Yw.Close,{onClick:function(){l.activeTabIndex===Oe&&c.stop(),l.closeTab(Oe)}}))}),vt)),Ae.createElement("div",{className:"graphiql-session-header-right"},l.tabs.length===1&&vt,B)),Ae.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(l.activeTabIndex)},Ae.createElement("div",{ref:A.firstRef},Ae.createElement("div",{className:"graphiql-editors".concat(l.tabs.length===1?" full-height":"")},Ae.createElement("div",{ref:_.firstRef},Ae.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},Ae.createElement(pC,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:se,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),Ae.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},Ae.createElement(Nb,null),ne))),Ae.createElement("div",{ref:_.dragBarRef},Ae.createElement("div",{className:"graphiql-editor-tools"},Ae.createElement(ci,{type:"button",className:V==="variables"&&_.hiddenElement!=="second"?"active":"",onClick:Ie,"data-name":"variables"},"Variables"),o&&Ae.createElement(ci,{type:"button",className:V==="headers"&&_.hiddenElement!=="second"?"active":"",onClick:Ie,"data-name":"headers"},"Headers"),Ae.createElement(Wi,{label:_.hiddenElement==="second"?"Show editor tools":"Hide editor tools"},Ae.createElement(ci,{type:"button",onClick:Ge,"aria-label":_.hiddenElement==="second"?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},_.hiddenElement==="second"?Ae.createElement(lZ,{className:"graphiql-chevron-icon","aria-hidden":"true"}):Ae.createElement(aZ,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),Ae.createElement("div",{ref:_.secondRef},Ae.createElement("section",{className:"graphiql-editor-tool","aria-label":V==="variables"?"Variables":"Headers"},Ae.createElement(Tb,{editorTheme:e.editorTheme,isHidden:V!=="variables",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:se,readOnly:e.readOnly}),o&&Ae.createElement(bb,{editorTheme:e.editorTheme,isHidden:V!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:A.dragBarRef}),Ae.createElement("div",{ref:A.secondRef},Ae.createElement("div",{className:"graphiql-response"},c.isFetching?Ae.createElement(Gw,null):null,Ae.createElement(hC,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),re))))),Ae.createElement(dp,{open:j==="short-keys",onOpenChange:Ze},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(dp.Title,{className:"graphiql-dialog-title"},"Short Keys"),Ae.createElement(dp.Close,null)),Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement(cJ,{keyMap:e.keyMap||"sublime"}))),Ae.createElement(dp,{open:j==="settings",onOpenChange:It},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(dp.Title,{className:"graphiql-dialog-title"},"Settings"),Ae.createElement(dp.Close,null)),e.showPersistHeadersSettings?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",Ae.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),Ae.createElement(Hw,null,Ae.createElement(cs,{type:"button",id:"enable-persist-headers",className:l.shouldPersistHeaders?"active":"","data-value":"true",onClick:Z},"On"),Ae.createElement(cs,{type:"button",id:"disable-persist-headers",className:l.shouldPersistHeaders?"":"active",onClick:Z},"Off"))):null,Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),Ae.createElement(Hw,null,Ae.createElement(cs,{type:"button",className:w===null?"active":"",onClick:ge},"System"),Ae.createElement(cs,{type:"button",className:w==="light"?"active":"","data-theme":"light",onClick:ge},"Light"),Ae.createElement(cs,{type:"button",className:w==="dark"?"active":"","data-theme":"dark",onClick:ge},"Dark"))),d?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),Ae.createElement(cs,{type:"button",state:J||void 0,disabled:J==="success",onClick:fe},{success:"Cleared data",error:"Failed"}[J]||"Clear data")):null)))}var yC=typeof window<"u"&&window.navigator.platform.toLowerCase().indexOf("mac")===0?"Cmd":"Ctrl",uJ=Object.entries({"Search in editor":[yC,"F"],"Search in documentation":[yC,"K"],"Execute query":[yC,"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 cJ(e){var t=e.keyMap;return Ae.createElement("div",null,Ae.createElement("table",{className:"graphiql-table"},Ae.createElement("thead",null,Ae.createElement("tr",null,Ae.createElement("th",null,"Short Key"),Ae.createElement("th",null,"Function"))),Ae.createElement("tbody",null,uJ.map(function(n){var r=Ab(n,2),i=r[0],o=r[1];return Ae.createElement("tr",{key:i},Ae.createElement("td",null,o.map(function(l,c,p){return Ae.createElement(M.Fragment,{key:l},Ae.createElement("code",{className:"graphiql-key"},l),c!==p.length-1&&" + ")})),Ae.createElement("td",null,i))}))),Ae.createElement("p",null,"The editors use"," ",Ae.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",Ae.createElement("em",null,"i"),"QL uses"," ",Ae.createElement("code",null,t),"."))}function GF(e){return Ae.createElement("div",{className:"graphiql-logo"},e.children||Ae.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",Ae.createElement("em",null,"i"),"QL"))}GF.displayName="GraphiQLLogo";function YF(e){return Ae.createElement(Ae.Fragment,null,e.children)}YF.displayName="GraphiQLToolbar";function WF(e){return Ae.createElement("div",{className:"graphiql-footer"},e.children)}WF.displayName="GraphiQLFooter";function bC(e,t){var n;return!((n=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);const Ob=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function cr(e){return e?.then!=null}function fJ(e){const t=e;return t&&t.then&&t.catch&&t.finally}function Xt(e,t,n,r){let i=xo().then(e).then(t,n);return mJ(i)}function xo(e){return e&&fJ(e)?e:cr(e)?{then:(t,n)=>xo(e.then(t,n)),catch:t=>xo(e.then(n=>n,t)),finally:t=>xo(t?hJ(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return xo(t(e))}catch(n){return Bf(n)}return this},catch(){return this},finally(t){if(t)try{return xo(t()).then(()=>e,()=>e)}catch(n){return Bf(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[Ob]:"resolved"}}function QF(){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 Bf(e){return{then(t,n){if(n)try{return xo(n(e))}catch(r){return Bf(r)}return this},catch(t){if(t)try{return xo(t(e))}catch(n){return Bf(n)}return this},finally(t){if(t)try{t()}catch(n){return Bf(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[Ob]:"rejected"}}function EC(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,o;typeof e.return=="function"&&(i=e.return,o=p=>{const d=()=>{throw p};return i.call(e).then(d,d)});function l(p){return p.done?p:Xt(()=>p.value,d=>Xt(()=>t(d),KF,o))}let c;if(n){let p;const d=n;c=m=>(p||=Xt(()=>m,E=>Xt(()=>d(E),KF,o)),p)}return{next(){return e.next().then(l,c)},return(){return i?i.call(e).then(l,c):xo({value:void 0,done:!0})},throw(p){return typeof e.throw=="function"?e.throw(p).then(l,c):o?o(p):Bf(p)},[Symbol.asyncIterator](){return this}}}function KF(e){return{value:e,done:!1}}function dJ(e){return e?.[Ob]==="resolved"}function pJ(e){return e?.[Ob]==="rejected"}function hJ(e,t){return"finally"in e?e.finally(t):e.then(n=>{const r=t();return cr(r)?r.then(()=>n):n},n=>{const r=t();if(cr(r))return r.then(()=>{throw n});throw n})}function mJ(e){if(dJ(e))return e.__fakePromiseValue;if(pJ(e))throw e.__fakeRejectError;return e}const XF=new WeakMap;function ZF(e,t){let n=XF.get(e);return!n&&t&&(n=t(e),XF.set(e,n)),n}const gJ=/^(https?|wss?|file):\/\//;function vJ(e){if(typeof e!="string"||!gJ.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch{return!1}}const yJ=e=>Array.isArray(e)?e:e?[e]:[];function bJ(e){return e!=null}const JF=3;function Ri(e){return Db(e,[])}function Db(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return EJ(e,t);default:return String(e)}}function e5(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message};
365
+ `;function bb({isHidden:e,...t}){const{headerEditor:n}=Ei({nonNull:!0,caller:bb}),r=gp(t,bb);return M.useEffect(()=>{e||n==null||n.refresh()},[n,e]),Y.jsx("div",{className:vi("graphiql-editor",e&&"hidden"),ref:r})}ke(bb,"HeaderEditor");function Eb(e){var t;const[n,r]=M.useState({width:null,height:null}),[i,o]=M.useState(null),l=M.useRef(null),c=(t=dC(e.token))==null?void 0:t.href;M.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]})}ke(Eb,"ImagePreview"),Eb.shouldRender=ke(function(e){const t=dC(e);return t?UF(t):!1},"shouldRender");function dC(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}}ke(dC,"tokenToURL");function UF(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}ke(UF,"isImageURL");function pC(e){const t=tc(e,pC);return Y.jsx("div",{className:"graphiql-editor",ref:t})}ke(pC,"QueryEditor");function Sb({responseTooltip:e,editorTheme:t=ab,keyMap:n=sb}={},r){const{fetchError:i,validationErrors:o}=fs({nonNull:!0,caller:r||Sb}),{initialResponse:l,responseEditor:c,setResponseEditor:p}=Ei({nonNull:!0,caller:r||Sb}),d=M.useRef(null),m=M.useRef(e);return M.useEffect(()=>{m.current=e},[e]),M.useEffect(()=>{let E=!0;return hp([Promise.resolve().then(()=>ZP).then(b=>b.f),Promise.resolve().then(()=>YP).then(b=>b.b),Promise.resolve().then(()=>a4).then(b=>b.d),Promise.resolve().then(()=>b4).then(b=>b.s),Promise.resolve().then(()=>i4).then(b=>b.s),Promise.resolve().then(()=>u4).then(b=>b.j),Promise.resolve().then(()=>d4).then(b=>b.s),Promise.resolve().then(()=>die),Promise.resolve().then(()=>$re)],{useCommonAddons:!1}).then(b=>{if(!E)return;const y=document.createElement("div");b.registerHelper("info","graphql-results",(k,N,D,A)=>{const _=[],L=m.current;return L&&_.push(Y.jsx(L,{pos:A,token:k})),Eb.shouldRender(k)&&_.push(Y.jsx(Eb,{token:k},"image-preview")),_.length?(MS.render(_,y),y):(MS.unmountComponentAtNode(y),null)});const x=d.current;if(!x)return;const w=b(x,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:lb});p(w)}),()=>{E=!1}},[t,l,p]),dg(c,"keyMap",n),M.useEffect(()=>{i&&c?.setValue(i),o.length>0&&c?.setValue(vm(o))},[c,i,o]),d}ke(Sb,"useResponseEditor");function hC(e){const t=Sb(e,hC);return Y.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}ke(hC,"ResponseEditor");function Tb({isHidden:e,...t}){const{variableEditor:n}=Ei({nonNull:!0,caller:Tb}),r=qf(t,Tb);return M.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),Y.jsx("div",{className:vi("graphiql-editor",e&&"hidden"),ref:r})}ke(Tb,"VariableEditor");function mC({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:x,onTogglePluginVisibility:w,operationName:k,plugins:N,query:D,response:A,schema:_,schemaDescription:L,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j,visiblePlugin:$}){return Y.jsx(q3,{storage:P,children:Y.jsx(Z3,{maxHistoryLength:E,children:Y.jsx(VF,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:p,onEditOperationName:b,onTabChange:x,query:D,response:A,shouldPersistHeaders:V,validationRules:F,variables:j,children:Y.jsx(Kw,{dangerouslyAssumeSchemaIsValid:t,fetcher:l,inputValueDeprecation:d,introspectionQueryName:m,onSchemaChange:y,schema:_,schemaDescription:L,children:Y.jsx(ob,{getDefaultFieldNames:c,fetcher:l,operationName:k,children:Y.jsx(Xw,{children:Y.jsx(EF,{onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,children:e})})})})})})})}ke(mC,"GraphiQLProvider");function qF(){const e=Zu(),[t,n]=M.useState(()=>{if(!e)return null;const i=e.get(gC);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&e.set(gC,""),null}});M.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=M.useCallback(i=>{e?.set(gC,i||""),n(i)},[e]);return M.useMemo(()=>({theme:t,setTheme:r}),[t,r])}ke(qF,"useTheme");const gC="theme";function xb({defaultSizeRelation:e=HZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:l}){const c=Zu(),p=M.useMemo(()=>Vf(500,D=>{l&&c?.set(l,D)}),[c,l]),[d,m]=M.useState(()=>{const D=l&&c?.get(l);return D===wb||n==="first"?"first":D===Cb||n==="second"?"second":null}),E=M.useCallback(D=>{D!==d&&(m(D),r?.(D))},[d,r]),b=M.useRef(null),y=M.useRef(null),x=M.useRef(null),w=M.useRef(`${e}`);M.useLayoutEffect(()=>{const D=l&&c?.get(l)||w.current;b.current&&(b.current.style.display="flex",b.current.style.flex=D===wb||D===Cb?w.current:D),x.current&&(x.current.style.display="flex",x.current.style.flex="1"),y.current&&(y.current.style.display="flex")},[t,c,l]);const k=M.useCallback(D=>{const A=D==="first"?b.current:x.current;if(A&&(A.style.left="-1000px",A.style.position="absolute",A.style.opacity="0",A.style.height="500px",A.style.width="500px",b.current)){const _=parseFloat(b.current.style.flex);(!Number.isFinite(_)||_<1)&&(b.current.style.flex="1")}},[]),N=M.useCallback(D=>{const A=D==="first"?b.current:x.current;if(A&&(A.style.width="",A.style.height="",A.style.opacity="",A.style.position="",A.style.left="",c&&l)){const _=c.get(l);b.current&&_!==wb&&_!==Cb&&(b.current.style.flex=_||w.current)}},[c,l]);return M.useLayoutEffect(()=>{d==="first"?k("first"):N("first"),d==="second"?k("second"):N("second")},[d,k,N]),M.useEffect(()=>{if(!y.current||!b.current||!x.current)return;const D=y.current,A=b.current,_=A.parentElement,L=t==="horizontal"?"clientX":"clientY",V=t==="horizontal"?"left":"top",P=t==="horizontal"?"right":"bottom",F=t==="horizontal"?"clientWidth":"clientHeight";function j(X){X.preventDefault();const J=X[L]-D.getBoundingClientRect()[V];function ee(B){if(B.buttons===0)return K();const ne=B[L]-_.getBoundingClientRect()[V]-J,re=_.getBoundingClientRect()[P]-B[L]+J-D[F];if(ne<i)E("first"),p(wb);else if(re<o)E("second"),p(Cb);else{E(null);const se=`${ne/re}`;A.style.flex=se,p(se)}}ke(ee,"handleMouseMove");function K(){document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",K)}ke(K,"handleMouseUp"),document.addEventListener("mousemove",ee),document.addEventListener("mouseup",K)}ke(j,"handleMouseDown"),D.addEventListener("mousedown",j);function $(){b.current&&(b.current.style.flex=w.current),p(w.current),E(null)}return ke($,"reset"),D.addEventListener("dblclick",$),()=>{D.removeEventListener("mousedown",j),D.removeEventListener("dblclick",$)}},[t,E,i,o,p]),M.useMemo(()=>({dragBarRef:y,hiddenElement:d,firstRef:b,setHiddenElement:m,secondRef:x}),[d,m])}ke(xb,"useDragResize");const HZ=1,wb="hide-first",Cb="hide-second",_b=M.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=M.useState(null),l=M.useCallback(c=>{try{t?.(c),o(null)}catch(p){o(p instanceof Error?p:new Error(`Toolbar button click failed: ${p}`))}},[t]);return Y.jsx(Wi,{label:e,children:Y.jsx(ci,{...n,ref:r,type:"button",className:vi("graphiql-toolbar-button",i&&"error",n.className),onClick:l,"aria-label":i?i.message:e,"aria-invalid":i?"true":n["aria-invalid"]})})});_b.displayName="ToolbarButton";function Nb(){const{queryEditor:e,setOperationName:t}=Ei({nonNull:!0,caller:Nb}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:l}=pp({nonNull:!0,caller:Nb}),c=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(RZ,{}):Y.jsx(wZ,{}),"aria-label":m};return p&&!d?Y.jsxs(Ju,{children:[Y.jsx(Wi,{label:m,children:Y.jsx(Ju.Button,{...E})}),Y.jsx(Ju.Content,{children:c.map((b,y)=>{const x=b.name?b.name.value:`<Unnamed ${b.operation}>`;return Y.jsx(Ju.Item,{onSelect:()=>{var w;const k=(w=b.name)==null?void 0:w.value;e&&k&&k!==e.operationName&&t(k),o()},children:x},`${x}-${y}`)})})]}):Y.jsx(Wi,{label:m,children:Y.jsx("button",{...E,onClick:()=>{d?l():o()}})})}ke(Nb,"ExecuteButton"),ag(ke(({button:e,children:t,label:n,...r})=>Y.jsxs(Ju,{...r,children:[Y.jsx(Wi,{label:n,children:Y.jsx(Ju.Button,{className:vi("graphiql-un-styled graphiql-toolbar-menu",r.className),"aria-label":n,children:e})}),Y.jsx(Ju.Content,{children:t})]}),"ToolbarMenuRoot"),{Item:Ju.Item});var yp={},mg={};const GZ=Z_(Y8);var BF;function YZ(){if(BF)return mg;BF=1,Object.defineProperty(mg,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},t=(function(){function Oe(be,Le){var Ee=[],oe=!0,je=!1,et=void 0;try{for(var ct=be[Symbol.iterator](),Ye;!(oe=(Ye=ct.next()).done)&&(Ee.push(Ye.value),!(Le&&Ee.length===Le));oe=!0);}catch(xe){je=!0,et=xe}finally{try{!oe&&ct.return&&ct.return()}finally{if(je)throw et}}return Ee}return function(be,Le){if(Array.isArray(be))return be;if(Symbol.iterator in Object(be))return Oe(be,Le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),n=Object.assign||function(Oe){for(var be=1;be<arguments.length;be++){var Le=arguments[be];for(var Ee in Le)Object.prototype.hasOwnProperty.call(Le,Ee)&&(Oe[Ee]=Le[Ee])}return Oe},r=(function(){function Oe(be,Le){for(var Ee=0;Ee<Le.length;Ee++){var oe=Le[Ee];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(be,oe.key,oe)}}return function(be,Le,Ee){return Le&&Oe(be.prototype,Le),Ee&&Oe(be,Ee),be}})();mg.defaultValue=$;var i=Wv(),o=c(i),l=GZ;function c(Oe){if(Oe&&Oe.__esModule)return Oe;var be={};if(Oe!=null)for(var Le in Oe)Object.prototype.hasOwnProperty.call(Oe,Le)&&(be[Le]=Oe[Le]);return be.default=Oe,be}function p(Oe,be,Le){return be in Oe?Object.defineProperty(Oe,be,{value:Le,enumerable:!0,configurable:!0,writable:!0}):Oe[be]=Le,Oe}function d(Oe){if(Array.isArray(Oe)){for(var be=0,Le=Array(Oe.length);be<Oe.length;be++)Le[be]=Oe[be];return Le}else return Array.from(Oe)}function m(Oe,be){if(!(Oe instanceof be))throw new TypeError("Cannot call a class as a function")}function E(Oe,be){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:Oe}function b(Oe,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);Oe.prototype=Object.create(be&&be.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,be):Oe.__proto__=be)}function y(Oe){return Oe.charAt(0).toUpperCase()+Oe.slice(1)}var x={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},w=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),k=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),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"})),D=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 A(Oe){return Oe.checked?Oe.styleConfig.checkboxChecked:Oe.styleConfig.checkboxUnchecked}function _(Oe){var be=Oe.getFields();if(be.id){var Le=["id"];return be.email?Le.push("email"):be.name&&Le.push("name"),Le}if(be.edges)return["edges"];if(be.node)return["node"];if(be.nodes)return["nodes"];var Ee=[];return Object.keys(be).forEach(function(oe){(0,l.isLeafType)(be[oe].type)&&Ee.push(oe)}),Ee.length?Ee.slice(0,2):["__typename"]}function L(Oe){return(0,l.isNonNullType)(Oe.type)&&Oe.defaultValue===void 0}function V(Oe){for(var be=Oe;(0,l.isWrappingType)(be);)be=be.ofType;return be}function P(Oe){for(var be=Oe;(0,l.isWrappingType)(be);)be=be.ofType;return be}function F(Oe,be){if(typeof be!="string"&&be.kind==="VariableDefinition")return be.variable;if((0,l.isScalarType)(Oe))try{switch(Oe.name){case"String":return{kind:"StringValue",value:String(Oe.parseValue(be))};case"Float":return{kind:"FloatValue",value:String(Oe.parseValue(parseFloat(be)))};case"Int":return{kind:"IntValue",value:String(Oe.parseValue(parseInt(be,10)))};case"Boolean":try{var Le=JSON.parse(be);return typeof Le=="boolean"?{kind:"BooleanValue",value:Le}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(Oe.parseValue(be))}}}catch(oe){return console.error("error coercing arg value",oe,be),{kind:"StringValue",value:be}}else try{var Ee=Oe.parseValue(be);return Ee?{kind:"EnumValue",value:String(Ee)}:{kind:"EnumValue",value:Oe.getValues()[0].name}}catch{return{kind:"EnumValue",value:Oe.getValues()[0].name}}}var j=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){return oe.props.selection.fields.find(function(xe){return xe.name.value===oe.props.arg.name})},oe._removeArg=function(){var xe=oe.props.selection,$e=oe._getArgSelection();oe._previousArgSelection=$e,oe.props.modifyFields(xe.fields.filter(function(nt){return nt!==$e}),!0)},oe._addArg=function(){var xe=oe.props,$e=xe.selection,nt=xe.arg,ht=xe.getDefaultScalarArgValue,Ot=xe.parentField,jt=xe.makeDefaultArg,dt=P(nt.type),Et=null;if(oe._previousArgSelection)Et=oe._previousArgSelection;else if((0,l.isInputObjectType)(dt)){var pt=dt.getFields();Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:{kind:"ObjectValue",fields:fe(ht,jt,Ot,Object.keys(pt).map(function(Wt){return pt[Wt]}))}}}else(0,l.isLeafType)(dt)&&(Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:ht(Ot,nt,dt)});if(!Et)console.error("Unable to add arg for argType",dt);else return oe.props.modifyFields([].concat(d($e.fields||[]),[Et]),!0)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Ot=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Ot=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Ot;if(!pt){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",xe);return}var Wt=void 0,Vt=void 0;xe===null||typeof xe>"u"?Vt=null:!xe.target&&xe.kind&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"?Vt=xe:xe.target&&typeof xe.target.value=="string"&&(Wt=xe.target.value,Vt=F(Et,Wt));var Jt=oe.props.modifyFields((jt.fields||[]).map(function(ot){var qn=ot===dt,vn=qn?n({},ot,{value:Vt}):ot;return vn}),$e);return Jt},oe._modifyChildFields=function(xe){return oe.props.modifyFields(oe.props.selection.fields.map(function($e){return $e.name.value===oe.props.arg.name?n({},$e,{value:{kind:"ObjectValue",fields:xe}}):$e}),!0)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props,oe=Ee.arg,je=Ee.parentField,et=this._getArgSelection();return o.createElement(ne,{argValue:et?et.value:null,arg:oe,parentField:je,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})}}]),be})(o.PureComponent);function $(Oe){if((0,l.isEnumType)(Oe))return{kind:"EnumValue",value:Oe.getValues()[0].name};switch(Oe.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 X(Oe,be,Le){return $(Le)}var J=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){var xe=oe.props.selection;return(xe.arguments||[]).find(function($e){return $e.name.value===oe.props.arg.name})},oe._removeArg=function(xe){var $e=oe.props.selection,nt=oe._getArgSelection();return oe._previousArgSelection=nt,oe.props.modifyArguments(($e.arguments||[]).filter(function(ht){return ht!==nt}),xe)},oe._addArg=function(xe){var $e=oe.props,nt=$e.selection,ht=$e.getDefaultScalarArgValue,Ot=$e.makeDefaultArg,jt=$e.parentField,dt=$e.arg,Et=P(dt.type),pt=null;if(oe._previousArgSelection)pt=oe._previousArgSelection;else if((0,l.isInputObjectType)(Et)){var Wt=Et.getFields();pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:{kind:"ObjectValue",fields:fe(ht,Ot,jt,Object.keys(Wt).map(function(Vt){return Wt[Vt]}))}}}else(0,l.isLeafType)(Et)&&(pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:ht(jt,dt,Et)});return pt?oe.props.modifyArguments([].concat(d(nt.arguments||[]),[pt]),xe):(console.error("Unable to add arg for argType",Et),null)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Ot=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Ot=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt&&!ht){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Ot;if(!pt){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var Wt=void 0,Vt=void 0;return xe===null||typeof xe>"u"?Vt=null:xe.target&&typeof xe.target.value=="string"?(Wt=xe.target.value,Vt=F(Et,Wt)):!xe.target&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"&&(Vt=xe),oe.props.modifyArguments((jt.arguments||[]).map(function(Jt){return Jt===dt?n({},Jt,{value:Vt}):Jt}),$e)},oe._setArgFields=function(xe,$e){var nt=oe.props.selection,ht=oe._getArgSelection();if(!ht){console.error("missing arg selection when setting arg value");return}return oe.props.modifyArguments((nt.arguments||[]).map(function(Ot){return Ot===ht?n({},Ot,{value:{kind:"ObjectValue",fields:xe}}):Ot}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props,oe=Ee.arg,je=Ee.parentField,et=this._getArgSelection();return o.createElement(ne,{argValue:et?et.value:null,arg:oe,parentField:je,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})}}]),be})(o.PureComponent);function ee(Oe){return Oe.ctrlKey&&Oe.key==="Enter"}function K(Oe){return Oe!=="FragmentDefinition"}var B=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._handleChange=function(xe){oe.props.setArgValue(xe,!0)},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){var Ee=this._ref,oe=document.activeElement;Ee&&oe&&!(oe instanceof HTMLTextAreaElement)&&(Ee.focus(),Ee.setSelectionRange(0,Ee.value.length))}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.arg,et=oe.argValue,ct=oe.styleConfig,Ye=P(je.type),xe=typeof et.value=="string"?et.value:"",$e=this.props.argValue.kind==="StringValue"?ct.colors.string:ct.colors.number;return o.createElement("span",{style:{color:$e}},Ye.name==="String"?'"':"",o.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,xe.length))+"ch",color:$e},ref:function(ht){Ee._ref=ht},type:"text",onChange:this._handleChange,value:xe}),Ye.name==="String"?'"':"")}}]),be})(o.PureComponent),ne=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayArgActions:!1},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.argValue,et=oe.arg,ct=oe.styleConfig,Ye=P(et.type),xe=null;if(je){if(je.kind==="Variable")xe=o.createElement("span",{style:{color:ct.colors.variable}},"$",je.name.value);else if((0,l.isScalarType)(Ye))Ye.name==="Boolean"?xe=o.createElement("select",{style:{color:ct.colors.builtin},onChange:this.props.setArgValue,value:je.kind==="BooleanValue"?je.value:void 0},o.createElement("option",{key:"true",value:"true"},"true"),o.createElement("option",{key:"false",value:"false"},"false")):xe=o.createElement(B,{setArgValue:this.props.setArgValue,arg:et,argValue:je,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(Ye))je.kind==="EnumValue"?xe=o.createElement("select",{style:{backgroundColor:"white",color:ct.colors.string2},onChange:this.props.setArgValue,value:je.value},Ye.getValues().map(function(dt){return o.createElement("option",{key:dt.name,value:dt.name},dt.name)})):console.error("arg mismatch between arg and selection",Ye,je);else if((0,l.isInputObjectType)(Ye))if(je.kind==="ObjectValue"){var $e=Ye.getFields();xe=o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(dt){return o.createElement(j,{key:dt,arg:$e[dt],parentField:Ee.props.parentField,selection:je,modifyFields:Ee.props.setArgFields,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})}))}else console.error("arg mismatch between arg and selection",Ye,je)}var nt=function(){var Et=et.name,pt=(Ee.props.definition.variableDefinitions||[]).filter(function(Ft){return Ft.variable.name.value.startsWith(Et)}).length,Wt=void 0;pt>0?Wt=""+Et+pt:Wt=Et;var Vt=et.type.toString(),Jt=(0,l.parseType)(Vt),ot={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:Wt}},type:Jt,directives:[]},qn=function(fn){return(Ee.props.definition.variableDefinitions||[]).find(function(Gt){return Gt.variable.name.value===fn})},vn=void 0,mt={};if(typeof je<"u"&&je!==null){var yn=(0,l.visit)(je,{Variable:function(fn){var Gt=fn.name.value,bn=qn(Gt);if(mt[Gt]=mt[Gt]+1||1,!!bn)return bn.defaultValue}}),di=ot.type.kind==="NonNullType",on=di?n({},ot,{type:ot.type.type}):ot;vn=n({},on,{defaultValue:yn})}else vn=ot;var Mr=Object.entries(mt).filter(function(Ft){var fn=t(Ft,2);fn[0];var Gt=fn[1];return Gt<2}).map(function(Ft){var fn=t(Ft,2),Gt=fn[0];return fn[1],Gt});if(vn){var An=Ee.props.setArgValue(vn,!1);if(An){var Xi=An.definitions.find(function(Ft){return Ft.operation&&Ft.name&&Ft.name.value&&Ee.props.definition.name&&Ee.props.definition.name.value?Ft.name.value===Ee.props.definition.name.value:!1}),wt=[].concat(d(Xi.variableDefinitions||[]),[vn]).filter(function(Ft){return Mr.indexOf(Ft.variable.name.value)===-1}),Bt=n({},Xi,{variableDefinitions:wt}),cn=An.definitions,kn=cn.map(function(Ft){return Xi===Ft?Bt:Ft}),tr=n({},An,{definitions:kn});Ee.props.onCommit(tr)}}},ht=function(){if(!(!je||!je.name||!je.name.value)){var Et=je.name.value,pt=(Ee.props.definition.variableDefinitions||[]).find(function(on){return on.variable.name.value===Et});if(pt){var Wt=pt.defaultValue,Vt=Ee.props.setArgValue(Wt,{commit:!1});if(Vt){var Jt=Vt.definitions.find(function(on){return on.name.value===Ee.props.definition.name.value});if(!Jt)return;var ot=0;(0,l.visit)(Jt,{Variable:function(Mr){Mr.name.value===Et&&(ot=ot+1)}});var qn=Jt.variableDefinitions||[];ot<2&&(qn=qn.filter(function(on){return on.variable.name.value!==Et}));var vn=n({},Jt,{variableDefinitions:qn}),mt=Vt.definitions,yn=mt.map(function(on){return Jt===on?vn:on}),di=n({},Vt,{definitions:yn});Ee.props.onCommit(di)}}}},Ot=je&&je.kind==="Variable",jt=this.state.displayArgActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:Ot?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(Et){Et.preventDefault(),Et.stopPropagation(),Ot?ht():nt()},style:ct.styles.actionButtonStyle},o.createElement("span",{style:{color:ct.colors.variable}},"$")):null;return o.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":et.name,"data-arg-type":Ye.name,className:"graphiql-explorer-"+et.name},o.createElement("span",{style:{cursor:"pointer"},onClick:function(Et){var pt=!je;pt?Ee.props.addArg(!0):Ee.props.removeArg(!0),Ee.setState({displayArgActions:pt})}},(0,l.isInputObjectType)(Ye)?o.createElement("span",null,je?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):o.createElement(A,{checked:!!je,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:ct.colors.attribute},title:et.description,onMouseEnter:function(){je!==null&&typeof je<"u"&&Ee.setState({displayArgActions:!0})},onMouseLeave:function(){return Ee.setState({displayArgActions:!1})}},et.name,L(et)?"*":"",": ",jt," ")," "),xe||o.createElement("span",null)," ")}}]),be})(o.PureComponent),re=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:oe.props.getDefaultFieldNames(oe.props.implementingType).map(function(xe){return{kind:"Field",name:{kind:"Name",value:xe}}})}}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="InlineFragment"&&$e.typeCondition&&oe.props.implementingType.name===$e.typeCondition.name.value});if(!xe)return null;if(xe.kind==="InlineFragment")return xe},oe._modifyChildSelections=function(xe,$e){var nt=oe._getSelection();return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{directives:ht.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:xe}}:ht}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.implementingType,et=oe.schema,ct=oe.getDefaultFieldNames,Ye=oe.styleConfig,xe=this._getSelection(),$e=je.getFields(),nt=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+je.name},o.createElement("span",{style:{cursor:"pointer"},onClick:xe?this._removeFragment:this._addFragment},o.createElement(A,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ye.colors.atom}},this.props.implementingType.name)),xe?o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(ht){return o.createElement(ge,{key:ht,field:$e[ht],selections:nt,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,onCommit:Ee.props.onCommit,styleConfig:Ee.props.styleConfig,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})})):null)}}]),be})(o.PureComponent),se=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"FragmentSpread",name:oe.props.fragment.name}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){var nt=$e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value;return!nt}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value});return xe},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this.props.styleConfig,oe=this._getSelection();return o.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},o.createElement("span",{style:{cursor:"pointer"},onClick:oe?this._removeFragment:this._addFragment},o.createElement(A,{checked:!!oe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ee.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),be})(o.PureComponent);function fe(Oe,be,Le,Ee){var oe=[],je=!0,et=!1,ct=void 0;try{for(var Ye=Ee[Symbol.iterator](),xe;!(je=(xe=Ye.next()).done);je=!0){var $e=xe.value;if((0,l.isRequiredInputField)($e)||be&&be(Le,$e)){var nt=P($e.type);(0,l.isInputObjectType)(nt)?(function(){var ht=nt.getFields();oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:{kind:"ObjectValue",fields:fe(Oe,be,Le,Object.keys(ht).map(function(Ot){return ht[Ot]}))}})})():(0,l.isLeafType)(nt)&&oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:Oe(Le,$e,nt)})}}}catch(ht){et=!0,ct=ht}finally{try{!je&&Ye.return&&Ye.return()}finally{if(et)throw ct}}return oe}function Z(Oe,be,Le){var Ee=[],oe=!0,je=!1,et=void 0;try{for(var ct=Le.args[Symbol.iterator](),Ye;!(oe=(Ye=ct.next()).done);oe=!0){var xe=Ye.value;if(L(xe)||be&&be(Le,xe)){var $e=P(xe.type);(0,l.isInputObjectType)($e)?(function(){var nt=$e.getFields();Ee.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:{kind:"ObjectValue",fields:fe(Oe,be,Le,Object.keys(nt).map(function(ht){return nt[ht]}))}})})():(0,l.isLeafType)($e)&&Ee.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:Oe(Le,xe,$e)})}}}catch(nt){je=!0,et=nt}finally{try{!oe&&ct.return&&ct.return()}finally{if(je)throw et}}return Ee}var ge=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayFieldActions:!1},oe._addAllFieldsToSelections=function(xe){var $e=xe?Object.keys(xe).map(function(Ot){return{kind:"Field",name:{kind:"Name",value:Ot},arguments:[]}}):[],nt={kind:"SelectionSet",selections:$e},ht=[].concat(d(oe.props.selections.filter(function(Ot){return Ot.kind==="InlineFragment"?!0:Ot.name.value!==oe.props.field.name})),[{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field),selectionSet:nt}]);oe.props.modifySelections(ht)},oe._addFieldToSelections=function(xe){var $e=[].concat(d(oe.props.selections),[oe._previousSelection||{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field)}]);oe.props.modifySelections($e)},oe._handleUpdateSelections=function(xe){var $e=oe._getSelection();if($e&&!xe.altKey)oe._removeFieldFromSelections();else{var nt=(0,l.getNamedType)(oe.props.field.type),ht=(0,l.isObjectType)(nt)&&nt.getFields(),Ot=!!ht&&xe.altKey;Ot?oe._addAllFieldsToSelections(ht):oe._addFieldToSelections(ht)}},oe._removeFieldFromSelections=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="Field"&&oe.props.field.name===$e.name.value});if(!xe)return null;if(xe.kind==="Field")return xe},oe._setArguments=function(xe,$e){var nt=oe._getSelection();if(!nt){console.error("Missing selection when setting arguments",xe);return}return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{alias:nt.alias,arguments:xe,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:nt.selectionSet}:ht}),$e)},oe._modifyChildSelections=function(xe,$e){return oe.props.modifySelections(oe.props.selections.map(function(nt){if(nt.kind==="Field"&&oe.props.field.name===nt.name.value){if(nt.kind!=="Field")throw new Error("invalid selection");return{alias:nt.alias,arguments:nt.arguments,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:{kind:"SelectionSet",selections:xe}}}return nt}),$e)},Ee),E(oe,je)}return r(be,[{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.field,et=oe.schema,ct=oe.getDefaultFieldNames,Ye=oe.styleConfig,xe=this._getSelection(),$e=V(je.type),nt=je.args.sort(function(pt,Wt){return pt.name.localeCompare(Wt.name)}),ht="graphiql-explorer-node graphiql-explorer-"+je.name;je.isDeprecated&&(ht+=" graphiql-explorer-deprecated");var Ot=(0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?this.props.availableFragments&&this.props.availableFragments[$e.name]:null,jt=o.createElement("div",{className:ht},o.createElement("span",{title:je.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":je.name,"data-field-type":$e.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Wt=(0,l.isObjectType)($e)&&xe&&xe.selectionSet&&xe.selectionSet.selections.filter(function(Vt){return Vt.kind!=="FragmentSpread"}).length>0;Wt&&Ee.setState({displayFieldActions:!0})},onMouseLeave:function(){return Ee.setState({displayFieldActions:!1})}},(0,l.isObjectType)($e)?o.createElement("span",null,xe?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)($e)?null:o.createElement(A,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Ye.colors.property},className:"graphiql-explorer-field-view"},je.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=$e.name,Jt=Vt+"Fragment",ot=(Ot||[]).filter(function(on){return on.name.value.startsWith(Jt)}).length;ot>0&&(Jt=""+Jt+ot);var qn=xe?xe.selectionSet?xe.selectionSet.selections:[]:[],vn=[{kind:"FragmentSpread",name:{kind:"Name",value:Jt},directives:[]}],mt={kind:"FragmentDefinition",name:{kind:"Name",value:Jt},typeCondition:{kind:"NamedType",name:{kind:"Name",value:$e.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:qn}},yn=Ee._modifyChildSelections(vn,!1);if(yn){var di=n({},yn,{definitions:[].concat(d(yn.definitions),[mt])});Ee.props.onCommit(di)}else console.warn("Unable to complete extractFragment operation")},style:n({},Ye.styles.actionButtonStyle)},o.createElement("span",null,"…")):null),xe&&nt.length?o.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},nt.map(function(pt){return o.createElement(J,{key:pt.name,parentField:je,arg:pt,selection:xe,modifyArguments:Ee._setArguments,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})})):null);if(xe&&((0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e))){var dt=(0,l.isUnionType)($e)?{}:$e.getFields(),Et=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+je.name},jt,o.createElement("div",{style:{marginLeft:16}},Ot?Ot.map(function(pt){var Wt=et.getType(pt.typeCondition.name.value),Vt=pt.name.value;return Wt?o.createElement(se,{key:Vt,fragment:pt,selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit}):null}):null,Object.keys(dt).sort().map(function(pt){return o.createElement(be,{key:pt,field:dt[pt],selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})}),(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?et.getPossibleTypes($e).map(function(pt){return o.createElement(re,{key:pt.name,implementingType:pt,selections:Et,modifySelections:Ee._modifyChildSelections,schema:et,getDefaultFieldNames:ct,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition})}):null))}return jt}}]),be})(o.PureComponent);function ae(Oe){try{return Oe.trim()?(0,l.parse)(Oe,{noLocation:!0}):null}catch(be){return new Error(be)}}var pe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ce={kind:"Document",definitions:[pe]},he=null;function Se(Oe){if(he&&he[0]===Oe)return he[1];var be=ae(Oe);return be?be instanceof Error?he?he[1]:ce:(he=[Oe,be],be):ce}var Ie={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Ge=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",displayTitleActions:!1},oe._modifySelections=function(xe,$e){var nt=oe.props.definition;nt.selectionSet.selections.length===0&&oe._previousOperationDef&&(nt=oe._previousOperationDef);var ht=void 0;if(nt.kind==="FragmentDefinition")ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:xe})});else if(nt.kind==="OperationDefinition"){var Ot=xe.filter(function(jt){return!(jt.kind==="Field"&&jt.name.value==="__typename")});Ot.length===0&&(Ot=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:Ot})})}return oe.props.onEdit(ht,$e)},oe._onOperationRename=function(xe){return oe.props.onOperationRename(xe.target.value)},oe._handlePotentialRun=function(xe){ee(xe)&&K(oe.props.definition.kind)&&oe.props.onRunOperation(oe.props.name)},oe._rootViewElId=function(){var xe=oe.props,$e=xe.operationType,nt=xe.name,ht=$e+"-"+(nt||"unknown");return ht},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){var Ee=this._rootViewElId();this.props.onMount(Ee)}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.operationType,et=oe.definition,ct=oe.schema,Ye=oe.getDefaultFieldNames,xe=oe.styleConfig,$e=this._rootViewElId(),nt=this.props.fields||{},ht=et,Ot=ht.selectionSet.selections,jt=this.props.name||y(je)+" Name";return o.createElement("div",{id:$e,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},o.createElement("div",{style:{color:xe.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return Ee.setState({displayTitleActions:!0})},onMouseLeave:function(){return Ee.setState({displayTitleActions:!1})}},je," ",o.createElement("span",{style:{color:xe.colors.def}},o.createElement("input",{style:{color:xe.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,jt.length)+"ch"},autoComplete:"false",placeholder:y(je)+" 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 Ee.props.onOperationDestroy()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"✕")),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Ee.props.onOperationClone()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"⎘"))):""),Object.keys(nt).sort().map(function(dt){return o.createElement(ge,{key:dt,field:nt[dt],selections:Ot,modifySelections:Ee._modifySelections,schema:ct,getDefaultFieldNames:Ye,getDefaultScalarArgValue:Ee.props.getDefaultScalarArgValue,makeDefaultArg:Ee.props.makeDefaultArg,onRunOperation:Ee.props.onRunOperation,styleConfig:Ee.props.styleConfig,onCommit:Ee.props.onCommit,definition:Ee.props.definition,availableFragments:Ee.props.availableFragments})}))}}]),be})(o.PureComponent);function Ze(){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 It=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",operation:null,operationToScrollTo:null},oe._resetScroll=function(){var xe=oe._ref;xe&&(xe.scrollLeft=0)},oe._onEdit=function(xe){return oe.props.onEdit(xe)},oe._setAddOperationType=function(xe){oe.setState({newOperationType:xe})},oe._handleRootViewMount=function(xe){if(oe.state.operationToScrollTo&&oe.state.operationToScrollTo===xe){var $e=".graphiql-explorer-root #"+xe,nt=document.querySelector($e);nt&&nt.scrollIntoView()}},Ee),E(oe,je)}return r(be,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var Ee=this,oe=this.props,je=oe.schema,et=oe.query,ct=oe.makeDefaultArg;if(!je)return o.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var Ye={colors:this.props.colors||x,checkboxChecked:this.props.checkboxChecked||N,checkboxUnchecked:this.props.checkboxUnchecked||D,arrowClosed:this.props.arrowClosed||k,arrowOpen:this.props.arrowOpen||w,styles:this.props.styles?n({},Ie,this.props.styles):Ie},xe=je.getQueryType(),$e=je.getMutationType(),nt=je.getSubscriptionType();if(!xe&&!$e&&!nt)return o.createElement("div",null,"Missing query type");var ht=xe&&xe.getFields(),Ot=$e&&$e.getFields(),jt=nt&&nt.getFields(),dt=Se(et),Et=this.props.getDefaultFieldNames||_,pt=this.props.getDefaultScalarArgValue||X,Wt=dt.definitions,Vt=Wt.map(function(wt){return wt.kind==="FragmentDefinition"||wt.kind==="OperationDefinition"?wt:null}).filter(Boolean),Jt=Vt.length===0?ce.definitions:Vt,ot=function(Bt,cn){var kn=cn==null||cn===""?null:{kind:"Name",value:cn,loc:void 0},tr=n({},Bt,{name:kn}),Ft=dt.definitions,fn=Ft.map(function(Gt){return Bt===Gt?tr:Gt});return n({},dt,{definitions:fn})},qn=function(Bt){var cn=void 0;Bt.kind==="FragmentDefinition"?cn="fragment":cn=Bt.operation;var kn=(Bt.name&&Bt.name.value||"")+"Copy",tr={kind:"Name",value:kn,loc:void 0},Ft=n({},Bt,{name:tr}),fn=dt.definitions,Gt=[].concat(d(fn),[Ft]);return Ee.setState({operationToScrollTo:cn+"-"+kn}),n({},dt,{definitions:Gt})},vn=function(Bt){var cn=dt.definitions,kn=cn.filter(function(tr){return Bt!==tr});return n({},dt,{definitions:kn})},mt=function(Bt){var cn=dt.definitions,kn=dt.definitions.length===1&&dt.definitions[0]===ce.definitions[0],tr=kn?[]:cn.filter(function(Xo){return Xo.kind==="OperationDefinition"?Xo.operation===Bt:!1}),Ft="My"+y(Bt)+(tr.length===0?"":tr.length+1),fn="__typename # Placeholder value",Gt={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:fn,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},bn={kind:"OperationDefinition",operation:Bt,name:{kind:"Name",value:Ft},variableDefinitions:[],directives:[],selectionSet:Gt,loc:null},Ii=kn?[bn]:[].concat(d(dt.definitions),[bn]),Ko=n({},dt,{definitions:Ii});Ee.setState({operationToScrollTo:Bt+"-"+Ft}),Ee.props.onEdit((0,l.print)(Ko))},yn=[ht?o.createElement("option",{key:"query",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"query"},"Query"):null,Ot?o.createElement("option",{key:"mutation",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,jt?o.createElement("option",{key:"subscription",className:"toolbar-button",style:Ye.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),di=yn.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({},Ye.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(Bt){return Bt.preventDefault()}},o.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),o.createElement("select",{onChange:function(Bt){return Ee._setAddOperationType(Bt.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},yn),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Ee.state.newOperationType?mt(Ee.state.newOperationType):null},style:n({},Ye.styles.buttonStyle,{height:"22px",width:"22px"})},o.createElement("span",null,"+")))),on=this.props.externalFragments&&this.props.externalFragments.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,kn=wt[cn]||[],tr=[].concat(d(kn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,tr))}return wt},{}),Mr=Jt.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,kn=wt[cn]||[],tr=[].concat(d(kn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,tr))}return wt},{}),An=n({},Mr,on),Xi=this.props.showAttribution?o.createElement(Ze,null):null;return o.createElement("div",{ref:function(Bt){Ee._ref=Bt},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"}},Jt.map(function(wt,Bt){var cn=wt&&wt.name&&wt.name.value,kn=wt.kind==="FragmentDefinition"?"fragment":wt&&wt.operation||"query",tr=function(Er){var Bn=ot(wt,Er);Ee.props.onEdit((0,l.print)(Bn))},Ft=function(){var Er=qn(wt);Ee.props.onEdit((0,l.print)(Er))},fn=function(){var Er=vn(wt);Ee.props.onEdit((0,l.print)(Er))},Gt=wt.kind==="FragmentDefinition"&&wt.typeCondition.kind==="NamedType"&&je.getType(wt.typeCondition.name.value),bn=Gt instanceof l.GraphQLObjectType?Gt.getFields():null,Ii=kn==="query"?ht:kn==="mutation"?Ot:kn==="subscription"?jt:wt.kind==="FragmentDefinition"?bn:null,Ko=wt.kind==="FragmentDefinition"?wt.typeCondition.name.value:null,Xo=function(Er){var Bn=(0,l.print)(Er);Ee.props.onEdit(Bn)};return o.createElement(Ge,{key:Bt,isLast:Bt===Jt.length-1,fields:Ii,operationType:kn,name:cn,definition:wt,onOperationRename:tr,onOperationDestroy:fn,onOperationClone:Ft,onTypeName:Ko,onMount:Ee._handleRootViewMount,onCommit:Xo,onEdit:function(Er,Bn){var Lr=void 0;if((typeof Bn>"u"?"undefined":e(Bn))==="object"&&typeof Bn.commit<"u"?Lr=Bn.commit:Lr=!0,Er){var Fi=n({},dt,{definitions:dt.definitions.map(function($r){return $r===wt?Er:$r})});return Lr&&Xo(Fi),Fi}else return dt},schema:je,getDefaultFieldNames:Et,getDefaultScalarArgValue:pt,makeDefaultArg:ct,onRunOperation:function(){Ee.props.onRunOperation&&Ee.props.onRunOperation(cn)},styleConfig:Ye,availableFragments:An})}),Xi),di)}}]),be})(o.PureComponent);It.defaultProps={getDefaultFieldNames:_,getDefaultScalarArgValue:X};var vt=(function(Oe){b(be,Oe);function be(){var Le,Ee,oe,je;m(this,be);for(var et=arguments.length,ct=Array(et),Ye=0;Ye<et;Ye++)ct[Ye]=arguments[Ye];return je=(Ee=(oe=E(this,(Le=be.__proto__||Object.getPrototypeOf(be)).call.apply(Le,[this].concat(ct))),oe),oe.state={hasError:!1,error:null,errorInfo:null},Ee),E(oe,je)}return r(be,[{key:"componentDidCatch",value:function(Ee,oe){this.setState({hasError:!0,error:Ee,errorInfo:oe}),console.error("Error in component",Ee,oe)}},{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}}]),be})(o.Component),at=(function(Oe){b(be,Oe);function be(){return m(this,be),E(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return r(be,[{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(vt,null,o.createElement(It,this.props))))}}]),be})(o.PureComponent);return at.defaultValue=$,at.defaultProps={width:320,title:"Explorer"},mg.default=at,mg}var $F;function WZ(){if($F)return yp;$F=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.Explorer=void 0;var e=YZ(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return yp.Explorer=t.default,yp.default=t.default,yp}var QZ=WZ();const zF=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.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"})),KZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),M.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"}),M.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"})),XZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),ZZ=({title:e,titleId:t,...n})=>M.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?M.createElement("title",{id:t},e):null,M.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),M.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),JZ={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))"},eJ=Ae.createElement(zF,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),tJ=Ae.createElement(zF,{style:{width:"var(--px-16)"}}),nJ=Ae.createElement(XZ,{style:{marginRight:"var(--px-4)"}}),rJ=Ae.createElement(ZZ,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),iJ={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}};function oJ(e){const{setOperationName:t}=Ei({nonNull:!0}),{schema:n}=fs({nonNull:!0}),{run:r}=pp({nonNull:!0}),i=M.useCallback(c=>{c&&t(c),r()},[r,t]),[o,l]=xF(VZ());return Ae.createElement(QZ.Explorer,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:JZ,arrowOpen:eJ,arrowClosed:tJ,checkboxUnchecked:nJ,checkboxChecked:rJ,styles:iJ,query:o,onEdit:l,...e})}function aJ(e){return{title:"GraphiQL Explorer",icon:KZ,content:()=>Ae.createElement(oJ,{...e})}}var vC=function(){return vC=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},vC.apply(this,arguments)},sJ=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},Ab=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},lJ=parseInt(Ae.version.slice(0,2),10);if(lJ<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(`
366
+ `));function nc(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,x=e.onTabChange,w=e.onTogglePluginVisibility,k=e.operationName,N=e.plugins,D=e.query,A=e.response,_=e.schema,L=e.schemaDescription,V=e.shouldPersistHeaders,P=e.storage,F=e.validationRules,j=e.variables,$=e.visiblePlugin,X=e.defaultHeaders,J=sJ(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 Ae.createElement(mC,{getDefaultFieldNames:c,dangerouslyAssumeSchemaIsValid:n,defaultQuery:r,defaultHeaders:X,defaultTabs:i,externalFragments:o,fetcher:l,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:x,onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,operationName:k,query:D,response:A,schema:_,schemaDescription:L,shouldPersistHeaders:V,storage:P,validationRules:F,variables:j},Ae.createElement(HF,vC({showPersistHeadersSettings:V!==!1,disableTabs:(t=J.disableTabs)!==null&&t!==void 0?t:!1},J)))}nc.Logo=GF,nc.Toolbar=YF,nc.Footer=WF;function HF(e){var t,n,r,i,o=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,l=Ei({nonNull:!0}),c=pp({nonNull:!0}),p=fs({nonNull:!0}),d=Zu(),m=hb(),E=mb({onCopyQuery:e.onCopyQuery}),b=Uf(),y=mp(),x=qF(),w=x.theme,k=x.setTheme,N=(n=m?.visiblePlugin)===null||n===void 0?void 0:n.content,D=xb({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:m?.visiblePlugin?void 0:"first",onHiddenElementChange:function(at){at==="first"&&m?.setVisiblePlugin(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),A=xb({direction:"horizontal",storageKey:"editorFlex"}),_=xb({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"}),L=Ab(M.useState(function(){return e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!l.initialVariables&&l.initialHeaders&&o?"headers":"variables"}),2),V=L[0],P=L[1],F=Ab(M.useState(null),2),j=F[0],$=F[1],X=Ab(M.useState(null),2),J=X[0],ee=X[1],K=Ae.Children.toArray(e.children),B=K.find(function(at){return bC(at,nc.Logo)})||Ae.createElement(nc.Logo,null),ne=K.find(function(at){return bC(at,nc.Toolbar)})||Ae.createElement(Ae.Fragment,null,Ae.createElement(_b,{onClick:y,label:"Prettify query (Shift-Ctrl-P)"},Ae.createElement(_Z,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(_b,{onClick:b,label:"Merge fragments into query (Shift-Ctrl-M)"},Ae.createElement(TZ,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(_b,{onClick:E,label:"Copy query (Shift-Ctrl-C)"},Ae.createElement(uZ,{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)&&Ae.createElement(e.toolbar.additionalComponent,null)),re=K.find(function(at){return bC(at,nc.Footer)}),se=M.useCallback(function(){D.hiddenElement==="first"&&D.setHiddenElement(null)},[D]),fe=M.useCallback(function(){try{d?.clear(),ee("success")}catch{ee("error")}},[d]),Z=M.useCallback(function(at){l.setShouldPersistHeaders(at.currentTarget.dataset.value==="true")},[l]),ge=M.useCallback(function(at){var Oe=at.currentTarget.dataset.theme;k(Oe||null)},[k]),ae=l.addTab,pe=p.introspect,ce=l.moveTab,he=M.useCallback(function(at){$(at.currentTarget.dataset.value)},[]),Se=M.useCallback(function(at){var Oe=m,be=Number(at.currentTarget.dataset.index),Le=Oe.plugins.find(function(oe,je){return be===je}),Ee=Le===Oe.visiblePlugin;Ee?(Oe.setVisiblePlugin(null),D.setHiddenElement("first")):(Oe.setVisiblePlugin(Le),D.setHiddenElement(null))},[m,D]),Ie=M.useCallback(function(at){_.hiddenElement==="second"&&_.setHiddenElement(null),P(at.currentTarget.dataset.name)},[_]),Ge=M.useCallback(function(){_.setHiddenElement(_.hiddenElement==="second"?null:"second")},[_]),Ze=M.useCallback(function(at){at||$(null)},[]),It=M.useCallback(function(at){at||($(null),ee(null))},[]),vt=Ae.createElement(Wi,{label:"Add tab"},Ae.createElement(ci,{type:"button",className:"graphiql-tab-add",onClick:ae,"aria-label":"Add tab"},Ae.createElement(CZ,{"aria-hidden":"true"})));return Ae.createElement(Wi.Provider,null,Ae.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},Ae.createElement("div",{className:"graphiql-sidebar"},Ae.createElement("div",{className:"graphiql-sidebar-section"},m?.plugins.map(function(at,Oe){var be=at===m.visiblePlugin,Le="".concat(be?"Hide":"Show"," ").concat(at.title),Ee=at.icon;return Ae.createElement(Wi,{key:at.title,label:Le},Ae.createElement(ci,{type:"button",className:be?"active":"",onClick:Se,"data-index":Oe,"aria-label":Le},Ae.createElement(Ee,{"aria-hidden":"true"})))})),Ae.createElement("div",{className:"graphiql-sidebar-section"},Ae.createElement(Wi,{label:"Re-fetch GraphQL schema"},Ae.createElement(ci,{type:"button",disabled:p.isFetching,onClick:pe,"aria-label":"Re-fetch GraphQL schema"},Ae.createElement(NZ,{className:p.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),Ae.createElement(Wi,{label:"Open short keys dialog"},Ae.createElement(ci,{type:"button","data-value":"short-keys",onClick:he,"aria-label":"Open short keys dialog"},Ae.createElement(EZ,{"aria-hidden":"true"}))),Ae.createElement(Wi,{label:"Open settings dialog"},Ae.createElement(ci,{type:"button","data-value":"settings",onClick:he,"aria-label":"Open settings dialog"},Ae.createElement(OZ,{"aria-hidden":"true"}))))),Ae.createElement("div",{className:"graphiql-main"},Ae.createElement("div",{ref:D.firstRef,style:{minWidth:"200px"}},Ae.createElement("div",{className:"graphiql-plugin"},N?Ae.createElement(N,null):null)),m?.visiblePlugin&&Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:D.dragBarRef}),Ae.createElement("div",{ref:D.secondRef,className:"graphiql-sessions"},Ae.createElement("div",{className:"graphiql-session-header"},e.disableTabs?null:Ae.createElement(K3,{values:l.tabs,onReorder:ce,"aria-label":"Select active operation"},l.tabs.length>1&&Ae.createElement(Ae.Fragment,null,l.tabs.map(function(at,Oe){return Ae.createElement(Yw,{key:at.id,value:at,isActive:Oe===l.activeTabIndex},Ae.createElement(Yw.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(Oe),onClick:function(){c.stop(),l.changeTab(Oe)}},at.title),Ae.createElement(Yw.Close,{onClick:function(){l.activeTabIndex===Oe&&c.stop(),l.closeTab(Oe)}}))}),vt)),Ae.createElement("div",{className:"graphiql-session-header-right"},l.tabs.length===1&&vt,B)),Ae.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(l.activeTabIndex)},Ae.createElement("div",{ref:A.firstRef},Ae.createElement("div",{className:"graphiql-editors".concat(l.tabs.length===1?" full-height":"")},Ae.createElement("div",{ref:_.firstRef},Ae.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},Ae.createElement(pC,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:se,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),Ae.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},Ae.createElement(Nb,null),ne))),Ae.createElement("div",{ref:_.dragBarRef},Ae.createElement("div",{className:"graphiql-editor-tools"},Ae.createElement(ci,{type:"button",className:V==="variables"&&_.hiddenElement!=="second"?"active":"",onClick:Ie,"data-name":"variables"},"Variables"),o&&Ae.createElement(ci,{type:"button",className:V==="headers"&&_.hiddenElement!=="second"?"active":"",onClick:Ie,"data-name":"headers"},"Headers"),Ae.createElement(Wi,{label:_.hiddenElement==="second"?"Show editor tools":"Hide editor tools"},Ae.createElement(ci,{type:"button",onClick:Ge,"aria-label":_.hiddenElement==="second"?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},_.hiddenElement==="second"?Ae.createElement(lZ,{className:"graphiql-chevron-icon","aria-hidden":"true"}):Ae.createElement(aZ,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),Ae.createElement("div",{ref:_.secondRef},Ae.createElement("section",{className:"graphiql-editor-tool","aria-label":V==="variables"?"Variables":"Headers"},Ae.createElement(Tb,{editorTheme:e.editorTheme,isHidden:V!=="variables",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:se,readOnly:e.readOnly}),o&&Ae.createElement(bb,{editorTheme:e.editorTheme,isHidden:V!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:A.dragBarRef}),Ae.createElement("div",{ref:A.secondRef},Ae.createElement("div",{className:"graphiql-response"},c.isFetching?Ae.createElement(Gw,null):null,Ae.createElement(hC,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),re))))),Ae.createElement(dp,{open:j==="short-keys",onOpenChange:Ze},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(dp.Title,{className:"graphiql-dialog-title"},"Short Keys"),Ae.createElement(dp.Close,null)),Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement(cJ,{keyMap:e.keyMap||"sublime"}))),Ae.createElement(dp,{open:j==="settings",onOpenChange:It},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(dp.Title,{className:"graphiql-dialog-title"},"Settings"),Ae.createElement(dp.Close,null)),e.showPersistHeadersSettings?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",Ae.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),Ae.createElement(Hw,null,Ae.createElement(cs,{type:"button",id:"enable-persist-headers",className:l.shouldPersistHeaders?"active":"","data-value":"true",onClick:Z},"On"),Ae.createElement(cs,{type:"button",id:"disable-persist-headers",className:l.shouldPersistHeaders?"":"active",onClick:Z},"Off"))):null,Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),Ae.createElement(Hw,null,Ae.createElement(cs,{type:"button",className:w===null?"active":"",onClick:ge},"System"),Ae.createElement(cs,{type:"button",className:w==="light"?"active":"","data-theme":"light",onClick:ge},"Light"),Ae.createElement(cs,{type:"button",className:w==="dark"?"active":"","data-theme":"dark",onClick:ge},"Dark"))),d?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),Ae.createElement(cs,{type:"button",state:J||void 0,disabled:J==="success",onClick:fe},{success:"Cleared data",error:"Failed"}[J]||"Clear data")):null)))}var yC=typeof window<"u"&&window.navigator.platform.toLowerCase().indexOf("mac")===0?"Cmd":"Ctrl",uJ=Object.entries({"Search in editor":[yC,"F"],"Search in documentation":[yC,"K"],"Execute query":[yC,"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 cJ(e){var t=e.keyMap;return Ae.createElement("div",null,Ae.createElement("table",{className:"graphiql-table"},Ae.createElement("thead",null,Ae.createElement("tr",null,Ae.createElement("th",null,"Short Key"),Ae.createElement("th",null,"Function"))),Ae.createElement("tbody",null,uJ.map(function(n){var r=Ab(n,2),i=r[0],o=r[1];return Ae.createElement("tr",{key:i},Ae.createElement("td",null,o.map(function(l,c,p){return Ae.createElement(M.Fragment,{key:l},Ae.createElement("code",{className:"graphiql-key"},l),c!==p.length-1&&" + ")})),Ae.createElement("td",null,i))}))),Ae.createElement("p",null,"The editors use"," ",Ae.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",Ae.createElement("em",null,"i"),"QL uses"," ",Ae.createElement("code",null,t),"."))}function GF(e){return Ae.createElement("div",{className:"graphiql-logo"},e.children||Ae.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",Ae.createElement("em",null,"i"),"QL"))}GF.displayName="GraphiQLLogo";function YF(e){return Ae.createElement(Ae.Fragment,null,e.children)}YF.displayName="GraphiQLToolbar";function WF(e){return Ae.createElement("div",{className:"graphiql-footer"},e.children)}WF.displayName="GraphiQLFooter";function bC(e,t){var n;return!((n=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);const Ob=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function cr(e){return e?.then!=null}function fJ(e){const t=e;return t&&t.then&&t.catch&&t.finally}function Xt(e,t,n,r){let i=xo().then(e).then(t,n);return mJ(i)}function xo(e){return e&&fJ(e)?e:cr(e)?{then:(t,n)=>xo(e.then(t,n)),catch:t=>xo(e.then(n=>n,t)),finally:t=>xo(t?hJ(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return xo(t(e))}catch(n){return Bf(n)}return this},catch(){return this},finally(t){if(t)try{return xo(t()).then(()=>e,()=>e)}catch(n){return Bf(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[Ob]:"resolved"}}function QF(){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 Bf(e){return{then(t,n){if(n)try{return xo(n(e))}catch(r){return Bf(r)}return this},catch(t){if(t)try{return xo(t(e))}catch(n){return Bf(n)}return this},finally(t){if(t)try{t()}catch(n){return Bf(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[Ob]:"rejected"}}function EC(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,o;typeof e.return=="function"&&(i=e.return,o=p=>{const d=()=>{throw p};return i.call(e).then(d,d)});function l(p){return p.done?p:Xt(()=>p.value,d=>Xt(()=>t(d),KF,o))}let c;if(n){let p;const d=n;c=m=>(p||=Xt(()=>m,E=>Xt(()=>d(E),KF,o)),p)}return{next(){return e.next().then(l,c)},return(){return i?i.call(e).then(l,c):xo({value:void 0,done:!0})},throw(p){return typeof e.throw=="function"?e.throw(p).then(l,c):o?o(p):Bf(p)},[Symbol.asyncIterator](){return this}}}function KF(e){return{value:e,done:!1}}function dJ(e){return e?.[Ob]==="resolved"}function pJ(e){return e?.[Ob]==="rejected"}function hJ(e,t){return"finally"in e?e.finally(t):e.then(n=>{const r=t();return cr(r)?r.then(()=>n):n},n=>{const r=t();if(cr(r))return r.then(()=>{throw n});throw n})}function mJ(e){if(dJ(e))return e.__fakePromiseValue;if(pJ(e))throw e.__fakeRejectError;return e}const XF=new WeakMap;function ZF(e,t){let n=XF.get(e);return!n&&t&&(n=t(e),XF.set(e,n)),n}const gJ=/^(https?|wss?|file):\/\//;function vJ(e){if(typeof e!="string"||!gJ.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch{return!1}}const yJ=e=>Array.isArray(e)?e:e?[e]:[];function bJ(e){return e!=null}const JF=3;function Ri(e){return Db(e,[])}function Db(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return EJ(e,t);default:return String(e)}}function e5(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message};
367
367
  ${e.stack}`}function EJ(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?e5(e)+`
368
368
  `+t5(e.errors,t):e5(e);if(t.includes(e))return"[Circular]";const n=[...t,e];if(SJ(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Db(r,n)}else if(Array.isArray(e))return t5(e,n);return TJ(e,n)}function SJ(e){return typeof e.toJSON=="function"}function TJ(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>JF?"["+xJ(e)+"]":"{ "+n.map(([i,o])=>i+": "+Db(o,t)).join(", ")+" }"}function t5(e,t){if(e.length===0)return"[]";if(t.length>JF)return"[Array]";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(Db(e[i],t));return"["+r.join(", ")+"]"}function xJ(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 wJ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function CJ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>wJ.includes(t))}function Yt(e,t){return t?.originalError&&!(t.originalError instanceof Error)&&CJ(t.originalError)&&(t.originalError=Yt(t.originalError.message,t.originalError)),Qv.major>=17?new Me(e,t):new Me(e,t?.nodes,t?.source,t?.positions,t?.path,t?.originalError,t?.extensions)}function kb(e,t){return Yt(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}function _J(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function n5(e){return typeof e=="object"&&e!==null}function r5(e,t,n){let r=n;for(const i of e)r=Xt(()=>r,o=>t(o,i));return r}function i5(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o5(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(_t(c))throw Yt(`Argument "${l}" of required type "${Ri(c)}" was not provided.`,{nodes:[t]});continue}const m=d.value;let E=m.kind===Q.NULL;if(m.kind===Q.VARIABLE){const y=m.name.value;if(n==null||!i5(n,y)){if(p!==void 0)r[l]=p;else if(_t(c))throw Yt(`Argument "${l}" of required type "${Ri(c)}" was provided the variable "$${y}" which was not provided a runtime value.`,{nodes:[m]});continue}E=n[y]==null}if(E&&_t(c))throw Yt(`Argument "${l}" of non-null type "${Ri(c)}" must not be null.`,{nodes:[m]});const b=Ea(m,c,n);if(b===void 0)throw Yt(`Argument "${l}" has invalid value ${ln(m)}.`,{nodes:[m]});r[l]=b}return r}function xa(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 Rb(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 NJ(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 AJ(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 x=new WeakMap;y.set(o,x);const w=new WeakMap;x.set(l,w);const k=e(r,i,o,l,c);return w.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 x=new WeakMap;y.set(l,x);const w=e(r,i,o,l,c);return x.set(c,w),w}let m=d.get(o);if(!m){m=new WeakMap,d.set(o,m);const y=new WeakMap;m.set(l,y);const x=e(r,i,o,l,c);return y.set(c,x),x}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 OJ(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 SC(e){if(_t(e)){const t=SC(e.ofType);if(t.kind===Q.NON_NULL_TYPE)throw new Error(`Invalid type node ${Ri(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Q.NON_NULL_TYPE,type:t}}else if(mn(e))return{kind:Q.LIST_TYPE,type:SC(e.ofType)};return{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:e.name}}}function Mb(e,t,n){const i=TC(e).get(t);if(i==null)throw Yt(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const DJ=xa(function(t){const n=kJ(t);return new Set([...n].map(r=>r.name))}),kJ=xa(function(t){const n=TC(t);return new Set(n.values())}),TC=xa(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}),RJ=80;let a5={};function MJ(e){return`
369
369
  # `+e.replace(/\n/g,`
@@ -393,7 +393,7 @@ ${t?n:gg(n)}
393
393
  `)}function jJ(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=u5(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function u5(e){let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;return t}function c5(e){return u5(e)===e.length}function VJ(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=UJ(t,n),n.noLocation&&(r=Ai(ln(r),n))):r=Ai(new Zh(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Q.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function UJ(e,t={}){const n=Ai(e,{...t,noLocation:!1});return Tr(n,{leave:i=>{if(qJ(i)){const o=FJ(i);if(o!==void 0){const l=PJ(`
394
394
  `+o),c=l.includes(`
395
395
  `);return i.description?{...i,description:{...i.description,value:i.description.value+`
396
- `+l,block:!0}}:{...i,description:{kind:Q.STRING,value:l,block:c}}}}}})}function qJ(e){return yy(e)||e.kind===Q.FIELD_DEFINITION||e.kind===Q.INPUT_VALUE_DEFINITION||e.kind===Q.ENUM_VALUE_DEFINITION}var zt;(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"})(zt||(zt={}));function bp(e,t){if(t){const n=e[t.name];if(At(n))return n}}function BJ(e){if("getFields"in e){const t=e.getFields();for(const n in t)return t[n].name==="_fake"}return!1}function $J(e){switch(e.name){case rm.name:return rm;case im.name:return im;case Xn.name:return Xn;case Zn.name:return Zn;case om.name:return om;default:return e}}function zJ(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 x=y.name;if(!x.startsWith("__")){if(r[x]!=null){console.warn(`Duplicate schema type name ${x} found; keeping the existing one found in the schema`);continue}r[x]=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(py(b))return b;const y=b.toConfig();return y.args=l(y.args),new To(y)}function l(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function c(b){if(At(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields),interfaces:()=>m(y.interfaces)};return new si(x)}else if(Rt(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields)};return"interfaces"in x&&(x.interfaces=()=>m(y.interfaces)),new ao(x)}else if(ar(b)){const y=b.toConfig(),x={...y,types:()=>m(y.types)};return new Iu(x)}else if(nn(b)){const y=b.toConfig(),x={...y,fields:()=>d(y.fields)};return new so(x)}else if(Wn(b)){const y=b.toConfig();return new Hi(y)}else if(Oi(b)){if(sm(b))return b;const y=b.toConfig();return new ma(y)}throw new Error(`Unexpected schema type: ${b}`)}function p(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&w.args&&(w.type=k,w.args=l(w.args),y[x]=w)}return y}function d(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function m(b){const y=[];for(const x of b){const w=E(x);w!=null&&y.push(w)}return y}function E(b){if(mn(b)){const y=E(b.ofType);return y!=null?new lr(y):null}else if(_t(b)){const y=E(b.ofType);return y!=null?new Pt(y):null}else if(Rl(b)){let y=n[b.name];return y===void 0&&(y=BJ(b)?$J(b):c(b),r[y.name]=n[b.name]=y),y!=null?r[y.name]:null}return null}}function Lb(e,t,n=null,r=null){if(t==null)return t;const i=Mu(e);if(ai(i))return n!=null?n(i,t):t;if(mn(i))return yJ(t).map(o=>Lb(i.ofType,o,n,r));if(nn(i)){const o=i.getFields(),l={};for(const c in t){const p=o[c];p!=null&&(l[c]=Lb(p.type,t[c],n,r))}return r!=null?r(i,l):l}}function Ib(e,t){return Lb(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function HJ(e,t){return Lb(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function GJ(e,t={}){const n=p5(d5(xC(f5(YJ(xC(f5(e.getTypeMap(),e,Ib),e,t,c=>ai(c)),e,t),e,HJ),e,t,c=>!ai(c)),e,t),e,t),r=e.getDirectives(),i=WJ(r,e,t),{typeMap:o,directives:l}=zJ(n,i);return new mf({...e.toConfig(),query:bp(o,bp(n,e.getQueryType())),mutation:bp(o,bp(n,e.getMutationType())),subscription:bp(o,bp(n,e.getSubscriptionType())),types:Object.values(o),directives:l})}function xC(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=KJ(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 YJ(e,t,n){const r=tee(n);return r?xC(e,t,{[zt.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 Pb(new Hi({...o,values:c}))}},i=>Wn(i)):e}function f5(e,t,n){const r=p5(e,t,{[zt.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=Fb(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return d5(r,t,{[zt.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=Fb(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function Fb(e,t){if(mn(t)){const n=Fb(e,t.ofType);return n!=null?new lr(n):null}else if(_t(t)){const n=Fb(e,t.ofType);return n!=null?new Pt(n):null}else if(Rl(t)){const n=e[t.name];return n??null}return null}function d5(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!At(o)&&!Rt(o)&&!nn(o)){r[i]=o;continue}const l=ZJ(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,x]=b;x.astNode!=null&&(x.astNode={...x.astNode,name:{...x.astNode.name,value:y}}),d[y]=x===void 0?E:x}else b!==null&&(d[m]=b)}At(o)?r[i]=Pb(new si({...c,fields:d})):Rt(o)?r[i]=Pb(new ao({...c,fields:d})):r[i]=Pb(new so({...c,fields:d}))}return r}function p5(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=JJ(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 x={};for(const w of y){const k=b[w],N=l(k,m,i,t);if(N===void 0)x[w]=k;else if(Array.isArray(N)){const[D,A]=N;x[D]=A}else N!==null&&(x[w]=N)}d[m]={...E,args:x}}At(o)?r[i]=new si({...c,fields:d}):Rt(o)?r[i]=new ao({...c,fields:d}):r[i]=new so({...c,fields:d})}return r}function WJ(e,t,n){const r=eee(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 QJ(e,t){const n=e.getType(t),r=[zt.TYPE];return At(n)?(r.push(zt.COMPOSITE_TYPE,zt.OBJECT_TYPE),t===e.getQueryType()?.name?r.push(zt.ROOT_OBJECT,zt.QUERY):t===e.getMutationType()?.name?r.push(zt.ROOT_OBJECT,zt.MUTATION):t===e.getSubscriptionType()?.name&&r.push(zt.ROOT_OBJECT,zt.SUBSCRIPTION)):nn(n)?r.push(zt.INPUT_OBJECT_TYPE):Rt(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.INTERFACE_TYPE):ar(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.UNION_TYPE):Wn(n)?r.push(zt.ENUM_TYPE):Oi(n)&&r.push(zt.SCALAR_TYPE),r}function KJ(e,t,n){const r=QJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function XJ(e,t){const n=e.getType(t),r=[zt.FIELD];return At(n)?(r.push(zt.COMPOSITE_FIELD,zt.OBJECT_FIELD),t===e.getQueryType()?.name?r.push(zt.ROOT_FIELD,zt.QUERY_ROOT_FIELD):t===e.getMutationType()?.name?r.push(zt.ROOT_FIELD,zt.MUTATION_ROOT_FIELD):t===e.getSubscriptionType()?.name&&r.push(zt.ROOT_FIELD,zt.SUBSCRIPTION_ROOT_FIELD)):Rt(n)?r.push(zt.COMPOSITE_FIELD,zt.INTERFACE_FIELD):nn(n)&&r.push(zt.INPUT_OBJECT_FIELD),r}function ZJ(e,t,n){const r=XJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function JJ(e){const t=e[zt.ARGUMENT];return t??null}function eee(e){const t=e[zt.DIRECTIVE];return t??null}function tee(e){const t=e[zt.ENUM_VALUE];return t??null}function Pb(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:Q.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.OBJECT_TYPE_EXTENSION,fields:void 0}))),new si(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:Q.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ao(t)}else if(nn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:Q.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new so(t)}else if(Wn(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 Hi(t)}else return e}function vg(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)=>vg(e.map(E=>E[m]),t,n,r));if(o)return e.flat(1);let c,p;t&&(p=e.find(d=>h5(d)),c==null&&(c={}),p&&Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(p))));for(const d of e)if(h5(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);bJ(y)&&Object.defineProperty(m,b,y)}}for(const m in d)c==null&&(c={}),m in c?c[m]=vg([c[m],d[m]],t,n,r):c[m]=d[m]}else Array.isArray(d)&&Array.isArray(c)?c=vg([c,d],t,n,r):c=d;return c}function h5(e){return e&&typeof e=="object"&&!Array.isArray(e)}function wC(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function jb(e,t,n){return n==null||t==null?!1:t===n?!0:Qr(t)&&Qr(n)?nm(e,t,n):!1}function nee(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(),xo({value:void 0,done:!0})},throw(m){return d(),Bf(m)},[Symbol.asyncIterator](){return this}}}class Vb 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 ree=new To({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[lt.FRAGMENT_SPREAD,lt.INLINE_FRAGMENT],args:{if:{type:new Pt(Zn),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Xn,description:"Unique name"}}}),iee=new To({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[lt.FIELD],args:{if:{type:new Pt(Zn),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Xn,description:"Unique name"},initialCount:{defaultValue:0,type:rm,description:"Number of items to return immediately"}}});function Ep(e,t,n,r,i,o,l,c){for(const p of i.selections)switch(p.kind){case Q.FIELD:{if(!_C(n,p))continue;o.add(oee(p),p);break}case Q.INLINE_FRAGMENT:{if(!_C(n,p)||!m5(e,p,r))continue;const d=g5(n,p);if(d){const m=new Vb;Ep(e,t,n,r,p.selectionSet,m,l,c),l.push({label:d.label,fields:m})}else Ep(e,t,n,r,p.selectionSet,o,l,c);break}case Q.FRAGMENT_SPREAD:{const d=p.name.value;if(!_C(n,p))continue;const m=g5(n,p);if(c.has(d)&&!m)continue;const E=t[d];if(!E||!m5(e,E,r))continue;if(m||c.add(d),m){const b=new Vb;Ep(e,t,n,r,E.selectionSet,b,l,c),l.push({label:m.label,fields:b})}else Ep(e,t,n,r,E.selectionSet,o,l,c);break}}}function CC(e,t,n,r,i){const o=new Vb,l=[];return Ep(e,t,n,r,i,o,l,new Set),{fields:o,patches:l}}function _C(e,t){return!(Ps(fy,t,e)?.if===!0||Ps(cy,t,e)?.if===!1)}function m5(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=yi(e,r);return i===n?!0:sr(i)?e.getPossibleTypes(i).includes(n):!1}function oee(e){return e.alias?e.alias.value:e.name.value}function g5(e,t){const n=Ps(ree,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}const aee=AJ(function(t,n,r,i,o){const l=new Vb,c=new Set,p=[],d={fields:l,patches:p};for(const m of o)m.selectionSet&&Ep(t,n,r,i,m.selectionSet,l,p,c);return d});function see(e,t){const n=WE(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}const $f=xa(function(t){return see(t.document,t.operationName)});function zf(e){return e?.[Symbol.asyncIterator]!=null}function Sp(e,t,n){return{prev:e,key:t,typename:n}}function Si(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function lee(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function NC(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]=NC(e[n],t[n]);else for(n in t){if(n==="__proto__"||n==="constructor"||n==="prototype")break;e[n]=NC(e[n],t[n])}return e}return t}function Ub(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?NC(o[c],n):typeof(l=o[c])==typeof t?l:t[r]*0!==0||~(""+t[r]).indexOf(".")?{}:[]}function v5({incrementalResult:e,executionResult:t}){const n=["data",...e.path??[]];if(e.items)for(const r of e.items)Ub(t,n,r),n[n.length-1]++;e.data&&Ub(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&Ub(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(r=>{v5({incrementalResult:r,executionResult:t})})}const y5=xa(function(t){return tS(ZF(t,ln))});function uee({executionRequest:e,excludeQuery:t,printFn:n=y5}){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 Bl={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function wo(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Hf(e){return wo(e)==="object"}function cee(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function b5(e,t){return e.length<124?e:t}const fee="graphql-transport-ws";var wa=(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))(wa||{}),Ca=(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))(Ca||{});function E5(e){if(!Hf(e))throw new Error(`Message is expected to be an object, but got ${wo(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 ${wo(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Hf(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${wo(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 ${wo(e.payload.query)}`);if(e.payload.variables!=null&&!Hf(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 ${wo(e.payload.variables)}`);if(e.payload.operationName!=null&&wo(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 ${wo(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Hf(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 ${wo(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${wo(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cee(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 ${wo(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 dee(e,t){return E5(typeof e=="string"?JSON.parse(e,t):e)}function yg(e,t){return E5(e),JSON.stringify(e,t)}function pee(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(re=>setTimeout(re,ne*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:E=AC,on:b,webSocketImpl:y,generateID:x=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:w,jsonMessageReviver:k}=e;let N;if(y){if(!mee(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 D=N,A=(()=>{const K=(()=>{const ne={};return{on(re,se){return ne[re]=se,()=>{delete ne[re]}},emit(re){"id"in re&&ne[re.id]?.(re)}}})(),B={connecting:b?.connecting?[b.connecting]:[],opened:b?.opened?[b.opened]:[],connected:b?.connected?[b.connected]:[],ping:b?.ping?[b.ping]:[],pong:b?.pong?[b.pong]:[],message:b?.message?[K.emit,b.message]:[K.emit],closed:b?.closed?[b.closed]:[],error:b?.error?[b.error]:[]};return{onMessage:K.on,on(ne,re){const se=B[ne];return se.push(re),()=>{se.splice(se.indexOf(re),1)}},emit(ne,...re){for(const se of[...B[ne]])se(...re)}}})();function _(K){const B=[A.on("error",ne=>{B.forEach(re=>re()),K(ne)}),A.on("closed",ne=>{B.forEach(re=>re()),K(ne)})]}let L,V=0,P,F=!1,j=0,$=!1;async function X(){clearTimeout(P);const[K,B]=await(L??(L=new Promise((se,fe)=>(async()=>{if(F){if(await m(j),!V)return L=void 0,fe({code:1e3,reason:"All Subscriptions Gone"});j++}A.emit("connecting",F);const Z=new D(typeof t=="function"?await t():t,fee);let ge,ae;function pe(){isFinite(l)&&l>0&&(clearTimeout(ae),ae=setTimeout(()=>{Z.readyState===D.OPEN&&(Z.send(yg({type:Ca.Ping})),A.emit("ping",!1,void 0))},l))}_(he=>{L=void 0,clearTimeout(ge),clearTimeout(ae),fe(he),he instanceof S5&&(Z.close(4499,"Terminated"),Z.onerror=null,Z.onclose=null)}),Z.onerror=he=>A.emit("error",he),Z.onclose=he=>A.emit("closed",he),Z.onopen=async()=>{try{A.emit("opened",Z);const he=typeof n=="function"?await n():n;if(Z.readyState!==D.OPEN)return;Z.send(yg(he?{type:Ca.ConnectionInit,payload:he}:{type:Ca.ConnectionInit},w)),isFinite(p)&&p>0&&(ge=setTimeout(()=>{Z.close(wa.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},p)),pe()}catch(he){A.emit("error",he),Z.close(wa.InternalClientError,b5(he instanceof Error?he.message:String(he),"Internal client error"))}};let ce=!1;Z.onmessage=({data:he})=>{try{const Se=dee(he,k);if(A.emit("message",Se),Se.type==="ping"||Se.type==="pong"){A.emit(Se.type,!0,Se.payload),Se.type==="pong"?pe():c||(Z.send(yg(Se.payload?{type:Ca.Pong,payload:Se.payload}:{type:Ca.Pong})),A.emit("pong",!1,Se.payload));return}if(ce)return;if(Se.type!==Ca.ConnectionAck)throw new Error(`First message cannot be of type ${Se.type}`);clearTimeout(ge),ce=!0,A.emit("connected",Z,Se.payload,F),F=!1,j=0,se([Z,new Promise((Ie,Ge)=>_(Ge))])}catch(Se){Z.onmessage=null,A.emit("error",Se),Z.close(wa.BadResponse,b5(Se instanceof Error?Se.message:String(Se),"Bad response"))}}})())));K.readyState===D.CLOSING&&await B;let ne=()=>{};const re=new Promise(se=>ne=se);return[K,ne,Promise.race([re.then(()=>{if(!V){const se=()=>K.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{K.readyState===D.OPEN&&se()},o):se()}}),B])]}function J(K){if(AC(K)&&(hee(K.code)||[wa.InternalServerError,wa.InternalClientError,wa.BadRequest,wa.BadResponse,wa.Unauthorized,wa.SubprotocolNotAcceptable,wa.SubscriberAlreadyExists,wa.TooManyInitialisationRequests].includes(K.code)))throw K;if($)return!1;if(AC(K)&&K.code===1e3)return V>0;if(!d||j>=d||!E(K))throw K;return F=!0}r||(async()=>{for(V++;;)try{const[,,K]=await X();await K}catch(K){try{if(!J(K))return}catch(B){return i?.(B)}}})();function ee(K,B){const ne=x(K);let re=!1,se=!1,fe=()=>{V--,re=!0};return(async()=>{for(V++;;)try{const[Z,ge,ae]=await X();if(re)return ge();const pe=A.onMessage(ne,ce=>{switch(ce.type){case Ca.Next:{B.next(ce.payload);return}case Ca.Error:{se=!0,re=!0,B.error(ce.payload),fe();return}case Ca.Complete:{re=!0,fe();return}}});Z.send(yg({id:ne,type:Ca.Subscribe,payload:K},w)),fe=()=>{!re&&Z.readyState===D.OPEN&&Z.send(yg({id:ne,type:Ca.Complete},w)),V--,re=!0,ge()},await ae.finally(pe);return}catch(Z){if(!J(Z))return}})().then(()=>{se||B.complete()}).catch(Z=>{B.error(Z)}),()=>{re||fe()}}return{on:A.on,subscribe:ee,iterate(K){const B=[],ne={done:!1,error:null,resolve:()=>{}},re=ee(K,{next(fe){B.push(fe),ne.resolve()},error(fe){ne.done=!0,ne.error=fe,ne.resolve()},complete(){ne.done=!0,ne.resolve()}}),se=async function*(){for(;;){for(B.length||await new Promise(Z=>ne.resolve=Z);B.length;)yield B.shift();if(ne.error)throw ne.error;if(ne.done)return}}();return se.throw=async fe=>(ne.done||(ne.done=!0,ne.error=fe,ne.resolve()),{done:!0,value:void 0}),se.return=async()=>(re(),{done:!0,value:void 0}),se},async dispose(){if($=!0,L){const[K]=await L;K.close(1e3,"Normal Closure")}},terminate(){L&&A.emit("closed",new S5)}}}class S5 extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function AC(e){return Hf(e)&&"code"in e&&"reason"in e}function hee(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function mee(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function gee(e){return"subscribe"in e}function vee(e){let t,n={},r=y5;if(gee(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=pee({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=$f(l).operation,info:d,signal:m=d?.signal}=l;c?.connectionParams&&typeof c?.connectionParams=="object"&&(n=Object.assign(n,c.connectionParams));const E=t.iterate(uee({executionRequest:l,printFn:r}));return E.return&&m&&m.addEventListener("abort",()=>{E.return?.()},{once:!0}),p==="subscription"?E:E.next().then(({value:b})=>b)};return Object.defineProperty(i,Bl.asyncDispose,{value:function(){return t.dispose()}}),i}const T5=!globalThis.Bun&&globalThis.process?.release?.name==="node",qb=T5?new FinalizationRegistry(e=>e()):null,x5=Symbol("CONTROLLER_IN_SIGNAL");function yee(e){if(e.length===0)return;if(e.length===1)return e[0];if(!T5)return AbortSignal.any(e);for(const l of e)if(l.aborted)return l;const t=new AbortController,n=new WeakRef(t),r=[];let i=e.length;for(const l of e){let c=function(){n.deref()?.abort(p.deref()?.reason)};const p=new WeakRef(l);l.addEventListener("abort",c),r.push([p,c]),qb.register(l,()=>!--i&&o(),l)}function o(){for(const[l,c]of r){const p=l.deref();p&&(p.removeEventListener("abort",c),qb.unregister(p));const d=n.deref();d&&(qb.unregister(d.signal),delete d.signal[x5])}}return t.signal.addEventListener("abort",o),qb.register(t.signal,o,t.signal),t.signal[x5]=t,t.signal}const w5=xa(function(t){return tS(ZF(t,ln))});function C5({executionRequest:e,excludeQuery:t,printFn:n=w5}){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}}var br={},_5;function bee(){return _5||(_5=1,br.fetch=globalThis.fetch,br.Headers=globalThis.Headers,br.Request=globalThis.Request,br.Response=globalThis.Response,br.FormData=globalThis.FormData,br.ReadableStream=globalThis.ReadableStream,br.WritableStream=globalThis.WritableStream,br.TransformStream=globalThis.TransformStream,br.CompressionStream=globalThis.CompressionStream,br.DecompressionStream=globalThis.DecompressionStream,br.TextDecoderStream=globalThis.TextDecoderStream,br.TextEncoderStream=globalThis.TextEncoderStream,br.Blob=globalThis.Blob,br.File=globalThis.File,br.crypto=globalThis.crypto,br.btoa=globalThis.btoa,br.TextEncoder=globalThis.TextEncoder,br.TextDecoder=globalThis.TextDecoder,br.URLPattern=globalThis.URLPattern,br.URL=globalThis.URL,br.URLSearchParams=globalThis.URLSearchParams,br.createFetch=()=>globalThis),br}var Gf=bee();/*! *****************************************************************************
396
+ `+l,block:!0}}:{...i,description:{kind:Q.STRING,value:l,block:c}}}}}})}function qJ(e){return yy(e)||e.kind===Q.FIELD_DEFINITION||e.kind===Q.INPUT_VALUE_DEFINITION||e.kind===Q.ENUM_VALUE_DEFINITION}var zt;(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"})(zt||(zt={}));function bp(e,t){if(t){const n=e[t.name];if(At(n))return n}}function BJ(e){if("getFields"in e){const t=e.getFields();for(const n in t)return t[n].name==="_fake"}return!1}function $J(e){switch(e.name){case rm.name:return rm;case im.name:return im;case Xn.name:return Xn;case Zn.name:return Zn;case om.name:return om;default:return e}}function zJ(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 x=y.name;if(!x.startsWith("__")){if(r[x]!=null){console.warn(`Duplicate schema type name ${x} found; keeping the existing one found in the schema`);continue}r[x]=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(py(b))return b;const y=b.toConfig();return y.args=l(y.args),new To(y)}function l(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function c(b){if(At(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields),interfaces:()=>m(y.interfaces)};return new si(x)}else if(Rt(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields)};return"interfaces"in x&&(x.interfaces=()=>m(y.interfaces)),new ao(x)}else if(ar(b)){const y=b.toConfig(),x={...y,types:()=>m(y.types)};return new Iu(x)}else if(nn(b)){const y=b.toConfig(),x={...y,fields:()=>d(y.fields)};return new so(x)}else if(Wn(b)){const y=b.toConfig();return new Hi(y)}else if(Oi(b)){if(sm(b))return b;const y=b.toConfig();return new ma(y)}throw new Error(`Unexpected schema type: ${b}`)}function p(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&w.args&&(w.type=k,w.args=l(w.args),y[x]=w)}return y}function d(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function m(b){const y=[];for(const x of b){const w=E(x);w!=null&&y.push(w)}return y}function E(b){if(mn(b)){const y=E(b.ofType);return y!=null?new lr(y):null}else if(_t(b)){const y=E(b.ofType);return y!=null?new Pt(y):null}else if(Rl(b)){let y=n[b.name];return y===void 0&&(y=BJ(b)?$J(b):c(b),r[y.name]=n[b.name]=y),y!=null?r[y.name]:null}return null}}function Lb(e,t,n=null,r=null){if(t==null)return t;const i=Mu(e);if(ai(i))return n!=null?n(i,t):t;if(mn(i))return yJ(t).map(o=>Lb(i.ofType,o,n,r));if(nn(i)){const o=i.getFields(),l={};for(const c in t){const p=o[c];p!=null&&(l[c]=Lb(p.type,t[c],n,r))}return r!=null?r(i,l):l}}function Ib(e,t){return Lb(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function HJ(e,t){return Lb(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function GJ(e,t={}){const n=p5(d5(xC(f5(YJ(xC(f5(e.getTypeMap(),e,Ib),e,t,c=>ai(c)),e,t),e,HJ),e,t,c=>!ai(c)),e,t),e,t),r=e.getDirectives(),i=WJ(r,e,t),{typeMap:o,directives:l}=zJ(n,i);return new mf({...e.toConfig(),query:bp(o,bp(n,e.getQueryType())),mutation:bp(o,bp(n,e.getMutationType())),subscription:bp(o,bp(n,e.getSubscriptionType())),types:Object.values(o),directives:l})}function xC(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=KJ(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 YJ(e,t,n){const r=tee(n);return r?xC(e,t,{[zt.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 Pb(new Hi({...o,values:c}))}},i=>Wn(i)):e}function f5(e,t,n){const r=p5(e,t,{[zt.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=Fb(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return d5(r,t,{[zt.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=Fb(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function Fb(e,t){if(mn(t)){const n=Fb(e,t.ofType);return n!=null?new lr(n):null}else if(_t(t)){const n=Fb(e,t.ofType);return n!=null?new Pt(n):null}else if(Rl(t)){const n=e[t.name];return n??null}return null}function d5(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!At(o)&&!Rt(o)&&!nn(o)){r[i]=o;continue}const l=ZJ(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,x]=b;x.astNode!=null&&(x.astNode={...x.astNode,name:{...x.astNode.name,value:y}}),d[y]=x===void 0?E:x}else b!==null&&(d[m]=b)}At(o)?r[i]=Pb(new si({...c,fields:d})):Rt(o)?r[i]=Pb(new ao({...c,fields:d})):r[i]=Pb(new so({...c,fields:d}))}return r}function p5(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=JJ(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 x={};for(const w of y){const k=b[w],N=l(k,m,i,t);if(N===void 0)x[w]=k;else if(Array.isArray(N)){const[D,A]=N;x[D]=A}else N!==null&&(x[w]=N)}d[m]={...E,args:x}}At(o)?r[i]=new si({...c,fields:d}):Rt(o)?r[i]=new ao({...c,fields:d}):r[i]=new so({...c,fields:d})}return r}function WJ(e,t,n){const r=eee(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 QJ(e,t){const n=e.getType(t),r=[zt.TYPE];return At(n)?(r.push(zt.COMPOSITE_TYPE,zt.OBJECT_TYPE),t===e.getQueryType()?.name?r.push(zt.ROOT_OBJECT,zt.QUERY):t===e.getMutationType()?.name?r.push(zt.ROOT_OBJECT,zt.MUTATION):t===e.getSubscriptionType()?.name&&r.push(zt.ROOT_OBJECT,zt.SUBSCRIPTION)):nn(n)?r.push(zt.INPUT_OBJECT_TYPE):Rt(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.INTERFACE_TYPE):ar(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.UNION_TYPE):Wn(n)?r.push(zt.ENUM_TYPE):Oi(n)&&r.push(zt.SCALAR_TYPE),r}function KJ(e,t,n){const r=QJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function XJ(e,t){const n=e.getType(t),r=[zt.FIELD];return At(n)?(r.push(zt.COMPOSITE_FIELD,zt.OBJECT_FIELD),t===e.getQueryType()?.name?r.push(zt.ROOT_FIELD,zt.QUERY_ROOT_FIELD):t===e.getMutationType()?.name?r.push(zt.ROOT_FIELD,zt.MUTATION_ROOT_FIELD):t===e.getSubscriptionType()?.name&&r.push(zt.ROOT_FIELD,zt.SUBSCRIPTION_ROOT_FIELD)):Rt(n)?r.push(zt.COMPOSITE_FIELD,zt.INTERFACE_FIELD):nn(n)&&r.push(zt.INPUT_OBJECT_FIELD),r}function ZJ(e,t,n){const r=XJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function JJ(e){const t=e[zt.ARGUMENT];return t??null}function eee(e){const t=e[zt.DIRECTIVE];return t??null}function tee(e){const t=e[zt.ENUM_VALUE];return t??null}function Pb(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:Q.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.OBJECT_TYPE_EXTENSION,fields:void 0}))),new si(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:Q.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ao(t)}else if(nn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:Q.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new so(t)}else if(Wn(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 Hi(t)}else return e}function vg(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)=>vg(e.map(E=>E[m]),t,n,r));if(o)return e.flat(1);let c,p;t&&(p=e.find(d=>h5(d)),c==null&&(c={}),p&&Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(p))));for(const d of e)if(h5(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);bJ(y)&&Object.defineProperty(m,b,y)}}for(const m in d)c==null&&(c={}),m in c?c[m]=vg([c[m],d[m]],t,n,r):c[m]=d[m]}else Array.isArray(d)&&Array.isArray(c)?c=vg([c,d],t,n,r):c=d;return c}function h5(e){return e&&typeof e=="object"&&!Array.isArray(e)}function wC(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function jb(e,t,n){return n==null||t==null?!1:t===n?!0:Qr(t)&&Qr(n)?nm(e,t,n):!1}function nee(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(),xo({value:void 0,done:!0})},throw(m){return d(),Bf(m)},[Symbol.asyncIterator](){return this}}}class Vb 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 ree=new To({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[lt.FRAGMENT_SPREAD,lt.INLINE_FRAGMENT],args:{if:{type:new Pt(Zn),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Xn,description:"Unique name"}}}),iee=new To({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[lt.FIELD],args:{if:{type:new Pt(Zn),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Xn,description:"Unique name"},initialCount:{defaultValue:0,type:rm,description:"Number of items to return immediately"}}});function Ep(e,t,n,r,i,o,l,c){for(const p of i.selections)switch(p.kind){case Q.FIELD:{if(!_C(n,p))continue;o.add(oee(p),p);break}case Q.INLINE_FRAGMENT:{if(!_C(n,p)||!m5(e,p,r))continue;const d=g5(n,p);if(d){const m=new Vb;Ep(e,t,n,r,p.selectionSet,m,l,c),l.push({label:d.label,fields:m})}else Ep(e,t,n,r,p.selectionSet,o,l,c);break}case Q.FRAGMENT_SPREAD:{const d=p.name.value;if(!_C(n,p))continue;const m=g5(n,p);if(c.has(d)&&!m)continue;const E=t[d];if(!E||!m5(e,E,r))continue;if(m||c.add(d),m){const b=new Vb;Ep(e,t,n,r,E.selectionSet,b,l,c),l.push({label:m.label,fields:b})}else Ep(e,t,n,r,E.selectionSet,o,l,c);break}}}function CC(e,t,n,r,i){const o=new Vb,l=[];return Ep(e,t,n,r,i,o,l,new Set),{fields:o,patches:l}}function _C(e,t){return!(Ps(fy,t,e)?.if===!0||Ps(cy,t,e)?.if===!1)}function m5(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=yi(e,r);return i===n?!0:sr(i)?e.getPossibleTypes(i).includes(n):!1}function oee(e){return e.alias?e.alias.value:e.name.value}function g5(e,t){const n=Ps(ree,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}const aee=AJ(function(t,n,r,i,o){const l=new Vb,c=new Set,p=[],d={fields:l,patches:p};for(const m of o)m.selectionSet&&Ep(t,n,r,i,m.selectionSet,l,p,c);return d});function see(e,t){const n=WE(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}const $f=xa(function(t){return see(t.document,t.operationName)});function zf(e){return e?.[Symbol.asyncIterator]!=null}function Sp(e,t,n){return{prev:e,key:t,typename:n}}function Si(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function lee(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function NC(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]=NC(e[n],t[n]);else for(n in t){if(n==="__proto__"||n==="constructor"||n==="prototype")break;e[n]=NC(e[n],t[n])}return e}return t}function Ub(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?NC(o[c],n):typeof(l=o[c])==typeof t?l:t[r]*0!==0||~(""+t[r]).indexOf(".")?{}:[]}function v5({incrementalResult:e,executionResult:t}){const n=["data",...e.path??[]];if(e.items)for(const r of e.items)Ub(t,n,r),n[n.length-1]++;e.data&&Ub(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&Ub(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(r=>{v5({incrementalResult:r,executionResult:t})})}const y5=xa(function(t){return tS(ZF(t,ln))});function uee({executionRequest:e,excludeQuery:t,printFn:n=y5}){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 Bl={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function wo(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Hf(e){return wo(e)==="object"}function cee(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function b5(e,t){return e.length<124?e:t}const fee="graphql-transport-ws";var wa=(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))(wa||{}),Ca=(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))(Ca||{});function E5(e){if(!Hf(e))throw new Error(`Message is expected to be an object, but got ${wo(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 ${wo(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Hf(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${wo(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 ${wo(e.payload.query)}`);if(e.payload.variables!=null&&!Hf(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 ${wo(e.payload.variables)}`);if(e.payload.operationName!=null&&wo(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 ${wo(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Hf(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 ${wo(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${wo(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 ${wo(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cee(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 ${wo(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 dee(e,t){return E5(typeof e=="string"?JSON.parse(e,t):e)}function yg(e,t){return E5(e),JSON.stringify(e,t)}function pee(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(re=>setTimeout(re,ne*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:E=AC,on:b,webSocketImpl:y,generateID:x=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:w,jsonMessageReviver:k}=e;let N;if(y){if(!mee(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 D=N,A=(()=>{const K=(()=>{const ne={};return{on(re,se){return ne[re]=se,()=>{delete ne[re]}},emit(re){"id"in re&&ne[re.id]?.(re)}}})(),B={connecting:b?.connecting?[b.connecting]:[],opened:b?.opened?[b.opened]:[],connected:b?.connected?[b.connected]:[],ping:b?.ping?[b.ping]:[],pong:b?.pong?[b.pong]:[],message:b?.message?[K.emit,b.message]:[K.emit],closed:b?.closed?[b.closed]:[],error:b?.error?[b.error]:[]};return{onMessage:K.on,on(ne,re){const se=B[ne];return se.push(re),()=>{se.splice(se.indexOf(re),1)}},emit(ne,...re){for(const se of[...B[ne]])se(...re)}}})();function _(K){const B=[A.on("error",ne=>{B.forEach(re=>re()),K(ne)}),A.on("closed",ne=>{B.forEach(re=>re()),K(ne)})]}let L,V=0,P,F=!1,j=0,$=!1;async function X(){clearTimeout(P);const[K,B]=await(L??(L=new Promise((se,fe)=>(async()=>{if(F){if(await m(j),!V)return L=void 0,fe({code:1e3,reason:"All Subscriptions Gone"});j++}A.emit("connecting",F);const Z=new D(typeof t=="function"?await t():t,fee);let ge,ae;function pe(){isFinite(l)&&l>0&&(clearTimeout(ae),ae=setTimeout(()=>{Z.readyState===D.OPEN&&(Z.send(yg({type:Ca.Ping})),A.emit("ping",!1,void 0))},l))}_(he=>{L=void 0,clearTimeout(ge),clearTimeout(ae),fe(he),he instanceof S5&&(Z.close(4499,"Terminated"),Z.onerror=null,Z.onclose=null)}),Z.onerror=he=>A.emit("error",he),Z.onclose=he=>A.emit("closed",he),Z.onopen=async()=>{try{A.emit("opened",Z);const he=typeof n=="function"?await n():n;if(Z.readyState!==D.OPEN)return;Z.send(yg(he?{type:Ca.ConnectionInit,payload:he}:{type:Ca.ConnectionInit},w)),isFinite(p)&&p>0&&(ge=setTimeout(()=>{Z.close(wa.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},p)),pe()}catch(he){A.emit("error",he),Z.close(wa.InternalClientError,b5(he instanceof Error?he.message:String(he),"Internal client error"))}};let ce=!1;Z.onmessage=({data:he})=>{try{const Se=dee(he,k);if(A.emit("message",Se),Se.type==="ping"||Se.type==="pong"){A.emit(Se.type,!0,Se.payload),Se.type==="pong"?pe():c||(Z.send(yg(Se.payload?{type:Ca.Pong,payload:Se.payload}:{type:Ca.Pong})),A.emit("pong",!1,Se.payload));return}if(ce)return;if(Se.type!==Ca.ConnectionAck)throw new Error(`First message cannot be of type ${Se.type}`);clearTimeout(ge),ce=!0,A.emit("connected",Z,Se.payload,F),F=!1,j=0,se([Z,new Promise((Ie,Ge)=>_(Ge))])}catch(Se){Z.onmessage=null,A.emit("error",Se),Z.close(wa.BadResponse,b5(Se instanceof Error?Se.message:String(Se),"Bad response"))}}})())));K.readyState===D.CLOSING&&await B;let ne=()=>{};const re=new Promise(se=>ne=se);return[K,ne,Promise.race([re.then(()=>{if(!V){const se=()=>K.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{K.readyState===D.OPEN&&se()},o):se()}}),B])]}function J(K){if(AC(K)&&(hee(K.code)||[wa.InternalServerError,wa.InternalClientError,wa.BadRequest,wa.BadResponse,wa.Unauthorized,wa.SubprotocolNotAcceptable,wa.SubscriberAlreadyExists,wa.TooManyInitialisationRequests].includes(K.code)))throw K;if($)return!1;if(AC(K)&&K.code===1e3)return V>0;if(!d||j>=d||!E(K))throw K;return F=!0}r||(async()=>{for(V++;;)try{const[,,K]=await X();await K}catch(K){try{if(!J(K))return}catch(B){return i?.(B)}}})();function ee(K,B){const ne=x(K);let re=!1,se=!1,fe=()=>{V--,re=!0};return(async()=>{for(V++;;)try{const[Z,ge,ae]=await X();if(re)return ge();const pe=A.onMessage(ne,ce=>{switch(ce.type){case Ca.Next:{B.next(ce.payload);return}case Ca.Error:{se=!0,re=!0,B.error(ce.payload),fe();return}case Ca.Complete:{re=!0,fe();return}}});Z.send(yg({id:ne,type:Ca.Subscribe,payload:K},w)),fe=()=>{!re&&Z.readyState===D.OPEN&&Z.send(yg({id:ne,type:Ca.Complete},w)),V--,re=!0,ge()},await ae.finally(pe);return}catch(Z){if(!J(Z))return}})().then(()=>{se||B.complete()}).catch(Z=>{B.error(Z)}),()=>{re||fe()}}return{on:A.on,subscribe:ee,iterate(K){const B=[],ne={done:!1,error:null,resolve:()=>{}},re=ee(K,{next(fe){B.push(fe),ne.resolve()},error(fe){ne.done=!0,ne.error=fe,ne.resolve()},complete(){ne.done=!0,ne.resolve()}}),se=(async function*(){for(;;){for(B.length||await new Promise(Z=>ne.resolve=Z);B.length;)yield B.shift();if(ne.error)throw ne.error;if(ne.done)return}})();return se.throw=async fe=>(ne.done||(ne.done=!0,ne.error=fe,ne.resolve()),{done:!0,value:void 0}),se.return=async()=>(re(),{done:!0,value:void 0}),se},async dispose(){if($=!0,L){const[K]=await L;K.close(1e3,"Normal Closure")}},terminate(){L&&A.emit("closed",new S5)}}}class S5 extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function AC(e){return Hf(e)&&"code"in e&&"reason"in e}function hee(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function mee(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function gee(e){return"subscribe"in e}function vee(e){let t,n={},r=y5;if(gee(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=pee({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=$f(l).operation,info:d,signal:m=d?.signal}=l;c?.connectionParams&&typeof c?.connectionParams=="object"&&(n=Object.assign(n,c.connectionParams));const E=t.iterate(uee({executionRequest:l,printFn:r}));return E.return&&m&&m.addEventListener("abort",()=>{E.return?.()},{once:!0}),p==="subscription"?E:E.next().then(({value:b})=>b)};return Object.defineProperty(i,Bl.asyncDispose,{value:function(){return t.dispose()}}),i}const T5=!globalThis.Bun&&globalThis.process?.release?.name==="node",qb=T5?new FinalizationRegistry(e=>e()):null,x5=Symbol("CONTROLLER_IN_SIGNAL");function yee(e){if(e.length===0)return;if(e.length===1)return e[0];if(!T5)return AbortSignal.any(e);for(const l of e)if(l.aborted)return l;const t=new AbortController,n=new WeakRef(t),r=[];let i=e.length;for(const l of e){let c=function(){n.deref()?.abort(p.deref()?.reason)};const p=new WeakRef(l);l.addEventListener("abort",c),r.push([p,c]),qb.register(l,()=>!--i&&o(),l)}function o(){for(const[l,c]of r){const p=l.deref();p&&(p.removeEventListener("abort",c),qb.unregister(p));const d=n.deref();d&&(qb.unregister(d.signal),delete d.signal[x5])}}return t.signal.addEventListener("abort",o),qb.register(t.signal,o,t.signal),t.signal[x5]=t,t.signal}const w5=xa(function(t){return tS(ZF(t,ln))});function C5({executionRequest:e,excludeQuery:t,printFn:n=w5}){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}}var br={},_5;function bee(){return _5||(_5=1,br.fetch=globalThis.fetch,br.Headers=globalThis.Headers,br.Request=globalThis.Request,br.Response=globalThis.Response,br.FormData=globalThis.FormData,br.ReadableStream=globalThis.ReadableStream,br.WritableStream=globalThis.WritableStream,br.TransformStream=globalThis.TransformStream,br.CompressionStream=globalThis.CompressionStream,br.DecompressionStream=globalThis.DecompressionStream,br.TextDecoderStream=globalThis.TextDecoderStream,br.TextEncoderStream=globalThis.TextEncoderStream,br.Blob=globalThis.Blob,br.File=globalThis.File,br.crypto=globalThis.crypto,br.btoa=globalThis.btoa,br.TextEncoder=globalThis.TextEncoder,br.TextDecoder=globalThis.TextDecoder,br.URLPattern=globalThis.URLPattern,br.URL=globalThis.URL,br.URLSearchParams=globalThis.URLSearchParams,br.createFetch=()=>globalThis),br}var Gf=bee();/*! *****************************************************************************
397
397
  Copyright (c) Microsoft Corporation.
398
398
 
399
399
  Permission to use, copy, modify, and/or distribute this software for any
@@ -406,14 +406,14 @@ ${t?n:gg(n)}
406
406
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
407
407
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
408
408
  PERFORMANCE OF THIS SOFTWARE.
409
- ***************************************************************************** */var OC=function(e,t){return OC=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])},OC(e,t)};function Eee(e,t){OC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Tp(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 rc(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 xp(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 bg(e){return this instanceof bg?(this.v=e,this):new bg(e)}function See(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(x,w){o.push([b,y,x,w])>1||c(b,y)})})}function c(b,y){try{p(r[b](y))}catch(x){E(o[0][3],x)}}function p(b){b.value instanceof bg?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 N5=function(e){Eee(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 DC(e){e!=null&&typeof e.then=="function"&&e.then(zb,zb)}var kC=0,A5=1,Yf=2,Bb=3,RC=4,$b=1024,zb=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 Wf(e,t){var n=e.state>=Bb;return Promise.resolve(t).then(function(r){return!n&&e.state>=RC?wp(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function MC(e,t){var n,r;if(!(e.state>=Yf))if(e.state=Yf,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>"u"||e.buffer.empty))Eg(e);else try{for(var i=xp(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 Eg(e){var t,n;if(!(e.state>=Bb)){e.state<Yf&&MC(e),e.state=Bb,e.buffer=void 0;try{for(var r=xp(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(Wf(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 O5(e){e.state>=RC||(e.state<Bb&&Eg(e),e.state=RC)}function Tee(e,t){if(DC(t),e.pushes.length>=$b)throw new N5("No more than "+$b+" pending calls to push are allowed on a single repeater.");if(e.state>=Yf)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<Yf&&(e.err=p),O5(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(Wf(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,O5(e)}),l}function xee(e){var t=MC.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 wee(e){if(!(e.state>=A5)){e.state=A5;var t=Tee.bind(null,e),n=xee(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return MC(e)})}}var Hb=new WeakMap,Cp=function(){function e(t,n){Hb.set(this,{executor:t,buffer:n,err:void 0,state:kC,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:zb,onstop:zb})}return e.prototype.next=function(t){DC(t);var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");if(n.nexts.length>=$b)throw new N5("No more than "+$b+" pending calls to next are allowed on a single repeater.");if(n.state<=kC&&wee(n),n.onnext(t),typeof n.buffer<"u"&&!n.buffer.empty){var r=Wf(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,Wf(n,o.value)}else if(n.state>=Yf)return Eg(n),Wf(n,wp(n));return new Promise(function(l){return n.nexts.push({resolve:l,value:t})})},e.prototype.return=function(t){DC(t);var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");return Eg(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),Wf(n,wp(n))},e.prototype.throw=function(t){var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");return n.state<=kC||n.state>=Yf||typeof n.buffer<"u"&&!n.buffer.empty?(Eg(n),n.err==null&&(n.err=t),Wf(n,wp(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=Cee,e.merge=_ee,e.zip=Nee,e.latest=Aee,e}();function Gb(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 See(this,arguments,function(){return rc(this,function(b){switch(b.label){case 0:return t.yieldValues?[4,bg(d)]:[3,3];case 1:return[4,b.sent()];case 2:b.sent(),b.label=3;case 3:return t.returnValues?[4,bg(d)]:[3,5];case 4:return[2,b.sent()];case 5:return[2]}})})}())};try{for(var l=xp(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 Cee(e){var t=this,n=Gb(e,{returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p,d,m;return rc(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,x,w,k,N;return rc(this,function(D){switch(D.label){case 0:b=d;try{for(y=(k=void 0,xp(n)),x=y.next();!x.done;x=y.next())w=x.value,Promise.resolve(w.next()).then(function(A){A.done?(i(),c===void 0&&(c=A)):d===b&&(d++,o(A))},function(A){return i(A)})}catch(A){k={error:A}}finally{try{x&&!x.done&&(N=y.return)&&N.call(y)}finally{if(k)throw k.error}}return[4,new Promise(function(A){return o=A})];case 1:return p=D.sent(),p===void 0?[3,3]:[4,r(p.value)];case 2:D.sent(),D.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 _ee(e){var t=this,n=Gb(e,{yieldValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p=this;return rc(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=xp(o),y=b.next();!y.done;y=b.next()){var x=y.value;x()}}catch(w){m={error:w}}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 Tp(p,void 0,void 0,function(){var b,y;return rc(this,function(x){switch(x.label){case 0:x.trys.push([0,,6,9]),x.label=1;case 1:return l?[3,5]:(Promise.resolve(m.next()).then(function(w){return o[E](w)},function(w){return i(w)}),[4,new Promise(function(w){o[E]=w})]);case 2:return b=x.sent(),b===void 0?[3,4]:b.done?(c=b,[2]):[4,r(b.value)];case 3:x.sent(),x.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=x.sent(),x.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 Nee(e){var t=this,n=Gb(e,{returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p;return rc(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 Aee(e){var t=this,n=Gb(e,{yieldValues:!0,returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p,d,m=this;return rc(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 x=xp(l),w=x.next();!w.done;w=x.next()){var k=w.value;k()}}catch(N){b={error:N}}finally{try{w&&!w.done&&(y=x.return)&&y.call(x)}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 Tp(m,void 0,void 0,function(){var x;return rc(this,function(w){switch(w.label){case 0:if(p[y].done)return[2,p[y].value];w.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 x=w.sent(),x===void 0?[2,p[y].value]:x.done?[2,x.value]:(d[y]=x.value,[4,r(d.slice())]);case 3:return w.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 Oee(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 x of o){p=b.byteLength,b=Buffer.concat([b,x]);let w=x.indexOf(l);for(~w?p+=w:p=b.indexOf(l),y=[];~p;){let k=b.subarray(0,p),N=b.subarray(p+E);if(d){let D=k.indexOf(`\r
409
+ ***************************************************************************** */var OC=function(e,t){return OC=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])},OC(e,t)};function Eee(e,t){OC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Tp(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 rc(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 xp(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 bg(e){return this instanceof bg?(this.v=e,this):new bg(e)}function See(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(x,w){o.push([b,y,x,w])>1||c(b,y)})})}function c(b,y){try{p(r[b](y))}catch(x){E(o[0][3],x)}}function p(b){b.value instanceof bg?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 N5=(function(e){Eee(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 DC(e){e!=null&&typeof e.then=="function"&&e.then(zb,zb)}var kC=0,A5=1,Yf=2,Bb=3,RC=4,$b=1024,zb=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 Wf(e,t){var n=e.state>=Bb;return Promise.resolve(t).then(function(r){return!n&&e.state>=RC?wp(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function MC(e,t){var n,r;if(!(e.state>=Yf))if(e.state=Yf,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>"u"||e.buffer.empty))Eg(e);else try{for(var i=xp(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 Eg(e){var t,n;if(!(e.state>=Bb)){e.state<Yf&&MC(e),e.state=Bb,e.buffer=void 0;try{for(var r=xp(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(Wf(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 O5(e){e.state>=RC||(e.state<Bb&&Eg(e),e.state=RC)}function Tee(e,t){if(DC(t),e.pushes.length>=$b)throw new N5("No more than "+$b+" pending calls to push are allowed on a single repeater.");if(e.state>=Yf)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<Yf&&(e.err=p),O5(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(Wf(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,O5(e)}),l}function xee(e){var t=MC.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 wee(e){if(!(e.state>=A5)){e.state=A5;var t=Tee.bind(null,e),n=xee(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return MC(e)})}}var Hb=new WeakMap,Cp=(function(){function e(t,n){Hb.set(this,{executor:t,buffer:n,err:void 0,state:kC,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:zb,onstop:zb})}return e.prototype.next=function(t){DC(t);var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");if(n.nexts.length>=$b)throw new N5("No more than "+$b+" pending calls to next are allowed on a single repeater.");if(n.state<=kC&&wee(n),n.onnext(t),typeof n.buffer<"u"&&!n.buffer.empty){var r=Wf(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,Wf(n,o.value)}else if(n.state>=Yf)return Eg(n),Wf(n,wp(n));return new Promise(function(l){return n.nexts.push({resolve:l,value:t})})},e.prototype.return=function(t){DC(t);var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");return Eg(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),Wf(n,wp(n))},e.prototype.throw=function(t){var n=Hb.get(this);if(n===void 0)throw new Error("WeakMap error");return n.state<=kC||n.state>=Yf||typeof n.buffer<"u"&&!n.buffer.empty?(Eg(n),n.err==null&&(n.err=t),Wf(n,wp(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=Cee,e.merge=_ee,e.zip=Nee,e.latest=Aee,e})();function Gb(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 See(this,arguments,function(){return rc(this,function(b){switch(b.label){case 0:return t.yieldValues?[4,bg(d)]:[3,3];case 1:return[4,b.sent()];case 2:b.sent(),b.label=3;case 3:return t.returnValues?[4,bg(d)]:[3,5];case 4:return[2,b.sent()];case 5:return[2]}})})})())};try{for(var l=xp(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 Cee(e){var t=this,n=Gb(e,{returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p,d,m;return rc(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,x,w,k,N;return rc(this,function(D){switch(D.label){case 0:b=d;try{for(y=(k=void 0,xp(n)),x=y.next();!x.done;x=y.next())w=x.value,Promise.resolve(w.next()).then(function(A){A.done?(i(),c===void 0&&(c=A)):d===b&&(d++,o(A))},function(A){return i(A)})}catch(A){k={error:A}}finally{try{x&&!x.done&&(N=y.return)&&N.call(y)}finally{if(k)throw k.error}}return[4,new Promise(function(A){return o=A})];case 1:return p=D.sent(),p===void 0?[3,3]:[4,r(p.value)];case 2:D.sent(),D.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 _ee(e){var t=this,n=Gb(e,{yieldValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p=this;return rc(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=xp(o),y=b.next();!y.done;y=b.next()){var x=y.value;x()}}catch(w){m={error:w}}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 Tp(p,void 0,void 0,function(){var b,y;return rc(this,function(x){switch(x.label){case 0:x.trys.push([0,,6,9]),x.label=1;case 1:return l?[3,5]:(Promise.resolve(m.next()).then(function(w){return o[E](w)},function(w){return i(w)}),[4,new Promise(function(w){o[E]=w})]);case 2:return b=x.sent(),b===void 0?[3,4]:b.done?(c=b,[2]):[4,r(b.value)];case 3:x.sent(),x.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=x.sent(),x.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 Nee(e){var t=this,n=Gb(e,{returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p;return rc(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 Aee(e){var t=this,n=Gb(e,{yieldValues:!0,returnValues:!0});return new Cp(function(r,i){return Tp(t,void 0,void 0,function(){var o,l,c,p,d,m=this;return rc(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 x=xp(l),w=x.next();!w.done;w=x.next()){var k=w.value;k()}}catch(N){b={error:N}}finally{try{w&&!w.done&&(y=x.return)&&y.call(x)}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 Tp(m,void 0,void 0,function(){var x;return rc(this,function(w){switch(w.label){case 0:if(p[y].done)return[2,p[y].value];w.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 x=w.sent(),x===void 0?[2,p[y].value]:x.done?[2,x.value]:(d[y]=x.value,[4,r(d.slice())]);case 3:return w.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 Oee(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 x of o){p=b.byteLength,b=Buffer.concat([b,x]);let w=x.indexOf(l);for(~w?p+=w:p=b.indexOf(l),y=[];~p;){let k=b.subarray(0,p),N=b.subarray(p+E);if(d){let D=k.indexOf(`\r
410
410
  \r
411
411
  `)+4,A=k.lastIndexOf(`\r
412
412
  `,D),_=!1,L=k.subarray(D,A>-1?void 0:A),V=String(k.subarray(0,D)).trim().split(`\r
413
413
  `),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{L=JSON.parse(String(L)),_=!0}catch{}if(m={headers:P,body:L,json:_},yield m,N[0]===45&&N[1]===45)break e}else l=`\r
414
- `+l,d=E+=2;b=N,p=b.indexOf(l)}y.length&&(yield y)}y.length&&(yield y)}(e,`--${i}`)}function Dee(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 kee(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=Dee(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}.`:"",x=new Set(p).add(l);if(d){let w=0;for(const k of l){const N=o(k,y+w++,x);b&&E.push(N)}}else for(const w in l){const k=o(l[w],y+w,x);b&&(E[w]=k)}}return E}return l}return{clone:o(e,n,new Set),files:i}}function Ree(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob}function Mee(e){return typeof e.createReadStream=="function"}function D5(e){const t=[],n=e[Symbol.asyncIterator]();function r(){return Xt(()=>n.next(),({value:i,done:o})=>(i!=null&&t.push(i),o?t:r()))}return r()}function Lee(e,{File:t=Gf.File,FormData:n=Gf.FormData}){if(!e.variables)return JSON.stringify(e);const r=Object.assign({},e.variables),{clone:i,files:o}=kee(r,b=>Ree(b)||b?.promise||zf(b)||b?.then||typeof 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 x=y.toString();if(b!=null)return Xt(()=>b?.promise||b,w=>{const k=w.filename||w.name||w.path||`blob-${x}`;if(Iee(w))d.append(x,w,k);else{if(zf(w))return Xt(()=>D5(w),N=>{const D=new Uint8Array(N);d.append(x,new t([D],k),k)});if(Mee(w))return Xt(()=>D5(w.createReadStream()),N=>{const D=new Uint8Array(N);d.append(x,new t([D],k,{type:w.mimetype}),k)});d.append(x,new t([w],k),k)}})}const E=[];for(const b in c){const y=c[b],x=m(y,Number(b));cr(x)&&E.push(x)}return E.length>0?Promise.all(E).then(()=>d):d}function Iee(e){return typeof e.arrayBuffer=="function"}function k5(e,t){return e instanceof Me?e:e?.name==="TimeoutError"?Yt(e.message,{extensions:{http:{status:504,...t?.http||{}},code:"TIMEOUT_ERROR",...t||{}},originalError:e}):Yt(e.message,{extensions:t,originalError:e})}function Yb(e,t){return{errors:[k5(e,t)]}}function Fee(e){const n=new Gf.TextEncoder().encode(e);return Xt(()=>Gf.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 R5=`
414
+ `+l,d=E+=2;b=N,p=b.indexOf(l)}y.length&&(yield y)}y.length&&(yield y)})(e,`--${i}`)}function Dee(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 kee(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=Dee(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}.`:"",x=new Set(p).add(l);if(d){let w=0;for(const k of l){const N=o(k,y+w++,x);b&&E.push(N)}}else for(const w in l){const k=o(l[w],y+w,x);b&&(E[w]=k)}}return E}return l}return{clone:o(e,n,new Set),files:i}}function Ree(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob}function Mee(e){return typeof e.createReadStream=="function"}function D5(e){const t=[],n=e[Symbol.asyncIterator]();function r(){return Xt(()=>n.next(),({value:i,done:o})=>(i!=null&&t.push(i),o?t:r()))}return r()}function Lee(e,{File:t=Gf.File,FormData:n=Gf.FormData}){if(!e.variables)return JSON.stringify(e);const r=Object.assign({},e.variables),{clone:i,files:o}=kee(r,b=>Ree(b)||b?.promise||zf(b)||b?.then||typeof 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 x=y.toString();if(b!=null)return Xt(()=>b?.promise||b,w=>{const k=w.filename||w.name||w.path||`blob-${x}`;if(Iee(w))d.append(x,w,k);else{if(zf(w))return Xt(()=>D5(w),N=>{const D=new Uint8Array(N);d.append(x,new t([D],k),k)});if(Mee(w))return Xt(()=>D5(w.createReadStream()),N=>{const D=new Uint8Array(N);d.append(x,new t([D],k,{type:w.mimetype}),k)});d.append(x,new t([w],k),k)}})}const E=[];for(const b in c){const y=c[b],x=m(y,Number(b));cr(x)&&E.push(x)}return E.length>0?Promise.all(E).then(()=>d):d}function Iee(e){return typeof e.arrayBuffer=="function"}function k5(e,t){return e instanceof Me?e:e?.name==="TimeoutError"?Yt(e.message,{extensions:{http:{status:504,...t?.http||{}},code:"TIMEOUT_ERROR",...t||{}},originalError:e}):Yt(e.message,{extensions:t,originalError:e})}function Yb(e,t){return{errors:[k5(e,t)]}}function Fee(e){const n=new Gf.TextEncoder().encode(e);return Xt(()=>Gf.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 R5=`
415
415
 
416
- `;function Pee(e){return e&&typeof e.getReader=="function"}function jee(e,t,n){const r=e.body;if(!Pee(r))throw new Error("Response body is expected to be a readable stream but got; "+Ri(r));return new Cp((i,o)=>{const l=new Gf.TextDecoder,c=r.getReader();c.closed.then(o).catch(o),o.then(()=>{t?.abort(),r.locked&&c.releaseLock()}).catch(m=>{c.cancel(m)});let p="";async function d(){if(n?.aborted)return await i(Yb(n.reason)),o();if(!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 b=p.indexOf(R5);if(b===-1)break;const y=p.slice(0,b);p=p.slice(b+R5.length);const x=y.split("data:")[1]?.trim();if(x){const k=JSON.parse(x);await i(k.payload||k)}if(y.split("event:")[1]?.trim()==="complete")return o()}return d()}return d()})}function Vee(e){return e!=null&&typeof e=="object"&&"pipe"in e}async function Uee(e){const t=e.body,n=e.headers.get("content-type")||"";let r;if(Vee(t)){t.headers={"content-type":n};const l=await Oee(t);"next"in l&&(r=l)}else{const l=await K8(e);"next"in l&&(r=l)}const i={};return r==null?i:EC(r,l=>{if(l.json){const c=l.body;v5({incrementalResult:c,executionResult:i})}return i})}const M5=xa(function(t){return t.operation==="query"&&t.directives?.some(n=>n.name.value==="live")});function qee({baseUrl:e="",body:t}){const n="https://dummyhostname.com",r=e.startsWith("http")?e: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 Bee(e){const t=e?.print??w5;let n;const r=e?.serviceName,i=(l,c)=>{if(n||=new AbortController,n.signal.aborted)return Yb(n.signal.reason);const p=l.extensions?.fetch??e?.fetch??Gf.fetch;let d=l.extensions?.method||e?.method;const m=$f(l),E=m.operation;(e?.useGETForQueries||l.extensions?.useGETForQueries)&&E==="query"&&(d="GET");let b="application/graphql-response+json, application/json, multipart/mixed",y;E==="subscription"||M5(m)?(d||="GET",b="text/event-stream",y=new AbortController):d||="POST";const x=l.extensions?.endpoint||e?.endpoint||"/graphql",w={accept:b};if(e?.headers&&Object.assign(w,typeof e?.headers=="function"?e.headers(l):e?.headers),l.extensions?.headers){const{headers:P,...F}=l.extensions;Object.assign(w,P),l.extensions=F}const k=[n.signal],N=l.signal||l.info?.signal;if(N){if(N.aborted)return Yb(N.reason);k.push(N)}e?.timeout&&k.push(AbortSignal.timeout(e.timeout)),y&&k.push(y.signal);const D=yee(k),A={code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,request:{method:d}},_=t(l.document);let L=function(){return C5({executionRequest:l,excludeQuery:c,printFn:t})};e?.apq&&(L=function(){return Xt(()=>Fee(_),F=>{const j=l.extensions||{};return j.persistedQuery={version:1,sha256Hash:F},C5({executionRequest:{...l,extensions:j},excludeQuery:c,printFn:t})})});function V(P){return P.name==="AggregateError"?{errors:P.errors.map(F=>L5(F,{signal:D,endpoint:x,upstreamErrorExtensions:A}))}:{errors:[L5(P,{signal:D,endpoint:x,upstreamErrorExtensions:A})]}}return Xt(()=>L(),P=>Xt(()=>{switch(d){case"GET":{const F=qee({baseUrl:x,body:P}),j={method:"GET",headers:w,signal:D};return e?.credentials!=null&&(j.credentials=e.credentials),A.request.url=F,p(F,j,l.context,l.info)}case"POST":return A.request.body=P,Xt(()=>Lee(P,{File:e?.File,FormData:e?.FormData}),F=>{typeof F=="string"&&!w["content-type"]&&(A.request.body=F,w["content-type"]="application/json");const j={method:"POST",body:F,headers:w,signal:D};return e?.credentials!=null&&(j.credentials=e.credentials),p(x,j,l.context,l.info)},V)}},F=>Xt(()=>{if(A.response||={},A.response.status=F.status,A.response.statusText=F.statusText,Object.defineProperty(A.response,"headers",{get(){return Object.fromEntries(F.headers.entries())}}),e?.retry!=null&&!F.status.toString().startsWith("2"))throw new Error(F.statusText||`Upstream HTTP Error: ${F.status}`);const j=F.headers.get("content-type");return j?.includes("text/event-stream")?jee(F,y,D):j?.includes("multipart/mixed")?Uee(F):F.text()},j=>{if(typeof j=="string")if(A.response||={},A.response.body=j,j)try{const $=JSON.parse(j);return A.response.body=$,$.data==null&&($.errors==null||$.errors.length===0)?{errors:[Yt('Unexpected empty "data" and "errors" fields in result: '+j,{extensions:A})]}:Array.isArray($.errors)?{...$,errors:$.errors.map(({message:X,...J})=>Yt(X,{...J,extensions:{code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,...J.extensions||{}}}))}:$}catch($){return{errors:[Yt(`Unexpected response: ${JSON.stringify(j)}`,{extensions:A,originalError:$})]}}else return{errors:[Yt("No response returned",{extensions:A})]};else return j},V),V),V)};let o=i;if(e?.apq!=null&&(o=function(c){return Xt(()=>i(c,!0),p=>p.errors?.some(d=>d.extensions.code==="PERSISTED_QUERY_NOT_FOUND"||d.message==="PersistedQueryNotFound")?i(c,!1):p)}),e?.retry!=null){const l=o;o=function(p){let d,m=0;function E(){return n?.signal.aborted?Yb(n.signal.reason):(m++,m>e.retry?d??{errors:[Yt("No response returned from fetch")]}:Xt(()=>l(p),b=>(d=b,d?.errors?.length?E():d)))}return E()}}return Object.defineProperties(o,{[Bl.dispose]:{get(){return function(){n?.abort(e?.getDisposeReason?.()),n=void 0}}},[Bl.asyncDispose]:{get(){return function(){n?.abort(e?.getDisposeReason?.()),n=void 0}}}}),o}function L5(e,{signal:t,endpoint:n,upstreamErrorExtensions:r}){return typeof e=="string"?Yt(e,{extensions:r}):e.name==="GraphQLError"?e:e.name==="TypeError"&&e.message==="fetch failed"?Yt(`fetch failed to ${n}`,{extensions:r,originalError:e}):e.name==="AbortError"?k5(t?.reason||e,r):e.message?Yt(e.message,{extensions:r,originalError:e}):Yt("Unknown error",{extensions:r,originalError:e})}var _a;(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"})(_a||(_a={}));function $ee(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?.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let d={};switch(typeof n?.connectionParams){case"function":d=n?.connectionParams();break;case"object":d=n?.connectionParams;break}d=Object.assign(d,r),i.send(JSON.stringify({type:_a.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:_a.CONNECTION_TERMINATE})),i.terminate(),i=null)},c=function(d){d.extensions?.connectionParams&&typeof d.extensions?.connectionParams=="object"&&(r=Object.assign(r,d.extensions.connectionParams));const m=Date.now().toString();return nee({subscribe(E){function b(y){E.error(y)}if(o(),i==null)throw new Error("WebSocket connection is not found!");return i.onmessage=y=>{const x=JSON.parse(y.data.toString("utf-8"));switch(x.type){case _a.CONNECTION_ACK:{if(i==null)throw new Error("WebSocket connection is not found!");i.send(JSON.stringify({type:_a.START,id:m,payload:{query:ln(d.document),variables:d.variables,operationName:d.operationName}}),w=>{w&&b(w)});break}case _a.CONNECTION_ERROR:{E.error(x.payload);break}case _a.CONNECTION_KEEP_ALIVE:break;case _a.DATA:{E.next(x.payload);break}case _a.COMPLETE:{i?.send(JSON.stringify({type:_a.CONNECTION_TERMINATE}),w=>{w&&b(w)}),E.complete(),l();break}}},{unsubscribe:()=>{i?.readyState===Qs.OPEN&&i?.send(JSON.stringify({type:_a.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 zee(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(){return i=!0,await Promise.all([n?.return?.(),t.return?.()]),{value:void 0,done:!0}},async throw(l){throw i=!0,await Promise.all([n?.throw?.(l),t.throw?.(l)]),l},[Symbol.asyncIterator](){return this},async[Bl.asyncDispose](){i=!0,await Promise.all([n?.[Bl.asyncDispose]?.(),t?.[Bl.asyncDispose]?.()])}}}function I5(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}function F5(e,t,n){t?.throwIfAborted();const r=Object.create(null),i=[];for(const l in e){const c=Xt(()=>e[l],p=>{r[l]=p});cr(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 Hee(e,t,n,r){const i=[],o=r?.maxErrors;try{const l=Gee(e,t,n,c=>{if(o!=null&&i.length>=o)throw Yt("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 Gee(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=yi(e,o.type);if(!Di(c)){const d=ln(o.type);r(Yt(`Variable "$${l}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!i5(n,l)){if(o.defaultValue)i[l]=Ea(o.defaultValue,c);else if(_t(c)){const d=Ri(c);r(Yt(`Variable "$${l}" of required type "${d}" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&_t(c)){const d=Ri(c);r(Yt(`Variable "$${l}" of non-null type "${d}" must not be null.`,{nodes:o}));continue}i[l]=VE(p,c,(d,m,E)=>{let b=`Variable "$${l}" got invalid value `+Ri(m);d.length>0&&(b+=` at "${l}${lee(d)}"`),r(Yt(b+"; "+E.message,{nodes:o,originalError:E}))})}return i}const Yee=NJ((e,t,n)=>aee(e.schema,e.fragments,e.variableValues,t,n));function Wee(e){const t=V5(e);return"schema"in t?P5(t):{errors:t.map(n=>(Object.defineProperty(n,"extensions",{value:{...n.extensions,http:{...n.extensions?.http||{},status:400}}}),n))}}function P5(e){return e.signal?.throwIfAborted(),Xt(()=>Xee(e),t=>{const n=j5(t,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...n,hasNext:!0},subsequentResults:pte(e)}:n},t=>(e.signal?.throwIfAborted(),t.errors?e.errors.push(...t.errors):e.errors.push(t),j5(null,e.errors)))}function j5(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const Qee=xa(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===Q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function V5(e){const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p,subscribeFieldResolver:d,signal:m}=e;m?.throwIfAborted(),vy(t);const E=Qee(n);let b;for(const N of n.definitions)switch(N.kind){case Q.OPERATION_DEFINITION:if(l==null){if(b!==void 0)return[Yt("Must provide operation name if query contains multiple operations.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];b=N}else N.name?.value===l&&(b=N);break}if(b==null)return l!=null?[Yt(`Unknown operation named "${l}".`,{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})]:[Yt("Must provide an operation.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];const y=b.variableDefinitions??[],x=Hee(t,y,o??{},{maxErrors:50});if(x.errors)return x.errors;m?.throwIfAborted();let w,k;if(m){const N=new Set,D=QF();k=D.promise;const A=()=>{D.reject(m.reason),m.removeEventListener("abort",A)};m.addEventListener("abort",A,{once:!0}),k.catch(()=>{for(const _ of N)_();N.clear()}),w=_=>{N.add(_)}}return{schema:t,fragments:E,rootValue:r,contextValue:i,operation:b,variableValues:x.coerced,fieldResolver:c??W5,typeResolver:p??rte,subscribeFieldResolver:d??W5,subsequentPayloads:new Set,errors:[],signal:m,onSignalAbort:w,signalPromise:k}}function Kee(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Xee(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,l=Mb(n,t.operation,[t]);l==null&&Yt(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:c,patches:p}=CC(n,r,i,l,t.selectionSet),d=void 0;let m;t.operation==="mutation"?m=Zee(e,l,o,d,c):m=LC(e,l,o,d,c);for(const E of p){const{label:b,fields:y}=E;J5(e,l,o,y,b,d)}return m}function Zee(e,t,n,r,i){return r5(i,(o,[l,c])=>{const p=Sp(r,l,t.name);return e.signal?.throwIfAborted(),Xt(()=>U5(e,t,n,c,p),d=>(d===void 0||(o[l]=d),o))},Object.create(null))}function LC(e,t,n,r,i,o){const l=Object.create(null);let c=!1;try{for(const[p,d]of i){e.signal?.throwIfAborted();const m=Sp(r,p,t.name),E=U5(e,t,n,d,m,o);E!==void 0&&(l[p]=E,cr(E)&&(c=!0))}}catch(p){if(p!==e.signal?.reason&&c)return Xt(()=>F5(l,e.signal),()=>{throw p},()=>{throw p});throw p}return c?F5(l,e.signal,e.signalPromise):l}function U5(e,t,n,r,i,o){const l=o?.errors??e.errors,c=tP(e.schema,t,r[0]);if(!c)return;const p=c.type,d=c.resolve??e.fieldResolver,m=q5(e,c,r,t,i);try{e.signal?.throwIfAborted();const E=o5(c,r[0],e.variableValues),b=e.contextValue,y=d(n,E,b,m);let x;return cr(y)?x=y.then(w=>ic(e,p,r,m,i,w,o)):x=ic(e,p,r,m,i,y,o),cr(x)?x.then(void 0,w=>{if(w instanceof AggregateError){let D;for(let A of w.errors){A=Ks(A);const _=xr(A,r,Si(i));D=Na(_,p,l),Co(e,i,o)}return D}w=Ks(w);const k=xr(w,r,Si(i)),N=Na(k,p,l);return Co(e,i,o),N}):x}catch(E){if(E instanceof AggregateError){let w;for(let k of E.errors){k=Ks(k);const N=xr(k,r,Si(i));w=Na(N,p,l),Co(e,i,o)}return w}const b=Ks(E),y=xr(b,r,Si(i)),x=Na(y,p,l);return Co(e,i,o),x}}function q5(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 B5="CRITICAL_ERROR";function Na(e,t,n){if(_t(t)||e.extensions?.[B5])throw e;return n.push(e),null}function ic(e,t,n,r,i,o,l){if(o instanceof Error)throw o;if(_t(t)){const c=ic(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(mn(t))return ete(e,t,n,r,i,o,l);if(ai(t))return tte(t,o);if(sr(t))return nte(e,t,n,r,i,o,l);if(At(t))return IC(e,t,n,r,i,o,l);console.assert(!1,"Cannot complete value of unexpected output type: "+Ri(t))}function $5(e,t,n){if(typeof n.key=="number")return;const r=Ps(iee,t[0],e.variableValues);if(r&&r.if!==!1)return I5(typeof r.initialCount=="number","initialCount must be a number"),I5(r.initialCount>=0,"initialCount must be a positive integer"),{initialCount:r.initialCount,label:typeof r.label=="string"?r.label:void 0}}async function Jee(e,t,n,r,i,o,l){e.signal?.throwIfAborted(),o.return&&e.onSignalAbort?.(()=>{o.return?.()});const c=l?.errors??e.errors,p=$5(e,n,i);let d=!1;const m=[];let E=0;for(;;){if(p&&typeof p.initialCount=="number"&&E>=p.initialCount){fte(E,o,e,n,r,t,i,p.label,l);break}const b=Sp(i,E,void 0);let y;try{if(y=await o.next(),y.done)break}catch(x){const w=Ks(x),k=xr(w,n,Si(b));m.push(Na(k,t,c));break}z5(y.value,m,c,e,t,n,r,b,l)&&(d=!0),E+=1}return d?Promise.all(m):m}function ete(e,t,n,r,i,o,l){const c=t.ofType,p=l?.errors??e.errors;if(zf(o)){const x=o[Symbol.asyncIterator]();return Jee(e,c,n,r,i,x,l)}if(!_J(o))throw Yt(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const d=$5(e,n,i);let m=!1,E=l;const b=[];let y=0;for(const x of o){const w=Sp(i,y,void 0);if(d&&typeof d.initialCount=="number"&&y>=d.initialCount){E=ute(i,w,x,e,n,r,c,d.label,E),y++;continue}z5(x,b,p,e,c,n,r,w,l)&&(m=!0),y++}return m?Promise.all(b):b}function z5(e,t,n,r,i,o,l,c,p){try{let d;if(cr(e)?d=e.then(m=>ic(r,i,o,l,c,m,p)):d=ic(r,i,o,l,c,e,p),cr(d))return t.push(d.then(void 0,m=>{m=Ks(m);const E=xr(m,o,Si(c)),b=Na(E,i,n);return Co(r,c,p),b})),!0;t.push(d)}catch(d){const m=Ks(d),E=xr(m,o,Si(c)),b=Na(E,i,n);Co(r,c,p),t.push(b)}return!1}function tte(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 \`${Ri(e)}.serialize(${Ri(t)})\` to return non-nullable value, returned: ${Ri(n)}`);return n}function nte(e,t,n,r,i,o,l){const c=t.resolveType??e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return cr(d)?d.then(m=>IC(e,H5(m,e,t,n,r,o),n,r,i,o,l)):IC(e,H5(d,e,t,n,r,o),n,r,i,o,l)}function H5(e,t,n,r,i,o){if(e==null)throw Yt(`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(Qv.major>=16)throw Yt("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 Yt(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Ri(o)}, received "${Ri(e)}".`);const l=t.schema.getType(e);if(l==null)throw Yt(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw Yt(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,l))throw Yt(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:r});return l}function IC(e,t,n,r,i,o,l){if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(cr(c))return c.then(p=>{if(!p)throw G5(t,o,n);return Y5(e,t,n,i,o,l)});if(!c)throw G5(t,o,n)}return Y5(e,t,n,i,o,l)}function G5(e,t,n){return Yt(`Expected value of type "${e.name}" but got: ${Ri(t)}.`,{nodes:n})}function Y5(e,t,n,r,i,o){const{fields:l,patches:c}=Yee(e,t,n),p=LC(e,t,i,r,l,o);for(const d of c){const{label:m,fields:E}=d;J5(e,t,i,E,m,r,o)}return p}const rte=function(e,t,n,r){if(n5(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(cr(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})},W5=function(e,t,n,r){if(n5(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function ite(e){const t=V5(e);if(!("schema"in t)){for(const r of t){const i=r.extensions||={},o=i.http||={};o.status=400,r.extensions.code="BAD_USER_INPUT"}return{errors:t}}const n=ste(t);return cr(n)?n.then(r=>K5(t,r)):K5(t,n)}function ote(e){return e?.initialResult}function Q5(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next(){return r?xo({value:void 0,done:r}):n?t.next():(n=!0,xo({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)},[Bl.asyncDispose](){return r=!0,t?.[Bl.asyncDispose]?.()}}}async function*ate(e){"initialResult"in e?yield*Q5(e):yield e}function K5(e,t){return zf(t)?zee(EC(t,n=>Xt(()=>P5(Kee(e,n)),ate),n=>{throw n instanceof AggregateError?new AggregateError(n.errors.map(r=>X5(r,e.operation)),n.message):X5(n,e.operation)})):t}function X5(e,t){return Yt(e.message,{originalError:e,nodes:[t]})}function ste(e){try{const t=lte(e);return cr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function lte(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw Yt("Schema is not configured to execute subscription operation.",{nodes:r});const{fields:c}=CC(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=d[0].name.value,E=tP(t,l,d[0]);if(!E)throw Yt(`The subscription field "${m}" is not defined.`,{nodes:d});const b=Sp(void 0,p,l.name),y=q5(e,E,d,l,b);try{const x=o5(E,d[0],i),w=e.contextValue,N=(E.subscribe??e.subscribeFieldResolver)(o,x,w,y);return cr(N)?N.then(D=>Z5(D,e.signal,e.onSignalAbort)).then(void 0,D=>{throw xr(D,d,Si(b))}):Z5(N,e.signal,e.onSignalAbort)}catch(x){throw xr(x,d,Si(b))}}function Z5(e,t,n){if(t?.throwIfAborted(),e instanceof Error)throw e;if(!zf(e))throw Yt(`Subscription field must return Async Iterable. Received: ${Ri(e)}.`);return n?{[Symbol.asyncIterator](){const r=e[Symbol.asyncIterator]();return r.return&&n?.(()=>{r.return?.()}),r}}:e}function J5(e,t,n,r,i,o,l){const c=new hte({label:i,path:o,parentContext:l,exeContext:e});let p;try{p=LC(e,t,n,o,r,c),cr(p)&&(p=p.then(null,d=>(c.errors.push(d),null)))}catch(d){c.errors.push(d),p=null}c.addData(p)}function ute(e,t,n,r,i,o,l,c,p){const d=new eP({label:c,path:t,parentContext:p,exeContext:r});let m;try{try{cr(n)?m=n.then(b=>ic(r,l,i,o,t,b,d)):m=ic(r,l,i,o,t,n,d),cr(m)&&(m=m.then(void 0,b=>{b=Ks(b);const y=xr(b,i,Si(t)),x=Na(y,l,d.errors);return Co(r,t,d),x}))}catch(b){const y=Ks(b),x=xr(y,i,Si(t));m=Na(x,l,d.errors),Co(r,t,d)}}catch(b){return d.errors.push(b),Co(r,e,d),d.addItems(null),d}let E;return cr(m)?E=m.then(b=>[b],b=>(d.errors.push(b),Co(r,e,d),null)):E=[m],d.addItems(E),d}async function cte(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=xr(m,n,Si(l));return{done:!0,value:Na(E,i,o.errors)}}let p;try{return p=ic(t,i,n,r,l,c,o),cr(p)&&(p=p.then(void 0,d=>{const m=xr(d,n,Si(l)),E=Na(m,i,o.errors);return Co(t,l,o),E})),{done:!1,value:p}}catch(d){const m=xr(d,n,Si(l)),E=Na(m,i,o.errors);return Co(t,l,o),{done:!1,value:E}}}async function fte(e,t,n,r,i,o,l,c,p){let d=e,m=p??void 0;for(;;){const E=Sp(l,d,void 0),b=new eP({label:c,path:E,parentContext:m,iterator:t,exeContext:n});let y;try{y=await cte(t,n,r,i,o,b,E)}catch(N){b.errors.push(N),Co(n,l,b),b.addItems(null),t?.return&&t.return().catch(()=>{});return}const{done:x,value:w}=y;let k;if(cr(w)?k=w.then(N=>[N],N=>(b.errors.push(N),Co(n,l,b),null)):k=[w],b.addItems(k),x)break;m=b,d++}}function Co(e,t,n){const r=Si(t);e.subsequentPayloads.forEach(i=>{if(i!==n){for(let o=0;o<r.length;o++)if(i.path[o]!==r[o])return;FC(i)&&i.iterator?.return&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function dte(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),FC(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 pte(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=dte(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=>{FC(o)&&o.iterator?.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[Bl.asyncDispose](){await r(),t=!0}}}class hte{type;errors;label;path;promise;data;parentContext;isCompleted;_exeContext;_resolve;constructor(t){this.type="defer",this.label=t.label,this.path=Si(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){const n=this.parentContext?.promise;if(n){this._resolve?.(n.then(()=>t));return}this._resolve?.(t)}}class eP{type;errors;label;path;items;promise;parentContext;iterator;isCompletedIterator;isCompleted;_exeContext;_resolve;constructor(t){this.type="stream",this.items=null,this.label=t.label,this.path=Si(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){const n=this.parentContext?.promise;if(n){this._resolve?.(n.then(()=>t));return}this._resolve?.(t)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function FC(e){return e.type==="stream"}function tP(e,t,n){const r=n.name.value;return r===va.name&&e.getQueryType()===t?va:r===ya.name&&e.getQueryType()===t?ya:r===ba.name?ba:t.getFields()[r]}function mte(e){const t=WE(e.document,e.operationName);if(t==null)throw new Error("Must provide an operation.");return t.operation==="subscription"?ite(e):Xt(()=>Wee(e),n=>ote(n)?Q5(n):n)}const gte=xa(function(t){return function(r){return mte({schema:t,document:r.document,variableValues:r.variables,operationName:r.operationName,rootValue:r.rootValue,contextValue:r.context,signal:r.signal||r.info?.signal})}});var PC,nP;function vte(){if(nP)return PC;nP=1;var e=function(){function y(w,k){if(typeof w!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array<key> and returns Promise<Array<value>>, but got: "+w+"."));this._batchLoadFn=w,this._maxBatchSize=c(k),this._batchScheduleFn=p(k),this._cacheKeyFn=d(k),this._cacheMap=m(k),this._batch=null,this.name=E(k)}var x=y.prototype;return x.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),D=this._cacheMap,A;if(D){A=this._cacheKeyFn(k);var _=D.get(A);if(_){var L=N.cacheHits||(N.cacheHits=[]);return new Promise(function(P){L.push(function(){P(_)})})}}N.keys.push(k);var V=new Promise(function(P,F){N.callbacks.push({resolve:P,reject:F})});return D&&D.set(A,V),V},x.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=[],D=0;D<k.length;D++)N.push(this.load(k[D]).catch(function(A){return A}));return Promise.all(N)},x.clear=function(k){var N=this._cacheMap;if(N){var D=this._cacheKeyFn(k);N.delete(D)}return this},x.clearAll=function(){var k=this._cacheMap;return k&&k.clear(),this},x.prime=function(k,N){var D=this._cacheMap;if(D){var A=this._cacheKeyFn(k);if(D.get(A)===void 0){var _;N instanceof Error?(_=Promise.reject(N),_.catch(function(){})):_=Promise.resolve(N),D.set(A,_)}}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 x=y._batch;if(x!==null&&!x.hasDispatched&&x.keys.length<y._maxBatchSize)return x;var w={hasDispatched:!1,keys:[],callbacks:[]};return y._batch=w,y._batchScheduleFn(function(){i(y,w)}),w}function i(y,x){if(x.hasDispatched=!0,x.keys.length===0){l(x);return}var w;try{w=y._batchLoadFn(x.keys)}catch(k){return o(y,x,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function "+("errored synchronously: "+String(k)+".")))}if(!w||typeof w.then!="function")return o(y,x,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did "+("not return a Promise: "+String(w)+".")));w.then(function(k){if(!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!==x.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."+(`
416
+ `;function Pee(e){return e&&typeof e.getReader=="function"}function jee(e,t,n){const r=e.body;if(!Pee(r))throw new Error("Response body is expected to be a readable stream but got; "+Ri(r));return new Cp((i,o)=>{const l=new Gf.TextDecoder,c=r.getReader();c.closed.then(o).catch(o),o.then(()=>{t?.abort(),r.locked&&c.releaseLock()}).catch(m=>{c.cancel(m)});let p="";async function d(){if(n?.aborted)return await i(Yb(n.reason)),o();if(!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 b=p.indexOf(R5);if(b===-1)break;const y=p.slice(0,b);p=p.slice(b+R5.length);const x=y.split("data:")[1]?.trim();if(x){const k=JSON.parse(x);await i(k.payload||k)}if(y.split("event:")[1]?.trim()==="complete")return o()}return d()}return d()})}function Vee(e){return e!=null&&typeof e=="object"&&"pipe"in e}async function Uee(e){const t=e.body,n=e.headers.get("content-type")||"";let r;if(Vee(t)){t.headers={"content-type":n};const l=await Oee(t);"next"in l&&(r=l)}else{const l=await K8(e);"next"in l&&(r=l)}const i={};return r==null?i:EC(r,l=>{if(l.json){const c=l.body;v5({incrementalResult:c,executionResult:i})}return i})}const M5=xa(function(t){return t.operation==="query"&&t.directives?.some(n=>n.name.value==="live")});function qee({baseUrl:e="",body:t}){const n="https://dummyhostname.com",r=e.startsWith("http")?e: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 Bee(e){const t=e?.print??w5;let n;const r=e?.serviceName,i=(l,c)=>{if(n||=new AbortController,n.signal.aborted)return Yb(n.signal.reason);const p=l.extensions?.fetch??e?.fetch??Gf.fetch;let d=l.extensions?.method||e?.method;const m=$f(l),E=m.operation;(e?.useGETForQueries||l.extensions?.useGETForQueries)&&E==="query"&&(d="GET");let b="application/graphql-response+json, application/json, multipart/mixed",y;E==="subscription"||M5(m)?(d||="GET",b="text/event-stream",y=new AbortController):d||="POST";const x=l.extensions?.endpoint||e?.endpoint||"/graphql",w={accept:b};if(e?.headers&&Object.assign(w,typeof e?.headers=="function"?e.headers(l):e?.headers),l.extensions?.headers){const{headers:P,...F}=l.extensions;Object.assign(w,P),l.extensions=F}const k=[n.signal],N=l.signal||l.info?.signal;if(N){if(N.aborted)return Yb(N.reason);k.push(N)}e?.timeout&&k.push(AbortSignal.timeout(e.timeout)),y&&k.push(y.signal);const D=yee(k),A={code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,request:{method:d}},_=t(l.document);let L=function(){return C5({executionRequest:l,excludeQuery:c,printFn:t})};e?.apq&&(L=function(){return Xt(()=>Fee(_),F=>{const j=l.extensions||{};return j.persistedQuery={version:1,sha256Hash:F},C5({executionRequest:{...l,extensions:j},excludeQuery:c,printFn:t})})});function V(P){return P.name==="AggregateError"?{errors:P.errors.map(F=>L5(F,{signal:D,endpoint:x,upstreamErrorExtensions:A}))}:{errors:[L5(P,{signal:D,endpoint:x,upstreamErrorExtensions:A})]}}return Xt(()=>L(),P=>Xt(()=>{switch(d){case"GET":{const F=qee({baseUrl:x,body:P}),j={method:"GET",headers:w,signal:D};return e?.credentials!=null&&(j.credentials=e.credentials),A.request.url=F,p(F,j,l.context,l.info)}case"POST":return A.request.body=P,Xt(()=>Lee(P,{File:e?.File,FormData:e?.FormData}),F=>{typeof F=="string"&&!w["content-type"]&&(A.request.body=F,w["content-type"]="application/json");const j={method:"POST",body:F,headers:w,signal:D};return e?.credentials!=null&&(j.credentials=e.credentials),p(x,j,l.context,l.info)},V)}},F=>Xt(()=>{if(A.response||={},A.response.status=F.status,A.response.statusText=F.statusText,Object.defineProperty(A.response,"headers",{get(){return Object.fromEntries(F.headers.entries())}}),e?.retry!=null&&!F.status.toString().startsWith("2"))throw new Error(F.statusText||`Upstream HTTP Error: ${F.status}`);const j=F.headers.get("content-type");return j?.includes("text/event-stream")?jee(F,y,D):j?.includes("multipart/mixed")?Uee(F):F.text()},j=>{if(typeof j=="string")if(A.response||={},A.response.body=j,j)try{const $=JSON.parse(j);return A.response.body=$,$.data==null&&($.errors==null||$.errors.length===0)?{errors:[Yt('Unexpected empty "data" and "errors" fields in result: '+j,{extensions:A})]}:Array.isArray($.errors)?{...$,errors:$.errors.map(({message:X,...J})=>Yt(X,{...J,extensions:{code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,...J.extensions||{}}}))}:$}catch($){return{errors:[Yt(`Unexpected response: ${JSON.stringify(j)}`,{extensions:A,originalError:$})]}}else return{errors:[Yt("No response returned",{extensions:A})]};else return j},V),V),V)};let o=i;if(e?.apq!=null&&(o=function(c){return Xt(()=>i(c,!0),p=>p.errors?.some(d=>d.extensions.code==="PERSISTED_QUERY_NOT_FOUND"||d.message==="PersistedQueryNotFound")?i(c,!1):p)}),e?.retry!=null){const l=o;o=function(p){let d,m=0;function E(){return n?.signal.aborted?Yb(n.signal.reason):(m++,m>e.retry?d??{errors:[Yt("No response returned from fetch")]}:Xt(()=>l(p),b=>(d=b,d?.errors?.length?E():d)))}return E()}}return Object.defineProperties(o,{[Bl.dispose]:{get(){return function(){n?.abort(e?.getDisposeReason?.()),n=void 0}}},[Bl.asyncDispose]:{get(){return function(){n?.abort(e?.getDisposeReason?.()),n=void 0}}}}),o}function L5(e,{signal:t,endpoint:n,upstreamErrorExtensions:r}){return typeof e=="string"?Yt(e,{extensions:r}):e.name==="GraphQLError"?e:e.name==="TypeError"&&e.message==="fetch failed"?Yt(`fetch failed to ${n}`,{extensions:r,originalError:e}):e.name==="AbortError"?k5(t?.reason||e,r):e.message?Yt(e.message,{extensions:r,originalError:e}):Yt("Unknown error",{extensions:r,originalError:e})}var _a;(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"})(_a||(_a={}));function $ee(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?.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let d={};switch(typeof n?.connectionParams){case"function":d=n?.connectionParams();break;case"object":d=n?.connectionParams;break}d=Object.assign(d,r),i.send(JSON.stringify({type:_a.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:_a.CONNECTION_TERMINATE})),i.terminate(),i=null)},c=function(d){d.extensions?.connectionParams&&typeof d.extensions?.connectionParams=="object"&&(r=Object.assign(r,d.extensions.connectionParams));const m=Date.now().toString();return nee({subscribe(E){function b(y){E.error(y)}if(o(),i==null)throw new Error("WebSocket connection is not found!");return i.onmessage=y=>{const x=JSON.parse(y.data.toString("utf-8"));switch(x.type){case _a.CONNECTION_ACK:{if(i==null)throw new Error("WebSocket connection is not found!");i.send(JSON.stringify({type:_a.START,id:m,payload:{query:ln(d.document),variables:d.variables,operationName:d.operationName}}),w=>{w&&b(w)});break}case _a.CONNECTION_ERROR:{E.error(x.payload);break}case _a.CONNECTION_KEEP_ALIVE:break;case _a.DATA:{E.next(x.payload);break}case _a.COMPLETE:{i?.send(JSON.stringify({type:_a.CONNECTION_TERMINATE}),w=>{w&&b(w)}),E.complete(),l();break}}},{unsubscribe:()=>{i?.readyState===Qs.OPEN&&i?.send(JSON.stringify({type:_a.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 zee(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(){return i=!0,await Promise.all([n?.return?.(),t.return?.()]),{value:void 0,done:!0}},async throw(l){throw i=!0,await Promise.all([n?.throw?.(l),t.throw?.(l)]),l},[Symbol.asyncIterator](){return this},async[Bl.asyncDispose](){i=!0,await Promise.all([n?.[Bl.asyncDispose]?.(),t?.[Bl.asyncDispose]?.()])}}}function I5(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}function F5(e,t,n){t?.throwIfAborted();const r=Object.create(null),i=[];for(const l in e){const c=Xt(()=>e[l],p=>{r[l]=p});cr(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 Hee(e,t,n,r){const i=[],o=r?.maxErrors;try{const l=Gee(e,t,n,c=>{if(o!=null&&i.length>=o)throw Yt("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 Gee(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=yi(e,o.type);if(!Di(c)){const d=ln(o.type);r(Yt(`Variable "$${l}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!i5(n,l)){if(o.defaultValue)i[l]=Ea(o.defaultValue,c);else if(_t(c)){const d=Ri(c);r(Yt(`Variable "$${l}" of required type "${d}" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&_t(c)){const d=Ri(c);r(Yt(`Variable "$${l}" of non-null type "${d}" must not be null.`,{nodes:o}));continue}i[l]=VE(p,c,(d,m,E)=>{let b=`Variable "$${l}" got invalid value `+Ri(m);d.length>0&&(b+=` at "${l}${lee(d)}"`),r(Yt(b+"; "+E.message,{nodes:o,originalError:E}))})}return i}const Yee=NJ((e,t,n)=>aee(e.schema,e.fragments,e.variableValues,t,n));function Wee(e){const t=V5(e);return"schema"in t?P5(t):{errors:t.map(n=>(Object.defineProperty(n,"extensions",{value:{...n.extensions,http:{...n.extensions?.http||{},status:400}}}),n))}}function P5(e){return e.signal?.throwIfAborted(),Xt(()=>Xee(e),t=>{const n=j5(t,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...n,hasNext:!0},subsequentResults:pte(e)}:n},t=>(e.signal?.throwIfAborted(),t.errors?e.errors.push(...t.errors):e.errors.push(t),j5(null,e.errors)))}function j5(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const Qee=xa(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===Q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function V5(e){const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p,subscribeFieldResolver:d,signal:m}=e;m?.throwIfAborted(),vy(t);const E=Qee(n);let b;for(const N of n.definitions)switch(N.kind){case Q.OPERATION_DEFINITION:if(l==null){if(b!==void 0)return[Yt("Must provide operation name if query contains multiple operations.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];b=N}else N.name?.value===l&&(b=N);break}if(b==null)return l!=null?[Yt(`Unknown operation named "${l}".`,{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})]:[Yt("Must provide an operation.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];const y=b.variableDefinitions??[],x=Hee(t,y,o??{},{maxErrors:50});if(x.errors)return x.errors;m?.throwIfAborted();let w,k;if(m){const N=new Set,D=QF();k=D.promise;const A=()=>{D.reject(m.reason),m.removeEventListener("abort",A)};m.addEventListener("abort",A,{once:!0}),k.catch(()=>{for(const _ of N)_();N.clear()}),w=_=>{N.add(_)}}return{schema:t,fragments:E,rootValue:r,contextValue:i,operation:b,variableValues:x.coerced,fieldResolver:c??W5,typeResolver:p??rte,subscribeFieldResolver:d??W5,subsequentPayloads:new Set,errors:[],signal:m,onSignalAbort:w,signalPromise:k}}function Kee(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Xee(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,l=Mb(n,t.operation,[t]);l==null&&Yt(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:c,patches:p}=CC(n,r,i,l,t.selectionSet),d=void 0;let m;t.operation==="mutation"?m=Zee(e,l,o,d,c):m=LC(e,l,o,d,c);for(const E of p){const{label:b,fields:y}=E;J5(e,l,o,y,b,d)}return m}function Zee(e,t,n,r,i){return r5(i,(o,[l,c])=>{const p=Sp(r,l,t.name);return e.signal?.throwIfAborted(),Xt(()=>U5(e,t,n,c,p),d=>(d===void 0||(o[l]=d),o))},Object.create(null))}function LC(e,t,n,r,i,o){const l=Object.create(null);let c=!1;try{for(const[p,d]of i){e.signal?.throwIfAborted();const m=Sp(r,p,t.name),E=U5(e,t,n,d,m,o);E!==void 0&&(l[p]=E,cr(E)&&(c=!0))}}catch(p){if(p!==e.signal?.reason&&c)return Xt(()=>F5(l,e.signal),()=>{throw p},()=>{throw p});throw p}return c?F5(l,e.signal,e.signalPromise):l}function U5(e,t,n,r,i,o){const l=o?.errors??e.errors,c=tP(e.schema,t,r[0]);if(!c)return;const p=c.type,d=c.resolve??e.fieldResolver,m=q5(e,c,r,t,i);try{e.signal?.throwIfAborted();const E=o5(c,r[0],e.variableValues),b=e.contextValue,y=d(n,E,b,m);let x;return cr(y)?x=y.then(w=>ic(e,p,r,m,i,w,o)):x=ic(e,p,r,m,i,y,o),cr(x)?x.then(void 0,w=>{if(w instanceof AggregateError){let D;for(let A of w.errors){A=Ks(A);const _=xr(A,r,Si(i));D=Na(_,p,l),Co(e,i,o)}return D}w=Ks(w);const k=xr(w,r,Si(i)),N=Na(k,p,l);return Co(e,i,o),N}):x}catch(E){if(E instanceof AggregateError){let w;for(let k of E.errors){k=Ks(k);const N=xr(k,r,Si(i));w=Na(N,p,l),Co(e,i,o)}return w}const b=Ks(E),y=xr(b,r,Si(i)),x=Na(y,p,l);return Co(e,i,o),x}}function q5(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 B5="CRITICAL_ERROR";function Na(e,t,n){if(_t(t)||e.extensions?.[B5])throw e;return n.push(e),null}function ic(e,t,n,r,i,o,l){if(o instanceof Error)throw o;if(_t(t)){const c=ic(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(mn(t))return ete(e,t,n,r,i,o,l);if(ai(t))return tte(t,o);if(sr(t))return nte(e,t,n,r,i,o,l);if(At(t))return IC(e,t,n,r,i,o,l);console.assert(!1,"Cannot complete value of unexpected output type: "+Ri(t))}function $5(e,t,n){if(typeof n.key=="number")return;const r=Ps(iee,t[0],e.variableValues);if(r&&r.if!==!1)return I5(typeof r.initialCount=="number","initialCount must be a number"),I5(r.initialCount>=0,"initialCount must be a positive integer"),{initialCount:r.initialCount,label:typeof r.label=="string"?r.label:void 0}}async function Jee(e,t,n,r,i,o,l){e.signal?.throwIfAborted(),o.return&&e.onSignalAbort?.(()=>{o.return?.()});const c=l?.errors??e.errors,p=$5(e,n,i);let d=!1;const m=[];let E=0;for(;;){if(p&&typeof p.initialCount=="number"&&E>=p.initialCount){fte(E,o,e,n,r,t,i,p.label,l);break}const b=Sp(i,E,void 0);let y;try{if(y=await o.next(),y.done)break}catch(x){const w=Ks(x),k=xr(w,n,Si(b));m.push(Na(k,t,c));break}z5(y.value,m,c,e,t,n,r,b,l)&&(d=!0),E+=1}return d?Promise.all(m):m}function ete(e,t,n,r,i,o,l){const c=t.ofType,p=l?.errors??e.errors;if(zf(o)){const x=o[Symbol.asyncIterator]();return Jee(e,c,n,r,i,x,l)}if(!_J(o))throw Yt(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const d=$5(e,n,i);let m=!1,E=l;const b=[];let y=0;for(const x of o){const w=Sp(i,y,void 0);if(d&&typeof d.initialCount=="number"&&y>=d.initialCount){E=ute(i,w,x,e,n,r,c,d.label,E),y++;continue}z5(x,b,p,e,c,n,r,w,l)&&(m=!0),y++}return m?Promise.all(b):b}function z5(e,t,n,r,i,o,l,c,p){try{let d;if(cr(e)?d=e.then(m=>ic(r,i,o,l,c,m,p)):d=ic(r,i,o,l,c,e,p),cr(d))return t.push(d.then(void 0,m=>{m=Ks(m);const E=xr(m,o,Si(c)),b=Na(E,i,n);return Co(r,c,p),b})),!0;t.push(d)}catch(d){const m=Ks(d),E=xr(m,o,Si(c)),b=Na(E,i,n);Co(r,c,p),t.push(b)}return!1}function tte(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 \`${Ri(e)}.serialize(${Ri(t)})\` to return non-nullable value, returned: ${Ri(n)}`);return n}function nte(e,t,n,r,i,o,l){const c=t.resolveType??e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return cr(d)?d.then(m=>IC(e,H5(m,e,t,n,r,o),n,r,i,o,l)):IC(e,H5(d,e,t,n,r,o),n,r,i,o,l)}function H5(e,t,n,r,i,o){if(e==null)throw Yt(`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(Qv.major>=16)throw Yt("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 Yt(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Ri(o)}, received "${Ri(e)}".`);const l=t.schema.getType(e);if(l==null)throw Yt(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw Yt(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,l))throw Yt(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:r});return l}function IC(e,t,n,r,i,o,l){if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(cr(c))return c.then(p=>{if(!p)throw G5(t,o,n);return Y5(e,t,n,i,o,l)});if(!c)throw G5(t,o,n)}return Y5(e,t,n,i,o,l)}function G5(e,t,n){return Yt(`Expected value of type "${e.name}" but got: ${Ri(t)}.`,{nodes:n})}function Y5(e,t,n,r,i,o){const{fields:l,patches:c}=Yee(e,t,n),p=LC(e,t,i,r,l,o);for(const d of c){const{label:m,fields:E}=d;J5(e,t,i,E,m,r,o)}return p}const rte=function(e,t,n,r){if(n5(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(cr(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})},W5=function(e,t,n,r){if(n5(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function ite(e){const t=V5(e);if(!("schema"in t)){for(const r of t){const i=r.extensions||={},o=i.http||={};o.status=400,r.extensions.code="BAD_USER_INPUT"}return{errors:t}}const n=ste(t);return cr(n)?n.then(r=>K5(t,r)):K5(t,n)}function ote(e){return e?.initialResult}function Q5(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next(){return r?xo({value:void 0,done:r}):n?t.next():(n=!0,xo({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)},[Bl.asyncDispose](){return r=!0,t?.[Bl.asyncDispose]?.()}}}async function*ate(e){"initialResult"in e?yield*Q5(e):yield e}function K5(e,t){return zf(t)?zee(EC(t,n=>Xt(()=>P5(Kee(e,n)),ate),n=>{throw n instanceof AggregateError?new AggregateError(n.errors.map(r=>X5(r,e.operation)),n.message):X5(n,e.operation)})):t}function X5(e,t){return Yt(e.message,{originalError:e,nodes:[t]})}function ste(e){try{const t=lte(e);return cr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function lte(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw Yt("Schema is not configured to execute subscription operation.",{nodes:r});const{fields:c}=CC(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=d[0].name.value,E=tP(t,l,d[0]);if(!E)throw Yt(`The subscription field "${m}" is not defined.`,{nodes:d});const b=Sp(void 0,p,l.name),y=q5(e,E,d,l,b);try{const x=o5(E,d[0],i),w=e.contextValue,N=(E.subscribe??e.subscribeFieldResolver)(o,x,w,y);return cr(N)?N.then(D=>Z5(D,e.signal,e.onSignalAbort)).then(void 0,D=>{throw xr(D,d,Si(b))}):Z5(N,e.signal,e.onSignalAbort)}catch(x){throw xr(x,d,Si(b))}}function Z5(e,t,n){if(t?.throwIfAborted(),e instanceof Error)throw e;if(!zf(e))throw Yt(`Subscription field must return Async Iterable. Received: ${Ri(e)}.`);return n?{[Symbol.asyncIterator](){const r=e[Symbol.asyncIterator]();return r.return&&n?.(()=>{r.return?.()}),r}}:e}function J5(e,t,n,r,i,o,l){const c=new hte({label:i,path:o,parentContext:l,exeContext:e});let p;try{p=LC(e,t,n,o,r,c),cr(p)&&(p=p.then(null,d=>(c.errors.push(d),null)))}catch(d){c.errors.push(d),p=null}c.addData(p)}function ute(e,t,n,r,i,o,l,c,p){const d=new eP({label:c,path:t,parentContext:p,exeContext:r});let m;try{try{cr(n)?m=n.then(b=>ic(r,l,i,o,t,b,d)):m=ic(r,l,i,o,t,n,d),cr(m)&&(m=m.then(void 0,b=>{b=Ks(b);const y=xr(b,i,Si(t)),x=Na(y,l,d.errors);return Co(r,t,d),x}))}catch(b){const y=Ks(b),x=xr(y,i,Si(t));m=Na(x,l,d.errors),Co(r,t,d)}}catch(b){return d.errors.push(b),Co(r,e,d),d.addItems(null),d}let E;return cr(m)?E=m.then(b=>[b],b=>(d.errors.push(b),Co(r,e,d),null)):E=[m],d.addItems(E),d}async function cte(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=xr(m,n,Si(l));return{done:!0,value:Na(E,i,o.errors)}}let p;try{return p=ic(t,i,n,r,l,c,o),cr(p)&&(p=p.then(void 0,d=>{const m=xr(d,n,Si(l)),E=Na(m,i,o.errors);return Co(t,l,o),E})),{done:!1,value:p}}catch(d){const m=xr(d,n,Si(l)),E=Na(m,i,o.errors);return Co(t,l,o),{done:!1,value:E}}}async function fte(e,t,n,r,i,o,l,c,p){let d=e,m=p??void 0;for(;;){const E=Sp(l,d,void 0),b=new eP({label:c,path:E,parentContext:m,iterator:t,exeContext:n});let y;try{y=await cte(t,n,r,i,o,b,E)}catch(N){b.errors.push(N),Co(n,l,b),b.addItems(null),t?.return&&t.return().catch(()=>{});return}const{done:x,value:w}=y;let k;if(cr(w)?k=w.then(N=>[N],N=>(b.errors.push(N),Co(n,l,b),null)):k=[w],b.addItems(k),x)break;m=b,d++}}function Co(e,t,n){const r=Si(t);e.subsequentPayloads.forEach(i=>{if(i!==n){for(let o=0;o<r.length;o++)if(i.path[o]!==r[o])return;FC(i)&&i.iterator?.return&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function dte(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),FC(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 pte(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=dte(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=>{FC(o)&&o.iterator?.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[Bl.asyncDispose](){await r(),t=!0}}}class hte{type;errors;label;path;promise;data;parentContext;isCompleted;_exeContext;_resolve;constructor(t){this.type="defer",this.label=t.label,this.path=Si(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){const n=this.parentContext?.promise;if(n){this._resolve?.(n.then(()=>t));return}this._resolve?.(t)}}class eP{type;errors;label;path;items;promise;parentContext;iterator;isCompletedIterator;isCompleted;_exeContext;_resolve;constructor(t){this.type="stream",this.items=null,this.label=t.label,this.path=Si(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){const n=this.parentContext?.promise;if(n){this._resolve?.(n.then(()=>t));return}this._resolve?.(t)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function FC(e){return e.type==="stream"}function tP(e,t,n){const r=n.name.value;return r===va.name&&e.getQueryType()===t?va:r===ya.name&&e.getQueryType()===t?ya:r===ba.name?ba:t.getFields()[r]}function mte(e){const t=WE(e.document,e.operationName);if(t==null)throw new Error("Must provide an operation.");return t.operation==="subscription"?ite(e):Xt(()=>Wee(e),n=>ote(n)?Q5(n):n)}const gte=xa(function(t){return function(r){return mte({schema:t,document:r.document,variableValues:r.variables,operationName:r.operationName,rootValue:r.rootValue,contextValue:r.context,signal:r.signal||r.info?.signal})}});var PC,nP;function vte(){if(nP)return PC;nP=1;var e=(function(){function y(w,k){if(typeof w!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array<key> and returns Promise<Array<value>>, but got: "+w+"."));this._batchLoadFn=w,this._maxBatchSize=c(k),this._batchScheduleFn=p(k),this._cacheKeyFn=d(k),this._cacheMap=m(k),this._batch=null,this.name=E(k)}var x=y.prototype;return x.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),D=this._cacheMap,A;if(D){A=this._cacheKeyFn(k);var _=D.get(A);if(_){var L=N.cacheHits||(N.cacheHits=[]);return new Promise(function(P){L.push(function(){P(_)})})}}N.keys.push(k);var V=new Promise(function(P,F){N.callbacks.push({resolve:P,reject:F})});return D&&D.set(A,V),V},x.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=[],D=0;D<k.length;D++)N.push(this.load(k[D]).catch(function(A){return A}));return Promise.all(N)},x.clear=function(k){var N=this._cacheMap;if(N){var D=this._cacheKeyFn(k);N.delete(D)}return this},x.clearAll=function(){var k=this._cacheMap;return k&&k.clear(),this},x.prime=function(k,N){var D=this._cacheMap;if(D){var A=this._cacheKeyFn(k);if(D.get(A)===void 0){var _;N instanceof Error?(_=Promise.reject(N),_.catch(function(){})):_=Promise.resolve(N),D.set(A,_)}}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 x=y._batch;if(x!==null&&!x.hasDispatched&&x.keys.length<y._maxBatchSize)return x;var w={hasDispatched:!1,keys:[],callbacks:[]};return y._batch=w,y._batchScheduleFn(function(){i(y,w)}),w}function i(y,x){if(x.hasDispatched=!0,x.keys.length===0){l(x);return}var w;try{w=y._batchLoadFn(x.keys)}catch(k){return o(y,x,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function "+("errored synchronously: "+String(k)+".")))}if(!w||typeof w.then!="function")return o(y,x,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did "+("not return a Promise: "+String(w)+".")));w.then(function(k){if(!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!==x.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."+(`
417
417
 
418
418
  Keys:
419
419
  `+String(x.keys))+(`
@@ -431,7 +431,7 @@ Values:
431
431
  `+o+D.join(`,
432
432
  `+o)+`
433
433
  `+N+"}":"{"+D.join(",")+"}",o=N,w}}typeof e.stringify!="function"&&(e.stringify=function(E,b,y){var x;if(o="",l="",typeof y=="number")for(x=0;x<y;x+=1)l+=" ";else typeof y=="string"&&(l=y);if(p=b,b&&typeof b!="function"&&(typeof b!="object"||typeof b.length!="number"))throw new Error("JSON.stringify");return m("",{"":E})})})();function n(i){var o,l,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
434
- `,r:"\r",t:" "},p,d=function(D){throw{name:"SyntaxError",message:D,at:o,text:p}},m=function(D){return D&&D!==l&&d("Expected '"+D+"' instead of '"+l+"'"),l=p.charAt(o),o+=1,l},E=function(){var D="";for(l==="-"&&(D="-",m("-"));l>="0"&&l<="9";)D+=l,m();if(l===".")for(D+=".";m()&&l>="0"&&l<="9";)D+=l;if(l==="e"||l==="E")for(D+=l,m(),(l==="-"||l==="+")&&(D+=l,m());l>="0"&&l<="9";)D+=l,m();if(!isFinite(Number(D)))d("Bad number");else{const A=Number(D);return Number.isInteger(A)&&!Number.isSafeInteger(A)?BigInt(D):A}},b=function(){var D,A,_="",L;if(l==='"')for(;m();){if(l==='"')return m(),_;if(l==="\\")if(m(),l==="u"){for(L=0,A=0;A<4&&(D=parseInt(m(),16),!!isFinite(D));A+=1)L=L*16+D;_+=String.fromCharCode(L)}else if(typeof c[l]=="string")_+=c[l];else break;else _+=l}d("Bad string")},y=function(){for(;l&&l<=" ";)m()},x=function(){switch(l){case"t":return m("t"),m("r"),m("u"),m("e"),!0;case"f":return m("f"),m("a"),m("l"),m("s"),m("e"),!1;case"n":return m("n"),m("u"),m("l"),m("l"),null}d("Unexpected '"+l+"'")},w,k=function(){var D=[];if(l==="["){if(m("["),y(),l==="]")return m("]"),D;for(;l;){if(D.push(w()),y(),l==="]")return m("]"),D;m(","),y()}}d("Bad array")},N=function(){var D,A={};if(l==="{"){if(m("{"),y(),l==="}")return m("}"),A;for(;l;){if(D=b(),y(),m(":"),A[D]=w(),y(),l==="}")return m("}"),A;m(","),y()}}d("Bad object")};return w=function(){switch(y(),l){case"{":return N();case"[":return k();case'"':return b();case"-":return E();default:return l>="0"&&l<="9"?E():x()}},function(D,A){var _;return p=D+"",o=0,l=" ",_=w(),y(),l&&d("Syntax error"),typeof A=="function"?function L(V,P){var F,j=V[P];return j&&typeof j=="object"&&Object.keys(j).forEach(function($){F=L(j,$),F!==void 0?j[$]=F:delete j[$]}),A.call(V,P,j)}({"":_},""):_}}let r;return typeof globalThis<"u"?r=globalThis:typeof self<"u"?r=self:typeof window<"u"?r=window:typeof X_<"u"&&(r=X_),r.BigInt.prototype.toJSON=function(){return this},r.JSON.parse=n(),r.JSON.stringify=t,kP}Fne();const e1=function(){},zC={popstate:[]};let Pne={URL:function(){return{searchParams:{set:e1,append:e1,delete:e1}}},location:{href:"",search:""},history:{pushState:e1},fireEvent:function(e){zC[e].forEach(t=>{t()})},addEventListener:function(e,t){zC[e].push(t)},removeEventListener:function(e,t){const n=zC[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function oc(){return typeof window<"u"?window:Pne}const MP=[Number,String,Boolean,Date];function jne(e){const{URL:t}=oc(),n=new t(oc().location.href);return Object.keys(e).forEach(r=>{const i=e[r];i!=null?Array.isArray(i)?(n.searchParams.delete(r),i.forEach(o=>{n.searchParams.append(r,o)})):i instanceof Date?isNaN(i.getTime())||n.searchParams.set(r,i.toISOString()):typeof i=="object"?n.searchParams.set(r,JSON.stringify(i)):n.searchParams.set(r,i):n.searchParams.delete(r)}),n}function Vne(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t=="number"||typeof t=="string"||typeof t=="boolean")}function Une(e={}){if(!Object.values(e).every(n=>MP.includes(n)||Vne(n)||typeof n=="function"))throw new Error(`Unsupported param types. Must be one of [${MP.map(n=>n.name).join(", ")}]`)}function qne(e={},t={},n=!1){t&&Une(t);const[,r]=M.useState(),i=oc().location.search,o=M.useMemo(()=>new URLSearchParams(i),[i]),l=M.useMemo(()=>{let d=[];o.forEach((E,b)=>{d.push({key:b,value:E})}),d=d.reduce((E,b)=>((E[b.key]=E[b.key]||[]).push(b),E),{}),d=Object.keys(d).map(E=>{const b=d[E];return b.length===1?[E,b[0].value]:[E,b.map(({value:y})=>y)]});const m=Object.assign({},e);return d.forEach(([E,b])=>{m[E]=$ne(E,b,t,e)}),m},[o]);function c(d){const m=jne(d);oc().location.search!==m.search&&(n?oc().history.replaceState({},"",m.toString()):oc().history.pushState({},"",m.toString())),o.toString()!==m.searchParams.toString()&&r({})}M.useEffect(()=>{c(Object.assign(Object.assign({},e),l))},[l]);const p=d=>{c(d)};return M.useEffect(()=>{const d=()=>{r({})};return oc().addEventListener("popstate",d),()=>{oc().removeEventListener("popstate",d)}},[]),[l,p]}const Bne={true:!0,false:!1};function $ne(e,t,n,r){if(!n)return t;const i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean?Bne[o]:i===Date?new Date(o):Array.isArray(i)?i.find(l=>l==o)||r[e]:typeof i=="function"?i(o):o}const zne=()=>Y.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.jsx("path",{d:"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z",fill:"url(#a)"}),Y.jsx("path",{d:"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z",fill:"url(#b)"}),Y.jsx("path",{d:"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z",fill:"url(#c)"}),Y.jsxs("mask",{id:"g",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:16,y:14,width:58,height:62,children:[Y.jsx("path",{d:"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z",fill:"url(#d)"}),Y.jsx("path",{d:"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z",fill:"url(#e)"}),Y.jsx("path",{d:"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z",fill:"url(#f)"})]}),Y.jsxs("g",{mask:"url(#g)",children:[Y.jsx("g",{filter:"url(#h)",children:Y.jsx("circle",{cx:73,cy:25,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#i)",children:Y.jsx("circle",{cx:26,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z",fill:"url(#j)"}),Y.jsx("mask",{id:"k",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:30,y:28,width:30,height:30,children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z",fill:"#000"})}),Y.jsxs("g",{mask:"url(#k)",children:[Y.jsx("g",{filter:"url(#l)",children:Y.jsx("circle",{cx:38,cy:6,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#m)",children:Y.jsx("circle",{cx:63,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.jsxs("defs",{children:[Y.jsxs("linearGradient",{id:"a",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"b",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"c",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"d",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"e",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"f",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"j",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("filter",{id:"h",x:23,y:-25,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"i",x:-24,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"l",x:-12,y:-44,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"m",x:13,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]})]})]}),Hne=(e,t)=>{const n=e.definitions.filter(r=>!(r.kind===Q.OPERATION_DEFINITION&&t&&r.name?.value!==t));return{kind:Q.DOCUMENT,definitions:n}};function Gne(e){const t=`#
434
+ `,r:"\r",t:" "},p,d=function(D){throw{name:"SyntaxError",message:D,at:o,text:p}},m=function(D){return D&&D!==l&&d("Expected '"+D+"' instead of '"+l+"'"),l=p.charAt(o),o+=1,l},E=function(){var D="";for(l==="-"&&(D="-",m("-"));l>="0"&&l<="9";)D+=l,m();if(l===".")for(D+=".";m()&&l>="0"&&l<="9";)D+=l;if(l==="e"||l==="E")for(D+=l,m(),(l==="-"||l==="+")&&(D+=l,m());l>="0"&&l<="9";)D+=l,m();if(!isFinite(Number(D)))d("Bad number");else{const A=Number(D);return Number.isInteger(A)&&!Number.isSafeInteger(A)?BigInt(D):A}},b=function(){var D,A,_="",L;if(l==='"')for(;m();){if(l==='"')return m(),_;if(l==="\\")if(m(),l==="u"){for(L=0,A=0;A<4&&(D=parseInt(m(),16),!!isFinite(D));A+=1)L=L*16+D;_+=String.fromCharCode(L)}else if(typeof c[l]=="string")_+=c[l];else break;else _+=l}d("Bad string")},y=function(){for(;l&&l<=" ";)m()},x=function(){switch(l){case"t":return m("t"),m("r"),m("u"),m("e"),!0;case"f":return m("f"),m("a"),m("l"),m("s"),m("e"),!1;case"n":return m("n"),m("u"),m("l"),m("l"),null}d("Unexpected '"+l+"'")},w,k=function(){var D=[];if(l==="["){if(m("["),y(),l==="]")return m("]"),D;for(;l;){if(D.push(w()),y(),l==="]")return m("]"),D;m(","),y()}}d("Bad array")},N=function(){var D,A={};if(l==="{"){if(m("{"),y(),l==="}")return m("}"),A;for(;l;){if(D=b(),y(),m(":"),A[D]=w(),y(),l==="}")return m("}"),A;m(","),y()}}d("Bad object")};return w=function(){switch(y(),l){case"{":return N();case"[":return k();case'"':return b();case"-":return E();default:return l>="0"&&l<="9"?E():x()}},function(D,A){var _;return p=D+"",o=0,l=" ",_=w(),y(),l&&d("Syntax error"),typeof A=="function"?(function L(V,P){var F,j=V[P];return j&&typeof j=="object"&&Object.keys(j).forEach(function($){F=L(j,$),F!==void 0?j[$]=F:delete j[$]}),A.call(V,P,j)})({"":_},""):_}}let r;return typeof globalThis<"u"?r=globalThis:typeof self<"u"?r=self:typeof window<"u"?r=window:typeof X_<"u"&&(r=X_),r.BigInt.prototype.toJSON=function(){return this},r.JSON.parse=n(),r.JSON.stringify=t,kP}Fne();const e1=function(){},zC={popstate:[]};let Pne={URL:function(){return{searchParams:{set:e1,append:e1,delete:e1}}},location:{href:"",search:""},history:{pushState:e1},fireEvent:function(e){zC[e].forEach(t=>{t()})},addEventListener:function(e,t){zC[e].push(t)},removeEventListener:function(e,t){const n=zC[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function oc(){return typeof window<"u"?window:Pne}const MP=[Number,String,Boolean,Date];function jne(e){const{URL:t}=oc(),n=new t(oc().location.href);return Object.keys(e).forEach(r=>{const i=e[r];i!=null?Array.isArray(i)?(n.searchParams.delete(r),i.forEach(o=>{n.searchParams.append(r,o)})):i instanceof Date?isNaN(i.getTime())||n.searchParams.set(r,i.toISOString()):typeof i=="object"?n.searchParams.set(r,JSON.stringify(i)):n.searchParams.set(r,i):n.searchParams.delete(r)}),n}function Vne(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t=="number"||typeof t=="string"||typeof t=="boolean")}function Une(e={}){if(!Object.values(e).every(n=>MP.includes(n)||Vne(n)||typeof n=="function"))throw new Error(`Unsupported param types. Must be one of [${MP.map(n=>n.name).join(", ")}]`)}function qne(e={},t={},n=!1){t&&Une(t);const[,r]=M.useState(),i=oc().location.search,o=M.useMemo(()=>new URLSearchParams(i),[i]),l=M.useMemo(()=>{let d=[];o.forEach((E,b)=>{d.push({key:b,value:E})}),d=d.reduce((E,b)=>((E[b.key]=E[b.key]||[]).push(b),E),{}),d=Object.keys(d).map(E=>{const b=d[E];return b.length===1?[E,b[0].value]:[E,b.map(({value:y})=>y)]});const m=Object.assign({},e);return d.forEach(([E,b])=>{m[E]=$ne(E,b,t,e)}),m},[o]);function c(d){const m=jne(d);oc().location.search!==m.search&&(n?oc().history.replaceState({},"",m.toString()):oc().history.pushState({},"",m.toString())),o.toString()!==m.searchParams.toString()&&r({})}M.useEffect(()=>{c(Object.assign(Object.assign({},e),l))},[l]);const p=d=>{c(d)};return M.useEffect(()=>{const d=()=>{r({})};return oc().addEventListener("popstate",d),()=>{oc().removeEventListener("popstate",d)}},[]),[l,p]}const Bne={true:!0,false:!1};function $ne(e,t,n,r){if(!n)return t;const i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean?Bne[o]:i===Date?new Date(o):Array.isArray(i)?i.find(l=>l==o)||r[e]:typeof i=="function"?i(o):o}const zne=()=>Y.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.jsx("path",{d:"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z",fill:"url(#a)"}),Y.jsx("path",{d:"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z",fill:"url(#b)"}),Y.jsx("path",{d:"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z",fill:"url(#c)"}),Y.jsxs("mask",{id:"g",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:16,y:14,width:58,height:62,children:[Y.jsx("path",{d:"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z",fill:"url(#d)"}),Y.jsx("path",{d:"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z",fill:"url(#e)"}),Y.jsx("path",{d:"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z",fill:"url(#f)"})]}),Y.jsxs("g",{mask:"url(#g)",children:[Y.jsx("g",{filter:"url(#h)",children:Y.jsx("circle",{cx:73,cy:25,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#i)",children:Y.jsx("circle",{cx:26,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z",fill:"url(#j)"}),Y.jsx("mask",{id:"k",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:30,y:28,width:30,height:30,children:Y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z",fill:"#000"})}),Y.jsxs("g",{mask:"url(#k)",children:[Y.jsx("g",{filter:"url(#l)",children:Y.jsx("circle",{cx:38,cy:6,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#m)",children:Y.jsx("circle",{cx:63,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.jsxs("defs",{children:[Y.jsxs("linearGradient",{id:"a",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"b",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"c",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"d",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"e",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"f",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"j",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("filter",{id:"h",x:23,y:-25,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"i",x:-24,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"l",x:-12,y:-44,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"m",x:13,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]})]})]}),Hne=(e,t)=>{const n=e.definitions.filter(r=>!(r.kind===Q.OPERATION_DEFINITION&&t&&r.name?.value!==t));return{kind:Q.DOCUMENT,definitions:n}};function Gne(e){const t=`#
435
435
  # Welcome to ${e.title||"Yoga GraphiQL"}
436
436
  #
437
437
  # ${e.title||"Yoga GraphiQL"} is an in-browser tool for writing, validating, and
@@ -462,10 +462,10 @@ Values:
462
462
  #
463
463
  # Auto Complete: Ctrl-Space (or just start typing)
464
464
  #
465
- `,n=new URL(e.endpoint??location.pathname,location.href).toString(),r={query:String},i=M.useMemo(()=>new Ine,[]),o=M.useMemo(()=>{if(e.fetcher)return e.endpoint&&console.warn("You are using a custom fetcher and an endpoint. The endpoint will be ignored."),e.fetcher;const E=i.getExecutorAsync(n,{subscriptionsProtocol:Qf.GRAPHQL_SSE,subscriptionsEndpoint:n,credentials:"same-origin",specifiedByUrl:!0,directiveIsRepeatable:!0,inputValueDeprecation:!0,...e,headers:e.additionalHeaders||{},fetch:(...b)=>globalThis.fetch(...b)});return function(y,x){const w=Hne(Ai(y.query),y.operationName??void 0);return E({document:w,operationName:y.operationName??void 0,variables:y.variables,extensions:{headers:x?.headers}})}},[i,n,e.fetcher]),[l,c]=qne({query:e.defaultQuery||t},r,!1),[p,d]=M.useState(l.query?.toString()),m=aJ({showAttribution:!0});return e.query&&!e.onEditQuery&&console.warn("If you provide `query` prop, you should also provide `onEditQuery` prop to handle query changes."),Y.jsx("div",{className:"graphiql-container",children:Y.jsx(mC,{shouldPersistHeaders:!0,plugins:[m],schemaDescription:!0,inputValueDeprecation:!0,query:p,...e,fetcher:o,children:Y.jsx(HF,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,...e,onEditQuery:(E,b)=>{c({query:E}),d(E),e.onEditQuery?.(E,b)},children:Y.jsx(nc.Logo,{children:Y.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[typeof e?.logo=="string"?Y.jsx("div",{style:{width:40,display:"flex"},dangerouslySetInnerHTML:{__html:e.logo}}):Y.jsx("div",{style:{width:40,display:"flex"},children:e?.logo||Y.jsx(zne,{})}),typeof e?.title=="string"?Y.jsx("span",{dangerouslySetInnerHTML:{__html:e.title}}):Y.jsx("span",{children:e?.title||Y.jsxs(Y.Fragment,{children:["Yoga Graph",Y.jsx("em",{children:"i"}),"QL"]})})]})})})})})}function Yne(e,t){fV.createRoot(e).render(Y.jsx(Gne,{...t}))}globalThis.React=Ae;var Wne=Object.defineProperty,z=(e,t)=>Wne(e,"name",{value:t,configurable:!0}),Qne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}z(fo,"getDefaultExportFromCjs");var LP={exports:{}},IP;function Qi(){return IP||(IP=1,function(e,t){(function(n,r){e.exports=r()})(Qne,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),c=/Edge\/(\d+)/.exec(n),p=o||l||c,d=p&&(o?document.documentMode||6:+(c||l)[1]),m=!c&&/WebKit\//.test(n),E=m&&/Qt\/\d+\.\d+/.test(n),b=!c&&/Chrome\//.test(n),y=/Opera\//.test(n),x=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),k=/PhantomJS/.test(n),N=x&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),A=N||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),_=N||/Mac/.test(r),L=/\bCrOS\b/.test(n),V=/win/i.test(r),P=y&&n.match(/Version\/(\d*\.\d*)/);P&&(P=Number(P[1])),P&&P>=15&&(y=!1,m=!0);var F=_&&(E||y&&(P==null||P<12.11)),j=i||p&&d>=9;function $(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}z($,"classTest");var X=z(function(s,f){var v=s.className,g=$(f).exec(v);if(g){var T=v.slice(g.index+g[0].length);s.className=v.slice(0,g.index)+(T?g[1]+T:"")}},"rmClass");function J(s){for(var f=s.childNodes.length;f>0;--f)s.removeChild(s.firstChild);return s}z(J,"removeChildren");function ee(s,f){return J(s).appendChild(f)}z(ee,"removeChildrenAndAdd");function K(s,f,v,g){var T=document.createElement(s);if(v&&(T.className=v),g&&(T.style.cssText=g),typeof f=="string")T.appendChild(document.createTextNode(f));else if(f)for(var O=0;O<f.length;++O)T.appendChild(f[O]);return T}z(K,"elt");function B(s,f,v,g){var T=K(s,f,v,g);return T.setAttribute("role","presentation"),T}z(B,"eltP");var ne;document.createRange?ne=z(function(s,f,v,g){var T=document.createRange();return T.setEnd(g||s,v),T.setStart(s,f),T},"range"):ne=z(function(s,f,v){var g=document.body.createTextRange();try{g.moveToElementText(s.parentNode)}catch{return g}return g.collapse(!0),g.moveEnd("character",v),g.moveStart("character",f),g},"range");function re(s,f){if(f.nodeType==3&&(f=f.parentNode),s.contains)return s.contains(f);do if(f.nodeType==11&&(f=f.host),f==s)return!0;while(f=f.parentNode)}z(re,"contains");function se(){var s;try{s=document.activeElement}catch{s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}z(se,"activeElt");function fe(s,f){var v=s.className;$(f).test(v)||(s.className+=(v?" ":"")+f)}z(fe,"addClass");function Z(s,f){for(var v=s.split(" "),g=0;g<v.length;g++)v[g]&&!$(v[g]).test(f)&&(f+=" "+v[g]);return f}z(Z,"joinClasses");var ge=z(function(s){s.select()},"selectInput");N?ge=z(function(s){s.selectionStart=0,s.selectionEnd=s.value.length},"selectInput"):p&&(ge=z(function(s){try{s.select()}catch{}},"selectInput"));function ae(s){var f=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,f)}}z(ae,"bind");function pe(s,f,v){f||(f={});for(var g in s)s.hasOwnProperty(g)&&(v!==!1||!f.hasOwnProperty(g))&&(f[g]=s[g]);return f}z(pe,"copyObj");function ce(s,f,v,g,T){f==null&&(f=s.search(/[^\s\u00a0]/),f==-1&&(f=s.length));for(var O=g||0,I=T||0;;){var U=s.indexOf(" ",O);if(U<0||U>=f)return I+(f-O);I+=U-O,I+=v-I%v,O=U+1}}z(ce,"countColumn");var he=z(function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)},"Delayed");he.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},he.prototype.set=function(s,f){this.f=f;var v=+new Date+s;(!this.id||v<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=v)};function Se(s,f){for(var v=0;v<s.length;++v)if(s[v]==f)return v;return-1}z(Se,"indexOf");var Ie=50,Ge={toString:function(){return"CodeMirror.Pass"}},Ze={scroll:!1},It={origin:"*mouse"},vt={origin:"+move"};function at(s,f,v){for(var g=0,T=0;;){var O=s.indexOf(" ",g);O==-1&&(O=s.length);var I=O-g;if(O==s.length||T+I>=f)return g+Math.min(I,f-T);if(T+=O-g,T+=v-T%v,g=O+1,T>=f)return g}}z(at,"findColumn");var Oe=[""];function be(s){for(;Oe.length<=s;)Oe.push(Le(Oe)+" ");return Oe[s]}z(be,"spaceStr");function Le(s){return s[s.length-1]}z(Le,"lst");function Ee(s,f){for(var v=[],g=0;g<s.length;g++)v[g]=f(s[g],g);return v}z(Ee,"map");function oe(s,f,v){for(var g=0,T=v(f);g<s.length&&v(s[g])<=T;)g++;s.splice(g,0,f)}z(oe,"insertSorted");function je(){}z(je,"nothing");function et(s,f){var v;return Object.create?v=Object.create(s):(je.prototype=s,v=new je),f&&pe(f,v),v}z(et,"createObj");var ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ye(s){return/\w/.test(s)||s>"€"&&(s.toUpperCase()!=s.toLowerCase()||ct.test(s))}z(Ye,"isWordCharBasic");function xe(s,f){return f?f.source.indexOf("\\w")>-1&&Ye(s)?!0:f.test(s):Ye(s)}z(xe,"isWordChar");function $e(s){for(var f in s)if(s.hasOwnProperty(f)&&s[f])return!1;return!0}z($e,"isEmpty");var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ht(s){return s.charCodeAt(0)>=768&&nt.test(s)}z(ht,"isExtendingChar");function Ot(s,f,v){for(;(v<0?f>0:f<s.length)&&ht(s.charAt(f));)f+=v;return f}z(Ot,"skipExtendingChars");function jt(s,f,v){for(var g=f>v?-1:1;;){if(f==v)return f;var T=(f+v)/2,O=g<0?Math.ceil(T):Math.floor(T);if(O==f)return s(O)?f:v;s(O)?v=O:f=O+g}}z(jt,"findFirst");function dt(s,f,v,g){if(!s)return g(f,v,"ltr",0);for(var T=!1,O=0;O<s.length;++O){var I=s[O];(I.from<v&&I.to>f||f==v&&I.to==f)&&(g(Math.max(I.from,f),Math.min(I.to,v),I.level==1?"rtl":"ltr",O),T=!0)}T||g(f,v,"ltr")}z(dt,"iterateBidiSections");var Et=null;function pt(s,f,v){var g;Et=null;for(var T=0;T<s.length;++T){var O=s[T];if(O.from<f&&O.to>f)return T;O.to==f&&(O.from!=O.to&&v=="before"?g=T:Et=T),O.from==f&&(O.from!=O.to&&v!="before"?g=T:Et=T)}return g??Et}z(pt,"getBidiPartAt");var Wt=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",f="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function v(H){return H<=247?s.charAt(H):1424<=H&&H<=1524?"R":1536<=H&&H<=1785?f.charAt(H-1536):1774<=H&&H<=2220?"r":8192<=H&&H<=8203?"w":H==8204?"b":"L"}z(v,"charType");var g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,T=/[stwN]/,O=/[LRr]/,I=/[Lb1n]/,U=/[1n]/;function q(H,ie,le){this.level=H,this.from=ie,this.to=le}return z(q,"BidiSpan"),function(H,ie){var le=ie=="ltr"?"L":"R";if(H.length==0||ie=="ltr"&&!g.test(H))return!1;for(var ye=H.length,me=[],we=0;we<ye;++we)me.push(v(H.charCodeAt(we)));for(var Ve=0,Ke=le;Ve<ye;++Ve){var rt=me[Ve];rt=="m"?me[Ve]=Ke:Ke=rt}for(var it=0,Je=le;it<ye;++it){var ut=me[it];ut=="1"&&Je=="r"?me[it]="n":O.test(ut)&&(Je=ut,ut=="r"&&(me[it]="R"))}for(var Ct=1,yt=me[0];Ct<ye-1;++Ct){var Dt=me[Ct];Dt=="+"&&yt=="1"&&me[Ct+1]=="1"?me[Ct]="1":Dt==","&&yt==me[Ct+1]&&(yt=="1"||yt=="n")&&(me[Ct]=yt),yt=Dt}for(var Ln=0;Ln<ye;++Ln){var Dr=me[Ln];if(Dr==",")me[Ln]="N";else if(Dr=="%"){var zn=void 0;for(zn=Ln+1;zn<ye&&me[zn]=="%";++zn);for(var mi=Ln&&me[Ln-1]=="!"||zn<ye&&me[zn]=="1"?"1":"N",gi=Ln;gi<zn;++gi)me[gi]=mi;Ln=zn-1}}for(var rr=0,_i=le;rr<ye;++rr){var Hn=me[rr];_i=="L"&&Hn=="1"?me[rr]="L":O.test(Hn)&&(_i=Hn)}for(var Qt=0;Qt<ye;++Qt)if(T.test(me[Qt])){var gr=void 0;for(gr=Qt+1;gr<ye&&T.test(me[gr]);++gr);for(var ir=(Qt?me[Qt-1]:le)=="L",Tn=(gr<ye?me[gr]:le)=="L",Kc=ir==Tn?ir?"L":"R":le,Is=Qt;Is<gr;++Is)me[Is]=Kc;Qt=gr-1}for(var ti=[],Sn,xn=0;xn<ye;)if(I.test(me[xn])){var ua=xn;for(++xn;xn<ye&&I.test(me[xn]);++xn);ti.push(new q(0,ua,xn))}else{var Qa=xn,Cl=ti.length,Nu=ie=="rtl"?1:0;for(++xn;xn<ye&&me[xn]!="L";++xn);for(var ni=Qa;ni<xn;)if(U.test(me[ni])){Qa<ni&&(ti.splice(Cl,0,new q(1,Qa,ni)),Cl+=Nu);var ri=ni;for(++ni;ni<xn&&U.test(me[ni]);++ni);ti.splice(Cl,0,new q(2,ri,ni)),Cl+=Nu,Qa=ni}else++ni;Qa<xn&&ti.splice(Cl,0,new q(1,Qa,xn))}return ie=="ltr"&&(ti[0].level==1&&(Sn=H.match(/^\s+/))&&(ti[0].from=Sn[0].length,ti.unshift(new q(0,0,Sn[0].length))),Le(ti).level==1&&(Sn=H.match(/\s+$/))&&(Le(ti).to-=Sn[0].length,ti.push(new q(0,ye-Sn[0].length,ye)))),ie=="rtl"?ti.reverse():ti}}();function Vt(s,f){var v=s.order;return v==null&&(v=s.order=Wt(s.text,f)),v}z(Vt,"getOrder");var Jt=[],ot=z(function(s,f,v){if(s.addEventListener)s.addEventListener(f,v,!1);else if(s.attachEvent)s.attachEvent("on"+f,v);else{var g=s._handlers||(s._handlers={});g[f]=(g[f]||Jt).concat(v)}},"on");function qn(s,f){return s._handlers&&s._handlers[f]||Jt}z(qn,"getHandlers");function vn(s,f,v){if(s.removeEventListener)s.removeEventListener(f,v,!1);else if(s.detachEvent)s.detachEvent("on"+f,v);else{var g=s._handlers,T=g&&g[f];if(T){var O=Se(T,v);O>-1&&(g[f]=T.slice(0,O).concat(T.slice(O+1)))}}}z(vn,"off");function mt(s,f){var v=qn(s,f);if(v.length)for(var g=Array.prototype.slice.call(arguments,2),T=0;T<v.length;++T)v[T].apply(null,g)}z(mt,"signal");function yn(s,f,v){return typeof f=="string"&&(f={type:f,preventDefault:function(){this.defaultPrevented=!0}}),mt(s,v||f.type,s,f),wt(f)||f.codemirrorIgnore}z(yn,"signalDOMEvent");function di(s){var f=s._handlers&&s._handlers.cursorActivity;if(f)for(var v=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),g=0;g<f.length;++g)Se(v,f[g])==-1&&v.push(f[g])}z(di,"signalCursorActivity");function on(s,f){return qn(s,f).length>0}z(on,"hasHandler");function Mr(s){s.prototype.on=function(f,v){ot(this,f,v)},s.prototype.off=function(f,v){vn(this,f,v)}}z(Mr,"eventMixin");function An(s){s.preventDefault?s.preventDefault():s.returnValue=!1}z(An,"e_preventDefault");function Xi(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}z(Xi,"e_stopPropagation");function wt(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}z(wt,"e_defaultPrevented");function Bt(s){An(s),Xi(s)}z(Bt,"e_stop");function cn(s){return s.target||s.srcElement}z(cn,"e_target");function kn(s){var f=s.which;return f==null&&(s.button&1?f=1:s.button&2?f=3:s.button&4&&(f=2)),_&&s.ctrlKey&&f==1&&(f=3),f}z(kn,"e_button");var tr=function(){if(p&&d<9)return!1;var s=K("div");return"draggable"in s||"dragDrop"in s}(),Ft;function fn(s){if(Ft==null){var f=K("span","​");ee(s,K("span",[f,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(Ft=f.offsetWidth<=1&&f.offsetHeight>2&&!(p&&d<8))}var v=Ft?K("span","​"):K("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return v.setAttribute("cm-text",""),v}z(fn,"zeroWidthElement");var Gt;function bn(s){if(Gt!=null)return Gt;var f=ee(s,document.createTextNode("AخA")),v=ne(f,0,1).getBoundingClientRect(),g=ne(f,1,2).getBoundingClientRect();return J(s),!v||v.left==v.right?!1:Gt=g.right-v.right<3}z(bn,"hasBadBidiRects");var Ii=`
465
+ `,n=new URL(e.endpoint??location.pathname,location.href).toString(),r={query:String},i=M.useMemo(()=>new Ine,[]),o=M.useMemo(()=>{if(e.fetcher)return e.endpoint&&console.warn("You are using a custom fetcher and an endpoint. The endpoint will be ignored."),e.fetcher;const E=i.getExecutorAsync(n,{subscriptionsProtocol:Qf.GRAPHQL_SSE,subscriptionsEndpoint:n,credentials:"same-origin",specifiedByUrl:!0,directiveIsRepeatable:!0,inputValueDeprecation:!0,...e,headers:e.additionalHeaders||{},fetch:(...b)=>globalThis.fetch(...b)});return function(y,x){const w=Hne(Ai(y.query),y.operationName??void 0);return E({document:w,operationName:y.operationName??void 0,variables:y.variables,extensions:{headers:x?.headers}})}},[i,n,e.fetcher]),[l,c]=qne({query:e.defaultQuery||t},r,!1),[p,d]=M.useState(l.query?.toString()),m=aJ({showAttribution:!0});return e.query&&!e.onEditQuery&&console.warn("If you provide `query` prop, you should also provide `onEditQuery` prop to handle query changes."),Y.jsx("div",{className:"graphiql-container",children:Y.jsx(mC,{shouldPersistHeaders:!0,plugins:[m],schemaDescription:!0,inputValueDeprecation:!0,query:p,...e,fetcher:o,children:Y.jsx(HF,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,...e,onEditQuery:(E,b)=>{c({query:E}),d(E),e.onEditQuery?.(E,b)},children:Y.jsx(nc.Logo,{children:Y.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[typeof e?.logo=="string"?Y.jsx("div",{style:{width:40,display:"flex"},dangerouslySetInnerHTML:{__html:e.logo}}):Y.jsx("div",{style:{width:40,display:"flex"},children:e?.logo||Y.jsx(zne,{})}),typeof e?.title=="string"?Y.jsx("span",{dangerouslySetInnerHTML:{__html:e.title}}):Y.jsx("span",{children:e?.title||Y.jsxs(Y.Fragment,{children:["Yoga Graph",Y.jsx("em",{children:"i"}),"QL"]})})]})})})})})}function Yne(e,t){fV.createRoot(e).render(Y.jsx(Gne,{...t}))}globalThis.React=Ae;var Wne=Object.defineProperty,z=(e,t)=>Wne(e,"name",{value:t,configurable:!0}),Qne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}z(fo,"getDefaultExportFromCjs");var LP={exports:{}},IP;function Qi(){return IP||(IP=1,(function(e,t){(function(n,r){e.exports=r()})(Qne,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),c=/Edge\/(\d+)/.exec(n),p=o||l||c,d=p&&(o?document.documentMode||6:+(c||l)[1]),m=!c&&/WebKit\//.test(n),E=m&&/Qt\/\d+\.\d+/.test(n),b=!c&&/Chrome\//.test(n),y=/Opera\//.test(n),x=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),k=/PhantomJS/.test(n),N=x&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),A=N||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),_=N||/Mac/.test(r),L=/\bCrOS\b/.test(n),V=/win/i.test(r),P=y&&n.match(/Version\/(\d*\.\d*)/);P&&(P=Number(P[1])),P&&P>=15&&(y=!1,m=!0);var F=_&&(E||y&&(P==null||P<12.11)),j=i||p&&d>=9;function $(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}z($,"classTest");var X=z(function(s,f){var v=s.className,g=$(f).exec(v);if(g){var T=v.slice(g.index+g[0].length);s.className=v.slice(0,g.index)+(T?g[1]+T:"")}},"rmClass");function J(s){for(var f=s.childNodes.length;f>0;--f)s.removeChild(s.firstChild);return s}z(J,"removeChildren");function ee(s,f){return J(s).appendChild(f)}z(ee,"removeChildrenAndAdd");function K(s,f,v,g){var T=document.createElement(s);if(v&&(T.className=v),g&&(T.style.cssText=g),typeof f=="string")T.appendChild(document.createTextNode(f));else if(f)for(var O=0;O<f.length;++O)T.appendChild(f[O]);return T}z(K,"elt");function B(s,f,v,g){var T=K(s,f,v,g);return T.setAttribute("role","presentation"),T}z(B,"eltP");var ne;document.createRange?ne=z(function(s,f,v,g){var T=document.createRange();return T.setEnd(g||s,v),T.setStart(s,f),T},"range"):ne=z(function(s,f,v){var g=document.body.createTextRange();try{g.moveToElementText(s.parentNode)}catch{return g}return g.collapse(!0),g.moveEnd("character",v),g.moveStart("character",f),g},"range");function re(s,f){if(f.nodeType==3&&(f=f.parentNode),s.contains)return s.contains(f);do if(f.nodeType==11&&(f=f.host),f==s)return!0;while(f=f.parentNode)}z(re,"contains");function se(){var s;try{s=document.activeElement}catch{s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}z(se,"activeElt");function fe(s,f){var v=s.className;$(f).test(v)||(s.className+=(v?" ":"")+f)}z(fe,"addClass");function Z(s,f){for(var v=s.split(" "),g=0;g<v.length;g++)v[g]&&!$(v[g]).test(f)&&(f+=" "+v[g]);return f}z(Z,"joinClasses");var ge=z(function(s){s.select()},"selectInput");N?ge=z(function(s){s.selectionStart=0,s.selectionEnd=s.value.length},"selectInput"):p&&(ge=z(function(s){try{s.select()}catch{}},"selectInput"));function ae(s){var f=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,f)}}z(ae,"bind");function pe(s,f,v){f||(f={});for(var g in s)s.hasOwnProperty(g)&&(v!==!1||!f.hasOwnProperty(g))&&(f[g]=s[g]);return f}z(pe,"copyObj");function ce(s,f,v,g,T){f==null&&(f=s.search(/[^\s\u00a0]/),f==-1&&(f=s.length));for(var O=g||0,I=T||0;;){var U=s.indexOf(" ",O);if(U<0||U>=f)return I+(f-O);I+=U-O,I+=v-I%v,O=U+1}}z(ce,"countColumn");var he=z(function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)},"Delayed");he.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},he.prototype.set=function(s,f){this.f=f;var v=+new Date+s;(!this.id||v<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=v)};function Se(s,f){for(var v=0;v<s.length;++v)if(s[v]==f)return v;return-1}z(Se,"indexOf");var Ie=50,Ge={toString:function(){return"CodeMirror.Pass"}},Ze={scroll:!1},It={origin:"*mouse"},vt={origin:"+move"};function at(s,f,v){for(var g=0,T=0;;){var O=s.indexOf(" ",g);O==-1&&(O=s.length);var I=O-g;if(O==s.length||T+I>=f)return g+Math.min(I,f-T);if(T+=O-g,T+=v-T%v,g=O+1,T>=f)return g}}z(at,"findColumn");var Oe=[""];function be(s){for(;Oe.length<=s;)Oe.push(Le(Oe)+" ");return Oe[s]}z(be,"spaceStr");function Le(s){return s[s.length-1]}z(Le,"lst");function Ee(s,f){for(var v=[],g=0;g<s.length;g++)v[g]=f(s[g],g);return v}z(Ee,"map");function oe(s,f,v){for(var g=0,T=v(f);g<s.length&&v(s[g])<=T;)g++;s.splice(g,0,f)}z(oe,"insertSorted");function je(){}z(je,"nothing");function et(s,f){var v;return Object.create?v=Object.create(s):(je.prototype=s,v=new je),f&&pe(f,v),v}z(et,"createObj");var ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ye(s){return/\w/.test(s)||s>"€"&&(s.toUpperCase()!=s.toLowerCase()||ct.test(s))}z(Ye,"isWordCharBasic");function xe(s,f){return f?f.source.indexOf("\\w")>-1&&Ye(s)?!0:f.test(s):Ye(s)}z(xe,"isWordChar");function $e(s){for(var f in s)if(s.hasOwnProperty(f)&&s[f])return!1;return!0}z($e,"isEmpty");var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ht(s){return s.charCodeAt(0)>=768&&nt.test(s)}z(ht,"isExtendingChar");function Ot(s,f,v){for(;(v<0?f>0:f<s.length)&&ht(s.charAt(f));)f+=v;return f}z(Ot,"skipExtendingChars");function jt(s,f,v){for(var g=f>v?-1:1;;){if(f==v)return f;var T=(f+v)/2,O=g<0?Math.ceil(T):Math.floor(T);if(O==f)return s(O)?f:v;s(O)?v=O:f=O+g}}z(jt,"findFirst");function dt(s,f,v,g){if(!s)return g(f,v,"ltr",0);for(var T=!1,O=0;O<s.length;++O){var I=s[O];(I.from<v&&I.to>f||f==v&&I.to==f)&&(g(Math.max(I.from,f),Math.min(I.to,v),I.level==1?"rtl":"ltr",O),T=!0)}T||g(f,v,"ltr")}z(dt,"iterateBidiSections");var Et=null;function pt(s,f,v){var g;Et=null;for(var T=0;T<s.length;++T){var O=s[T];if(O.from<f&&O.to>f)return T;O.to==f&&(O.from!=O.to&&v=="before"?g=T:Et=T),O.from==f&&(O.from!=O.to&&v!="before"?g=T:Et=T)}return g??Et}z(pt,"getBidiPartAt");var Wt=(function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",f="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function v(H){return H<=247?s.charAt(H):1424<=H&&H<=1524?"R":1536<=H&&H<=1785?f.charAt(H-1536):1774<=H&&H<=2220?"r":8192<=H&&H<=8203?"w":H==8204?"b":"L"}z(v,"charType");var g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,T=/[stwN]/,O=/[LRr]/,I=/[Lb1n]/,U=/[1n]/;function q(H,ie,le){this.level=H,this.from=ie,this.to=le}return z(q,"BidiSpan"),function(H,ie){var le=ie=="ltr"?"L":"R";if(H.length==0||ie=="ltr"&&!g.test(H))return!1;for(var ye=H.length,me=[],we=0;we<ye;++we)me.push(v(H.charCodeAt(we)));for(var Ve=0,Ke=le;Ve<ye;++Ve){var rt=me[Ve];rt=="m"?me[Ve]=Ke:Ke=rt}for(var it=0,Je=le;it<ye;++it){var ut=me[it];ut=="1"&&Je=="r"?me[it]="n":O.test(ut)&&(Je=ut,ut=="r"&&(me[it]="R"))}for(var Ct=1,yt=me[0];Ct<ye-1;++Ct){var Dt=me[Ct];Dt=="+"&&yt=="1"&&me[Ct+1]=="1"?me[Ct]="1":Dt==","&&yt==me[Ct+1]&&(yt=="1"||yt=="n")&&(me[Ct]=yt),yt=Dt}for(var Ln=0;Ln<ye;++Ln){var Dr=me[Ln];if(Dr==",")me[Ln]="N";else if(Dr=="%"){var zn=void 0;for(zn=Ln+1;zn<ye&&me[zn]=="%";++zn);for(var mi=Ln&&me[Ln-1]=="!"||zn<ye&&me[zn]=="1"?"1":"N",gi=Ln;gi<zn;++gi)me[gi]=mi;Ln=zn-1}}for(var rr=0,_i=le;rr<ye;++rr){var Hn=me[rr];_i=="L"&&Hn=="1"?me[rr]="L":O.test(Hn)&&(_i=Hn)}for(var Qt=0;Qt<ye;++Qt)if(T.test(me[Qt])){var gr=void 0;for(gr=Qt+1;gr<ye&&T.test(me[gr]);++gr);for(var ir=(Qt?me[Qt-1]:le)=="L",Tn=(gr<ye?me[gr]:le)=="L",Kc=ir==Tn?ir?"L":"R":le,Is=Qt;Is<gr;++Is)me[Is]=Kc;Qt=gr-1}for(var ti=[],Sn,xn=0;xn<ye;)if(I.test(me[xn])){var ua=xn;for(++xn;xn<ye&&I.test(me[xn]);++xn);ti.push(new q(0,ua,xn))}else{var Qa=xn,Cl=ti.length,Nu=ie=="rtl"?1:0;for(++xn;xn<ye&&me[xn]!="L";++xn);for(var ni=Qa;ni<xn;)if(U.test(me[ni])){Qa<ni&&(ti.splice(Cl,0,new q(1,Qa,ni)),Cl+=Nu);var ri=ni;for(++ni;ni<xn&&U.test(me[ni]);++ni);ti.splice(Cl,0,new q(2,ri,ni)),Cl+=Nu,Qa=ni}else++ni;Qa<xn&&ti.splice(Cl,0,new q(1,Qa,xn))}return ie=="ltr"&&(ti[0].level==1&&(Sn=H.match(/^\s+/))&&(ti[0].from=Sn[0].length,ti.unshift(new q(0,0,Sn[0].length))),Le(ti).level==1&&(Sn=H.match(/\s+$/))&&(Le(ti).to-=Sn[0].length,ti.push(new q(0,ye-Sn[0].length,ye)))),ie=="rtl"?ti.reverse():ti}})();function Vt(s,f){var v=s.order;return v==null&&(v=s.order=Wt(s.text,f)),v}z(Vt,"getOrder");var Jt=[],ot=z(function(s,f,v){if(s.addEventListener)s.addEventListener(f,v,!1);else if(s.attachEvent)s.attachEvent("on"+f,v);else{var g=s._handlers||(s._handlers={});g[f]=(g[f]||Jt).concat(v)}},"on");function qn(s,f){return s._handlers&&s._handlers[f]||Jt}z(qn,"getHandlers");function vn(s,f,v){if(s.removeEventListener)s.removeEventListener(f,v,!1);else if(s.detachEvent)s.detachEvent("on"+f,v);else{var g=s._handlers,T=g&&g[f];if(T){var O=Se(T,v);O>-1&&(g[f]=T.slice(0,O).concat(T.slice(O+1)))}}}z(vn,"off");function mt(s,f){var v=qn(s,f);if(v.length)for(var g=Array.prototype.slice.call(arguments,2),T=0;T<v.length;++T)v[T].apply(null,g)}z(mt,"signal");function yn(s,f,v){return typeof f=="string"&&(f={type:f,preventDefault:function(){this.defaultPrevented=!0}}),mt(s,v||f.type,s,f),wt(f)||f.codemirrorIgnore}z(yn,"signalDOMEvent");function di(s){var f=s._handlers&&s._handlers.cursorActivity;if(f)for(var v=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),g=0;g<f.length;++g)Se(v,f[g])==-1&&v.push(f[g])}z(di,"signalCursorActivity");function on(s,f){return qn(s,f).length>0}z(on,"hasHandler");function Mr(s){s.prototype.on=function(f,v){ot(this,f,v)},s.prototype.off=function(f,v){vn(this,f,v)}}z(Mr,"eventMixin");function An(s){s.preventDefault?s.preventDefault():s.returnValue=!1}z(An,"e_preventDefault");function Xi(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}z(Xi,"e_stopPropagation");function wt(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}z(wt,"e_defaultPrevented");function Bt(s){An(s),Xi(s)}z(Bt,"e_stop");function cn(s){return s.target||s.srcElement}z(cn,"e_target");function kn(s){var f=s.which;return f==null&&(s.button&1?f=1:s.button&2?f=3:s.button&4&&(f=2)),_&&s.ctrlKey&&f==1&&(f=3),f}z(kn,"e_button");var tr=(function(){if(p&&d<9)return!1;var s=K("div");return"draggable"in s||"dragDrop"in s})(),Ft;function fn(s){if(Ft==null){var f=K("span","​");ee(s,K("span",[f,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(Ft=f.offsetWidth<=1&&f.offsetHeight>2&&!(p&&d<8))}var v=Ft?K("span","​"):K("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return v.setAttribute("cm-text",""),v}z(fn,"zeroWidthElement");var Gt;function bn(s){if(Gt!=null)return Gt;var f=ee(s,document.createTextNode("AخA")),v=ne(f,0,1).getBoundingClientRect(),g=ne(f,1,2).getBoundingClientRect();return J(s),!v||v.left==v.right?!1:Gt=g.right-v.right<3}z(bn,"hasBadBidiRects");var Ii=`
466
466
 
467
467
  b`.split(/\n/).length!=3?function(s){for(var f=0,v=[],g=s.length;f<=g;){var T=s.indexOf(`
468
- `,f);T==-1&&(T=s.length);var O=s.slice(f,s.charAt(T-1)=="\r"?T-1:T),I=O.indexOf("\r");I!=-1?(v.push(O.slice(0,I)),f+=I+1):(v.push(O),f=T+1)}return v}:function(s){return s.split(/\r\n?|\n/)},Ko=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var f;try{f=s.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=s?!1:f.compareEndPoints("StartToEnd",f)!=0},Xo=function(){var s=K("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),Ao=null;function Er(s){if(Ao!=null)return Ao;var f=ee(s,K("span","x")),v=f.getBoundingClientRect(),g=ne(f,0,1).getBoundingClientRect();return Ao=Math.abs(v.left-g.left)>1}z(Er,"hasBadZoomedRects");var Bn={},Lr={};function Fi(s,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),Bn[s]=f}z(Fi,"defineMode");function $r(s,f){Lr[s]=f}z($r,"defineMIME");function Oo(s){if(typeof s=="string"&&Lr.hasOwnProperty(s))s=Lr[s];else if(s&&typeof s.name=="string"&&Lr.hasOwnProperty(s.name)){var f=Lr[s.name];typeof f=="string"&&(f={name:f}),s=et(f,s),s.name=f.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return Oo("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return Oo("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}z(Oo,"resolveMode");function po(s,f){f=Oo(f);var v=Bn[f.name];if(!v)return po(s,"text/plain");var g=v(s,f);if(Rn.hasOwnProperty(f.name)){var T=Rn[f.name];for(var O in T)T.hasOwnProperty(O)&&(g.hasOwnProperty(O)&&(g["_"+O]=g[O]),g[O]=T[O])}if(g.name=f.name,f.helperType&&(g.helperType=f.helperType),f.modeProps)for(var I in f.modeProps)g[I]=f.modeProps[I];return g}z(po,"getMode");var Rn={};function Zi(s,f){var v=Rn.hasOwnProperty(s)?Rn[s]:Rn[s]={};pe(f,v)}z(Zi,"extendMode");function Pi(s,f){if(f===!0)return f;if(s.copyState)return s.copyState(f);var v={};for(var g in f){var T=f[g];T instanceof Array&&(T=T.concat([])),v[g]=T}return v}z(Pi,"copyState");function ho(s,f){for(var v;s.innerMode&&(v=s.innerMode(f),!(!v||v.mode==s));)f=v.state,s=v.mode;return v||{mode:s,state:f}}z(ho,"innerMode");function Do(s,f,v){return s.startState?s.startState(f,v):!0}z(Do,"startState");var nr=z(function(s,f,v){this.pos=this.start=0,this.string=s,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=v},"StringStream");nr.prototype.eol=function(){return this.pos>=this.string.length},nr.prototype.sol=function(){return this.pos==this.lineStart},nr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},nr.prototype.eat=function(s){var f=this.string.charAt(this.pos),v;if(typeof s=="string"?v=f==s:v=f&&(s.test?s.test(f):s(f)),v)return++this.pos,f},nr.prototype.eatWhile=function(s){for(var f=this.pos;this.eat(s););return this.pos>f},nr.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},nr.prototype.skipToEnd=function(){this.pos=this.string.length},nr.prototype.skipTo=function(s){var f=this.string.indexOf(s,this.pos);if(f>-1)return this.pos=f,!0},nr.prototype.backUp=function(s){this.pos-=s},nr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},nr.prototype.indentation=function(){return ce(this.string,null,this.tabSize)-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},nr.prototype.match=function(s,f,v){if(typeof s=="string"){var g=z(function(I){return v?I.toLowerCase():I},"cased"),T=this.string.substr(this.pos,s.length);if(g(T)==g(s))return f!==!1&&(this.pos+=s.length),!0}else{var O=this.string.slice(this.pos).match(s);return O&&O.index>0?null:(O&&f!==!1&&(this.pos+=O[0].length),O)}},nr.prototype.current=function(){return this.string.slice(this.start,this.pos)},nr.prototype.hideFirstChars=function(s,f){this.lineStart+=s;try{return f()}finally{this.lineStart-=s}},nr.prototype.lookAhead=function(s){var f=this.lineOracle;return f&&f.lookAhead(s)},nr.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function ft(s,f){if(f-=s.first,f<0||f>=s.size)throw new Error("There is no line "+(f+s.first)+" in the document.");for(var v=s;!v.lines;)for(var g=0;;++g){var T=v.children[g],O=T.chunkSize();if(f<O){v=T;break}f-=O}return v.lines[f]}z(ft,"getLine");function mo(s,f,v){var g=[],T=f.line;return s.iter(f.line,v.line+1,function(O){var I=O.text;T==v.line&&(I=I.slice(0,v.ch)),T==f.line&&(I=I.slice(f.ch)),g.push(I),++T}),g}z(mo,"getBetween");function Yl(s,f,v){var g=[];return s.iter(f,v,function(T){g.push(T.text)}),g}z(Yl,"getLines");function zr(s,f){var v=f-s.height;if(v)for(var g=s;g;g=g.parent)g.height+=v}z(zr,"updateLineHeight");function an(s){if(s.parent==null)return null;for(var f=s.parent,v=Se(f.lines,s),g=f.parent;g;f=g,g=g.parent)for(var T=0;g.children[T]!=f;++T)v+=g.children[T].chunkSize();return v+f.first}z(an,"lineNo");function Ir(s,f){var v=s.first;e:do{for(var g=0;g<s.children.length;++g){var T=s.children[g],O=T.height;if(f<O){s=T;continue e}f-=O,v+=T.chunkSize()}return v}while(!s.lines);for(var I=0;I<s.lines.length;++I){var U=s.lines[I],q=U.height;if(f<q)break;f-=q}return v+I}z(Ir,"lineAtHeight");function Zo(s,f){return f>=s.first&&f<s.first+s.size}z(Zo,"isLine");function Js(s,f){return String(s.lineNumberFormatter(f+s.firstLineNumber))}z(Js,"lineNumberFor");function ze(s,f,v){if(v===void 0&&(v=null),!(this instanceof ze))return new ze(s,f,v);this.line=s,this.ch=f,this.sticky=v}z(ze,"Pos");function W(s,f){return s.line-f.line||s.ch-f.ch}z(W,"cmp");function ue(s,f){return s.sticky==f.sticky&&W(s,f)==0}z(ue,"equalCursorPos");function Fe(s){return ze(s.line,s.ch)}z(Fe,"copyPos");function We(s,f){return W(s,f)<0?f:s}z(We,"maxPos");function St(s,f){return W(s,f)<0?s:f}z(St,"minPos");function en(s,f){return Math.max(s.first,Math.min(f,s.first+s.size-1))}z(en,"clipLine");function st(s,f){if(f.line<s.first)return ze(s.first,0);var v=s.first+s.size-1;return f.line>v?ze(v,ft(s,v).text.length):_r(f,ft(s,f.line).text.length)}z(st,"clipPos");function _r(s,f){var v=s.ch;return v==null||v>f?ze(s.line,f):v<0?ze(s.line,0):s}z(_r,"clipToLen");function ji(s,f){for(var v=[],g=0;g<f.length;g++)v[g]=st(s,f[g]);return v}z(ji,"clipPosArray");var vs=z(function(s,f){this.state=s,this.lookAhead=f},"SavedContext"),Oa=z(function(s,f,v,g){this.state=f,this.doc=s,this.line=v,this.maxLookAhead=g||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Oa.prototype.lookAhead=function(s){var f=this.doc.getLine(this.line+s);return f!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),f},Oa.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var f=this.baseTokens[this.baseTokenPos+1];return{type:f&&f.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Oa.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oa.fromSaved=function(s,f,v){return f instanceof vs?new Oa(s,Pi(s.mode,f.state),v,f.lookAhead):new Oa(s,Pi(s.mode,f),v)},Oa.prototype.save=function(s){var f=s!==!1?Pi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vs(f,this.maxLookAhead):f};function Ji(s,f,v,g){var T=[s.state.modeGen],O={};Mp(s,f.text,s.doc.mode,v,function(H,ie){return T.push(H,ie)},O,g);for(var I=v.state,U=z(function(H){v.baseTokens=T;var ie=s.state.overlays[H],le=1,ye=0;v.state=!0,Mp(s,f.text,ie.mode,v,function(me,we){for(var Ve=le;ye<me;){var Ke=T[le];Ke>me&&T.splice(le,1,me,T[le+1],Ke),le+=2,ye=Math.min(me,Ke)}if(we)if(ie.opaque)T.splice(Ve,le-Ve,me,"overlay "+we),le=Ve+2;else for(;Ve<le;Ve+=2){var rt=T[Ve+1];T[Ve+1]=(rt?rt+" ":"")+"overlay "+we}},O),v.state=I,v.baseTokens=null,v.baseTokenPos=1},"loop"),q=0;q<s.state.overlays.length;++q)U(q);return{styles:T,classes:O.bgClass||O.textClass?O:null}}z(Ji,"highlightLine");function Jf(s,f,v){if(!f.styles||f.styles[0]!=s.state.modeGen){var g=Wl(s,an(f)),T=f.text.length>s.options.maxHighlightLength&&Pi(s.doc.mode,g.state),O=Ji(s,f,g);T&&(g.state=T),f.stateAfter=g.save(!T),f.styles=O.styles,O.classes?f.styleClasses=O.classes:f.styleClasses&&(f.styleClasses=null),v===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return f.styles}z(Jf,"getLineStyles");function Wl(s,f,v){var g=s.doc,T=s.display;if(!g.mode.startState)return new Oa(g,!0,f);var O=Dg(s,f,v),I=O>g.first&&ft(g,O-1).stateAfter,U=I?Oa.fromSaved(g,I,O):new Oa(g,Do(g.mode),O);return g.iter(O,f,function(q){lc(s,q.text,U);var H=U.line;q.stateAfter=H==f-1||H%5==0||H>=T.viewFrom&&H<T.viewTo?U.save():null,U.nextLine()}),v&&(g.modeFrontier=U.line),U}z(Wl,"getContextBefore");function lc(s,f,v,g){var T=s.doc.mode,O=new nr(f,s.options.tabSize,v);for(O.start=O.pos=g||0,f==""&&el(T,v.state);!O.eol();)ed(T,O,v.state),O.start=O.pos}z(lc,"processLine");function el(s,f){if(s.blankLine)return s.blankLine(f);if(s.innerMode){var v=ho(s,f);if(v.mode.blankLine)return v.mode.blankLine(v.state)}}z(el,"callBlankLine");function ed(s,f,v,g){for(var T=0;T<10;T++){g&&(g[0]=ho(s,v).mode);var O=s.token(f,v);if(f.pos>f.start)return O}throw new Error("Mode "+s.name+" failed to advance stream.")}z(ed,"readToken");var Ag=z(function(s,f,v){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=f||null,this.state=v},"Token");function tl(s,f,v,g){var T=s.doc,O=T.mode,I;f=st(T,f);var U=ft(T,f.line),q=Wl(s,f.line,v),H=new nr(U.text,s.options.tabSize,q),ie;for(g&&(ie=[]);(g||H.pos<f.ch)&&!H.eol();)H.start=H.pos,I=ed(O,H,q.state),g&&ie.push(new Ag(H,I,Pi(T.mode,q.state)));return g?ie:new Ag(H,I,q.state)}z(tl,"takeToken");function Og(s,f){if(s)for(;;){var v=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!v)break;s=s.slice(0,v.index)+s.slice(v.index+v[0].length);var g=v[1]?"bgClass":"textClass";f[g]==null?f[g]=v[2]:new RegExp("(?:^|\\s)"+v[2]+"(?:$|\\s)").test(f[g])||(f[g]+=" "+v[2])}return s}z(Og,"extractLineClasses");function Mp(s,f,v,g,T,O,I){var U=v.flattenSpans;U==null&&(U=s.options.flattenSpans);var q=0,H=null,ie=new nr(f,s.options.tabSize,g),le,ye=s.options.addModeClass&&[null];for(f==""&&Og(el(v,g.state),O);!ie.eol();){if(ie.pos>s.options.maxHighlightLength?(U=!1,I&&lc(s,f,g,ie.pos),ie.pos=f.length,le=null):le=Og(ed(v,ie,g.state,ye),O),ye){var me=ye[0].name;me&&(le="m-"+(le?me+" "+le:me))}if(!U||H!=le){for(;q<ie.start;)q=Math.min(ie.start,q+5e3),T(q,H);H=le}ie.start=ie.pos}for(;q<ie.pos;){var we=Math.min(ie.pos,q+5e3);T(we,H),q=we}}z(Mp,"runMode");function Dg(s,f,v){for(var g,T,O=s.doc,I=v?-1:f-(s.doc.mode.innerMode?1e3:100),U=f;U>I;--U){if(U<=O.first)return O.first;var q=ft(O,U-1),H=q.stateAfter;if(H&&(!v||U+(H instanceof vs?H.lookAhead:0)<=O.modeFrontier))return U;var ie=ce(q.text,null,s.options.tabSize);(T==null||g>ie)&&(T=U-1,g=ie)}return T}z(Dg,"findStartLine");function Lp(s,f){if(s.modeFrontier=Math.min(s.modeFrontier,f),!(s.highlightFrontier<f-10)){for(var v=s.first,g=f-1;g>v;g--){var T=ft(s,g).stateAfter;if(T&&(!(T instanceof vs)||g+T.lookAhead<f)){v=g+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,v)}}z(Lp,"retreatFrontier");var c1=!1,ys=!1;function td(){c1=!0}z(td,"seeReadOnlySpans");function Ip(){ys=!0}z(Ip,"seeCollapsedSpans");function Ql(s,f,v){this.marker=s,this.from=f,this.to=v}z(Ql,"MarkedSpan");function Jo(s,f){if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.marker==f)return g}}z(Jo,"getMarkedSpanFor");function Kl(s,f){for(var v,g=0;g<s.length;++g)s[g]!=f&&(v||(v=[])).push(s[g]);return v}z(Kl,"removeMarkedSpan");function kg(s,f,v){var g=v&&window.WeakSet&&(v.markedSpans||(v.markedSpans=new WeakSet));g&&s.markedSpans&&g.has(s.markedSpans)?s.markedSpans.push(f):(s.markedSpans=s.markedSpans?s.markedSpans.concat([f]):[f],g&&g.add(s.markedSpans)),f.marker.attachLine(s)}z(kg,"addMarkedSpan");function Fp(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var O=s[T],I=O.marker,U=O.from==null||(I.inclusiveLeft?O.from<=f:O.from<f);if(U||O.from==f&&I.type=="bookmark"&&(!v||!O.marker.insertLeft)){var q=O.to==null||(I.inclusiveRight?O.to>=f:O.to>f);(g||(g=[])).push(new Ql(I,O.from,q?null:O.to))}}return g}z(Fp,"markedSpansBefore");function Rg(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var O=s[T],I=O.marker,U=O.to==null||(I.inclusiveRight?O.to>=f:O.to>f);if(U||O.from==f&&I.type=="bookmark"&&(!v||O.marker.insertLeft)){var q=O.from==null||(I.inclusiveLeft?O.from<=f:O.from<f);(g||(g=[])).push(new Ql(I,q?null:O.from-f,O.to==null?null:O.to-f))}}return g}z(Rg,"markedSpansAfter");function nl(s,f){if(f.full)return null;var v=Zo(s,f.from.line)&&ft(s,f.from.line).markedSpans,g=Zo(s,f.to.line)&&ft(s,f.to.line).markedSpans;if(!v&&!g)return null;var T=f.from.ch,O=f.to.ch,I=W(f.from,f.to)==0,U=Fp(v,T,I),q=Rg(g,O,I),H=f.text.length==1,ie=Le(f.text).length+(H?T:0);if(U)for(var le=0;le<U.length;++le){var ye=U[le];if(ye.to==null){var me=Jo(q,ye.marker);me?H&&(ye.to=me.to==null?null:me.to+ie):ye.to=T}}if(q)for(var we=0;we<q.length;++we){var Ve=q[we];if(Ve.to!=null&&(Ve.to+=ie),Ve.from==null){var Ke=Jo(U,Ve.marker);Ke||(Ve.from=ie,H&&(U||(U=[])).push(Ve))}else Ve.from+=ie,H&&(U||(U=[])).push(Ve)}U&&(U=ea(U)),q&&q!=U&&(q=ea(q));var rt=[U];if(!H){var it=f.text.length-2,Je;if(it>0&&U)for(var ut=0;ut<U.length;++ut)U[ut].to==null&&(Je||(Je=[])).push(new Ql(U[ut].marker,null,null));for(var Ct=0;Ct<it;++Ct)rt.push(Je);rt.push(q)}return rt}z(nl,"stretchSpansOverChange");function ea(s){for(var f=0;f<s.length;++f){var v=s[f];v.from!=null&&v.from==v.to&&v.marker.clearWhenEmpty!==!1&&s.splice(f--,1)}return s.length?s:null}z(ea,"clearEmptySpans");function Pp(s,f,v){var g=null;if(s.iter(f.line,v.line+1,function(me){if(me.markedSpans)for(var we=0;we<me.markedSpans.length;++we){var Ve=me.markedSpans[we].marker;Ve.readOnly&&(!g||Se(g,Ve)==-1)&&(g||(g=[])).push(Ve)}}),!g)return null;for(var T=[{from:f,to:v}],O=0;O<g.length;++O)for(var I=g[O],U=I.find(0),q=0;q<T.length;++q){var H=T[q];if(!(W(H.to,U.from)<0||W(H.from,U.to)>0)){var ie=[q,1],le=W(H.from,U.from),ye=W(H.to,U.to);(le<0||!I.inclusiveLeft&&!le)&&ie.push({from:H.from,to:U.from}),(ye>0||!I.inclusiveRight&&!ye)&&ie.push({from:U.to,to:H.to}),T.splice.apply(T,ie),q+=ie.length-3}}return T}z(Pp,"removeReadOnlyRanges");function Xl(s){var f=s.markedSpans;if(f){for(var v=0;v<f.length;++v)f[v].marker.detachLine(s);s.markedSpans=null}}z(Xl,"detachMarkedSpans");function Da(s,f){if(f){for(var v=0;v<f.length;++v)f[v].marker.attachLine(s);s.markedSpans=f}}z(Da,"attachMarkedSpans");function Zl(s){return s.inclusiveLeft?-1:0}z(Zl,"extraLeft");function rl(s){return s.inclusiveRight?1:0}z(rl,"extraRight");function nd(s,f){var v=s.lines.length-f.lines.length;if(v!=0)return v;var g=s.find(),T=f.find(),O=W(g.from,T.from)||Zl(s)-Zl(f);if(O)return-O;var I=W(g.to,T.to)||rl(s)-rl(f);return I||f.id-s.id}z(nd,"compareCollapsedMarkers");function uc(s,f){var v=ys&&s.markedSpans,g;if(v)for(var T=void 0,O=0;O<v.length;++O)T=v[O],T.marker.collapsed&&(f?T.from:T.to)==null&&(!g||nd(g,T.marker)<0)&&(g=T.marker);return g}z(uc,"collapsedSpanAtSide");function cc(s){return uc(s,!0)}z(cc,"collapsedSpanAtStart");function fc(s){return uc(s,!1)}z(fc,"collapsedSpanAtEnd");function Vi(s,f){var v=ys&&s.markedSpans,g;if(v)for(var T=0;T<v.length;++T){var O=v[T];O.marker.collapsed&&(O.from==null||O.from<f)&&(O.to==null||O.to>f)&&(!g||nd(g,O.marker)<0)&&(g=O.marker)}return g}z(Vi,"collapsedSpanAround");function bs(s,f,v,g,T){var O=ft(s,f),I=ys&&O.markedSpans;if(I)for(var U=0;U<I.length;++U){var q=I[U];if(q.marker.collapsed){var H=q.marker.find(0),ie=W(H.from,v)||Zl(q.marker)-Zl(T),le=W(H.to,g)||rl(q.marker)-rl(T);if(!(ie>=0&&le<=0||ie<=0&&le>=0)&&(ie<=0&&(q.marker.inclusiveRight&&T.inclusiveLeft?W(H.to,v)>=0:W(H.to,v)>0)||ie>=0&&(q.marker.inclusiveRight&&T.inclusiveLeft?W(H.from,g)<=0:W(H.from,g)<0)))return!0}}}z(bs,"conflictingCollapsedRange");function Ui(s){for(var f;f=cc(s);)s=f.find(-1,!0).line;return s}z(Ui,"visualLine");function dc(s){for(var f;f=fc(s);)s=f.find(1,!0).line;return s}z(dc,"visualLineEnd");function f1(s){for(var f,v;f=fc(s);)s=f.find(1,!0).line,(v||(v=[])).push(s);return v}z(f1,"visualLineContinued");function pc(s,f){var v=ft(s,f),g=Ui(v);return v==g?f:an(g)}z(pc,"visualLineNo");function rd(s,f){if(f>s.lastLine())return f;var v=ft(s,f),g;if(!go(s,v))return f;for(;g=fc(v);)v=g.find(1,!0).line;return an(v)+1}z(rd,"visualLineEndNo");function go(s,f){var v=ys&&f.markedSpans;if(v){for(var g=void 0,T=0;T<v.length;++T)if(g=v[T],!!g.marker.collapsed&&(g.from==null||!g.marker.widgetNode&&g.from==0&&g.marker.inclusiveLeft&&Jl(s,f,g)))return!0}}z(go,"lineIsHidden");function Jl(s,f,v){if(v.to==null){var g=v.marker.find(1,!0);return Jl(s,g.line,Jo(g.line.markedSpans,v.marker))}if(v.marker.inclusiveRight&&v.to==f.text.length)return!0;for(var T=void 0,O=0;O<f.markedSpans.length;++O)if(T=f.markedSpans[O],T.marker.collapsed&&!T.marker.widgetNode&&T.from==v.to&&(T.to==null||T.to!=v.from)&&(T.marker.inclusiveLeft||v.marker.inclusiveRight)&&Jl(s,f,T))return!0}z(Jl,"lineIsHiddenInner");function ta(s){s=Ui(s);for(var f=0,v=s.parent,g=0;g<v.lines.length;++g){var T=v.lines[g];if(T==s)break;f+=T.height}for(var O=v.parent;O;v=O,O=v.parent)for(var I=0;I<O.children.length;++I){var U=O.children[I];if(U==v)break;f+=U.height}return f}z(ta,"heightAtLine");function id(s){if(s.height==0)return 0;for(var f=s.text.length,v,g=s;v=cc(g);){var T=v.find(0,!0);g=T.from.line,f+=T.from.ch-T.to.ch}for(g=s;v=fc(g);){var O=v.find(0,!0);f-=g.text.length-O.from.ch,g=O.to.line,f+=g.text.length-O.to.ch}return f}z(id,"lineLength");function jp(s){var f=s.display,v=s.doc;f.maxLine=ft(v,v.first),f.maxLineLength=id(f.maxLine),f.maxLineChanged=!0,v.iter(function(g){var T=id(g);T>f.maxLineLength&&(f.maxLineLength=T,f.maxLine=g)})}z(jp,"findMaxLine");var hc=z(function(s,f,v){this.text=s,Da(this,f),this.height=v?v(this):1},"Line");hc.prototype.lineNo=function(){return an(this)},Mr(hc);function Vp(s,f,v,g){s.text=f,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Xl(s),Da(s,v);var T=g?g(s):1;T!=s.height&&zr(s,T)}z(Vp,"updateLine");function d1(s){s.parent=null,Xl(s)}z(d1,"cleanUpLine");var c_={},f_={};function Mg(s,f){if(!s||/^\s*$/.test(s))return null;var v=f.addModeClass?f_:c_;return v[s]||(v[s]=s.replace(/\S+/g,"cm-$&"))}z(Mg,"interpretTokenStyle");function Lg(s,f){var v=B("span",null,null,m?"padding-right: .1px":null),g={pre:B("pre",[v],"CodeMirror-line"),content:v,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};f.measure={};for(var T=0;T<=(f.rest?f.rest.length:0);T++){var O=T?f.rest[T-1]:f.line,I=void 0;g.pos=0,g.addToken=p1,bn(s.display.measure)&&(I=Vt(O,s.doc.direction))&&(g.addToken=m1(g.addToken,I)),g.map=[];var U=f!=s.display.externalMeasured&&an(O);Up(O,g,Jf(s,O,U)),O.styleClasses&&(O.styleClasses.bgClass&&(g.bgClass=Z(O.styleClasses.bgClass,g.bgClass||"")),O.styleClasses.textClass&&(g.textClass=Z(O.styleClasses.textClass,g.textClass||""))),g.map.length==0&&g.map.push(0,0,g.content.appendChild(fn(s.display.measure))),T==0?(f.measure.map=g.map,f.measure.cache={}):((f.measure.maps||(f.measure.maps=[])).push(g.map),(f.measure.caches||(f.measure.caches=[])).push({}))}if(m){var q=g.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(g.content.className="cm-tab-wrap-hack")}return mt(s,"renderLine",s,f.line,g.pre),g.pre.className&&(g.textClass=Z(g.pre.className,g.textClass||"")),g}z(Lg,"buildLineContent");function Ig(s){var f=K("span","•","cm-invalidchar");return f.title="\\u"+s.charCodeAt(0).toString(16),f.setAttribute("aria-label",f.title),f}z(Ig,"defaultSpecialCharPlaceholder");function p1(s,f,v,g,T,O,I){if(f){var U=s.splitSpaces?h1(f,s.trailingSpace):f,q=s.cm.state.specialChars,H=!1,ie;if(!q.test(f))s.col+=f.length,ie=document.createTextNode(U),s.map.push(s.pos,s.pos+f.length,ie),p&&d<9&&(H=!0),s.pos+=f.length;else{ie=document.createDocumentFragment();for(var le=0;;){q.lastIndex=le;var ye=q.exec(f),me=ye?ye.index-le:f.length-le;if(me){var we=document.createTextNode(U.slice(le,le+me));p&&d<9?ie.appendChild(K("span",[we])):ie.appendChild(we),s.map.push(s.pos,s.pos+me,we),s.col+=me,s.pos+=me}if(!ye)break;le+=me+1;var Ve=void 0;if(ye[0]==" "){var Ke=s.cm.options.tabSize,rt=Ke-s.col%Ke;Ve=ie.appendChild(K("span",be(rt),"cm-tab")),Ve.setAttribute("role","presentation"),Ve.setAttribute("cm-text"," "),s.col+=rt}else ye[0]=="\r"||ye[0]==`
468
+ `,f);T==-1&&(T=s.length);var O=s.slice(f,s.charAt(T-1)=="\r"?T-1:T),I=O.indexOf("\r");I!=-1?(v.push(O.slice(0,I)),f+=I+1):(v.push(O),f=T+1)}return v}:function(s){return s.split(/\r\n?|\n/)},Ko=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var f;try{f=s.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=s?!1:f.compareEndPoints("StartToEnd",f)!=0},Xo=(function(){var s=K("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")})(),Ao=null;function Er(s){if(Ao!=null)return Ao;var f=ee(s,K("span","x")),v=f.getBoundingClientRect(),g=ne(f,0,1).getBoundingClientRect();return Ao=Math.abs(v.left-g.left)>1}z(Er,"hasBadZoomedRects");var Bn={},Lr={};function Fi(s,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),Bn[s]=f}z(Fi,"defineMode");function $r(s,f){Lr[s]=f}z($r,"defineMIME");function Oo(s){if(typeof s=="string"&&Lr.hasOwnProperty(s))s=Lr[s];else if(s&&typeof s.name=="string"&&Lr.hasOwnProperty(s.name)){var f=Lr[s.name];typeof f=="string"&&(f={name:f}),s=et(f,s),s.name=f.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return Oo("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return Oo("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}z(Oo,"resolveMode");function po(s,f){f=Oo(f);var v=Bn[f.name];if(!v)return po(s,"text/plain");var g=v(s,f);if(Rn.hasOwnProperty(f.name)){var T=Rn[f.name];for(var O in T)T.hasOwnProperty(O)&&(g.hasOwnProperty(O)&&(g["_"+O]=g[O]),g[O]=T[O])}if(g.name=f.name,f.helperType&&(g.helperType=f.helperType),f.modeProps)for(var I in f.modeProps)g[I]=f.modeProps[I];return g}z(po,"getMode");var Rn={};function Zi(s,f){var v=Rn.hasOwnProperty(s)?Rn[s]:Rn[s]={};pe(f,v)}z(Zi,"extendMode");function Pi(s,f){if(f===!0)return f;if(s.copyState)return s.copyState(f);var v={};for(var g in f){var T=f[g];T instanceof Array&&(T=T.concat([])),v[g]=T}return v}z(Pi,"copyState");function ho(s,f){for(var v;s.innerMode&&(v=s.innerMode(f),!(!v||v.mode==s));)f=v.state,s=v.mode;return v||{mode:s,state:f}}z(ho,"innerMode");function Do(s,f,v){return s.startState?s.startState(f,v):!0}z(Do,"startState");var nr=z(function(s,f,v){this.pos=this.start=0,this.string=s,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=v},"StringStream");nr.prototype.eol=function(){return this.pos>=this.string.length},nr.prototype.sol=function(){return this.pos==this.lineStart},nr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},nr.prototype.eat=function(s){var f=this.string.charAt(this.pos),v;if(typeof s=="string"?v=f==s:v=f&&(s.test?s.test(f):s(f)),v)return++this.pos,f},nr.prototype.eatWhile=function(s){for(var f=this.pos;this.eat(s););return this.pos>f},nr.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},nr.prototype.skipToEnd=function(){this.pos=this.string.length},nr.prototype.skipTo=function(s){var f=this.string.indexOf(s,this.pos);if(f>-1)return this.pos=f,!0},nr.prototype.backUp=function(s){this.pos-=s},nr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},nr.prototype.indentation=function(){return ce(this.string,null,this.tabSize)-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},nr.prototype.match=function(s,f,v){if(typeof s=="string"){var g=z(function(I){return v?I.toLowerCase():I},"cased"),T=this.string.substr(this.pos,s.length);if(g(T)==g(s))return f!==!1&&(this.pos+=s.length),!0}else{var O=this.string.slice(this.pos).match(s);return O&&O.index>0?null:(O&&f!==!1&&(this.pos+=O[0].length),O)}},nr.prototype.current=function(){return this.string.slice(this.start,this.pos)},nr.prototype.hideFirstChars=function(s,f){this.lineStart+=s;try{return f()}finally{this.lineStart-=s}},nr.prototype.lookAhead=function(s){var f=this.lineOracle;return f&&f.lookAhead(s)},nr.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function ft(s,f){if(f-=s.first,f<0||f>=s.size)throw new Error("There is no line "+(f+s.first)+" in the document.");for(var v=s;!v.lines;)for(var g=0;;++g){var T=v.children[g],O=T.chunkSize();if(f<O){v=T;break}f-=O}return v.lines[f]}z(ft,"getLine");function mo(s,f,v){var g=[],T=f.line;return s.iter(f.line,v.line+1,function(O){var I=O.text;T==v.line&&(I=I.slice(0,v.ch)),T==f.line&&(I=I.slice(f.ch)),g.push(I),++T}),g}z(mo,"getBetween");function Yl(s,f,v){var g=[];return s.iter(f,v,function(T){g.push(T.text)}),g}z(Yl,"getLines");function zr(s,f){var v=f-s.height;if(v)for(var g=s;g;g=g.parent)g.height+=v}z(zr,"updateLineHeight");function an(s){if(s.parent==null)return null;for(var f=s.parent,v=Se(f.lines,s),g=f.parent;g;f=g,g=g.parent)for(var T=0;g.children[T]!=f;++T)v+=g.children[T].chunkSize();return v+f.first}z(an,"lineNo");function Ir(s,f){var v=s.first;e:do{for(var g=0;g<s.children.length;++g){var T=s.children[g],O=T.height;if(f<O){s=T;continue e}f-=O,v+=T.chunkSize()}return v}while(!s.lines);for(var I=0;I<s.lines.length;++I){var U=s.lines[I],q=U.height;if(f<q)break;f-=q}return v+I}z(Ir,"lineAtHeight");function Zo(s,f){return f>=s.first&&f<s.first+s.size}z(Zo,"isLine");function Js(s,f){return String(s.lineNumberFormatter(f+s.firstLineNumber))}z(Js,"lineNumberFor");function ze(s,f,v){if(v===void 0&&(v=null),!(this instanceof ze))return new ze(s,f,v);this.line=s,this.ch=f,this.sticky=v}z(ze,"Pos");function W(s,f){return s.line-f.line||s.ch-f.ch}z(W,"cmp");function ue(s,f){return s.sticky==f.sticky&&W(s,f)==0}z(ue,"equalCursorPos");function Fe(s){return ze(s.line,s.ch)}z(Fe,"copyPos");function We(s,f){return W(s,f)<0?f:s}z(We,"maxPos");function St(s,f){return W(s,f)<0?s:f}z(St,"minPos");function en(s,f){return Math.max(s.first,Math.min(f,s.first+s.size-1))}z(en,"clipLine");function st(s,f){if(f.line<s.first)return ze(s.first,0);var v=s.first+s.size-1;return f.line>v?ze(v,ft(s,v).text.length):_r(f,ft(s,f.line).text.length)}z(st,"clipPos");function _r(s,f){var v=s.ch;return v==null||v>f?ze(s.line,f):v<0?ze(s.line,0):s}z(_r,"clipToLen");function ji(s,f){for(var v=[],g=0;g<f.length;g++)v[g]=st(s,f[g]);return v}z(ji,"clipPosArray");var vs=z(function(s,f){this.state=s,this.lookAhead=f},"SavedContext"),Oa=z(function(s,f,v,g){this.state=f,this.doc=s,this.line=v,this.maxLookAhead=g||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Oa.prototype.lookAhead=function(s){var f=this.doc.getLine(this.line+s);return f!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),f},Oa.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var f=this.baseTokens[this.baseTokenPos+1];return{type:f&&f.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Oa.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oa.fromSaved=function(s,f,v){return f instanceof vs?new Oa(s,Pi(s.mode,f.state),v,f.lookAhead):new Oa(s,Pi(s.mode,f),v)},Oa.prototype.save=function(s){var f=s!==!1?Pi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vs(f,this.maxLookAhead):f};function Ji(s,f,v,g){var T=[s.state.modeGen],O={};Mp(s,f.text,s.doc.mode,v,function(H,ie){return T.push(H,ie)},O,g);for(var I=v.state,U=z(function(H){v.baseTokens=T;var ie=s.state.overlays[H],le=1,ye=0;v.state=!0,Mp(s,f.text,ie.mode,v,function(me,we){for(var Ve=le;ye<me;){var Ke=T[le];Ke>me&&T.splice(le,1,me,T[le+1],Ke),le+=2,ye=Math.min(me,Ke)}if(we)if(ie.opaque)T.splice(Ve,le-Ve,me,"overlay "+we),le=Ve+2;else for(;Ve<le;Ve+=2){var rt=T[Ve+1];T[Ve+1]=(rt?rt+" ":"")+"overlay "+we}},O),v.state=I,v.baseTokens=null,v.baseTokenPos=1},"loop"),q=0;q<s.state.overlays.length;++q)U(q);return{styles:T,classes:O.bgClass||O.textClass?O:null}}z(Ji,"highlightLine");function Jf(s,f,v){if(!f.styles||f.styles[0]!=s.state.modeGen){var g=Wl(s,an(f)),T=f.text.length>s.options.maxHighlightLength&&Pi(s.doc.mode,g.state),O=Ji(s,f,g);T&&(g.state=T),f.stateAfter=g.save(!T),f.styles=O.styles,O.classes?f.styleClasses=O.classes:f.styleClasses&&(f.styleClasses=null),v===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return f.styles}z(Jf,"getLineStyles");function Wl(s,f,v){var g=s.doc,T=s.display;if(!g.mode.startState)return new Oa(g,!0,f);var O=Dg(s,f,v),I=O>g.first&&ft(g,O-1).stateAfter,U=I?Oa.fromSaved(g,I,O):new Oa(g,Do(g.mode),O);return g.iter(O,f,function(q){lc(s,q.text,U);var H=U.line;q.stateAfter=H==f-1||H%5==0||H>=T.viewFrom&&H<T.viewTo?U.save():null,U.nextLine()}),v&&(g.modeFrontier=U.line),U}z(Wl,"getContextBefore");function lc(s,f,v,g){var T=s.doc.mode,O=new nr(f,s.options.tabSize,v);for(O.start=O.pos=g||0,f==""&&el(T,v.state);!O.eol();)ed(T,O,v.state),O.start=O.pos}z(lc,"processLine");function el(s,f){if(s.blankLine)return s.blankLine(f);if(s.innerMode){var v=ho(s,f);if(v.mode.blankLine)return v.mode.blankLine(v.state)}}z(el,"callBlankLine");function ed(s,f,v,g){for(var T=0;T<10;T++){g&&(g[0]=ho(s,v).mode);var O=s.token(f,v);if(f.pos>f.start)return O}throw new Error("Mode "+s.name+" failed to advance stream.")}z(ed,"readToken");var Ag=z(function(s,f,v){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=f||null,this.state=v},"Token");function tl(s,f,v,g){var T=s.doc,O=T.mode,I;f=st(T,f);var U=ft(T,f.line),q=Wl(s,f.line,v),H=new nr(U.text,s.options.tabSize,q),ie;for(g&&(ie=[]);(g||H.pos<f.ch)&&!H.eol();)H.start=H.pos,I=ed(O,H,q.state),g&&ie.push(new Ag(H,I,Pi(T.mode,q.state)));return g?ie:new Ag(H,I,q.state)}z(tl,"takeToken");function Og(s,f){if(s)for(;;){var v=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!v)break;s=s.slice(0,v.index)+s.slice(v.index+v[0].length);var g=v[1]?"bgClass":"textClass";f[g]==null?f[g]=v[2]:new RegExp("(?:^|\\s)"+v[2]+"(?:$|\\s)").test(f[g])||(f[g]+=" "+v[2])}return s}z(Og,"extractLineClasses");function Mp(s,f,v,g,T,O,I){var U=v.flattenSpans;U==null&&(U=s.options.flattenSpans);var q=0,H=null,ie=new nr(f,s.options.tabSize,g),le,ye=s.options.addModeClass&&[null];for(f==""&&Og(el(v,g.state),O);!ie.eol();){if(ie.pos>s.options.maxHighlightLength?(U=!1,I&&lc(s,f,g,ie.pos),ie.pos=f.length,le=null):le=Og(ed(v,ie,g.state,ye),O),ye){var me=ye[0].name;me&&(le="m-"+(le?me+" "+le:me))}if(!U||H!=le){for(;q<ie.start;)q=Math.min(ie.start,q+5e3),T(q,H);H=le}ie.start=ie.pos}for(;q<ie.pos;){var we=Math.min(ie.pos,q+5e3);T(we,H),q=we}}z(Mp,"runMode");function Dg(s,f,v){for(var g,T,O=s.doc,I=v?-1:f-(s.doc.mode.innerMode?1e3:100),U=f;U>I;--U){if(U<=O.first)return O.first;var q=ft(O,U-1),H=q.stateAfter;if(H&&(!v||U+(H instanceof vs?H.lookAhead:0)<=O.modeFrontier))return U;var ie=ce(q.text,null,s.options.tabSize);(T==null||g>ie)&&(T=U-1,g=ie)}return T}z(Dg,"findStartLine");function Lp(s,f){if(s.modeFrontier=Math.min(s.modeFrontier,f),!(s.highlightFrontier<f-10)){for(var v=s.first,g=f-1;g>v;g--){var T=ft(s,g).stateAfter;if(T&&(!(T instanceof vs)||g+T.lookAhead<f)){v=g+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,v)}}z(Lp,"retreatFrontier");var c1=!1,ys=!1;function td(){c1=!0}z(td,"seeReadOnlySpans");function Ip(){ys=!0}z(Ip,"seeCollapsedSpans");function Ql(s,f,v){this.marker=s,this.from=f,this.to=v}z(Ql,"MarkedSpan");function Jo(s,f){if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.marker==f)return g}}z(Jo,"getMarkedSpanFor");function Kl(s,f){for(var v,g=0;g<s.length;++g)s[g]!=f&&(v||(v=[])).push(s[g]);return v}z(Kl,"removeMarkedSpan");function kg(s,f,v){var g=v&&window.WeakSet&&(v.markedSpans||(v.markedSpans=new WeakSet));g&&s.markedSpans&&g.has(s.markedSpans)?s.markedSpans.push(f):(s.markedSpans=s.markedSpans?s.markedSpans.concat([f]):[f],g&&g.add(s.markedSpans)),f.marker.attachLine(s)}z(kg,"addMarkedSpan");function Fp(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var O=s[T],I=O.marker,U=O.from==null||(I.inclusiveLeft?O.from<=f:O.from<f);if(U||O.from==f&&I.type=="bookmark"&&(!v||!O.marker.insertLeft)){var q=O.to==null||(I.inclusiveRight?O.to>=f:O.to>f);(g||(g=[])).push(new Ql(I,O.from,q?null:O.to))}}return g}z(Fp,"markedSpansBefore");function Rg(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var O=s[T],I=O.marker,U=O.to==null||(I.inclusiveRight?O.to>=f:O.to>f);if(U||O.from==f&&I.type=="bookmark"&&(!v||O.marker.insertLeft)){var q=O.from==null||(I.inclusiveLeft?O.from<=f:O.from<f);(g||(g=[])).push(new Ql(I,q?null:O.from-f,O.to==null?null:O.to-f))}}return g}z(Rg,"markedSpansAfter");function nl(s,f){if(f.full)return null;var v=Zo(s,f.from.line)&&ft(s,f.from.line).markedSpans,g=Zo(s,f.to.line)&&ft(s,f.to.line).markedSpans;if(!v&&!g)return null;var T=f.from.ch,O=f.to.ch,I=W(f.from,f.to)==0,U=Fp(v,T,I),q=Rg(g,O,I),H=f.text.length==1,ie=Le(f.text).length+(H?T:0);if(U)for(var le=0;le<U.length;++le){var ye=U[le];if(ye.to==null){var me=Jo(q,ye.marker);me?H&&(ye.to=me.to==null?null:me.to+ie):ye.to=T}}if(q)for(var we=0;we<q.length;++we){var Ve=q[we];if(Ve.to!=null&&(Ve.to+=ie),Ve.from==null){var Ke=Jo(U,Ve.marker);Ke||(Ve.from=ie,H&&(U||(U=[])).push(Ve))}else Ve.from+=ie,H&&(U||(U=[])).push(Ve)}U&&(U=ea(U)),q&&q!=U&&(q=ea(q));var rt=[U];if(!H){var it=f.text.length-2,Je;if(it>0&&U)for(var ut=0;ut<U.length;++ut)U[ut].to==null&&(Je||(Je=[])).push(new Ql(U[ut].marker,null,null));for(var Ct=0;Ct<it;++Ct)rt.push(Je);rt.push(q)}return rt}z(nl,"stretchSpansOverChange");function ea(s){for(var f=0;f<s.length;++f){var v=s[f];v.from!=null&&v.from==v.to&&v.marker.clearWhenEmpty!==!1&&s.splice(f--,1)}return s.length?s:null}z(ea,"clearEmptySpans");function Pp(s,f,v){var g=null;if(s.iter(f.line,v.line+1,function(me){if(me.markedSpans)for(var we=0;we<me.markedSpans.length;++we){var Ve=me.markedSpans[we].marker;Ve.readOnly&&(!g||Se(g,Ve)==-1)&&(g||(g=[])).push(Ve)}}),!g)return null;for(var T=[{from:f,to:v}],O=0;O<g.length;++O)for(var I=g[O],U=I.find(0),q=0;q<T.length;++q){var H=T[q];if(!(W(H.to,U.from)<0||W(H.from,U.to)>0)){var ie=[q,1],le=W(H.from,U.from),ye=W(H.to,U.to);(le<0||!I.inclusiveLeft&&!le)&&ie.push({from:H.from,to:U.from}),(ye>0||!I.inclusiveRight&&!ye)&&ie.push({from:U.to,to:H.to}),T.splice.apply(T,ie),q+=ie.length-3}}return T}z(Pp,"removeReadOnlyRanges");function Xl(s){var f=s.markedSpans;if(f){for(var v=0;v<f.length;++v)f[v].marker.detachLine(s);s.markedSpans=null}}z(Xl,"detachMarkedSpans");function Da(s,f){if(f){for(var v=0;v<f.length;++v)f[v].marker.attachLine(s);s.markedSpans=f}}z(Da,"attachMarkedSpans");function Zl(s){return s.inclusiveLeft?-1:0}z(Zl,"extraLeft");function rl(s){return s.inclusiveRight?1:0}z(rl,"extraRight");function nd(s,f){var v=s.lines.length-f.lines.length;if(v!=0)return v;var g=s.find(),T=f.find(),O=W(g.from,T.from)||Zl(s)-Zl(f);if(O)return-O;var I=W(g.to,T.to)||rl(s)-rl(f);return I||f.id-s.id}z(nd,"compareCollapsedMarkers");function uc(s,f){var v=ys&&s.markedSpans,g;if(v)for(var T=void 0,O=0;O<v.length;++O)T=v[O],T.marker.collapsed&&(f?T.from:T.to)==null&&(!g||nd(g,T.marker)<0)&&(g=T.marker);return g}z(uc,"collapsedSpanAtSide");function cc(s){return uc(s,!0)}z(cc,"collapsedSpanAtStart");function fc(s){return uc(s,!1)}z(fc,"collapsedSpanAtEnd");function Vi(s,f){var v=ys&&s.markedSpans,g;if(v)for(var T=0;T<v.length;++T){var O=v[T];O.marker.collapsed&&(O.from==null||O.from<f)&&(O.to==null||O.to>f)&&(!g||nd(g,O.marker)<0)&&(g=O.marker)}return g}z(Vi,"collapsedSpanAround");function bs(s,f,v,g,T){var O=ft(s,f),I=ys&&O.markedSpans;if(I)for(var U=0;U<I.length;++U){var q=I[U];if(q.marker.collapsed){var H=q.marker.find(0),ie=W(H.from,v)||Zl(q.marker)-Zl(T),le=W(H.to,g)||rl(q.marker)-rl(T);if(!(ie>=0&&le<=0||ie<=0&&le>=0)&&(ie<=0&&(q.marker.inclusiveRight&&T.inclusiveLeft?W(H.to,v)>=0:W(H.to,v)>0)||ie>=0&&(q.marker.inclusiveRight&&T.inclusiveLeft?W(H.from,g)<=0:W(H.from,g)<0)))return!0}}}z(bs,"conflictingCollapsedRange");function Ui(s){for(var f;f=cc(s);)s=f.find(-1,!0).line;return s}z(Ui,"visualLine");function dc(s){for(var f;f=fc(s);)s=f.find(1,!0).line;return s}z(dc,"visualLineEnd");function f1(s){for(var f,v;f=fc(s);)s=f.find(1,!0).line,(v||(v=[])).push(s);return v}z(f1,"visualLineContinued");function pc(s,f){var v=ft(s,f),g=Ui(v);return v==g?f:an(g)}z(pc,"visualLineNo");function rd(s,f){if(f>s.lastLine())return f;var v=ft(s,f),g;if(!go(s,v))return f;for(;g=fc(v);)v=g.find(1,!0).line;return an(v)+1}z(rd,"visualLineEndNo");function go(s,f){var v=ys&&f.markedSpans;if(v){for(var g=void 0,T=0;T<v.length;++T)if(g=v[T],!!g.marker.collapsed&&(g.from==null||!g.marker.widgetNode&&g.from==0&&g.marker.inclusiveLeft&&Jl(s,f,g)))return!0}}z(go,"lineIsHidden");function Jl(s,f,v){if(v.to==null){var g=v.marker.find(1,!0);return Jl(s,g.line,Jo(g.line.markedSpans,v.marker))}if(v.marker.inclusiveRight&&v.to==f.text.length)return!0;for(var T=void 0,O=0;O<f.markedSpans.length;++O)if(T=f.markedSpans[O],T.marker.collapsed&&!T.marker.widgetNode&&T.from==v.to&&(T.to==null||T.to!=v.from)&&(T.marker.inclusiveLeft||v.marker.inclusiveRight)&&Jl(s,f,T))return!0}z(Jl,"lineIsHiddenInner");function ta(s){s=Ui(s);for(var f=0,v=s.parent,g=0;g<v.lines.length;++g){var T=v.lines[g];if(T==s)break;f+=T.height}for(var O=v.parent;O;v=O,O=v.parent)for(var I=0;I<O.children.length;++I){var U=O.children[I];if(U==v)break;f+=U.height}return f}z(ta,"heightAtLine");function id(s){if(s.height==0)return 0;for(var f=s.text.length,v,g=s;v=cc(g);){var T=v.find(0,!0);g=T.from.line,f+=T.from.ch-T.to.ch}for(g=s;v=fc(g);){var O=v.find(0,!0);f-=g.text.length-O.from.ch,g=O.to.line,f+=g.text.length-O.to.ch}return f}z(id,"lineLength");function jp(s){var f=s.display,v=s.doc;f.maxLine=ft(v,v.first),f.maxLineLength=id(f.maxLine),f.maxLineChanged=!0,v.iter(function(g){var T=id(g);T>f.maxLineLength&&(f.maxLineLength=T,f.maxLine=g)})}z(jp,"findMaxLine");var hc=z(function(s,f,v){this.text=s,Da(this,f),this.height=v?v(this):1},"Line");hc.prototype.lineNo=function(){return an(this)},Mr(hc);function Vp(s,f,v,g){s.text=f,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Xl(s),Da(s,v);var T=g?g(s):1;T!=s.height&&zr(s,T)}z(Vp,"updateLine");function d1(s){s.parent=null,Xl(s)}z(d1,"cleanUpLine");var c_={},f_={};function Mg(s,f){if(!s||/^\s*$/.test(s))return null;var v=f.addModeClass?f_:c_;return v[s]||(v[s]=s.replace(/\S+/g,"cm-$&"))}z(Mg,"interpretTokenStyle");function Lg(s,f){var v=B("span",null,null,m?"padding-right: .1px":null),g={pre:B("pre",[v],"CodeMirror-line"),content:v,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};f.measure={};for(var T=0;T<=(f.rest?f.rest.length:0);T++){var O=T?f.rest[T-1]:f.line,I=void 0;g.pos=0,g.addToken=p1,bn(s.display.measure)&&(I=Vt(O,s.doc.direction))&&(g.addToken=m1(g.addToken,I)),g.map=[];var U=f!=s.display.externalMeasured&&an(O);Up(O,g,Jf(s,O,U)),O.styleClasses&&(O.styleClasses.bgClass&&(g.bgClass=Z(O.styleClasses.bgClass,g.bgClass||"")),O.styleClasses.textClass&&(g.textClass=Z(O.styleClasses.textClass,g.textClass||""))),g.map.length==0&&g.map.push(0,0,g.content.appendChild(fn(s.display.measure))),T==0?(f.measure.map=g.map,f.measure.cache={}):((f.measure.maps||(f.measure.maps=[])).push(g.map),(f.measure.caches||(f.measure.caches=[])).push({}))}if(m){var q=g.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(g.content.className="cm-tab-wrap-hack")}return mt(s,"renderLine",s,f.line,g.pre),g.pre.className&&(g.textClass=Z(g.pre.className,g.textClass||"")),g}z(Lg,"buildLineContent");function Ig(s){var f=K("span","•","cm-invalidchar");return f.title="\\u"+s.charCodeAt(0).toString(16),f.setAttribute("aria-label",f.title),f}z(Ig,"defaultSpecialCharPlaceholder");function p1(s,f,v,g,T,O,I){if(f){var U=s.splitSpaces?h1(f,s.trailingSpace):f,q=s.cm.state.specialChars,H=!1,ie;if(!q.test(f))s.col+=f.length,ie=document.createTextNode(U),s.map.push(s.pos,s.pos+f.length,ie),p&&d<9&&(H=!0),s.pos+=f.length;else{ie=document.createDocumentFragment();for(var le=0;;){q.lastIndex=le;var ye=q.exec(f),me=ye?ye.index-le:f.length-le;if(me){var we=document.createTextNode(U.slice(le,le+me));p&&d<9?ie.appendChild(K("span",[we])):ie.appendChild(we),s.map.push(s.pos,s.pos+me,we),s.col+=me,s.pos+=me}if(!ye)break;le+=me+1;var Ve=void 0;if(ye[0]==" "){var Ke=s.cm.options.tabSize,rt=Ke-s.col%Ke;Ve=ie.appendChild(K("span",be(rt),"cm-tab")),Ve.setAttribute("role","presentation"),Ve.setAttribute("cm-text"," "),s.col+=rt}else ye[0]=="\r"||ye[0]==`
469
469
  `?(Ve=ie.appendChild(K("span",ye[0]=="\r"?"␍":"␤","cm-invalidchar")),Ve.setAttribute("cm-text",ye[0]),s.col+=1):(Ve=s.cm.options.specialCharPlaceholder(ye[0]),Ve.setAttribute("cm-text",ye[0]),p&&d<9?ie.appendChild(K("span",[Ve])):ie.appendChild(Ve),s.col+=1);s.map.push(s.pos,s.pos+1,Ve),s.pos++}}if(s.trailingSpace=U.charCodeAt(f.length-1)==32,v||g||T||H||O||I){var it=v||"";g&&(it+=g),T&&(it+=T);var Je=K("span",[ie],it,O);if(I)for(var ut in I)I.hasOwnProperty(ut)&&ut!="style"&&ut!="class"&&Je.setAttribute(ut,I[ut]);return s.content.appendChild(Je)}s.content.appendChild(ie)}}z(p1,"buildToken");function h1(s,f){if(s.length>1&&!/ /.test(s))return s;for(var v=f,g="",T=0;T<s.length;T++){var O=s.charAt(T);O==" "&&v&&(T==s.length-1||s.charCodeAt(T+1)==32)&&(O=" "),g+=O,v=O==" "}return g}z(h1,"splitSpaces");function m1(s,f){return function(v,g,T,O,I,U,q){T=T?T+" cm-force-border":"cm-force-border";for(var H=v.pos,ie=H+g.length;;){for(var le=void 0,ye=0;ye<f.length&&(le=f[ye],!(le.to>H&&le.from<=H));ye++);if(le.to>=ie)return s(v,g,T,O,I,U,q);s(v,g.slice(0,le.to-H),T,O,null,U,q),O=null,g=g.slice(le.to-H),H=le.to}}}z(m1,"buildTokenBadBidi");function Fg(s,f,v,g){var T=!g&&v.widgetNode;T&&s.map.push(s.pos,s.pos+f,T),!g&&s.cm.display.input.needsContentAttribute&&(T||(T=s.content.appendChild(document.createElement("span"))),T.setAttribute("cm-marker",v.id)),T&&(s.cm.display.input.setUneditable(T),s.content.appendChild(T)),s.pos+=f,s.trailingSpace=!1}z(Fg,"buildCollapsedSpan");function Up(s,f,v){var g=s.markedSpans,T=s.text,O=0;if(!g){for(var I=1;I<v.length;I+=2)f.addToken(f,T.slice(O,O=v[I]),Mg(v[I+1],f.cm.options));return}for(var U=T.length,q=0,H=1,ie="",le,ye,me=0,we,Ve,Ke,rt,it;;){if(me==q){we=Ve=Ke=ye="",it=null,rt=null,me=1/0;for(var Je=[],ut=void 0,Ct=0;Ct<g.length;++Ct){var yt=g[Ct],Dt=yt.marker;if(Dt.type=="bookmark"&&yt.from==q&&Dt.widgetNode)Je.push(Dt);else if(yt.from<=q&&(yt.to==null||yt.to>q||Dt.collapsed&&yt.to==q&&yt.from==q)){if(yt.to!=null&&yt.to!=q&&me>yt.to&&(me=yt.to,Ve=""),Dt.className&&(we+=" "+Dt.className),Dt.css&&(ye=(ye?ye+";":"")+Dt.css),Dt.startStyle&&yt.from==q&&(Ke+=" "+Dt.startStyle),Dt.endStyle&&yt.to==me&&(ut||(ut=[])).push(Dt.endStyle,yt.to),Dt.title&&((it||(it={})).title=Dt.title),Dt.attributes)for(var Ln in Dt.attributes)(it||(it={}))[Ln]=Dt.attributes[Ln];Dt.collapsed&&(!rt||nd(rt.marker,Dt)<0)&&(rt=yt)}else yt.from>q&&me>yt.from&&(me=yt.from)}if(ut)for(var Dr=0;Dr<ut.length;Dr+=2)ut[Dr+1]==me&&(Ve+=" "+ut[Dr]);if(!rt||rt.from==q)for(var zn=0;zn<Je.length;++zn)Fg(f,0,Je[zn]);if(rt&&(rt.from||0)==q){if(Fg(f,(rt.to==null?U+1:rt.to)-q,rt.marker,rt.from==null),rt.to==null)return;rt.to==q&&(rt=!1)}}if(q>=U)break;for(var mi=Math.min(U,me);;){if(ie){var gi=q+ie.length;if(!rt){var rr=gi>mi?ie.slice(0,mi-q):ie;f.addToken(f,rr,le?le+we:we,Ke,q+rr.length==me?Ve:"",ye,it)}if(gi>=mi){ie=ie.slice(mi-q),q=mi;break}q=gi,Ke=""}ie=T.slice(O,O=v[H++]),le=Mg(v[H++],f.cm.options)}}}z(Up,"insertLineContent");function Pg(s,f,v){this.line=f,this.rest=f1(f),this.size=this.rest?an(Le(this.rest))-v+1:1,this.node=this.text=null,this.hidden=go(s,f)}z(Pg,"LineView");function od(s,f,v){for(var g=[],T,O=f;O<v;O=T){var I=new Pg(s.doc,ft(s.doc,O),O);T=O+I.size,g.push(I)}return g}z(od,"buildViewArray");var mc=null;function jg(s){mc?mc.ops.push(s):s.ownsGroup=mc={ops:[s],delayedCallbacks:[]}}z(jg,"pushOperation");function g1(s){var f=s.delayedCallbacks,v=0;do{for(;v<f.length;v++)f[v].call(null);for(var g=0;g<s.ops.length;g++){var T=s.ops[g];if(T.cursorActivityHandlers)for(;T.cursorActivityCalled<T.cursorActivityHandlers.length;)T.cursorActivityHandlers[T.cursorActivityCalled++].call(null,T.cm)}}while(v<f.length)}z(g1,"fireCallbacksForOps");function v1(s,f){var v=s.ownsGroup;if(v)try{g1(v)}finally{mc=null,f(v)}}z(v1,"finishOperation");var ad=null;function Fr(s,f){var v=qn(s,f);if(v.length){var g=Array.prototype.slice.call(arguments,2),T;mc?T=mc.delayedCallbacks:ad?T=ad:(T=ad=[],setTimeout(y1,0));for(var O=z(function(U){T.push(function(){return v[U].apply(null,g)})},"loop"),I=0;I<v.length;++I)O(I)}}z(Fr,"signalLater");function y1(){var s=ad;ad=null;for(var f=0;f<s.length;++f)s[f]()}z(y1,"fireOrphanDelayed");function Vg(s,f,v,g){for(var T=0;T<f.changes.length;T++){var O=f.changes[T];O=="text"?qp(s,f):O=="gutter"?qg(s,f,v,g):O=="class"?il(s,f):O=="widget"&&Bg(s,f,g)}f.changes=null}z(Vg,"updateLineForChanges");function gc(s){return s.node==s.text&&(s.node=K("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),p&&d<8&&(s.node.style.zIndex=2)),s.node}z(gc,"ensureLineWrapped");function b1(s,f){var v=f.bgClass?f.bgClass+" "+(f.line.bgClass||""):f.line.bgClass;if(v&&(v+=" CodeMirror-linebackground"),f.background)v?f.background.className=v:(f.background.parentNode.removeChild(f.background),f.background=null);else if(v){var g=gc(f);f.background=g.insertBefore(K("div",null,v),g.firstChild),s.display.input.setUneditable(f.background)}}z(b1,"updateLineBackground");function Ug(s,f){var v=s.display.externalMeasured;return v&&v.line==f.line?(s.display.externalMeasured=null,f.measure=v.measure,v.built):Lg(s,f)}z(Ug,"getLineContent");function qp(s,f){var v=f.text.className,g=Ug(s,f);f.text==f.node&&(f.node=g.pre),f.text.parentNode.replaceChild(g.pre,f.text),f.text=g.pre,g.bgClass!=f.bgClass||g.textClass!=f.textClass?(f.bgClass=g.bgClass,f.textClass=g.textClass,il(s,f)):v&&(f.text.className=v)}z(qp,"updateLineText");function il(s,f){b1(s,f),f.line.wrapClass?gc(f).className=f.line.wrapClass:f.node!=f.text&&(f.node.className="");var v=f.textClass?f.textClass+" "+(f.line.textClass||""):f.line.textClass;f.text.className=v||""}z(il,"updateLineClasses");function qg(s,f,v,g){if(f.gutter&&(f.node.removeChild(f.gutter),f.gutter=null),f.gutterBackground&&(f.node.removeChild(f.gutterBackground),f.gutterBackground=null),f.line.gutterClass){var T=gc(f);f.gutterBackground=K("div",null,"CodeMirror-gutter-background "+f.line.gutterClass,"left: "+(s.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px; width: "+g.gutterTotalWidth+"px"),s.display.input.setUneditable(f.gutterBackground),T.insertBefore(f.gutterBackground,f.text)}var O=f.line.gutterMarkers;if(s.options.lineNumbers||O){var I=gc(f),U=f.gutter=K("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),s.display.input.setUneditable(U),I.insertBefore(U,f.text),f.line.gutterClass&&(U.className+=" "+f.line.gutterClass),s.options.lineNumbers&&(!O||!O["CodeMirror-linenumbers"])&&(f.lineNumber=U.appendChild(K("div",Js(s.options,v),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+g.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),O)for(var q=0;q<s.display.gutterSpecs.length;++q){var H=s.display.gutterSpecs[q].className,ie=O.hasOwnProperty(H)&&O[H];ie&&U.appendChild(K("div",[ie],"CodeMirror-gutter-elt","left: "+g.gutterLeft[H]+"px; width: "+g.gutterWidth[H]+"px"))}}}z(qg,"updateLineGutter");function Bg(s,f,v){f.alignable&&(f.alignable=null);for(var g=$("CodeMirror-linewidget"),T=f.node.firstChild,O=void 0;T;T=O)O=T.nextSibling,g.test(T.className)&&f.node.removeChild(T);Bp(s,f,v)}z(Bg,"updateLineWidgets");function $g(s,f,v,g){var T=Ug(s,f);return f.text=f.node=T.pre,T.bgClass&&(f.bgClass=T.bgClass),T.textClass&&(f.textClass=T.textClass),il(s,f),qg(s,f,v,g),Bp(s,f,g),f.node}z($g,"buildLineElement");function Bp(s,f,v){if($p(s,f.line,f,v,!0),f.rest)for(var g=0;g<f.rest.length;g++)$p(s,f.rest[g],f,v,!1)}z(Bp,"insertLineWidgets");function $p(s,f,v,g,T){if(f.widgets)for(var O=gc(v),I=0,U=f.widgets;I<U.length;++I){var q=U[I],H=K("div",[q.node],"CodeMirror-linewidget"+(q.className?" "+q.className:""));q.handleMouseEvents||H.setAttribute("cm-ignore-events","true"),zg(q,H,v,g),s.display.input.setUneditable(H),T&&q.above?O.insertBefore(H,v.gutter||v.text):O.appendChild(H),Fr(q,"redraw")}}z($p,"insertLineWidgetsFor");function zg(s,f,v,g){if(s.noHScroll){(v.alignable||(v.alignable=[])).push(f);var T=g.wrapperWidth;f.style.left=g.fixedPos+"px",s.coverGutter||(T-=g.gutterTotalWidth,f.style.paddingLeft=g.gutterTotalWidth+"px"),f.style.width=T+"px"}s.coverGutter&&(f.style.zIndex=5,f.style.position="relative",s.noHScroll||(f.style.marginLeft=-g.gutterTotalWidth+"px"))}z(zg,"positionLineWidget");function na(s){if(s.height!=null)return s.height;var f=s.doc.cm;if(!f)return 0;if(!re(document.body,s.node)){var v="position: relative;";s.coverGutter&&(v+="margin-left: -"+f.display.gutters.offsetWidth+"px;"),s.noHScroll&&(v+="width: "+f.display.wrapper.clientWidth+"px;"),ee(f.display.measure,K("div",[s.node],null,v))}return s.height=s.node.parentNode.offsetHeight}z(na,"widgetHeight");function ka(s,f){for(var v=cn(f);v!=s.wrapper;v=v.parentNode)if(!v||v.nodeType==1&&v.getAttribute("cm-ignore-events")=="true"||v.parentNode==s.sizer&&v!=s.mover)return!0}z(ka,"eventInWidget");function sd(s){return s.lineSpace.offsetTop}z(sd,"paddingTop");function zp(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}z(zp,"paddingVert");function Hp(s){if(s.cachedPaddingH)return s.cachedPaddingH;var f=ee(s.measure,K("pre","x","CodeMirror-line-like")),v=window.getComputedStyle?window.getComputedStyle(f):f.currentStyle,g={left:parseInt(v.paddingLeft),right:parseInt(v.paddingRight)};return!isNaN(g.left)&&!isNaN(g.right)&&(s.cachedPaddingH=g),g}z(Hp,"paddingH");function ko(s){return Ie-s.display.nativeBarWidth}z(ko,"scrollGap");function Ro(s){return s.display.scroller.clientWidth-ko(s)-s.display.barWidth}z(Ro,"displayWidth");function ol(s){return s.display.scroller.clientHeight-ko(s)-s.display.barHeight}z(ol,"displayHeight");function E1(s,f,v){var g=s.options.lineWrapping,T=g&&Ro(s);if(!f.measure.heights||g&&f.measure.width!=T){var O=f.measure.heights=[];if(g){f.measure.width=T;for(var I=f.text.firstChild.getClientRects(),U=0;U<I.length-1;U++){var q=I[U],H=I[U+1];Math.abs(q.bottom-H.bottom)>2&&O.push((q.bottom+H.top)/2-v.top)}}O.push(v.bottom-v.top)}}z(E1,"ensureLineHeights");function vc(s,f,v){if(s.line==f)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var g=0;g<s.rest.length;g++)if(s.rest[g]==f)return{map:s.measure.maps[g],cache:s.measure.caches[g]};for(var T=0;T<s.rest.length;T++)if(an(s.rest[T])>v)return{map:s.measure.maps[T],cache:s.measure.caches[T],before:!0}}}z(vc,"mapFromLineView");function Hg(s,f){f=Ui(f);var v=an(f),g=s.display.externalMeasured=new Pg(s.doc,f,v);g.lineN=v;var T=g.built=Lg(s,g);return g.text=T.pre,ee(s.display.lineMeasure,T.pre),g}z(Hg,"updateExternalMeasurement");function Gp(s,f,v,g){return Mo(s,Es(s,f),v,g)}z(Gp,"measureChar");function yc(s,f){if(f>=s.display.viewFrom&&f<s.display.viewTo)return s.display.view[Ts(s,f)];var v=s.display.externalMeasured;if(v&&f>=v.lineN&&f<v.lineN+v.size)return v}z(yc,"findViewForLine");function Es(s,f){var v=an(f),g=yc(s,v);g&&!g.text?g=null:g&&g.changes&&(Vg(s,g,v,cd(s)),s.curOp.forceUpdate=!0),g||(g=Hg(s,f));var T=vc(g,f,v);return{line:f,view:g,rect:null,map:T.map,cache:T.cache,before:T.before,hasHeights:!1}}z(Es,"prepareMeasureForLine");function Mo(s,f,v,g,T){f.before&&(v=-1);var O=v+(g||""),I;return f.cache.hasOwnProperty(O)?I=f.cache[O]:(f.rect||(f.rect=f.view.text.getBoundingClientRect()),f.hasHeights||(E1(s,f.view,f.rect),f.hasHeights=!0),I=T1(s,f,v,g),I.bogus||(f.cache[O]=I)),{left:I.left,right:I.right,top:T?I.rtop:I.top,bottom:T?I.rbottom:I.bottom}}z(Mo,"measureCharPrepared");var Gg={left:0,right:0,top:0,bottom:0};function Yp(s,f,v){for(var g,T,O,I,U,q,H=0;H<s.length;H+=3)if(U=s[H],q=s[H+1],f<U?(T=0,O=1,I="left"):f<q?(T=f-U,O=T+1):(H==s.length-3||f==q&&s[H+3]>f)&&(O=q-U,T=O-1,f>=q&&(I="right")),T!=null){if(g=s[H+2],U==q&&v==(g.insertLeft?"left":"right")&&(I=v),v=="left"&&T==0)for(;H&&s[H-2]==s[H-3]&&s[H-1].insertLeft;)g=s[(H-=3)+2],I="left";if(v=="right"&&T==q-U)for(;H<s.length-3&&s[H+3]==s[H+4]&&!s[H+5].insertLeft;)g=s[(H+=3)+2],I="right";break}return{node:g,start:T,end:O,collapse:I,coverStart:U,coverEnd:q}}z(Yp,"nodeAndOffsetInLineMap");function S1(s,f){var v=Gg;if(f=="left")for(var g=0;g<s.length&&(v=s[g]).left==v.right;g++);else for(var T=s.length-1;T>=0&&(v=s[T]).left==v.right;T--);return v}z(S1,"getUsefulRect");function T1(s,f,v,g){var T=Yp(f.map,v,g),O=T.node,I=T.start,U=T.end,q=T.collapse,H;if(O.nodeType==3){for(var ie=0;ie<4;ie++){for(;I&&ht(f.line.text.charAt(T.coverStart+I));)--I;for(;T.coverStart+U<T.coverEnd&&ht(f.line.text.charAt(T.coverStart+U));)++U;if(p&&d<9&&I==0&&U==T.coverEnd-T.coverStart?H=O.parentNode.getBoundingClientRect():H=S1(ne(O,I,U).getClientRects(),g),H.left||H.right||I==0)break;U=I,I=I-1,q="right"}p&&d<11&&(H=x1(s.display.measure,H))}else{I>0&&(q=g="right");var le;s.options.lineWrapping&&(le=O.getClientRects()).length>1?H=le[g=="right"?le.length-1:0]:H=O.getBoundingClientRect()}if(p&&d<9&&!I&&(!H||!H.left&&!H.right)){var ye=O.parentNode.getClientRects()[0];ye?H={left:ye.left,right:ye.left+ul(s.display),top:ye.top,bottom:ye.bottom}:H=Gg}for(var me=H.top-f.rect.top,we=H.bottom-f.rect.top,Ve=(me+we)/2,Ke=f.view.measure.heights,rt=0;rt<Ke.length-1&&!(Ve<Ke[rt]);rt++);var it=rt?Ke[rt-1]:0,Je=Ke[rt],ut={left:(q=="right"?H.right:H.left)-f.rect.left,right:(q=="left"?H.left:H.right)-f.rect.left,top:it,bottom:Je};return!H.left&&!H.right&&(ut.bogus=!0),s.options.singleCursorHeightPerLine||(ut.rtop=me,ut.rbottom=we),ut}z(T1,"measureCharInner");function x1(s,f){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Er(s))return f;var v=screen.logicalXDPI/screen.deviceXDPI,g=screen.logicalYDPI/screen.deviceYDPI;return{left:f.left*v,right:f.right*v,top:f.top*g,bottom:f.bottom*g}}z(x1,"maybeUpdateRectForZooming");function Yg(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var f=0;f<s.rest.length;f++)s.measure.caches[f]={}}z(Yg,"clearLineMeasurementCacheFor");function Wg(s){s.display.externalMeasure=null,J(s.display.lineMeasure);for(var f=0;f<s.display.view.length;f++)Yg(s.display.view[f])}z(Wg,"clearLineMeasurementCache");function Xr(s){Wg(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}z(Xr,"clearCaches");function eu(){return b&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}z(eu,"pageScrollX");function Wp(){return b&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}z(Wp,"pageScrollY");function ld(s){var f=Ui(s),v=f.widgets,g=0;if(v)for(var T=0;T<v.length;++T)v[T].above&&(g+=na(v[T]));return g}z(ld,"widgetTopHeight");function bc(s,f,v,g,T){if(!T){var O=ld(f);v.top+=O,v.bottom+=O}if(g=="line")return v;g||(g="local");var I=ta(f);if(g=="local"?I+=sd(s.display):I-=s.display.viewOffset,g=="page"||g=="window"){var U=s.display.lineSpace.getBoundingClientRect();I+=U.top+(g=="window"?0:Wp());var q=U.left+(g=="window"?0:eu());v.left+=q,v.right+=q}return v.top+=I,v.bottom+=I,v}z(bc,"intoCoordSystem");function Qp(s,f,v){if(v=="div")return f;var g=f.left,T=f.top;if(v=="page")g-=eu(),T-=Wp();else if(v=="local"||!v){var O=s.display.sizer.getBoundingClientRect();g+=O.left,T+=O.top}var I=s.display.lineSpace.getBoundingClientRect();return{left:g-I.left,top:T-I.top}}z(Qp,"fromCoordSystem");function tu(s,f,v,g,T){return g||(g=ft(s.doc,f.line)),bc(s,g,Gp(s,g,f.ch,T),v)}z(tu,"charCoords");function Lo(s,f,v,g,T,O){g=g||ft(s.doc,f.line),T||(T=Es(s,g));function I(we,Ve){var Ke=Mo(s,T,we,Ve?"right":"left",O);return Ve?Ke.left=Ke.right:Ke.right=Ke.left,bc(s,g,Ke,v)}z(I,"get");var U=Vt(g,s.doc.direction),q=f.ch,H=f.sticky;if(q>=g.text.length?(q=g.text.length,H="before"):q<=0&&(q=0,H="after"),!U)return I(H=="before"?q-1:q,H=="before");function ie(we,Ve,Ke){var rt=U[Ve],it=rt.level==1;return I(Ke?we-1:we,it!=Ke)}z(ie,"getBidi");var le=pt(U,q,H),ye=Et,me=ie(q,le,H=="before");return ye!=null&&(me.other=ie(q,ye,H!="before")),me}z(Lo,"cursorCoords");function al(s,f){var v=0;f=st(s.doc,f),s.options.lineWrapping||(v=ul(s.display)*f.ch);var g=ft(s.doc,f.line),T=ta(g)+sd(s.display);return{left:v,right:v,top:T,bottom:T+g.height}}z(al,"estimateCoords");function Ec(s,f,v,g,T){var O=ze(s,f,v);return O.xRel=T,g&&(O.outside=g),O}z(Ec,"PosWithInfo");function sl(s,f,v){var g=s.doc;if(v+=s.display.viewOffset,v<0)return Ec(g.first,0,null,-1,-1);var T=Ir(g,v),O=g.first+g.size-1;if(T>O)return Ec(g.first+g.size-1,ft(g,O).text.length,null,1,1);f<0&&(f=0);for(var I=ft(g,T);;){var U=nu(s,I,T,f,v),q=Vi(I,U.ch+(U.xRel>0||U.outside>0?1:0));if(!q)return U;var H=q.find(1);if(H.line==T)return H;I=ft(g,T=H.line)}}z(sl,"coordsChar");function ud(s,f,v,g){g-=ld(f);var T=f.text.length,O=jt(function(I){return Mo(s,v,I-1).bottom<=g},T,0);return T=jt(function(I){return Mo(s,v,I).top>g},O,T),{begin:O,end:T}}z(ud,"wrappedLineExtent");function Kp(s,f,v,g){v||(v=Es(s,f));var T=bc(s,f,Mo(s,v,g),"line").top;return ud(s,f,v,T)}z(Kp,"wrappedLineExtentChar");function Ra(s,f,v,g){return s.bottom<=v?!1:s.top>v?!0:(g?s.left:s.right)>f}z(Ra,"boxIsAfter");function nu(s,f,v,g,T){T-=ta(f);var O=Es(s,f),I=ld(f),U=0,q=f.text.length,H=!0,ie=Vt(f,s.doc.direction);if(ie){var le=(s.options.lineWrapping?Qg:Xp)(s,f,v,O,ie,g,T);H=le.level!=1,U=H?le.from:le.to-1,q=H?le.to:le.from-1}var ye=null,me=null,we=jt(function(Ct){var yt=Mo(s,O,Ct);return yt.top+=I,yt.bottom+=I,Ra(yt,g,T,!1)?(yt.top<=T&&yt.left<=g&&(ye=Ct,me=yt),!0):!1},U,q),Ve,Ke,rt=!1;if(me){var it=g-me.left<me.right-g,Je=it==H;we=ye+(Je?0:1),Ke=Je?"after":"before",Ve=it?me.left:me.right}else{!H&&(we==q||we==U)&&we++,Ke=we==0?"after":we==f.text.length?"before":Mo(s,O,we-(H?1:0)).bottom+I<=T==H?"after":"before";var ut=Lo(s,ze(v,we,Ke),"line",f,O);Ve=ut.left,rt=T<ut.top?-1:T>=ut.bottom?1:0}return we=Ot(f.text,we,1),Ec(v,we,Ke,rt,g-Ve)}z(nu,"coordsCharInner");function Xp(s,f,v,g,T,O,I){var U=jt(function(le){var ye=T[le],me=ye.level!=1;return Ra(Lo(s,ze(v,me?ye.to:ye.from,me?"before":"after"),"line",f,g),O,I,!0)},0,T.length-1),q=T[U];if(U>0){var H=q.level!=1,ie=Lo(s,ze(v,H?q.from:q.to,H?"after":"before"),"line",f,g);Ra(ie,O,I,!0)&&ie.top>I&&(q=T[U-1])}return q}z(Xp,"coordsBidiPart");function Qg(s,f,v,g,T,O,I){var U=ud(s,f,g,I),q=U.begin,H=U.end;/\s/.test(f.text.charAt(H-1))&&H--;for(var ie=null,le=null,ye=0;ye<T.length;ye++){var me=T[ye];if(!(me.from>=H||me.to<=q)){var we=me.level!=1,Ve=Mo(s,g,we?Math.min(H,me.to)-1:Math.max(q,me.from)).right,Ke=Ve<O?O-Ve+1e9:Ve-O;(!ie||le>Ke)&&(ie=me,le=Ke)}}return ie||(ie=T[T.length-1]),ie.from<q&&(ie={from:q,to:ie.to,level:ie.level}),ie.to>H&&(ie={from:ie.from,to:H,level:ie.level}),ie}z(Qg,"coordsBidiPartWrapped");var vo;function ll(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(vo==null){vo=K("pre",null,"CodeMirror-line-like");for(var f=0;f<49;++f)vo.appendChild(document.createTextNode("x")),vo.appendChild(K("br"));vo.appendChild(document.createTextNode("x"))}ee(s.measure,vo);var v=vo.offsetHeight/50;return v>3&&(s.cachedTextHeight=v),J(s.measure),v||1}z(ll,"textHeight");function ul(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var f=K("span","xxxxxxxxxx"),v=K("pre",[f],"CodeMirror-line-like");ee(s.measure,v);var g=f.getBoundingClientRect(),T=(g.right-g.left)/10;return T>2&&(s.cachedCharWidth=T),T||10}z(ul,"charWidth");function cd(s){for(var f=s.display,v={},g={},T=f.gutters.clientLeft,O=f.gutters.firstChild,I=0;O;O=O.nextSibling,++I){var U=s.display.gutterSpecs[I].className;v[U]=O.offsetLeft+O.clientLeft+T,g[U]=O.clientWidth}return{fixedPos:Zp(f),gutterTotalWidth:f.gutters.offsetWidth,gutterLeft:v,gutterWidth:g,wrapperWidth:f.wrapper.clientWidth}}z(cd,"getDimensions");function Zp(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}z(Zp,"compensateForHScroll");function Kg(s){var f=ll(s.display),v=s.options.lineWrapping,g=v&&Math.max(5,s.display.scroller.clientWidth/ul(s.display)-3);return function(T){if(go(s.doc,T))return 0;var O=0;if(T.widgets)for(var I=0;I<T.widgets.length;I++)T.widgets[I].height&&(O+=T.widgets[I].height);return v?O+(Math.ceil(T.text.length/g)||1)*f:O+f}}z(Kg,"estimateHeight");function Jp(s){var f=s.doc,v=Kg(s);f.iter(function(g){var T=v(g);T!=g.height&&zr(g,T)})}z(Jp,"estimateLineHeights");function Ss(s,f,v,g){var T=s.display;if(!v&&cn(f).getAttribute("cm-not-content")=="true")return null;var O,I,U=T.lineSpace.getBoundingClientRect();try{O=f.clientX-U.left,I=f.clientY-U.top}catch{return null}var q=sl(s,O,I),H;if(g&&q.xRel>0&&(H=ft(s.doc,q.line).text).length==q.ch){var ie=ce(H,H.length,s.options.tabSize)-H.length;q=ze(q.line,Math.max(0,Math.round((O-Hp(s.display).left)/ul(s.display))-ie))}return q}z(Ss,"posFromMouse");function Ts(s,f){if(f>=s.display.viewTo||(f-=s.display.viewFrom,f<0))return null;for(var v=s.display.view,g=0;g<v.length;g++)if(f-=v[g].size,f<0)return g}z(Ts,"findViewIndex");function Zr(s,f,v,g){f==null&&(f=s.doc.first),v==null&&(v=s.doc.first+s.doc.size),g||(g=0);var T=s.display;if(g&&v<T.viewTo&&(T.updateLineNumbers==null||T.updateLineNumbers>f)&&(T.updateLineNumbers=f),s.curOp.viewChanged=!0,f>=T.viewTo)ys&&pc(s.doc,f)<T.viewTo&&Ma(s);else if(v<=T.viewFrom)ys&&rd(s.doc,v+g)>T.viewFrom?Ma(s):(T.viewFrom+=g,T.viewTo+=g);else if(f<=T.viewFrom&&v>=T.viewTo)Ma(s);else if(f<=T.viewFrom){var O=Ti(s,v,v+g,1);O?(T.view=T.view.slice(O.index),T.viewFrom=O.lineN,T.viewTo+=g):Ma(s)}else if(v>=T.viewTo){var I=Ti(s,f,f,-1);I?(T.view=T.view.slice(0,I.index),T.viewTo=I.lineN):Ma(s)}else{var U=Ti(s,f,f,-1),q=Ti(s,v,v+g,1);U&&q?(T.view=T.view.slice(0,U.index).concat(od(s,U.lineN,q.lineN)).concat(T.view.slice(q.index)),T.viewTo+=g):Ma(s)}var H=T.externalMeasured;H&&(v<H.lineN?H.lineN+=g:f<H.lineN+H.size&&(T.externalMeasured=null))}z(Zr,"regChange");function Hr(s,f,v){s.curOp.viewChanged=!0;var g=s.display,T=s.display.externalMeasured;if(T&&f>=T.lineN&&f<T.lineN+T.size&&(g.externalMeasured=null),!(f<g.viewFrom||f>=g.viewTo)){var O=g.view[Ts(s,f)];if(O.node!=null){var I=O.changes||(O.changes=[]);Se(I,v)==-1&&I.push(v)}}}z(Hr,"regLineChange");function Ma(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}z(Ma,"resetView");function Ti(s,f,v,g){var T=Ts(s,f),O,I=s.display.view;if(!ys||v==s.doc.first+s.doc.size)return{index:T,lineN:v};for(var U=s.display.viewFrom,q=0;q<T;q++)U+=I[q].size;if(U!=f){if(g>0){if(T==I.length-1)return null;O=U+I[T].size-f,T++}else O=U-f;f+=O,v+=O}for(;pc(s.doc,v)!=v;){if(T==(g<0?0:I.length-1))return null;v+=g*I[T-(g<0?1:0)].size,T+=g}return{index:T,lineN:v}}z(Ti,"viewCuttingPoint");function yo(s,f,v){var g=s.display,T=g.view;T.length==0||f>=g.viewTo||v<=g.viewFrom?(g.view=od(s,f,v),g.viewFrom=f):(g.viewFrom>f?g.view=od(s,f,g.viewFrom).concat(g.view):g.viewFrom<f&&(g.view=g.view.slice(Ts(s,f))),g.viewFrom=f,g.viewTo<v?g.view=g.view.concat(od(s,g.viewTo,v)):g.viewTo>v&&(g.view=g.view.slice(0,Ts(s,v)))),g.viewTo=v}z(yo,"adjustView");function cl(s){for(var f=s.display.view,v=0,g=0;g<f.length;g++){var T=f[g];!T.hidden&&(!T.node||T.changes)&&++v}return v}z(cl,"countDirtyView");function fl(s){s.display.input.showSelection(s.display.input.prepareSelection())}z(fl,"updateSelection");function Sc(s,f){f===void 0&&(f=!0);var v=s.doc,g={},T=g.cursors=document.createDocumentFragment(),O=g.selection=document.createDocumentFragment(),I=s.options.$customCursor;I&&(f=!0);for(var U=0;U<v.sel.ranges.length;U++)if(!(!f&&U==v.sel.primIndex)){var q=v.sel.ranges[U];if(!(q.from().line>=s.display.viewTo||q.to().line<s.display.viewFrom)){var H=q.empty();if(I){var ie=I(s,q);ie&&ru(s,ie,T)}else(H||s.options.showCursorWhenSelecting)&&ru(s,q.head,T);H||ou(s,q,O)}}return g}z(Sc,"prepareSelection");function ru(s,f,v){var g=Lo(s,f,"div",null,null,!s.options.singleCursorHeightPerLine),T=v.appendChild(K("div"," ","CodeMirror-cursor"));if(T.style.left=g.left+"px",T.style.top=g.top+"px",T.style.height=Math.max(0,g.bottom-g.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var O=tu(s,f,"div",null,null),I=O.right-O.left;T.style.width=(I>0?I:s.defaultCharWidth())+"px"}if(g.other){var U=v.appendChild(K("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=g.other.left+"px",U.style.top=g.other.top+"px",U.style.height=(g.other.bottom-g.other.top)*.85+"px"}}z(ru,"drawSelectionCursor");function iu(s,f){return s.top-f.top||s.left-f.left}z(iu,"cmpCoords");function ou(s,f,v){var g=s.display,T=s.doc,O=document.createDocumentFragment(),I=Hp(s.display),U=I.left,q=Math.max(g.sizerWidth,Ro(s)-g.sizer.offsetLeft)-I.right,H=T.direction=="ltr";function ie(Je,ut,Ct,yt){ut<0&&(ut=0),ut=Math.round(ut),yt=Math.round(yt),O.appendChild(K("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
470
470
  top: `+ut+"px; width: "+(Ct??q-Je)+`px;
471
471
  height: `+(yt-ut)+"px"))}z(ie,"add");function le(Je,ut,Ct){var yt=ft(T,Je),Dt=yt.text.length,Ln,Dr;function zn(rr,_i){return tu(s,ze(Je,rr),"div",yt,_i)}z(zn,"coords");function mi(rr,_i,Hn){var Qt=Kp(s,yt,null,rr),gr=_i=="ltr"==(Hn=="after")?"left":"right",ir=Hn=="after"?Qt.begin:Qt.end-(/\s/.test(yt.text.charAt(Qt.end-1))?2:1);return zn(ir,gr)[gr]}z(mi,"wrapX");var gi=Vt(yt,T.direction);return dt(gi,ut||0,Ct??Dt,function(rr,_i,Hn,Qt){var gr=Hn=="ltr",ir=zn(rr,gr?"left":"right"),Tn=zn(_i-1,gr?"right":"left"),Kc=ut==null&&rr==0,Is=Ct==null&&_i==Dt,ti=Qt==0,Sn=!gi||Qt==gi.length-1;if(Tn.top-ir.top<=3){var xn=(H?Kc:Is)&&ti,ua=(H?Is:Kc)&&Sn,Qa=xn?U:(gr?ir:Tn).left,Cl=ua?q:(gr?Tn:ir).right;ie(Qa,ir.top,Cl-Qa,ir.bottom)}else{var Nu,ni,ri,So;gr?(Nu=H&&Kc&&ti?U:ir.left,ni=H?q:mi(rr,Hn,"before"),ri=H?U:mi(_i,Hn,"after"),So=H&&Is&&Sn?q:Tn.right):(Nu=H?mi(rr,Hn,"before"):U,ni=!H&&Kc&&ti?q:ir.right,ri=!H&&Is&&Sn?U:Tn.left,So=H?mi(_i,Hn,"after"):q),ie(Nu,ir.top,ni-Nu,ir.bottom),ir.bottom<Tn.top&&ie(U,ir.bottom,null,Tn.top),ie(ri,Tn.top,So-ri,Tn.bottom)}(!Ln||iu(ir,Ln)<0)&&(Ln=ir),iu(Tn,Ln)<0&&(Ln=Tn),(!Dr||iu(ir,Dr)<0)&&(Dr=ir),iu(Tn,Dr)<0&&(Dr=Tn)}),{start:Ln,end:Dr}}z(le,"drawForLine");var ye=f.from(),me=f.to();if(ye.line==me.line)le(ye.line,ye.ch,me.ch);else{var we=ft(T,ye.line),Ve=ft(T,me.line),Ke=Ui(we)==Ui(Ve),rt=le(ye.line,ye.ch,Ke?we.text.length+1:null).end,it=le(me.line,Ke?0:null,me.ch).start;Ke&&(rt.top<it.top-2?(ie(rt.right,rt.top,null,rt.bottom),ie(U,it.top,it.left,it.bottom)):ie(rt.right,rt.top,it.left-rt.right,rt.bottom)),rt.bottom<it.top&&ie(U,rt.bottom,null,it.top)}v.appendChild(O)}z(ou,"drawSelectionRange");function fd(s){if(s.state.focused){var f=s.display;clearInterval(f.blinker);var v=!0;f.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?f.blinker=setInterval(function(){s.hasFocus()||Gr(s),f.cursorDiv.style.visibility=(v=!v)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(f.cursorDiv.style.visibility="hidden")}}z(fd,"restartBlink");function Tc(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||eh(s))}z(Tc,"ensureFocus");function xs(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Gr(s))},100)}z(xs,"delayBlurEvent");function eh(s,f){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(mt(s,"focus",s,f),s.state.focused=!0,fe(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),m&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),fd(s))}z(eh,"onFocus");function Gr(s,f){s.state.delayingBlurEvent||(s.state.focused&&(mt(s,"blur",s,f),s.state.focused=!1,X(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}z(Gr,"onBlur");function au(s){for(var f=s.display,v=f.lineDiv.offsetTop,g=Math.max(0,f.scroller.getBoundingClientRect().top),T=f.lineDiv.getBoundingClientRect().top,O=0,I=0;I<f.view.length;I++){var U=f.view[I],q=s.options.lineWrapping,H=void 0,ie=0;if(!U.hidden){if(T+=U.line.height,p&&d<8){var le=U.node.offsetTop+U.node.offsetHeight;H=le-v,v=le}else{var ye=U.node.getBoundingClientRect();H=ye.bottom-ye.top,!q&&U.text.firstChild&&(ie=U.text.firstChild.getBoundingClientRect().right-ye.left-1)}var me=U.line.height-H;if((me>.005||me<-.005)&&(T<g&&(O-=me),zr(U.line,H),ra(U.line),U.rest))for(var we=0;we<U.rest.length;we++)ra(U.rest[we]);if(ie>s.display.sizerWidth){var Ve=Math.ceil(ie/ul(s.display));Ve>s.display.maxLineLength&&(s.display.maxLineLength=Ve,s.display.maxLine=U.line,s.display.maxLineChanged=!0)}}}Math.abs(O)>2&&(f.scroller.scrollTop+=O)}z(au,"updateHeightsInViewport");function ra(s){if(s.widgets)for(var f=0;f<s.widgets.length;++f){var v=s.widgets[f],g=v.node.parentNode;g&&(v.height=g.offsetHeight)}}z(ra,"updateWidgetHeight");function xc(s,f,v){var g=v&&v.top!=null?Math.max(0,v.top):s.scroller.scrollTop;g=Math.floor(g-sd(s));var T=v&&v.bottom!=null?v.bottom:g+s.wrapper.clientHeight,O=Ir(f,g),I=Ir(f,T);if(v&&v.ensure){var U=v.ensure.from.line,q=v.ensure.to.line;U<O?(O=U,I=Ir(f,ta(ft(f,U))+s.wrapper.clientHeight)):Math.min(q,f.lastLine())>=I&&(O=Ir(f,ta(ft(f,q))-s.wrapper.clientHeight),I=q)}return{from:O,to:Math.max(I,O+1)}}z(xc,"visibleLines");function dd(s,f){if(!yn(s,"scrollCursorIntoView")){var v=s.display,g=v.sizer.getBoundingClientRect(),T=null;if(f.top+g.top<0?T=!0:f.bottom+g.top>(window.innerHeight||document.documentElement.clientHeight)&&(T=!1),T!=null&&!k){var O=K("div","​",null,`position: absolute;
@@ -485,18 +485,18 @@ b`.split(/\n/).length!=3?function(s){for(var f=0,v=[],g=s.length;f<=g;){var T=s.
485
485
  `)>-1?v.value=s.prevInput="":s.prevInput=T,s.composing&&(s.composing.range.clear(),s.composing.range=f.markText(s.composing.start,f.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},mr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},mr.prototype.onKeyPress=function(){p&&d>=9&&(this.hasSelection=null),this.fastPoll()},mr.prototype.onContextMenu=function(s){var f=this,v=f.cm,g=v.display,T=f.textarea;f.contextMenuPending&&f.contextMenuPending();var O=Ss(v,s),I=g.scroller.scrollTop;if(!O||y)return;var U=v.options.resetSelectionOnContextMenu;U&&v.doc.sel.contains(O)==-1&&Sr(v,hr)(v.doc,jo(O),Ze);var q=T.style.cssText,H=f.wrapper.style.cssText,ie=f.wrapper.offsetParent.getBoundingClientRect();f.wrapper.style.cssText="position: static",T.style.cssText=`position: absolute; width: 30px; height: 30px;
486
486
  top: `+(s.clientY-ie.top-5)+"px; left: "+(s.clientX-ie.left-5)+`px;
487
487
  z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
488
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var le;m&&(le=window.scrollY),g.input.focus(),m&&window.scrollTo(null,le),g.input.reset(),v.somethingSelected()||(T.value=f.prevInput=" "),f.contextMenuPending=me,g.selForContextMenu=v.doc.sel,clearTimeout(g.detectingSelectAll);function ye(){if(T.selectionStart!=null){var Ve=v.somethingSelected(),Ke="​"+(Ve?T.value:"");T.value="⇚",T.value=Ke,f.prevInput=Ve?"":"​",T.selectionStart=1,T.selectionEnd=Ke.length,g.selForContextMenu=v.doc.sel}}z(ye,"prepareSelectAllHack");function me(){if(f.contextMenuPending==me&&(f.contextMenuPending=!1,f.wrapper.style.cssText=H,T.style.cssText=q,p&&d<9&&g.scrollbars.setScrollTop(g.scroller.scrollTop=I),T.selectionStart!=null)){(!p||p&&d<9)&&ye();var Ve=0,Ke=z(function(){g.selForContextMenu==v.doc.sel&&T.selectionStart==0&&T.selectionEnd>0&&f.prevInput=="​"?Sr(v,bd)(v):Ve++<10?g.detectingSelectAll=setTimeout(Ke,500):(g.selForContextMenu=null,g.input.reset())},"poll");g.detectingSelectAll=setTimeout(Ke,200)}}if(z(me,"rehide"),p&&d>=9&&ye(),j){Bt(s);var we=z(function(){vn(window,"mouseup",we),setTimeout(me,20)},"mouseup");ot(window,"mouseup",we)}else setTimeout(me,50)},mr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},mr.prototype.setUneditable=function(){},mr.prototype.needsContentAttribute=!1;function Rh(s,f){if(f=f?pe(f):{},f.value=s.value,!f.tabindex&&s.tabIndex&&(f.tabindex=s.tabIndex),!f.placeholder&&s.placeholder&&(f.placeholder=s.placeholder),f.autofocus==null){var v=se();f.autofocus=v==s||s.getAttribute("autofocus")!=null&&v==document.body}function g(){s.value=U.getValue()}z(g,"save");var T;if(s.form&&(ot(s.form,"submit",g),!f.leaveSubmitMethodAlone)){var O=s.form;T=O.submit;try{var I=O.submit=function(){g(),O.submit=T,O.submit(),O.submit=I}}catch{}}f.finishInit=function(q){q.save=g,q.getTextArea=function(){return s},q.toTextArea=function(){q.toTextArea=isNaN,g(),s.parentNode.removeChild(q.getWrapperElement()),s.style.display="",s.form&&(vn(s.form,"submit",g),!f.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=T))}},s.style.display="none";var U=Mn(function(q){return s.parentNode.insertBefore(q,s.nextSibling)},f);return U}z(Rh,"fromTextArea");function Mh(s){s.off=vn,s.on=ot,s.wheelEventPixels=rv,s.Doc=Ci,s.splitLines=Ii,s.countColumn=ce,s.findColumn=at,s.isWordChar=Ye,s.Pass=Ge,s.signal=mt,s.Line=hc,s.changeEnd=ja,s.scrollbarModel=dr,s.Pos=ze,s.cmpPos=W,s.modes=Bn,s.mimeModes=Lr,s.resolveMode=Oo,s.getMode=po,s.modeExtensions=Rn,s.extendMode=Zi,s.copyState=Pi,s.startState=Do,s.innerMode=ho,s.commands=Tu,s.keyMap=$a,s.keyName=wd,s.isModifierKey=gh,s.lookupKey=Tl,s.normalizeKeyMap=vv,s.StringStream=nr,s.SharedTextMarker=jc,s.TextMarker=ks,s.LineWidget=bu,s.e_preventDefault=An,s.e_stopPropagation=Xi,s.e_stop=Bt,s.addClass=fe,s.contains=re,s.rmClass=X,s.keyNames=sa}z(Mh,"addLegacyProps"),wv(Mn),ei(Mn);var Dv="iter insert remove copy getEditor constructor".split(" ");for(var Rd in Ci.prototype)Ci.prototype.hasOwnProperty(Rd)&&Se(Dv,Rd)<0&&(Mn.prototype[Rd]=function(s){return function(){return s.apply(this.doc,arguments)}}(Ci.prototype[Rd]));return Mr(Ci),Mn.inputStyles={textarea:mr,contenteditable:Cn},Mn.defineMode=function(s){!Mn.defaults.mode&&s!="null"&&(Mn.defaults.mode=s),Fi.apply(this,arguments)},Mn.defineMIME=$r,Mn.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Mn.defineMIME("text/plain","null"),Mn.defineExtension=function(s,f){Mn.prototype[s]=f},Mn.defineDocExtension=function(s,f){Ci.prototype[s]=f},Mn.fromTextArea=Rh,Mh(Mn),Mn.version="5.65.3",Mn})}(LP)),LP.exports}z(Qi,"requireCodemirror");var Kne=Object.defineProperty,Xne=(e,t)=>Kne(e,"name",{value:t,configurable:!0});function FP(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"}))}Xne(FP,"_mergeNamespaces");var PP=Qi();const qt=fo(PP),Zne=Object.freeze(Object.defineProperty({__proto__:null,C:qt,c:FP({__proto__:null,default:qt},[PP])},Symbol.toStringTag,{value:"Module"}));var Jne=Object.defineProperty,_o=(e,t)=>Jne(e,"name",{value:t,configurable:!0});function jP(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"}))}_o(jP,"_mergeNamespaces");var ere={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r="CodeMirror-hint",i="CodeMirror-hint-active";n.showHint=function(N,D,A){if(!D)return N.showHint(A);A&&A.async&&(D.async=!0);var _={hint:D};if(A)for(var L in A)_[L]=A[L];return N.showHint(_)},n.defineExtension("showHint",function(N){N=p(this,this.getCursor("start"),N);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var _=this.state.completionActive=new o(this,N);_.options.hint&&(n.signal(this,"startCompletion",this),_.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function o(N,D){if(this.cm=N,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;N.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}_o(o,"Completion");var l=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;o.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(N,D){var A=N.list[D],_=this;this.cm.operation(function(){A.hint?A.hint(_.cm,N,A):_.cm.replaceRange(d(A),A.from||N.from,A.to||N.to,"complete"),n.signal(N,"pick",A),_.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<N.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var _=this;this.debounce=l(function(){_.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var D=this,A=++this.tick;x(this.options.hint,this.cm,this.options,function(_){D.tick==A&&D.finishUpdate(_,N)})}},finishUpdate:function(N,D){this.data&&n.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(A&&N.list.length==1?this.pick(N,0):(this.widget=new b(this,N),n.signal(N,"shown")))}};function p(N,D,A){var _=N.options.hintOptions,L={};for(var V in k)L[V]=k[V];if(_)for(var V in _)_[V]!==void 0&&(L[V]=_[V]);if(A)for(var V in A)A[V]!==void 0&&(L[V]=A[V]);return L.hint.resolve&&(L.hint=L.hint.resolve(N,D)),L}_o(p,"parseOptions");function d(N){return typeof N=="string"?N:N.text}_o(d,"getText");function m(N,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},_=/Mac/.test(navigator.platform);_&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var L=N.options.customKeys,V=L?{}:A;function P($,X){var J;typeof X!="string"?J=_o(function(ee){return X(ee,D)},"bound"):A.hasOwnProperty(X)?J=A[X]:J=X,V[$]=J}if(_o(P,"addBinding"),L)for(var F in L)L.hasOwnProperty(F)&&P(F,L[F]);var j=N.options.extraKeys;if(j)for(var F in j)j.hasOwnProperty(F)&&P(F,j[F]);return V}_o(m,"buildKeyMap");function E(N,D){for(;D&&D!=N;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==N)return D;D=D.parentNode}}_o(E,"getHintElement");function b(N,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=D,this.picked=!1;var A=this,_=N.cm,L=_.getInputField().ownerDocument,V=L.defaultView||L.parentWindow,P=this.hints=L.createElement("ul");P.setAttribute("role","listbox"),P.setAttribute("aria-expanded","true"),P.id=this.id;var F=N.cm.options.theme;P.className="CodeMirror-hints "+F,this.selectedHint=D.selectedHint||0;for(var j=D.list,$=0;$<j.length;++$){var X=P.appendChild(L.createElement("li")),J=j[$],ee=r+($!=this.selectedHint?"":" "+i);J.className!=null&&(ee=J.className+" "+ee),X.className=ee,$==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+$,X.setAttribute("role","option"),J.render?J.render(X,D,J):X.appendChild(L.createTextNode(J.displayText||d(J))),X.hintId=$}var K=N.options.container||L.body,B=_.cursorCoords(N.options.alignWithWord?D.from:null),ne=B.left,re=B.bottom,se=!0,fe=0,Z=0;if(K!==L.body){var ge=["absolute","relative","fixed"].indexOf(V.getComputedStyle(K).position)!==-1,ae=ge?K:K.offsetParent,pe=ae.getBoundingClientRect(),ce=L.body.getBoundingClientRect();fe=pe.left-ce.left-ae.scrollLeft,Z=pe.top-ce.top-ae.scrollTop}P.style.left=ne-fe+"px",P.style.top=re-Z+"px";var he=V.innerWidth||Math.max(L.body.offsetWidth,L.documentElement.offsetWidth),Se=V.innerHeight||Math.max(L.body.offsetHeight,L.documentElement.offsetHeight);K.appendChild(P),_.getInputField().setAttribute("aria-autocomplete","list"),_.getInputField().setAttribute("aria-owns",this.id),_.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Ie=N.options.moveOnOverlap?P.getBoundingClientRect():new DOMRect,Ge=N.options.paddingForScrollbar?P.scrollHeight>P.clientHeight+1:!1,Ze;setTimeout(function(){Ze=_.getScrollInfo()});var It=Ie.bottom-Se;if(It>0){var vt=Ie.bottom-Ie.top,at=B.top-(B.bottom-Ie.top);if(at-vt>0)P.style.top=(re=B.top-vt-Z)+"px",se=!1;else if(vt>Se){P.style.height=Se-5+"px",P.style.top=(re=B.bottom-Ie.top-Z)+"px";var Oe=_.getCursor();D.from.ch!=Oe.ch&&(B=_.cursorCoords(Oe),P.style.left=(ne=B.left-fe)+"px",Ie=P.getBoundingClientRect())}}var be=Ie.right-he;if(Ge&&(be+=_.display.nativeBarWidth),be>0&&(Ie.right-Ie.left>he&&(P.style.width=he-5+"px",be-=Ie.right-Ie.left-he),P.style.left=(ne=B.left-be-fe)+"px"),Ge)for(var Le=P.firstChild;Le;Le=Le.nextSibling)Le.style.paddingRight=_.display.nativeBarWidth+"px";if(_.addKeyMap(this.keyMap=m(N,{moveFocus:function(je,et){A.changeActive(A.selectedHint+je,et)},setFocus:function(je){A.changeActive(je)},menuSize:function(){return A.screenAmount()},length:j.length,close:function(){N.close()},pick:function(){A.pick()},data:D})),N.options.closeOnUnfocus){var Ee;_.on("blur",this.onBlur=function(){Ee=setTimeout(function(){N.close()},100)}),_.on("focus",this.onFocus=function(){clearTimeout(Ee)})}_.on("scroll",this.onScroll=function(){var je=_.getScrollInfo(),et=_.getWrapperElement().getBoundingClientRect();Ze||(Ze=_.getScrollInfo());var ct=re+Ze.top-je.top,Ye=ct-(V.pageYOffset||(L.documentElement||L.body).scrollTop);if(se||(Ye+=P.offsetHeight),Ye<=et.top||Ye>=et.bottom)return N.close();P.style.top=ct+"px",P.style.left=ne+Ze.left-je.left+"px"}),n.on(P,"dblclick",function(je){var et=E(P,je.target||je.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),n.on(P,"click",function(je){var et=E(P,je.target||je.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),N.options.completeOnSingleClick&&A.pick())}),n.on(P,"mousedown",function(){setTimeout(function(){_.focus()},20)});var oe=this.getSelectedHintRange();return(oe.from!==0||oe.to!==0)&&this.scrollToActive(),n.signal(D,"select",j[this.selectedHint],P.childNodes[this.selectedHint]),!0}_o(b,"Widget"),b.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,D){if(N>=this.data.list.length?N=D?this.data.list.length-1:0:N<0&&(N=D?0:this.data.list.length-1),this.selectedHint!=N){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+i,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=N],A.className+=" "+i,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var N=this.getSelectedHintRange(),D=this.hints.childNodes[N.from],A=this.hints.childNodes[N.to],_=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-_.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+_.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function y(N,D){if(!N.somethingSelected())return D;for(var A=[],_=0;_<D.length;_++)D[_].supportsSelection&&A.push(D[_]);return A}_o(y,"applicableHelpers");function x(N,D,A,_){if(N.async)N(D,_,A);else{var L=N(D,A);L&&L.then?L.then(_):_(L)}}_o(x,"fetchHints");function w(N,D){var A=N.getHelpers(D,"hint"),_;if(A.length){var L=_o(function(V,P,F){var j=y(V,A);function $(X){if(X==j.length)return P(null);x(j[X],V,F,function(J){J&&J.list.length>0?P(J):$(X+1)})}_o($,"run"),$(0)},"resolved");return L.async=!0,L.supportsSelection=!0,L}else return(_=N.getHelper(N.getCursor(),"hintWords"))?function(V){return n.hint.fromList(V,{words:_})}:n.hint.anyword?function(V,P){return n.hint.anyword(V,P)}:function(){}}_o(w,"resolveAutoHints"),n.registerHelper("hint","auto",{resolve:w}),n.registerHelper("hint","fromList",function(N,D){var A=N.getCursor(),_=N.getTokenAt(A),L,V=n.Pos(A.line,_.start),P=A;_.start<A.ch&&/\w/.test(_.string.charAt(A.ch-_.start-1))?L=_.string.substr(0,A.ch-_.start):(L="",V=A);for(var F=[],j=0;j<D.words.length;j++){var $=D.words[j];$.slice(0,L.length)==L&&F.push($)}if(F.length)return{list:F,from:V,to:P}}),n.commands.autocomplete=n.showHint;var k={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})})();var VP=ere.exports;const tre=Object.freeze(Object.defineProperty({__proto__:null,s:jP({__proto__:null,default:fo(VP)},[VP])},Symbol.toStringTag,{value:"Module"}));var nre=Object.defineProperty,ac=(e,t)=>nre(e,"name",{value:t,configurable:!0}),rre={exports:{}},UP;function HC(){return UP||(UP=1,function(e,t){(function(n){n(Qi())})(function(n){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=n.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function l(b){return b&&b.bracketRegex||/[(){}[\]]/}ac(l,"bracketRegex");function c(b,y,x){var w=b.getLineHandle(y.line),k=y.ch-1,N=x&&x.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(b.getWrapperElement().className));var D=l(x),A=!N&&k>=0&&D.test(w.text.charAt(k))&&o[w.text.charAt(k)]||D.test(w.text.charAt(k+1))&&o[w.text.charAt(++k)];if(!A)return null;var _=A.charAt(1)==">"?1:-1;if(x&&x.strict&&_>0!=(k==y.ch))return null;var L=b.getTokenTypeAt(i(y.line,k+1)),V=p(b,i(y.line,k+(_>0?1:0)),_,L,x);return V==null?null:{from:i(y.line,k),to:V&&V.pos,match:V&&V.ch==A.charAt(0),forward:_>0}}ac(c,"findMatchingBracket");function p(b,y,x,w,k){for(var N=k&&k.maxScanLineLength||1e4,D=k&&k.maxScanLines||1e3,A=[],_=l(k),L=x>0?Math.min(y.line+D,b.lastLine()+1):Math.max(b.firstLine()-1,y.line-D),V=y.line;V!=L;V+=x){var P=b.getLine(V);if(P){var F=x>0?0:P.length-1,j=x>0?P.length:-1;if(!(P.length>N))for(V==y.line&&(F=y.ch-(x<0?1:0));F!=j;F+=x){var $=P.charAt(F);if(_.test($)&&(w===void 0||(b.getTokenTypeAt(i(V,F+1))||"")==(w||""))){var X=o[$];if(X&&X.charAt(1)==">"==x>0)A.push($);else if(A.length)A.pop();else return{pos:i(V,F),ch:$}}}}}return V-x==(x>0?b.lastLine():b.firstLine())?!1:null}ac(p,"scanForBracket");function d(b,y,x){for(var w=b.state.matchBrackets.maxHighlightLineLength||1e3,k=x&&x.highlightNonMatching,N=[],D=b.listSelections(),A=0;A<D.length;A++){var _=D[A].empty()&&c(b,D[A].head,x);if(_&&(_.match||k!==!1)&&b.getLine(_.from.line).length<=w){var L=_.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(b.markText(_.from,i(_.from.line,_.from.ch+1),{className:L})),_.to&&b.getLine(_.to.line).length<=w&&N.push(b.markText(_.to,i(_.to.line,_.to.ch+1),{className:L}))}}if(N.length){r&&b.state.focused&&b.focus();var V=ac(function(){b.operation(function(){for(var P=0;P<N.length;P++)N[P].clear()})},"clear");if(y)setTimeout(V,800);else return V}}ac(d,"matchBrackets");function m(b){b.operation(function(){b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null),b.state.matchBrackets.currentlyHighlighted=d(b,!1,b.state.matchBrackets)})}ac(m,"doMatchBrackets");function E(b){b.state.matchBrackets&&b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null)}ac(E,"clearHighlighted"),n.defineOption("matchBrackets",!1,function(b,y,x){x&&x!=n.Init&&(b.off("cursorActivity",m),b.off("focus",m),b.off("blur",E),E(b)),y&&(b.state.matchBrackets=typeof y=="object"?y:{},b.on("cursorActivity",m),b.on("focus",m),b.on("blur",E))}),n.defineExtension("matchBrackets",function(){d(this,!0)}),n.defineExtension("findMatchingBracket",function(b,y,x){return(x||typeof y=="boolean")&&(x?(x.strict=y,y=x):y=y?{strict:!0}:null),c(this,b,y)}),n.defineExtension("scanForBracket",function(b,y,x,w){return p(this,b,y,x,w)})})}()),rre.exports}ac(HC,"requireMatchbrackets");var ire=Object.defineProperty,ore=(e,t)=>ire(e,"name",{value:t,configurable:!0});function qP(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"}))}ore(qP,"_mergeNamespaces");var BP=HC();const are=Object.freeze(Object.defineProperty({__proto__:null,m:qP({__proto__:null,default:fo(BP)},[BP])},Symbol.toStringTag,{value:"Module"}));var sre=Object.defineProperty,Aa=(e,t)=>sre(e,"name",{value:t,configurable:!0});function $P(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"}))}Aa($P,"_mergeNamespaces");var lre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=n.Pos;n.defineOption("autoCloseBrackets",!1,function(N,D,A){A&&A!=n.Init&&(N.removeKeyMap(l),N.state.closeBrackets=null),D&&(c(o(D,"pairs")),N.state.closeBrackets=D,N.addKeyMap(l))});function o(N,D){return D=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[D]!=null?N[D]:r[D]}Aa(o,"getOption");var l={Backspace:m,Enter:E};function c(N){for(var D=0;D<N.length;D++){var A=N.charAt(D),_="'"+A+"'";l[_]||(l[_]=p(A))}}Aa(c,"ensureBound"),c(r.pairs+"`");function p(N){return function(D){return x(D,N)}}Aa(p,"handler");function d(N){var D=N.state.closeBrackets;if(!D||D.override)return D;var A=N.getModeAt(N.getCursor());return A.closeBrackets||D}Aa(d,"getConfig");function m(N){var D=d(N);if(!D||N.getOption("disableInput"))return n.Pass;for(var A=o(D,"pairs"),_=N.listSelections(),L=0;L<_.length;L++){if(!_[L].empty())return n.Pass;var V=w(N,_[L].head);if(!V||A.indexOf(V)%2!=0)return n.Pass}for(var L=_.length-1;L>=0;L--){var P=_[L].head;N.replaceRange("",i(P.line,P.ch-1),i(P.line,P.ch+1),"+delete")}}Aa(m,"handleBackspace");function E(N){var D=d(N),A=D&&o(D,"explode");if(!A||N.getOption("disableInput"))return n.Pass;for(var _=N.listSelections(),L=0;L<_.length;L++){if(!_[L].empty())return n.Pass;var V=w(N,_[L].head);if(!V||A.indexOf(V)%2!=0)return n.Pass}N.operation(function(){var P=N.lineSeparator()||`
489
- `;N.replaceSelection(P+P,null),b(N,-1),_=N.listSelections();for(var F=0;F<_.length;F++){var j=_[F].head.line;N.indentLine(j,null,!0),N.indentLine(j+1,null,!0)}})}Aa(E,"handleEnter");function b(N,D){for(var A=[],_=N.listSelections(),L=0,V=0;V<_.length;V++){var P=_[V];P.head==N.getCursor()&&(L=V);var F=P.head.ch||D>0?{line:P.head.line,ch:P.head.ch+D}:{line:P.head.line-1};A.push({anchor:F,head:F})}N.setSelections(A,L)}Aa(b,"moveSel");function y(N){var D=n.cmpPos(N.anchor,N.head)>0;return{anchor:new i(N.anchor.line,N.anchor.ch+(D?-1:1)),head:new i(N.head.line,N.head.ch+(D?1:-1))}}Aa(y,"contractSelection");function x(N,D){var A=d(N);if(!A||N.getOption("disableInput"))return n.Pass;var _=o(A,"pairs"),L=_.indexOf(D);if(L==-1)return n.Pass;for(var V=o(A,"closeBefore"),P=o(A,"triples"),F=_.charAt(L+1)==D,j=N.listSelections(),$=L%2==0,X,J=0;J<j.length;J++){var ee=j[J],K=ee.head,B,ne=N.getRange(K,i(K.line,K.ch+1));if($&&!ee.empty())B="surround";else if((F||!$)&&ne==D)F&&k(N,K)?B="both":P.indexOf(D)>=0&&N.getRange(K,i(K.line,K.ch+3))==D+D+D?B="skipThree":B="skip";else if(F&&K.ch>1&&P.indexOf(D)>=0&&N.getRange(i(K.line,K.ch-2),K)==D+D){if(K.ch>2&&/\bstring/.test(N.getTokenTypeAt(i(K.line,K.ch-2))))return n.Pass;B="addFour"}else if(F){var re=K.ch==0?" ":N.getRange(i(K.line,K.ch-1),K);if(!n.isWordChar(ne)&&re!=D&&!n.isWordChar(re))B="both";else return n.Pass}else if($&&(ne.length===0||/\s/.test(ne)||V.indexOf(ne)>-1))B="both";else return n.Pass;if(!X)X=B;else if(X!=B)return n.Pass}var se=L%2?_.charAt(L-1):D,fe=L%2?D:_.charAt(L+1);N.operation(function(){if(X=="skip")b(N,1);else if(X=="skipThree")b(N,3);else if(X=="surround"){for(var Z=N.getSelections(),ge=0;ge<Z.length;ge++)Z[ge]=se+Z[ge]+fe;N.replaceSelections(Z,"around"),Z=N.listSelections().slice();for(var ge=0;ge<Z.length;ge++)Z[ge]=y(Z[ge]);N.setSelections(Z)}else X=="both"?(N.replaceSelection(se+fe,null),N.triggerElectric(se+fe),b(N,-1)):X=="addFour"&&(N.replaceSelection(se+se+se+se,"before"),b(N,1))})}Aa(x,"handleChar");function w(N,D){var A=N.getRange(i(D.line,D.ch-1),i(D.line,D.ch+1));return A.length==2?A:null}Aa(w,"charsAround");function k(N,D){var A=N.getTokenAt(i(D.line,D.ch+1));return/\bstring/.test(A.type)&&A.start==D.ch&&(D.ch==0||!/\bstring/.test(N.getTokenTypeAt(D)))}Aa(k,"stringStartsAfter")})})();var zP=lre.exports;const ure=Object.freeze(Object.defineProperty({__proto__:null,c:$P({__proto__:null,default:fo(zP)},[zP])},Symbol.toStringTag,{value:"Module"}));var cre=Object.defineProperty,Op=(e,t)=>cre(e,"name",{value:t,configurable:!0});function HP(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"}))}Op(HP,"_mergeNamespaces");var fre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){function r(i){return function(o,l){var c=l.line,p=o.getLine(c);function d(w){for(var k,N=l.ch,D=0;;){var A=N<=0?-1:p.lastIndexOf(w[0],N-1);if(A==-1){if(D==1)break;D=1,N=p.length;continue}if(D==1&&A<l.ch)break;if(k=o.getTokenTypeAt(n.Pos(c,A+1)),!/^(comment|string)/.test(k))return{ch:A+1,tokenType:k,pair:w};N=A-1}}Op(d,"findOpening");function m(w){var k=1,N=o.lastLine(),D,A=w.ch,_;e:for(var L=c;L<=N;++L)for(var V=o.getLine(L),P=L==c?A:0;;){var F=V.indexOf(w.pair[0],P),j=V.indexOf(w.pair[1],P);if(F<0&&(F=V.length),j<0&&(j=V.length),P=Math.min(F,j),P==V.length)break;if(o.getTokenTypeAt(n.Pos(L,P+1))==w.tokenType){if(P==F)++k;else if(!--k){D=L,_=P;break e}}++P}return D==null||c==D?null:{from:n.Pos(c,A),to:n.Pos(D,_)}}Op(m,"findRange");for(var E=[],b=0;b<i.length;b++){var y=d(i[b]);y&&E.push(y)}E.sort(function(w,k){return w.ch-k.ch});for(var b=0;b<E.length;b++){var x=m(E[b]);if(x)return x}return null}}Op(r,"bracketFolding"),n.registerHelper("fold","brace",r([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(i,o){function l(b){if(b<i.firstLine()||b>i.lastLine())return null;var y=i.getTokenAt(n.Pos(b,1));if(/\S/.test(y.string)||(y=i.getTokenAt(n.Pos(b,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var x=b,w=Math.min(i.lastLine(),b+10);x<=w;++x){var k=i.getLine(x),N=k.indexOf(";");if(N!=-1)return{startCh:y.end,end:n.Pos(x,N)}}}Op(l,"hasImport");var c=o.line,p=l(c),d;if(!p||l(c-1)||(d=l(c-2))&&d.end.line==c-1)return null;for(var m=p.end;;){var E=l(m.line+1);if(E==null)break;m=E.end}return{from:i.clipPos(n.Pos(c,p.startCh+1)),to:m}}),n.registerHelper("fold","include",function(i,o){function l(E){if(E<i.firstLine()||E>i.lastLine())return null;var b=i.getTokenAt(n.Pos(E,1));if(/\S/.test(b.string)||(b=i.getTokenAt(n.Pos(E,b.end+1))),b.type=="meta"&&b.string.slice(0,8)=="#include")return b.start+8}Op(l,"hasInclude");var c=o.line,p=l(c);if(p==null||l(c-1)!=null)return null;for(var d=c;;){var m=l(d+1);if(m==null)break;++d}return{from:n.Pos(c,p+1),to:i.clipPos(n.Pos(d))}})})})();var GP=fre.exports;const YP=Object.freeze(Object.defineProperty({__proto__:null,b:HP({__proto__:null,default:fo(GP)},[GP])},Symbol.toStringTag,{value:"Module"}));var dre=Object.defineProperty,Mi=(e,t)=>dre(e,"name",{value:t,configurable:!0});function WP(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"}))}Mi(WP,"_mergeNamespaces");var pre={exports:{}},hre={exports:{}},QP;function KP(){return QP||(QP=1,function(e,t){(function(n){n(Qi())})(function(n){function r(c,p,d,m){if(d&&d.call){var E=d;d=null}else var E=l(c,d,"rangeFinder");typeof p=="number"&&(p=n.Pos(p,0));var b=l(c,d,"minFoldSize");function y(N){var D=E(c,p);if(!D||D.to.line-D.from.line<b)return null;if(m==="fold")return D;for(var A=c.findMarksAt(D.from),_=0;_<A.length;++_)if(A[_].__isFold){if(!N)return null;D.cleared=!0,A[_].clear()}return D}Mi(y,"getRange");var x=y(!0);if(l(c,d,"scanUp"))for(;!x&&p.line>c.firstLine();)p=n.Pos(p.line-1,0),x=y(!1);if(!(!x||x.cleared||m==="unfold")){var w=i(c,d,x);n.on(w,"mousedown",function(N){k.clear(),n.e_preventDefault(N)});var k=c.markText(x.from,x.to,{replacedWith:w,clearOnEnter:l(c,d,"clearOnEnter"),__isFold:!0});k.on("clear",function(N,D){n.signal(c,"unfold",c,N,D)}),n.signal(c,"fold",c,x.from,x.to)}}Mi(r,"doFold");function i(c,p,d){var m=l(c,p,"widget");if(typeof m=="function"&&(m=m(d.from,d.to)),typeof m=="string"){var E=document.createTextNode(m);m=document.createElement("span"),m.appendChild(E),m.className="CodeMirror-foldmarker"}else m&&(m=m.cloneNode(!0));return m}Mi(i,"makeWidget"),n.newFoldFunction=function(c,p){return function(d,m){r(d,m,{rangeFinder:c,widget:p})}},n.defineExtension("foldCode",function(c,p,d){r(this,c,p,d)}),n.defineExtension("isFolded",function(c){for(var p=this.findMarksAt(c),d=0;d<p.length;++d)if(p[d].__isFold)return!0}),n.commands.toggleFold=function(c){c.foldCode(c.getCursor())},n.commands.fold=function(c){c.foldCode(c.getCursor(),null,"fold")},n.commands.unfold=function(c){c.foldCode(c.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var c=Array.prototype.slice.call(arguments,0);return function(p,d){for(var m=0;m<c.length;++m){var E=c[m](p,d);if(E)return E}}}),n.registerHelper("fold","auto",function(c,p){for(var d=c.getHelpers(p,"fold"),m=0;m<d.length;m++){var E=d[m](c,p);if(E)return E}});var o={rangeFinder:n.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function l(c,p,d){if(p&&p[d]!==void 0)return p[d];var m=c.options.foldOptions;return m&&m[d]!==void 0?m[d]:o[d]}Mi(l,"getOption"),n.defineExtension("foldOption",function(c,p){return l(this,c,p)})})}()),hre.exports}Mi(KP,"requireFoldcode"),function(e,t){(function(n){n(Qi(),KP())})(function(n){n.defineOption("foldGutter",!1,function(w,k,N){N&&N!=n.Init&&(w.clearGutter(w.state.foldGutter.options.gutter),w.state.foldGutter=null,w.off("gutterClick",E),w.off("changes",b),w.off("viewportChange",y),w.off("fold",x),w.off("unfold",x),w.off("swapDoc",b)),k&&(w.state.foldGutter=new i(o(k)),m(w),w.on("gutterClick",E),w.on("changes",b),w.on("viewportChange",y),w.on("fold",x),w.on("unfold",x),w.on("swapDoc",b))});var r=n.Pos;function i(w){this.options=w,this.from=this.to=0}Mi(i,"State");function o(w){return w===!0&&(w={}),w.gutter==null&&(w.gutter="CodeMirror-foldgutter"),w.indicatorOpen==null&&(w.indicatorOpen="CodeMirror-foldgutter-open"),w.indicatorFolded==null&&(w.indicatorFolded="CodeMirror-foldgutter-folded"),w}Mi(o,"parseOptions");function l(w,k){for(var N=w.findMarks(r(k,0),r(k+1,0)),D=0;D<N.length;++D)if(N[D].__isFold){var A=N[D].find(-1);if(A&&A.line===k)return N[D]}}Mi(l,"isFolded");function c(w){if(typeof w=="string"){var k=document.createElement("div");return k.className=w+" CodeMirror-guttermarker-subtle",k}else return w.cloneNode(!0)}Mi(c,"marker");function p(w,k,N){var D=w.state.foldGutter.options,A=k-1,_=w.foldOption(D,"minFoldSize"),L=w.foldOption(D,"rangeFinder"),V=typeof D.indicatorFolded=="string"&&d(D.indicatorFolded),P=typeof D.indicatorOpen=="string"&&d(D.indicatorOpen);w.eachLine(k,N,function(F){++A;var j=null,$=F.gutterMarkers;if($&&($=$[D.gutter]),l(w,A)){if(V&&$&&V.test($.className))return;j=c(D.indicatorFolded)}else{var X=r(A,0),J=L&&L(w,X);if(J&&J.to.line-J.from.line>=_){if(P&&$&&P.test($.className))return;j=c(D.indicatorOpen)}}!j&&!$||w.setGutterMarker(F,D.gutter,j)})}Mi(p,"updateFoldInfo");function d(w){return new RegExp("(^|\\s)"+w+"(?:$|\\s)\\s*")}Mi(d,"classTest");function m(w){var k=w.getViewport(),N=w.state.foldGutter;N&&(w.operation(function(){p(w,k.from,k.to)}),N.from=k.from,N.to=k.to)}Mi(m,"updateInViewport");function E(w,k,N){var D=w.state.foldGutter;if(D){var A=D.options;if(N==A.gutter){var _=l(w,k);_?_.clear():w.foldCode(r(k,0),A)}}}Mi(E,"onGutterClick");function b(w){var k=w.state.foldGutter;if(k){var N=k.options;k.from=k.to=0,clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){m(w)},N.foldOnChangeTimeSpan||600)}}Mi(b,"onChange");function y(w){var k=w.state.foldGutter;if(k){var N=k.options;clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){var D=w.getViewport();k.from==k.to||D.from-k.to>20||k.from-D.to>20?m(w):w.operation(function(){D.from<k.from&&(p(w,D.from,k.from),k.from=D.from),D.to>k.to&&(p(w,k.to,D.to),k.to=D.to)})},N.updateViewportTimeSpan||400)}}Mi(y,"onViewportChange");function x(w,k){var N=w.state.foldGutter;if(N){var D=k.line;D>=N.from&&D<N.to&&p(w,D,D+1)}}Mi(x,"onFold")})}();var XP=pre.exports;const ZP=Object.freeze(Object.defineProperty({__proto__:null,f:WP({__proto__:null,default:fo(XP)},[XP])},Symbol.toStringTag,{value:"Module"}));var mre=Object.defineProperty,qr=(e,t)=>mre(e,"name",{value:t,configurable:!0});function JP(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"}))}qr(JP,"_mergeNamespaces");var gre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(P,F,j){var $=document.createElement("div");$.className="CodeMirror-lint-tooltip cm-s-"+P.options.theme,$.appendChild(j.cloneNode(!0)),P.state.lint.options.selfContain?P.getWrapperElement().appendChild($):document.body.appendChild($);function X(J){if(!$.parentNode)return n.off(document,"mousemove",X);$.style.top=Math.max(0,J.clientY-$.offsetHeight-5)+"px",$.style.left=J.clientX+5+"px"}return qr(X,"position"),n.on(document,"mousemove",X),X(F),$.style.opacity!=null&&($.style.opacity=1),$}qr(o,"showTooltip");function l(P){P.parentNode&&P.parentNode.removeChild(P)}qr(l,"rm");function c(P){P.parentNode&&(P.style.opacity==null&&l(P),P.style.opacity=0,setTimeout(function(){l(P)},600))}qr(c,"hideTooltip");function p(P,F,j,$){var X=o(P,F,j);function J(){n.off($,"mouseout",J),X&&(c(X),X=null)}qr(J,"hide");var ee=setInterval(function(){if(X)for(var K=$;;K=K.parentNode){if(K&&K.nodeType==11&&(K=K.host),K==document.body)return;if(!K){J();break}}if(!X)return clearInterval(ee)},400);n.on($,"mouseout",J)}qr(p,"showTooltipFor");function d(P,F,j){this.marked=[],F instanceof Function&&(F={getAnnotations:F}),(!F||F===!0)&&(F={}),this.options={},this.linterOptions=F.options||{};for(var $ in m)this.options[$]=m[$];for(var $ in F)m.hasOwnProperty($)?F[$]!=null&&(this.options[$]=F[$]):F.options||(this.linterOptions[$]=F[$]);this.timeout=null,this.hasGutter=j,this.onMouseOver=function(X){V(P,X)},this.waitingFor=0}qr(d,"LintState");var m={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function E(P){var F=P.state.lint;F.hasGutter&&P.clearGutter(r),F.options.highlightLines&&b(P);for(var j=0;j<F.marked.length;++j)F.marked[j].clear();F.marked.length=0}qr(E,"clearMarks");function b(P){P.eachLine(function(F){var j=F.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(F.wrapClass);j&&P.removeLineClass(F,"wrap",j[0])})}qr(b,"clearErrorLines");function y(P,F,j,$,X){var J=document.createElement("div"),ee=J;return J.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+j,$&&(ee=J.appendChild(document.createElement("div")),ee.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),X!=!1&&n.on(ee,"mouseover",function(K){p(P,K,F,ee)}),J}qr(y,"makeMarker");function x(P,F){return P=="error"?P:F}qr(x,"getMaxSeverity");function w(P){for(var F=[],j=0;j<P.length;++j){var $=P[j],X=$.from.line;(F[X]||(F[X]=[])).push($)}return F}qr(w,"groupByLine");function k(P){var F=P.severity;F||(F="error");var j=document.createElement("div");return j.className="CodeMirror-lint-message CodeMirror-lint-message-"+F,typeof P.messageHTML<"u"?j.innerHTML=P.messageHTML:j.appendChild(document.createTextNode(P.message)),j}qr(k,"annotationTooltip");function N(P,F){var j=P.state.lint,$=++j.waitingFor;function X(){$=-1,P.off("change",X)}qr(X,"abort"),P.on("change",X),F(P.getValue(),function(J,ee){P.off("change",X),j.waitingFor==$&&(ee&&J instanceof n&&(J=ee),P.operation(function(){A(P,J)}))},j.linterOptions,P)}qr(N,"lintAsync");function D(P){var F=P.state.lint;if(F){var j=F.options,$=j.getAnnotations||P.getHelper(n.Pos(0,0),"lint");if($)if(j.async||$.async)N(P,$);else{var X=$(P.getValue(),F.linterOptions,P);if(!X)return;X.then?X.then(function(J){P.operation(function(){A(P,J)})}):P.operation(function(){A(P,X)})}}}qr(D,"startLinting");function A(P,F){var j=P.state.lint;if(j){var $=j.options;E(P);for(var X=w(F),J=0;J<X.length;++J){var ee=X[J];if(ee){var K=[];ee=ee.filter(function(Z){return K.indexOf(Z.message)>-1?!1:K.push(Z.message)});for(var B=null,ne=j.hasGutter&&document.createDocumentFragment(),re=0;re<ee.length;++re){var se=ee[re],fe=se.severity;fe||(fe="error"),B=x(B,fe),$.formatAnnotation&&(se=$.formatAnnotation(se)),j.hasGutter&&ne.appendChild(k(se)),se.to&&j.marked.push(P.markText(se.from,se.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+fe,__annotation:se}))}j.hasGutter&&P.setGutterMarker(J,r,y(P,ne,B,X[J].length>1,$.tooltips)),$.highlightLines&&P.addLineClass(J,"wrap",i+B)}}$.onUpdateLinting&&$.onUpdateLinting(F,X,P)}}qr(A,"updateLinting");function _(P){var F=P.state.lint;F&&(clearTimeout(F.timeout),F.timeout=setTimeout(function(){D(P)},F.options.delay))}qr(_,"onChange");function L(P,F,j){for(var $=j.target||j.srcElement,X=document.createDocumentFragment(),J=0;J<F.length;J++){var ee=F[J];X.appendChild(k(ee))}p(P,j,X,$)}qr(L,"popupTooltips");function V(P,F){var j=F.target||F.srcElement;if(/\bCodeMirror-lint-mark-/.test(j.className)){for(var $=j.getBoundingClientRect(),X=($.left+$.right)/2,J=($.top+$.bottom)/2,ee=P.findMarksAt(P.coordsChar({left:X,top:J},"client")),K=[],B=0;B<ee.length;++B){var ne=ee[B].__annotation;ne&&K.push(ne)}K.length&&L(P,K,F)}}qr(V,"onMouseOver"),n.defineOption("lint",!1,function(P,F,j){if(j&&j!=n.Init&&(E(P),P.state.lint.options.lintOnChange!==!1&&P.off("change",_),n.off(P.getWrapperElement(),"mouseover",P.state.lint.onMouseOver),clearTimeout(P.state.lint.timeout),delete P.state.lint),F){for(var $=P.getOption("gutters"),X=!1,J=0;J<$.length;++J)$[J]==r&&(X=!0);var ee=P.state.lint=new d(P,F,X);ee.options.lintOnChange&&P.on("change",_),ee.options.tooltips!=!1&&ee.options.tooltips!="gutter"&&n.on(P.getWrapperElement(),"mouseover",ee.onMouseOver),D(P)}}),n.defineExtension("performLint",function(){D(this)})})})();var e4=gre.exports;const vre=Object.freeze(Object.defineProperty({__proto__:null,l:JP({__proto__:null,default:fo(e4)},[e4])},Symbol.toStringTag,{value:"Module"}));var yre=Object.defineProperty,Li=(e,t)=>yre(e,"name",{value:t,configurable:!0}),bre={exports:{}},t4;function t1(){return t4||(t4=1,function(e,t){(function(n){n(Qi())})(function(n){var r=n.Pos;function i(D){var A=D.flags;return A??(D.ignoreCase?"i":"")+(D.global?"g":"")+(D.multiline?"m":"")}Li(i,"regexpFlags");function o(D,A){for(var _=i(D),L=_,V=0;V<A.length;V++)L.indexOf(A.charAt(V))==-1&&(L+=A.charAt(V));return _==L?D:new RegExp(D.source,L)}Li(o,"ensureFlags");function l(D){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(D.source)}Li(l,"maybeMultiline");function c(D,A,_){A=o(A,"g");for(var L=_.line,V=_.ch,P=D.lastLine();L<=P;L++,V=0){A.lastIndex=V;var F=D.getLine(L),j=A.exec(F);if(j)return{from:r(L,j.index),to:r(L,j.index+j[0].length),match:j}}}Li(c,"searchRegexpForward");function p(D,A,_){if(!l(A))return c(D,A,_);A=o(A,"gm");for(var L,V=1,P=_.line,F=D.lastLine();P<=F;){for(var j=0;j<V&&!(P>F);j++){var $=D.getLine(P++);L=L==null?$:L+`
488
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var le;m&&(le=window.scrollY),g.input.focus(),m&&window.scrollTo(null,le),g.input.reset(),v.somethingSelected()||(T.value=f.prevInput=" "),f.contextMenuPending=me,g.selForContextMenu=v.doc.sel,clearTimeout(g.detectingSelectAll);function ye(){if(T.selectionStart!=null){var Ve=v.somethingSelected(),Ke="​"+(Ve?T.value:"");T.value="⇚",T.value=Ke,f.prevInput=Ve?"":"​",T.selectionStart=1,T.selectionEnd=Ke.length,g.selForContextMenu=v.doc.sel}}z(ye,"prepareSelectAllHack");function me(){if(f.contextMenuPending==me&&(f.contextMenuPending=!1,f.wrapper.style.cssText=H,T.style.cssText=q,p&&d<9&&g.scrollbars.setScrollTop(g.scroller.scrollTop=I),T.selectionStart!=null)){(!p||p&&d<9)&&ye();var Ve=0,Ke=z(function(){g.selForContextMenu==v.doc.sel&&T.selectionStart==0&&T.selectionEnd>0&&f.prevInput=="​"?Sr(v,bd)(v):Ve++<10?g.detectingSelectAll=setTimeout(Ke,500):(g.selForContextMenu=null,g.input.reset())},"poll");g.detectingSelectAll=setTimeout(Ke,200)}}if(z(me,"rehide"),p&&d>=9&&ye(),j){Bt(s);var we=z(function(){vn(window,"mouseup",we),setTimeout(me,20)},"mouseup");ot(window,"mouseup",we)}else setTimeout(me,50)},mr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},mr.prototype.setUneditable=function(){},mr.prototype.needsContentAttribute=!1;function Rh(s,f){if(f=f?pe(f):{},f.value=s.value,!f.tabindex&&s.tabIndex&&(f.tabindex=s.tabIndex),!f.placeholder&&s.placeholder&&(f.placeholder=s.placeholder),f.autofocus==null){var v=se();f.autofocus=v==s||s.getAttribute("autofocus")!=null&&v==document.body}function g(){s.value=U.getValue()}z(g,"save");var T;if(s.form&&(ot(s.form,"submit",g),!f.leaveSubmitMethodAlone)){var O=s.form;T=O.submit;try{var I=O.submit=function(){g(),O.submit=T,O.submit(),O.submit=I}}catch{}}f.finishInit=function(q){q.save=g,q.getTextArea=function(){return s},q.toTextArea=function(){q.toTextArea=isNaN,g(),s.parentNode.removeChild(q.getWrapperElement()),s.style.display="",s.form&&(vn(s.form,"submit",g),!f.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=T))}},s.style.display="none";var U=Mn(function(q){return s.parentNode.insertBefore(q,s.nextSibling)},f);return U}z(Rh,"fromTextArea");function Mh(s){s.off=vn,s.on=ot,s.wheelEventPixels=rv,s.Doc=Ci,s.splitLines=Ii,s.countColumn=ce,s.findColumn=at,s.isWordChar=Ye,s.Pass=Ge,s.signal=mt,s.Line=hc,s.changeEnd=ja,s.scrollbarModel=dr,s.Pos=ze,s.cmpPos=W,s.modes=Bn,s.mimeModes=Lr,s.resolveMode=Oo,s.getMode=po,s.modeExtensions=Rn,s.extendMode=Zi,s.copyState=Pi,s.startState=Do,s.innerMode=ho,s.commands=Tu,s.keyMap=$a,s.keyName=wd,s.isModifierKey=gh,s.lookupKey=Tl,s.normalizeKeyMap=vv,s.StringStream=nr,s.SharedTextMarker=jc,s.TextMarker=ks,s.LineWidget=bu,s.e_preventDefault=An,s.e_stopPropagation=Xi,s.e_stop=Bt,s.addClass=fe,s.contains=re,s.rmClass=X,s.keyNames=sa}z(Mh,"addLegacyProps"),wv(Mn),ei(Mn);var Dv="iter insert remove copy getEditor constructor".split(" ");for(var Rd in Ci.prototype)Ci.prototype.hasOwnProperty(Rd)&&Se(Dv,Rd)<0&&(Mn.prototype[Rd]=(function(s){return function(){return s.apply(this.doc,arguments)}})(Ci.prototype[Rd]));return Mr(Ci),Mn.inputStyles={textarea:mr,contenteditable:Cn},Mn.defineMode=function(s){!Mn.defaults.mode&&s!="null"&&(Mn.defaults.mode=s),Fi.apply(this,arguments)},Mn.defineMIME=$r,Mn.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Mn.defineMIME("text/plain","null"),Mn.defineExtension=function(s,f){Mn.prototype[s]=f},Mn.defineDocExtension=function(s,f){Ci.prototype[s]=f},Mn.fromTextArea=Rh,Mh(Mn),Mn.version="5.65.3",Mn})})(LP)),LP.exports}z(Qi,"requireCodemirror");var Kne=Object.defineProperty,Xne=(e,t)=>Kne(e,"name",{value:t,configurable:!0});function FP(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"}))}Xne(FP,"_mergeNamespaces");var PP=Qi();const qt=fo(PP),Zne=Object.freeze(Object.defineProperty({__proto__:null,C:qt,c:FP({__proto__:null,default:qt},[PP])},Symbol.toStringTag,{value:"Module"}));var Jne=Object.defineProperty,_o=(e,t)=>Jne(e,"name",{value:t,configurable:!0});function jP(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"}))}_o(jP,"_mergeNamespaces");var ere={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r="CodeMirror-hint",i="CodeMirror-hint-active";n.showHint=function(N,D,A){if(!D)return N.showHint(A);A&&A.async&&(D.async=!0);var _={hint:D};if(A)for(var L in A)_[L]=A[L];return N.showHint(_)},n.defineExtension("showHint",function(N){N=p(this,this.getCursor("start"),N);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var _=this.state.completionActive=new o(this,N);_.options.hint&&(n.signal(this,"startCompletion",this),_.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function o(N,D){if(this.cm=N,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;N.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}_o(o,"Completion");var l=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;o.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(N,D){var A=N.list[D],_=this;this.cm.operation(function(){A.hint?A.hint(_.cm,N,A):_.cm.replaceRange(d(A),A.from||N.from,A.to||N.to,"complete"),n.signal(N,"pick",A),_.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<N.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var _=this;this.debounce=l(function(){_.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var D=this,A=++this.tick;x(this.options.hint,this.cm,this.options,function(_){D.tick==A&&D.finishUpdate(_,N)})}},finishUpdate:function(N,D){this.data&&n.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(A&&N.list.length==1?this.pick(N,0):(this.widget=new b(this,N),n.signal(N,"shown")))}};function p(N,D,A){var _=N.options.hintOptions,L={};for(var V in k)L[V]=k[V];if(_)for(var V in _)_[V]!==void 0&&(L[V]=_[V]);if(A)for(var V in A)A[V]!==void 0&&(L[V]=A[V]);return L.hint.resolve&&(L.hint=L.hint.resolve(N,D)),L}_o(p,"parseOptions");function d(N){return typeof N=="string"?N:N.text}_o(d,"getText");function m(N,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},_=/Mac/.test(navigator.platform);_&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var L=N.options.customKeys,V=L?{}:A;function P($,X){var J;typeof X!="string"?J=_o(function(ee){return X(ee,D)},"bound"):A.hasOwnProperty(X)?J=A[X]:J=X,V[$]=J}if(_o(P,"addBinding"),L)for(var F in L)L.hasOwnProperty(F)&&P(F,L[F]);var j=N.options.extraKeys;if(j)for(var F in j)j.hasOwnProperty(F)&&P(F,j[F]);return V}_o(m,"buildKeyMap");function E(N,D){for(;D&&D!=N;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==N)return D;D=D.parentNode}}_o(E,"getHintElement");function b(N,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=D,this.picked=!1;var A=this,_=N.cm,L=_.getInputField().ownerDocument,V=L.defaultView||L.parentWindow,P=this.hints=L.createElement("ul");P.setAttribute("role","listbox"),P.setAttribute("aria-expanded","true"),P.id=this.id;var F=N.cm.options.theme;P.className="CodeMirror-hints "+F,this.selectedHint=D.selectedHint||0;for(var j=D.list,$=0;$<j.length;++$){var X=P.appendChild(L.createElement("li")),J=j[$],ee=r+($!=this.selectedHint?"":" "+i);J.className!=null&&(ee=J.className+" "+ee),X.className=ee,$==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+$,X.setAttribute("role","option"),J.render?J.render(X,D,J):X.appendChild(L.createTextNode(J.displayText||d(J))),X.hintId=$}var K=N.options.container||L.body,B=_.cursorCoords(N.options.alignWithWord?D.from:null),ne=B.left,re=B.bottom,se=!0,fe=0,Z=0;if(K!==L.body){var ge=["absolute","relative","fixed"].indexOf(V.getComputedStyle(K).position)!==-1,ae=ge?K:K.offsetParent,pe=ae.getBoundingClientRect(),ce=L.body.getBoundingClientRect();fe=pe.left-ce.left-ae.scrollLeft,Z=pe.top-ce.top-ae.scrollTop}P.style.left=ne-fe+"px",P.style.top=re-Z+"px";var he=V.innerWidth||Math.max(L.body.offsetWidth,L.documentElement.offsetWidth),Se=V.innerHeight||Math.max(L.body.offsetHeight,L.documentElement.offsetHeight);K.appendChild(P),_.getInputField().setAttribute("aria-autocomplete","list"),_.getInputField().setAttribute("aria-owns",this.id),_.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Ie=N.options.moveOnOverlap?P.getBoundingClientRect():new DOMRect,Ge=N.options.paddingForScrollbar?P.scrollHeight>P.clientHeight+1:!1,Ze;setTimeout(function(){Ze=_.getScrollInfo()});var It=Ie.bottom-Se;if(It>0){var vt=Ie.bottom-Ie.top,at=B.top-(B.bottom-Ie.top);if(at-vt>0)P.style.top=(re=B.top-vt-Z)+"px",se=!1;else if(vt>Se){P.style.height=Se-5+"px",P.style.top=(re=B.bottom-Ie.top-Z)+"px";var Oe=_.getCursor();D.from.ch!=Oe.ch&&(B=_.cursorCoords(Oe),P.style.left=(ne=B.left-fe)+"px",Ie=P.getBoundingClientRect())}}var be=Ie.right-he;if(Ge&&(be+=_.display.nativeBarWidth),be>0&&(Ie.right-Ie.left>he&&(P.style.width=he-5+"px",be-=Ie.right-Ie.left-he),P.style.left=(ne=B.left-be-fe)+"px"),Ge)for(var Le=P.firstChild;Le;Le=Le.nextSibling)Le.style.paddingRight=_.display.nativeBarWidth+"px";if(_.addKeyMap(this.keyMap=m(N,{moveFocus:function(je,et){A.changeActive(A.selectedHint+je,et)},setFocus:function(je){A.changeActive(je)},menuSize:function(){return A.screenAmount()},length:j.length,close:function(){N.close()},pick:function(){A.pick()},data:D})),N.options.closeOnUnfocus){var Ee;_.on("blur",this.onBlur=function(){Ee=setTimeout(function(){N.close()},100)}),_.on("focus",this.onFocus=function(){clearTimeout(Ee)})}_.on("scroll",this.onScroll=function(){var je=_.getScrollInfo(),et=_.getWrapperElement().getBoundingClientRect();Ze||(Ze=_.getScrollInfo());var ct=re+Ze.top-je.top,Ye=ct-(V.pageYOffset||(L.documentElement||L.body).scrollTop);if(se||(Ye+=P.offsetHeight),Ye<=et.top||Ye>=et.bottom)return N.close();P.style.top=ct+"px",P.style.left=ne+Ze.left-je.left+"px"}),n.on(P,"dblclick",function(je){var et=E(P,je.target||je.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),n.on(P,"click",function(je){var et=E(P,je.target||je.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),N.options.completeOnSingleClick&&A.pick())}),n.on(P,"mousedown",function(){setTimeout(function(){_.focus()},20)});var oe=this.getSelectedHintRange();return(oe.from!==0||oe.to!==0)&&this.scrollToActive(),n.signal(D,"select",j[this.selectedHint],P.childNodes[this.selectedHint]),!0}_o(b,"Widget"),b.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,D){if(N>=this.data.list.length?N=D?this.data.list.length-1:0:N<0&&(N=D?0:this.data.list.length-1),this.selectedHint!=N){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+i,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=N],A.className+=" "+i,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var N=this.getSelectedHintRange(),D=this.hints.childNodes[N.from],A=this.hints.childNodes[N.to],_=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-_.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+_.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function y(N,D){if(!N.somethingSelected())return D;for(var A=[],_=0;_<D.length;_++)D[_].supportsSelection&&A.push(D[_]);return A}_o(y,"applicableHelpers");function x(N,D,A,_){if(N.async)N(D,_,A);else{var L=N(D,A);L&&L.then?L.then(_):_(L)}}_o(x,"fetchHints");function w(N,D){var A=N.getHelpers(D,"hint"),_;if(A.length){var L=_o(function(V,P,F){var j=y(V,A);function $(X){if(X==j.length)return P(null);x(j[X],V,F,function(J){J&&J.list.length>0?P(J):$(X+1)})}_o($,"run"),$(0)},"resolved");return L.async=!0,L.supportsSelection=!0,L}else return(_=N.getHelper(N.getCursor(),"hintWords"))?function(V){return n.hint.fromList(V,{words:_})}:n.hint.anyword?function(V,P){return n.hint.anyword(V,P)}:function(){}}_o(w,"resolveAutoHints"),n.registerHelper("hint","auto",{resolve:w}),n.registerHelper("hint","fromList",function(N,D){var A=N.getCursor(),_=N.getTokenAt(A),L,V=n.Pos(A.line,_.start),P=A;_.start<A.ch&&/\w/.test(_.string.charAt(A.ch-_.start-1))?L=_.string.substr(0,A.ch-_.start):(L="",V=A);for(var F=[],j=0;j<D.words.length;j++){var $=D.words[j];$.slice(0,L.length)==L&&F.push($)}if(F.length)return{list:F,from:V,to:P}}),n.commands.autocomplete=n.showHint;var k={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})})();var VP=ere.exports;const tre=Object.freeze(Object.defineProperty({__proto__:null,s:jP({__proto__:null,default:fo(VP)},[VP])},Symbol.toStringTag,{value:"Module"}));var nre=Object.defineProperty,ac=(e,t)=>nre(e,"name",{value:t,configurable:!0}),rre={exports:{}},UP;function HC(){return UP||(UP=1,(function(e,t){(function(n){n(Qi())})(function(n){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=n.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function l(b){return b&&b.bracketRegex||/[(){}[\]]/}ac(l,"bracketRegex");function c(b,y,x){var w=b.getLineHandle(y.line),k=y.ch-1,N=x&&x.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(b.getWrapperElement().className));var D=l(x),A=!N&&k>=0&&D.test(w.text.charAt(k))&&o[w.text.charAt(k)]||D.test(w.text.charAt(k+1))&&o[w.text.charAt(++k)];if(!A)return null;var _=A.charAt(1)==">"?1:-1;if(x&&x.strict&&_>0!=(k==y.ch))return null;var L=b.getTokenTypeAt(i(y.line,k+1)),V=p(b,i(y.line,k+(_>0?1:0)),_,L,x);return V==null?null:{from:i(y.line,k),to:V&&V.pos,match:V&&V.ch==A.charAt(0),forward:_>0}}ac(c,"findMatchingBracket");function p(b,y,x,w,k){for(var N=k&&k.maxScanLineLength||1e4,D=k&&k.maxScanLines||1e3,A=[],_=l(k),L=x>0?Math.min(y.line+D,b.lastLine()+1):Math.max(b.firstLine()-1,y.line-D),V=y.line;V!=L;V+=x){var P=b.getLine(V);if(P){var F=x>0?0:P.length-1,j=x>0?P.length:-1;if(!(P.length>N))for(V==y.line&&(F=y.ch-(x<0?1:0));F!=j;F+=x){var $=P.charAt(F);if(_.test($)&&(w===void 0||(b.getTokenTypeAt(i(V,F+1))||"")==(w||""))){var X=o[$];if(X&&X.charAt(1)==">"==x>0)A.push($);else if(A.length)A.pop();else return{pos:i(V,F),ch:$}}}}}return V-x==(x>0?b.lastLine():b.firstLine())?!1:null}ac(p,"scanForBracket");function d(b,y,x){for(var w=b.state.matchBrackets.maxHighlightLineLength||1e3,k=x&&x.highlightNonMatching,N=[],D=b.listSelections(),A=0;A<D.length;A++){var _=D[A].empty()&&c(b,D[A].head,x);if(_&&(_.match||k!==!1)&&b.getLine(_.from.line).length<=w){var L=_.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(b.markText(_.from,i(_.from.line,_.from.ch+1),{className:L})),_.to&&b.getLine(_.to.line).length<=w&&N.push(b.markText(_.to,i(_.to.line,_.to.ch+1),{className:L}))}}if(N.length){r&&b.state.focused&&b.focus();var V=ac(function(){b.operation(function(){for(var P=0;P<N.length;P++)N[P].clear()})},"clear");if(y)setTimeout(V,800);else return V}}ac(d,"matchBrackets");function m(b){b.operation(function(){b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null),b.state.matchBrackets.currentlyHighlighted=d(b,!1,b.state.matchBrackets)})}ac(m,"doMatchBrackets");function E(b){b.state.matchBrackets&&b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null)}ac(E,"clearHighlighted"),n.defineOption("matchBrackets",!1,function(b,y,x){x&&x!=n.Init&&(b.off("cursorActivity",m),b.off("focus",m),b.off("blur",E),E(b)),y&&(b.state.matchBrackets=typeof y=="object"?y:{},b.on("cursorActivity",m),b.on("focus",m),b.on("blur",E))}),n.defineExtension("matchBrackets",function(){d(this,!0)}),n.defineExtension("findMatchingBracket",function(b,y,x){return(x||typeof y=="boolean")&&(x?(x.strict=y,y=x):y=y?{strict:!0}:null),c(this,b,y)}),n.defineExtension("scanForBracket",function(b,y,x,w){return p(this,b,y,x,w)})})})()),rre.exports}ac(HC,"requireMatchbrackets");var ire=Object.defineProperty,ore=(e,t)=>ire(e,"name",{value:t,configurable:!0});function qP(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"}))}ore(qP,"_mergeNamespaces");var BP=HC();const are=Object.freeze(Object.defineProperty({__proto__:null,m:qP({__proto__:null,default:fo(BP)},[BP])},Symbol.toStringTag,{value:"Module"}));var sre=Object.defineProperty,Aa=(e,t)=>sre(e,"name",{value:t,configurable:!0});function $P(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"}))}Aa($P,"_mergeNamespaces");var lre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=n.Pos;n.defineOption("autoCloseBrackets",!1,function(N,D,A){A&&A!=n.Init&&(N.removeKeyMap(l),N.state.closeBrackets=null),D&&(c(o(D,"pairs")),N.state.closeBrackets=D,N.addKeyMap(l))});function o(N,D){return D=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[D]!=null?N[D]:r[D]}Aa(o,"getOption");var l={Backspace:m,Enter:E};function c(N){for(var D=0;D<N.length;D++){var A=N.charAt(D),_="'"+A+"'";l[_]||(l[_]=p(A))}}Aa(c,"ensureBound"),c(r.pairs+"`");function p(N){return function(D){return x(D,N)}}Aa(p,"handler");function d(N){var D=N.state.closeBrackets;if(!D||D.override)return D;var A=N.getModeAt(N.getCursor());return A.closeBrackets||D}Aa(d,"getConfig");function m(N){var D=d(N);if(!D||N.getOption("disableInput"))return n.Pass;for(var A=o(D,"pairs"),_=N.listSelections(),L=0;L<_.length;L++){if(!_[L].empty())return n.Pass;var V=w(N,_[L].head);if(!V||A.indexOf(V)%2!=0)return n.Pass}for(var L=_.length-1;L>=0;L--){var P=_[L].head;N.replaceRange("",i(P.line,P.ch-1),i(P.line,P.ch+1),"+delete")}}Aa(m,"handleBackspace");function E(N){var D=d(N),A=D&&o(D,"explode");if(!A||N.getOption("disableInput"))return n.Pass;for(var _=N.listSelections(),L=0;L<_.length;L++){if(!_[L].empty())return n.Pass;var V=w(N,_[L].head);if(!V||A.indexOf(V)%2!=0)return n.Pass}N.operation(function(){var P=N.lineSeparator()||`
489
+ `;N.replaceSelection(P+P,null),b(N,-1),_=N.listSelections();for(var F=0;F<_.length;F++){var j=_[F].head.line;N.indentLine(j,null,!0),N.indentLine(j+1,null,!0)}})}Aa(E,"handleEnter");function b(N,D){for(var A=[],_=N.listSelections(),L=0,V=0;V<_.length;V++){var P=_[V];P.head==N.getCursor()&&(L=V);var F=P.head.ch||D>0?{line:P.head.line,ch:P.head.ch+D}:{line:P.head.line-1};A.push({anchor:F,head:F})}N.setSelections(A,L)}Aa(b,"moveSel");function y(N){var D=n.cmpPos(N.anchor,N.head)>0;return{anchor:new i(N.anchor.line,N.anchor.ch+(D?-1:1)),head:new i(N.head.line,N.head.ch+(D?1:-1))}}Aa(y,"contractSelection");function x(N,D){var A=d(N);if(!A||N.getOption("disableInput"))return n.Pass;var _=o(A,"pairs"),L=_.indexOf(D);if(L==-1)return n.Pass;for(var V=o(A,"closeBefore"),P=o(A,"triples"),F=_.charAt(L+1)==D,j=N.listSelections(),$=L%2==0,X,J=0;J<j.length;J++){var ee=j[J],K=ee.head,B,ne=N.getRange(K,i(K.line,K.ch+1));if($&&!ee.empty())B="surround";else if((F||!$)&&ne==D)F&&k(N,K)?B="both":P.indexOf(D)>=0&&N.getRange(K,i(K.line,K.ch+3))==D+D+D?B="skipThree":B="skip";else if(F&&K.ch>1&&P.indexOf(D)>=0&&N.getRange(i(K.line,K.ch-2),K)==D+D){if(K.ch>2&&/\bstring/.test(N.getTokenTypeAt(i(K.line,K.ch-2))))return n.Pass;B="addFour"}else if(F){var re=K.ch==0?" ":N.getRange(i(K.line,K.ch-1),K);if(!n.isWordChar(ne)&&re!=D&&!n.isWordChar(re))B="both";else return n.Pass}else if($&&(ne.length===0||/\s/.test(ne)||V.indexOf(ne)>-1))B="both";else return n.Pass;if(!X)X=B;else if(X!=B)return n.Pass}var se=L%2?_.charAt(L-1):D,fe=L%2?D:_.charAt(L+1);N.operation(function(){if(X=="skip")b(N,1);else if(X=="skipThree")b(N,3);else if(X=="surround"){for(var Z=N.getSelections(),ge=0;ge<Z.length;ge++)Z[ge]=se+Z[ge]+fe;N.replaceSelections(Z,"around"),Z=N.listSelections().slice();for(var ge=0;ge<Z.length;ge++)Z[ge]=y(Z[ge]);N.setSelections(Z)}else X=="both"?(N.replaceSelection(se+fe,null),N.triggerElectric(se+fe),b(N,-1)):X=="addFour"&&(N.replaceSelection(se+se+se+se,"before"),b(N,1))})}Aa(x,"handleChar");function w(N,D){var A=N.getRange(i(D.line,D.ch-1),i(D.line,D.ch+1));return A.length==2?A:null}Aa(w,"charsAround");function k(N,D){var A=N.getTokenAt(i(D.line,D.ch+1));return/\bstring/.test(A.type)&&A.start==D.ch&&(D.ch==0||!/\bstring/.test(N.getTokenTypeAt(D)))}Aa(k,"stringStartsAfter")})})();var zP=lre.exports;const ure=Object.freeze(Object.defineProperty({__proto__:null,c:$P({__proto__:null,default:fo(zP)},[zP])},Symbol.toStringTag,{value:"Module"}));var cre=Object.defineProperty,Op=(e,t)=>cre(e,"name",{value:t,configurable:!0});function HP(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"}))}Op(HP,"_mergeNamespaces");var fre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){function r(i){return function(o,l){var c=l.line,p=o.getLine(c);function d(w){for(var k,N=l.ch,D=0;;){var A=N<=0?-1:p.lastIndexOf(w[0],N-1);if(A==-1){if(D==1)break;D=1,N=p.length;continue}if(D==1&&A<l.ch)break;if(k=o.getTokenTypeAt(n.Pos(c,A+1)),!/^(comment|string)/.test(k))return{ch:A+1,tokenType:k,pair:w};N=A-1}}Op(d,"findOpening");function m(w){var k=1,N=o.lastLine(),D,A=w.ch,_;e:for(var L=c;L<=N;++L)for(var V=o.getLine(L),P=L==c?A:0;;){var F=V.indexOf(w.pair[0],P),j=V.indexOf(w.pair[1],P);if(F<0&&(F=V.length),j<0&&(j=V.length),P=Math.min(F,j),P==V.length)break;if(o.getTokenTypeAt(n.Pos(L,P+1))==w.tokenType){if(P==F)++k;else if(!--k){D=L,_=P;break e}}++P}return D==null||c==D?null:{from:n.Pos(c,A),to:n.Pos(D,_)}}Op(m,"findRange");for(var E=[],b=0;b<i.length;b++){var y=d(i[b]);y&&E.push(y)}E.sort(function(w,k){return w.ch-k.ch});for(var b=0;b<E.length;b++){var x=m(E[b]);if(x)return x}return null}}Op(r,"bracketFolding"),n.registerHelper("fold","brace",r([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(i,o){function l(b){if(b<i.firstLine()||b>i.lastLine())return null;var y=i.getTokenAt(n.Pos(b,1));if(/\S/.test(y.string)||(y=i.getTokenAt(n.Pos(b,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var x=b,w=Math.min(i.lastLine(),b+10);x<=w;++x){var k=i.getLine(x),N=k.indexOf(";");if(N!=-1)return{startCh:y.end,end:n.Pos(x,N)}}}Op(l,"hasImport");var c=o.line,p=l(c),d;if(!p||l(c-1)||(d=l(c-2))&&d.end.line==c-1)return null;for(var m=p.end;;){var E=l(m.line+1);if(E==null)break;m=E.end}return{from:i.clipPos(n.Pos(c,p.startCh+1)),to:m}}),n.registerHelper("fold","include",function(i,o){function l(E){if(E<i.firstLine()||E>i.lastLine())return null;var b=i.getTokenAt(n.Pos(E,1));if(/\S/.test(b.string)||(b=i.getTokenAt(n.Pos(E,b.end+1))),b.type=="meta"&&b.string.slice(0,8)=="#include")return b.start+8}Op(l,"hasInclude");var c=o.line,p=l(c);if(p==null||l(c-1)!=null)return null;for(var d=c;;){var m=l(d+1);if(m==null)break;++d}return{from:n.Pos(c,p+1),to:i.clipPos(n.Pos(d))}})})})();var GP=fre.exports;const YP=Object.freeze(Object.defineProperty({__proto__:null,b:HP({__proto__:null,default:fo(GP)},[GP])},Symbol.toStringTag,{value:"Module"}));var dre=Object.defineProperty,Mi=(e,t)=>dre(e,"name",{value:t,configurable:!0});function WP(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"}))}Mi(WP,"_mergeNamespaces");var pre={exports:{}},hre={exports:{}},QP;function KP(){return QP||(QP=1,(function(e,t){(function(n){n(Qi())})(function(n){function r(c,p,d,m){if(d&&d.call){var E=d;d=null}else var E=l(c,d,"rangeFinder");typeof p=="number"&&(p=n.Pos(p,0));var b=l(c,d,"minFoldSize");function y(N){var D=E(c,p);if(!D||D.to.line-D.from.line<b)return null;if(m==="fold")return D;for(var A=c.findMarksAt(D.from),_=0;_<A.length;++_)if(A[_].__isFold){if(!N)return null;D.cleared=!0,A[_].clear()}return D}Mi(y,"getRange");var x=y(!0);if(l(c,d,"scanUp"))for(;!x&&p.line>c.firstLine();)p=n.Pos(p.line-1,0),x=y(!1);if(!(!x||x.cleared||m==="unfold")){var w=i(c,d,x);n.on(w,"mousedown",function(N){k.clear(),n.e_preventDefault(N)});var k=c.markText(x.from,x.to,{replacedWith:w,clearOnEnter:l(c,d,"clearOnEnter"),__isFold:!0});k.on("clear",function(N,D){n.signal(c,"unfold",c,N,D)}),n.signal(c,"fold",c,x.from,x.to)}}Mi(r,"doFold");function i(c,p,d){var m=l(c,p,"widget");if(typeof m=="function"&&(m=m(d.from,d.to)),typeof m=="string"){var E=document.createTextNode(m);m=document.createElement("span"),m.appendChild(E),m.className="CodeMirror-foldmarker"}else m&&(m=m.cloneNode(!0));return m}Mi(i,"makeWidget"),n.newFoldFunction=function(c,p){return function(d,m){r(d,m,{rangeFinder:c,widget:p})}},n.defineExtension("foldCode",function(c,p,d){r(this,c,p,d)}),n.defineExtension("isFolded",function(c){for(var p=this.findMarksAt(c),d=0;d<p.length;++d)if(p[d].__isFold)return!0}),n.commands.toggleFold=function(c){c.foldCode(c.getCursor())},n.commands.fold=function(c){c.foldCode(c.getCursor(),null,"fold")},n.commands.unfold=function(c){c.foldCode(c.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var c=Array.prototype.slice.call(arguments,0);return function(p,d){for(var m=0;m<c.length;++m){var E=c[m](p,d);if(E)return E}}}),n.registerHelper("fold","auto",function(c,p){for(var d=c.getHelpers(p,"fold"),m=0;m<d.length;m++){var E=d[m](c,p);if(E)return E}});var o={rangeFinder:n.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function l(c,p,d){if(p&&p[d]!==void 0)return p[d];var m=c.options.foldOptions;return m&&m[d]!==void 0?m[d]:o[d]}Mi(l,"getOption"),n.defineExtension("foldOption",function(c,p){return l(this,c,p)})})})()),hre.exports}Mi(KP,"requireFoldcode"),(function(e,t){(function(n){n(Qi(),KP())})(function(n){n.defineOption("foldGutter",!1,function(w,k,N){N&&N!=n.Init&&(w.clearGutter(w.state.foldGutter.options.gutter),w.state.foldGutter=null,w.off("gutterClick",E),w.off("changes",b),w.off("viewportChange",y),w.off("fold",x),w.off("unfold",x),w.off("swapDoc",b)),k&&(w.state.foldGutter=new i(o(k)),m(w),w.on("gutterClick",E),w.on("changes",b),w.on("viewportChange",y),w.on("fold",x),w.on("unfold",x),w.on("swapDoc",b))});var r=n.Pos;function i(w){this.options=w,this.from=this.to=0}Mi(i,"State");function o(w){return w===!0&&(w={}),w.gutter==null&&(w.gutter="CodeMirror-foldgutter"),w.indicatorOpen==null&&(w.indicatorOpen="CodeMirror-foldgutter-open"),w.indicatorFolded==null&&(w.indicatorFolded="CodeMirror-foldgutter-folded"),w}Mi(o,"parseOptions");function l(w,k){for(var N=w.findMarks(r(k,0),r(k+1,0)),D=0;D<N.length;++D)if(N[D].__isFold){var A=N[D].find(-1);if(A&&A.line===k)return N[D]}}Mi(l,"isFolded");function c(w){if(typeof w=="string"){var k=document.createElement("div");return k.className=w+" CodeMirror-guttermarker-subtle",k}else return w.cloneNode(!0)}Mi(c,"marker");function p(w,k,N){var D=w.state.foldGutter.options,A=k-1,_=w.foldOption(D,"minFoldSize"),L=w.foldOption(D,"rangeFinder"),V=typeof D.indicatorFolded=="string"&&d(D.indicatorFolded),P=typeof D.indicatorOpen=="string"&&d(D.indicatorOpen);w.eachLine(k,N,function(F){++A;var j=null,$=F.gutterMarkers;if($&&($=$[D.gutter]),l(w,A)){if(V&&$&&V.test($.className))return;j=c(D.indicatorFolded)}else{var X=r(A,0),J=L&&L(w,X);if(J&&J.to.line-J.from.line>=_){if(P&&$&&P.test($.className))return;j=c(D.indicatorOpen)}}!j&&!$||w.setGutterMarker(F,D.gutter,j)})}Mi(p,"updateFoldInfo");function d(w){return new RegExp("(^|\\s)"+w+"(?:$|\\s)\\s*")}Mi(d,"classTest");function m(w){var k=w.getViewport(),N=w.state.foldGutter;N&&(w.operation(function(){p(w,k.from,k.to)}),N.from=k.from,N.to=k.to)}Mi(m,"updateInViewport");function E(w,k,N){var D=w.state.foldGutter;if(D){var A=D.options;if(N==A.gutter){var _=l(w,k);_?_.clear():w.foldCode(r(k,0),A)}}}Mi(E,"onGutterClick");function b(w){var k=w.state.foldGutter;if(k){var N=k.options;k.from=k.to=0,clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){m(w)},N.foldOnChangeTimeSpan||600)}}Mi(b,"onChange");function y(w){var k=w.state.foldGutter;if(k){var N=k.options;clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){var D=w.getViewport();k.from==k.to||D.from-k.to>20||k.from-D.to>20?m(w):w.operation(function(){D.from<k.from&&(p(w,D.from,k.from),k.from=D.from),D.to>k.to&&(p(w,k.to,D.to),k.to=D.to)})},N.updateViewportTimeSpan||400)}}Mi(y,"onViewportChange");function x(w,k){var N=w.state.foldGutter;if(N){var D=k.line;D>=N.from&&D<N.to&&p(w,D,D+1)}}Mi(x,"onFold")})})();var XP=pre.exports;const ZP=Object.freeze(Object.defineProperty({__proto__:null,f:WP({__proto__:null,default:fo(XP)},[XP])},Symbol.toStringTag,{value:"Module"}));var mre=Object.defineProperty,qr=(e,t)=>mre(e,"name",{value:t,configurable:!0});function JP(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"}))}qr(JP,"_mergeNamespaces");var gre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(P,F,j){var $=document.createElement("div");$.className="CodeMirror-lint-tooltip cm-s-"+P.options.theme,$.appendChild(j.cloneNode(!0)),P.state.lint.options.selfContain?P.getWrapperElement().appendChild($):document.body.appendChild($);function X(J){if(!$.parentNode)return n.off(document,"mousemove",X);$.style.top=Math.max(0,J.clientY-$.offsetHeight-5)+"px",$.style.left=J.clientX+5+"px"}return qr(X,"position"),n.on(document,"mousemove",X),X(F),$.style.opacity!=null&&($.style.opacity=1),$}qr(o,"showTooltip");function l(P){P.parentNode&&P.parentNode.removeChild(P)}qr(l,"rm");function c(P){P.parentNode&&(P.style.opacity==null&&l(P),P.style.opacity=0,setTimeout(function(){l(P)},600))}qr(c,"hideTooltip");function p(P,F,j,$){var X=o(P,F,j);function J(){n.off($,"mouseout",J),X&&(c(X),X=null)}qr(J,"hide");var ee=setInterval(function(){if(X)for(var K=$;;K=K.parentNode){if(K&&K.nodeType==11&&(K=K.host),K==document.body)return;if(!K){J();break}}if(!X)return clearInterval(ee)},400);n.on($,"mouseout",J)}qr(p,"showTooltipFor");function d(P,F,j){this.marked=[],F instanceof Function&&(F={getAnnotations:F}),(!F||F===!0)&&(F={}),this.options={},this.linterOptions=F.options||{};for(var $ in m)this.options[$]=m[$];for(var $ in F)m.hasOwnProperty($)?F[$]!=null&&(this.options[$]=F[$]):F.options||(this.linterOptions[$]=F[$]);this.timeout=null,this.hasGutter=j,this.onMouseOver=function(X){V(P,X)},this.waitingFor=0}qr(d,"LintState");var m={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function E(P){var F=P.state.lint;F.hasGutter&&P.clearGutter(r),F.options.highlightLines&&b(P);for(var j=0;j<F.marked.length;++j)F.marked[j].clear();F.marked.length=0}qr(E,"clearMarks");function b(P){P.eachLine(function(F){var j=F.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(F.wrapClass);j&&P.removeLineClass(F,"wrap",j[0])})}qr(b,"clearErrorLines");function y(P,F,j,$,X){var J=document.createElement("div"),ee=J;return J.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+j,$&&(ee=J.appendChild(document.createElement("div")),ee.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),X!=!1&&n.on(ee,"mouseover",function(K){p(P,K,F,ee)}),J}qr(y,"makeMarker");function x(P,F){return P=="error"?P:F}qr(x,"getMaxSeverity");function w(P){for(var F=[],j=0;j<P.length;++j){var $=P[j],X=$.from.line;(F[X]||(F[X]=[])).push($)}return F}qr(w,"groupByLine");function k(P){var F=P.severity;F||(F="error");var j=document.createElement("div");return j.className="CodeMirror-lint-message CodeMirror-lint-message-"+F,typeof P.messageHTML<"u"?j.innerHTML=P.messageHTML:j.appendChild(document.createTextNode(P.message)),j}qr(k,"annotationTooltip");function N(P,F){var j=P.state.lint,$=++j.waitingFor;function X(){$=-1,P.off("change",X)}qr(X,"abort"),P.on("change",X),F(P.getValue(),function(J,ee){P.off("change",X),j.waitingFor==$&&(ee&&J instanceof n&&(J=ee),P.operation(function(){A(P,J)}))},j.linterOptions,P)}qr(N,"lintAsync");function D(P){var F=P.state.lint;if(F){var j=F.options,$=j.getAnnotations||P.getHelper(n.Pos(0,0),"lint");if($)if(j.async||$.async)N(P,$);else{var X=$(P.getValue(),F.linterOptions,P);if(!X)return;X.then?X.then(function(J){P.operation(function(){A(P,J)})}):P.operation(function(){A(P,X)})}}}qr(D,"startLinting");function A(P,F){var j=P.state.lint;if(j){var $=j.options;E(P);for(var X=w(F),J=0;J<X.length;++J){var ee=X[J];if(ee){var K=[];ee=ee.filter(function(Z){return K.indexOf(Z.message)>-1?!1:K.push(Z.message)});for(var B=null,ne=j.hasGutter&&document.createDocumentFragment(),re=0;re<ee.length;++re){var se=ee[re],fe=se.severity;fe||(fe="error"),B=x(B,fe),$.formatAnnotation&&(se=$.formatAnnotation(se)),j.hasGutter&&ne.appendChild(k(se)),se.to&&j.marked.push(P.markText(se.from,se.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+fe,__annotation:se}))}j.hasGutter&&P.setGutterMarker(J,r,y(P,ne,B,X[J].length>1,$.tooltips)),$.highlightLines&&P.addLineClass(J,"wrap",i+B)}}$.onUpdateLinting&&$.onUpdateLinting(F,X,P)}}qr(A,"updateLinting");function _(P){var F=P.state.lint;F&&(clearTimeout(F.timeout),F.timeout=setTimeout(function(){D(P)},F.options.delay))}qr(_,"onChange");function L(P,F,j){for(var $=j.target||j.srcElement,X=document.createDocumentFragment(),J=0;J<F.length;J++){var ee=F[J];X.appendChild(k(ee))}p(P,j,X,$)}qr(L,"popupTooltips");function V(P,F){var j=F.target||F.srcElement;if(/\bCodeMirror-lint-mark-/.test(j.className)){for(var $=j.getBoundingClientRect(),X=($.left+$.right)/2,J=($.top+$.bottom)/2,ee=P.findMarksAt(P.coordsChar({left:X,top:J},"client")),K=[],B=0;B<ee.length;++B){var ne=ee[B].__annotation;ne&&K.push(ne)}K.length&&L(P,K,F)}}qr(V,"onMouseOver"),n.defineOption("lint",!1,function(P,F,j){if(j&&j!=n.Init&&(E(P),P.state.lint.options.lintOnChange!==!1&&P.off("change",_),n.off(P.getWrapperElement(),"mouseover",P.state.lint.onMouseOver),clearTimeout(P.state.lint.timeout),delete P.state.lint),F){for(var $=P.getOption("gutters"),X=!1,J=0;J<$.length;++J)$[J]==r&&(X=!0);var ee=P.state.lint=new d(P,F,X);ee.options.lintOnChange&&P.on("change",_),ee.options.tooltips!=!1&&ee.options.tooltips!="gutter"&&n.on(P.getWrapperElement(),"mouseover",ee.onMouseOver),D(P)}}),n.defineExtension("performLint",function(){D(this)})})})();var e4=gre.exports;const vre=Object.freeze(Object.defineProperty({__proto__:null,l:JP({__proto__:null,default:fo(e4)},[e4])},Symbol.toStringTag,{value:"Module"}));var yre=Object.defineProperty,Li=(e,t)=>yre(e,"name",{value:t,configurable:!0}),bre={exports:{}},t4;function t1(){return t4||(t4=1,(function(e,t){(function(n){n(Qi())})(function(n){var r=n.Pos;function i(D){var A=D.flags;return A??(D.ignoreCase?"i":"")+(D.global?"g":"")+(D.multiline?"m":"")}Li(i,"regexpFlags");function o(D,A){for(var _=i(D),L=_,V=0;V<A.length;V++)L.indexOf(A.charAt(V))==-1&&(L+=A.charAt(V));return _==L?D:new RegExp(D.source,L)}Li(o,"ensureFlags");function l(D){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(D.source)}Li(l,"maybeMultiline");function c(D,A,_){A=o(A,"g");for(var L=_.line,V=_.ch,P=D.lastLine();L<=P;L++,V=0){A.lastIndex=V;var F=D.getLine(L),j=A.exec(F);if(j)return{from:r(L,j.index),to:r(L,j.index+j[0].length),match:j}}}Li(c,"searchRegexpForward");function p(D,A,_){if(!l(A))return c(D,A,_);A=o(A,"gm");for(var L,V=1,P=_.line,F=D.lastLine();P<=F;){for(var j=0;j<V&&!(P>F);j++){var $=D.getLine(P++);L=L==null?$:L+`
490
490
  `+$}V=V*2,A.lastIndex=_.ch;var X=A.exec(L);if(X){var J=L.slice(0,X.index).split(`
491
491
  `),ee=X[0].split(`
492
492
  `),K=_.line+J.length-1,B=J[J.length-1].length;return{from:r(K,B),to:r(K+ee.length-1,ee.length==1?B+ee[0].length:ee[ee.length-1].length),match:X}}}}Li(p,"searchRegexpForwardMultiline");function d(D,A,_){for(var L,V=0;V<=D.length;){A.lastIndex=V;var P=A.exec(D);if(!P)break;var F=P.index+P[0].length;if(F>D.length-_)break;(!L||F>L.index+L[0].length)&&(L=P),V=P.index+1}return L}Li(d,"lastMatchIn");function m(D,A,_){A=o(A,"g");for(var L=_.line,V=_.ch,P=D.firstLine();L>=P;L--,V=-1){var F=D.getLine(L),j=d(F,A,V<0?0:F.length-V);if(j)return{from:r(L,j.index),to:r(L,j.index+j[0].length),match:j}}}Li(m,"searchRegexpBackward");function E(D,A,_){if(!l(A))return m(D,A,_);A=o(A,"gm");for(var L,V=1,P=D.getLine(_.line).length-_.ch,F=_.line,j=D.firstLine();F>=j;){for(var $=0;$<V&&F>=j;$++){var X=D.getLine(F--);L=L==null?X:X+`
493
493
  `+L}V*=2;var J=d(L,A,P);if(J){var ee=L.slice(0,J.index).split(`
494
494
  `),K=J[0].split(`
495
- `),B=F+ee.length,ne=ee[ee.length-1].length;return{from:r(B,ne),to:r(B+K.length-1,K.length==1?ne+K[0].length:K[K.length-1].length),match:J}}}}Li(E,"searchRegexpBackwardMultiline");var b,y;String.prototype.normalize?(b=Li(function(D){return D.normalize("NFD").toLowerCase()},"doFold"),y=Li(function(D){return D.normalize("NFD")},"noFold")):(b=Li(function(D){return D.toLowerCase()},"doFold"),y=Li(function(D){return D},"noFold"));function x(D,A,_,L){if(D.length==A.length)return _;for(var V=0,P=_+Math.max(0,D.length-A.length);;){if(V==P)return V;var F=V+P>>1,j=L(D.slice(0,F)).length;if(j==_)return F;j>_?P=F:V=F+1}}Li(x,"adjustPos");function w(D,A,_,L){if(!A.length)return null;var V=L?b:y,P=V(A).split(/\r|\n\r?/);e:for(var F=_.line,j=_.ch,$=D.lastLine()+1-P.length;F<=$;F++,j=0){var X=D.getLine(F).slice(j),J=V(X);if(P.length==1){var ee=J.indexOf(P[0]);if(ee==-1)continue e;var _=x(X,J,ee,V)+j;return{from:r(F,x(X,J,ee,V)+j),to:r(F,x(X,J,ee+P[0].length,V)+j)}}else{var K=J.length-P[0].length;if(J.slice(K)!=P[0])continue e;for(var B=1;B<P.length-1;B++)if(V(D.getLine(F+B))!=P[B])continue e;var ne=D.getLine(F+P.length-1),re=V(ne),se=P[P.length-1];if(re.slice(0,se.length)!=se)continue e;return{from:r(F,x(X,J,K,V)+j),to:r(F+P.length-1,x(ne,re,se.length,V))}}}}Li(w,"searchStringForward");function k(D,A,_,L){if(!A.length)return null;var V=L?b:y,P=V(A).split(/\r|\n\r?/);e:for(var F=_.line,j=_.ch,$=D.firstLine()-1+P.length;F>=$;F--,j=-1){var X=D.getLine(F);j>-1&&(X=X.slice(0,j));var J=V(X);if(P.length==1){var ee=J.lastIndexOf(P[0]);if(ee==-1)continue e;return{from:r(F,x(X,J,ee,V)),to:r(F,x(X,J,ee+P[0].length,V))}}else{var K=P[P.length-1];if(J.slice(0,K.length)!=K)continue e;for(var B=1,_=F-P.length+1;B<P.length-1;B++)if(V(D.getLine(_+B))!=P[B])continue e;var ne=D.getLine(F+1-P.length),re=V(ne);if(re.slice(re.length-P[0].length)!=P[0])continue e;return{from:r(F+1-P.length,x(ne,re,ne.length-P[0].length,V)),to:r(F,x(X,J,K.length,V))}}}}Li(k,"searchStringBackward");function N(D,A,_,L){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=D,_=_?D.clipPos(_):r(0,0),this.pos={from:_,to:_};var V;typeof L=="object"?V=L.caseFold:(V=L,L=null),typeof A=="string"?(V==null&&(V=!1),this.matches=function(P,F){return(P?k:w)(D,A,F,V)}):(A=o(A,"gm"),!L||L.multiline!==!1?this.matches=function(P,F){return(P?E:p)(D,A,F)}:this.matches=function(P,F){return(P?m:c)(D,A,F)})}Li(N,"SearchCursor"),N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(D){var A=this.doc.clipPos(D?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(A=r(A.line,A.ch),D?(A.ch--,A.ch<0&&(A.line--,A.ch=(this.doc.getLine(A.line)||"").length)):(A.ch++,A.ch>(this.doc.getLine(A.line)||"").length&&(A.ch=0,A.line++)),n.cmpPos(A,this.doc.clipPos(A))!=0))return this.atOccurrence=!1;var _=this.matches(D,A);if(this.afterEmptyMatch=_&&n.cmpPos(_.from,_.to)==0,_)return this.pos=_,this.atOccurrence=!0,this.pos.match||!0;var L=r(D?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:L,to:L},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(D,A){if(this.atOccurrence){var _=n.splitLines(D);this.doc.replaceRange(_,this.pos.from,this.pos.to,A),this.pos.to=r(this.pos.from.line+_.length-1,_[_.length-1].length+(_.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(D,A,_){return new N(this.doc,D,A,_)}),n.defineDocExtension("getSearchCursor",function(D,A,_){return new N(this,D,A,_)}),n.defineExtension("selectMatches",function(D,A){for(var _=[],L=this.getSearchCursor(D,this.getCursor("from"),A);L.findNext()&&!(n.cmpPos(L.to(),this.getCursor("to"))>0);)_.push({anchor:L.from(),head:L.to()});_.length&&this.setSelections(_,0)})})}()),bre.exports}Li(t1,"requireSearchcursor");var Ere=Object.defineProperty,Sre=(e,t)=>Ere(e,"name",{value:t,configurable:!0});function n4(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"}))}Sre(n4,"_mergeNamespaces");var r4=t1();const i4=Object.freeze(Object.defineProperty({__proto__:null,s:n4({__proto__:null,default:fo(r4)},[r4])},Symbol.toStringTag,{value:"Module"}));var Tre=Object.defineProperty,Dp=(e,t)=>Tre(e,"name",{value:t,configurable:!0});function o4(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"}))}Dp(o4,"_mergeNamespaces");var xre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){function r(o,l,c){var p=o.getWrapperElement(),d;return d=p.appendChild(document.createElement("div")),c?d.className="CodeMirror-dialog CodeMirror-dialog-bottom":d.className="CodeMirror-dialog CodeMirror-dialog-top",typeof l=="string"?d.innerHTML=l:d.appendChild(l),n.addClass(p,"dialog-opened"),d}Dp(r,"dialogDiv");function i(o,l){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=l}Dp(i,"closeNotification"),n.defineExtension("openDialog",function(o,l,c){c||(c={}),i(this,null);var p=r(this,o,c.bottom),d=!1,m=this;function E(x){if(typeof x=="string")b.value=x;else{if(d)return;d=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),m.focus(),c.onClose&&c.onClose(p)}}Dp(E,"close");var b=p.getElementsByTagName("input")[0],y;return b?(b.focus(),c.value&&(b.value=c.value,c.selectValueOnOpen!==!1&&b.select()),c.onInput&&n.on(b,"input",function(x){c.onInput(x,b.value,E)}),c.onKeyUp&&n.on(b,"keyup",function(x){c.onKeyUp(x,b.value,E)}),n.on(b,"keydown",function(x){c&&c.onKeyDown&&c.onKeyDown(x,b.value,E)||((x.keyCode==27||c.closeOnEnter!==!1&&x.keyCode==13)&&(b.blur(),n.e_stop(x),E()),x.keyCode==13&&l(b.value,x))}),c.closeOnBlur!==!1&&n.on(p,"focusout",function(x){x.relatedTarget!==null&&E()})):(y=p.getElementsByTagName("button")[0])&&(n.on(y,"click",function(){E(),m.focus()}),c.closeOnBlur!==!1&&n.on(y,"blur",E),y.focus()),E}),n.defineExtension("openConfirm",function(o,l,c){i(this,null);var p=r(this,o,c&&c.bottom),d=p.getElementsByTagName("button"),m=!1,E=this,b=1;function y(){m||(m=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),E.focus())}Dp(y,"close"),d[0].focus();for(var x=0;x<d.length;++x){var w=d[x];(function(k){n.on(w,"click",function(N){n.e_preventDefault(N),y(),k&&k(E)})})(l[x]),n.on(w,"blur",function(){--b,setTimeout(function(){b<=0&&y()},200)}),n.on(w,"focus",function(){++b})}}),n.defineExtension("openNotification",function(o,l){i(this,E);var c=r(this,o,l&&l.bottom),p=!1,d,m=l&&typeof l.duration<"u"?l.duration:5e3;function E(){p||(p=!0,clearTimeout(d),n.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c))}return Dp(E,"close"),n.on(c,"click",function(b){n.e_preventDefault(b),E()}),m&&(d=setTimeout(E,m)),E})})})();var xg=xre.exports;const a4=Object.freeze(Object.defineProperty({__proto__:null,a:xg,d:o4({__proto__:null,default:fo(xg)},[xg])},Symbol.toStringTag,{value:"Module"}));var wre=Object.defineProperty,n1=(e,t)=>wre(e,"name",{value:t,configurable:!0});function s4(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"}))}n1(s4,"_mergeNamespaces");var Cre={exports:{}};(function(e,t){(function(n){n(Qi(),xg)})(function(n){n.defineOption("search",{bottom:!1});function r(l,c,p,d,m){l.openDialog?l.openDialog(c,m,{value:d,selectValueOnOpen:!0,bottom:l.options.search.bottom}):m(prompt(p,d))}n1(r,"dialog");function i(l){return l.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+l.phrase("(Use line:column or scroll% syntax)")+"</span>"}n1(i,"getJumpDialog");function o(l,c){var p=Number(c);return/^[-+]/.test(c)?l.getCursor().line+p:p-1}n1(o,"interpretLine"),n.commands.jumpToLine=function(l){var c=l.getCursor();r(l,i(l),l.phrase("Jump to line:"),c.line+1+":"+c.ch,function(p){if(p){var d;if(d=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(p))l.setCursor(o(l,d[1]),Number(d[2]));else if(d=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(p)){var m=Math.round(l.lineCount()*Number(d[1])/100);/^[-+]/.test(d[1])&&(m=c.line+m+1),l.setCursor(m-1,c.ch)}else(d=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(p))&&l.setCursor(o(l,d[1]),c.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})})();var l4=Cre.exports;const u4=Object.freeze(Object.defineProperty({__proto__:null,j:s4({__proto__:null,default:fo(l4)},[l4])},Symbol.toStringTag,{value:"Module"}));var _re=Object.defineProperty,Wo=(e,t)=>_re(e,"name",{value:t,configurable:!0});function c4(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"}))}Wo(c4,"_mergeNamespaces");var Nre={exports:{}};(function(e,t){(function(n){n(Qi(),t1(),HC())})(function(n){var r=n.commands,i=n.Pos;function o(_,L,V){if(V<0&&L.ch==0)return _.clipPos(i(L.line-1));var P=_.getLine(L.line);if(V>0&&L.ch>=P.length)return _.clipPos(i(L.line+1,0));for(var F="start",j,$=L.ch,X=$,J=V<0?0:P.length,ee=0;X!=J;X+=V,ee++){var K=P.charAt(V<0?X-1:X),B=K!="_"&&n.isWordChar(K)?"w":"o";if(B=="w"&&K.toUpperCase()==K&&(B="W"),F=="start")B!="o"?(F="in",j=B):$=X+V;else if(F=="in"&&j!=B){if(j=="w"&&B=="W"&&V<0&&X--,j=="W"&&B=="w"&&V>0)if(X==$+1){j="w";continue}else X--;break}}return i(L.line,X)}Wo(o,"findPosSubword");function l(_,L){_.extendSelectionsBy(function(V){return _.display.shift||_.doc.extend||V.empty()?o(_.doc,V.head,L):L<0?V.from():V.to()})}Wo(l,"moveSubword"),r.goSubwordLeft=function(_){l(_,-1)},r.goSubwordRight=function(_){l(_,1)},r.scrollLineUp=function(_){var L=_.getScrollInfo();if(!_.somethingSelected()){var V=_.lineAtHeight(L.top+L.clientHeight,"local");_.getCursor().line>=V&&_.execCommand("goLineUp")}_.scrollTo(null,L.top-_.defaultTextHeight())},r.scrollLineDown=function(_){var L=_.getScrollInfo();if(!_.somethingSelected()){var V=_.lineAtHeight(L.top,"local")+1;_.getCursor().line<=V&&_.execCommand("goLineDown")}_.scrollTo(null,L.top+_.defaultTextHeight())},r.splitSelectionByLine=function(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++)for(var F=L[P].from(),j=L[P].to(),$=F.line;$<=j.line;++$)j.line>F.line&&$==j.line&&j.ch==0||V.push({anchor:$==F.line?F:i($,0),head:$==j.line?j:i($)});_.setSelections(V,0)},r.singleSelectionTop=function(_){var L=_.listSelections()[0];_.setSelection(L.anchor,L.head,{scroll:!1})},r.selectLine=function(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++){var F=L[P];V.push({anchor:i(F.from().line,0),head:i(F.to().line+1,0)})}_.setSelections(V)};function c(_,L){if(_.isReadOnly())return n.Pass;_.operation(function(){for(var V=_.listSelections().length,P=[],F=-1,j=0;j<V;j++){var $=_.listSelections()[j].head;if(!($.line<=F)){var X=i($.line+(L?0:1),0);_.replaceRange(`
495
+ `),B=F+ee.length,ne=ee[ee.length-1].length;return{from:r(B,ne),to:r(B+K.length-1,K.length==1?ne+K[0].length:K[K.length-1].length),match:J}}}}Li(E,"searchRegexpBackwardMultiline");var b,y;String.prototype.normalize?(b=Li(function(D){return D.normalize("NFD").toLowerCase()},"doFold"),y=Li(function(D){return D.normalize("NFD")},"noFold")):(b=Li(function(D){return D.toLowerCase()},"doFold"),y=Li(function(D){return D},"noFold"));function x(D,A,_,L){if(D.length==A.length)return _;for(var V=0,P=_+Math.max(0,D.length-A.length);;){if(V==P)return V;var F=V+P>>1,j=L(D.slice(0,F)).length;if(j==_)return F;j>_?P=F:V=F+1}}Li(x,"adjustPos");function w(D,A,_,L){if(!A.length)return null;var V=L?b:y,P=V(A).split(/\r|\n\r?/);e:for(var F=_.line,j=_.ch,$=D.lastLine()+1-P.length;F<=$;F++,j=0){var X=D.getLine(F).slice(j),J=V(X);if(P.length==1){var ee=J.indexOf(P[0]);if(ee==-1)continue e;var _=x(X,J,ee,V)+j;return{from:r(F,x(X,J,ee,V)+j),to:r(F,x(X,J,ee+P[0].length,V)+j)}}else{var K=J.length-P[0].length;if(J.slice(K)!=P[0])continue e;for(var B=1;B<P.length-1;B++)if(V(D.getLine(F+B))!=P[B])continue e;var ne=D.getLine(F+P.length-1),re=V(ne),se=P[P.length-1];if(re.slice(0,se.length)!=se)continue e;return{from:r(F,x(X,J,K,V)+j),to:r(F+P.length-1,x(ne,re,se.length,V))}}}}Li(w,"searchStringForward");function k(D,A,_,L){if(!A.length)return null;var V=L?b:y,P=V(A).split(/\r|\n\r?/);e:for(var F=_.line,j=_.ch,$=D.firstLine()-1+P.length;F>=$;F--,j=-1){var X=D.getLine(F);j>-1&&(X=X.slice(0,j));var J=V(X);if(P.length==1){var ee=J.lastIndexOf(P[0]);if(ee==-1)continue e;return{from:r(F,x(X,J,ee,V)),to:r(F,x(X,J,ee+P[0].length,V))}}else{var K=P[P.length-1];if(J.slice(0,K.length)!=K)continue e;for(var B=1,_=F-P.length+1;B<P.length-1;B++)if(V(D.getLine(_+B))!=P[B])continue e;var ne=D.getLine(F+1-P.length),re=V(ne);if(re.slice(re.length-P[0].length)!=P[0])continue e;return{from:r(F+1-P.length,x(ne,re,ne.length-P[0].length,V)),to:r(F,x(X,J,K.length,V))}}}}Li(k,"searchStringBackward");function N(D,A,_,L){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=D,_=_?D.clipPos(_):r(0,0),this.pos={from:_,to:_};var V;typeof L=="object"?V=L.caseFold:(V=L,L=null),typeof A=="string"?(V==null&&(V=!1),this.matches=function(P,F){return(P?k:w)(D,A,F,V)}):(A=o(A,"gm"),!L||L.multiline!==!1?this.matches=function(P,F){return(P?E:p)(D,A,F)}:this.matches=function(P,F){return(P?m:c)(D,A,F)})}Li(N,"SearchCursor"),N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(D){var A=this.doc.clipPos(D?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(A=r(A.line,A.ch),D?(A.ch--,A.ch<0&&(A.line--,A.ch=(this.doc.getLine(A.line)||"").length)):(A.ch++,A.ch>(this.doc.getLine(A.line)||"").length&&(A.ch=0,A.line++)),n.cmpPos(A,this.doc.clipPos(A))!=0))return this.atOccurrence=!1;var _=this.matches(D,A);if(this.afterEmptyMatch=_&&n.cmpPos(_.from,_.to)==0,_)return this.pos=_,this.atOccurrence=!0,this.pos.match||!0;var L=r(D?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:L,to:L},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(D,A){if(this.atOccurrence){var _=n.splitLines(D);this.doc.replaceRange(_,this.pos.from,this.pos.to,A),this.pos.to=r(this.pos.from.line+_.length-1,_[_.length-1].length+(_.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(D,A,_){return new N(this.doc,D,A,_)}),n.defineDocExtension("getSearchCursor",function(D,A,_){return new N(this,D,A,_)}),n.defineExtension("selectMatches",function(D,A){for(var _=[],L=this.getSearchCursor(D,this.getCursor("from"),A);L.findNext()&&!(n.cmpPos(L.to(),this.getCursor("to"))>0);)_.push({anchor:L.from(),head:L.to()});_.length&&this.setSelections(_,0)})})})()),bre.exports}Li(t1,"requireSearchcursor");var Ere=Object.defineProperty,Sre=(e,t)=>Ere(e,"name",{value:t,configurable:!0});function n4(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"}))}Sre(n4,"_mergeNamespaces");var r4=t1();const i4=Object.freeze(Object.defineProperty({__proto__:null,s:n4({__proto__:null,default:fo(r4)},[r4])},Symbol.toStringTag,{value:"Module"}));var Tre=Object.defineProperty,Dp=(e,t)=>Tre(e,"name",{value:t,configurable:!0});function o4(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"}))}Dp(o4,"_mergeNamespaces");var xre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){function r(o,l,c){var p=o.getWrapperElement(),d;return d=p.appendChild(document.createElement("div")),c?d.className="CodeMirror-dialog CodeMirror-dialog-bottom":d.className="CodeMirror-dialog CodeMirror-dialog-top",typeof l=="string"?d.innerHTML=l:d.appendChild(l),n.addClass(p,"dialog-opened"),d}Dp(r,"dialogDiv");function i(o,l){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=l}Dp(i,"closeNotification"),n.defineExtension("openDialog",function(o,l,c){c||(c={}),i(this,null);var p=r(this,o,c.bottom),d=!1,m=this;function E(x){if(typeof x=="string")b.value=x;else{if(d)return;d=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),m.focus(),c.onClose&&c.onClose(p)}}Dp(E,"close");var b=p.getElementsByTagName("input")[0],y;return b?(b.focus(),c.value&&(b.value=c.value,c.selectValueOnOpen!==!1&&b.select()),c.onInput&&n.on(b,"input",function(x){c.onInput(x,b.value,E)}),c.onKeyUp&&n.on(b,"keyup",function(x){c.onKeyUp(x,b.value,E)}),n.on(b,"keydown",function(x){c&&c.onKeyDown&&c.onKeyDown(x,b.value,E)||((x.keyCode==27||c.closeOnEnter!==!1&&x.keyCode==13)&&(b.blur(),n.e_stop(x),E()),x.keyCode==13&&l(b.value,x))}),c.closeOnBlur!==!1&&n.on(p,"focusout",function(x){x.relatedTarget!==null&&E()})):(y=p.getElementsByTagName("button")[0])&&(n.on(y,"click",function(){E(),m.focus()}),c.closeOnBlur!==!1&&n.on(y,"blur",E),y.focus()),E}),n.defineExtension("openConfirm",function(o,l,c){i(this,null);var p=r(this,o,c&&c.bottom),d=p.getElementsByTagName("button"),m=!1,E=this,b=1;function y(){m||(m=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),E.focus())}Dp(y,"close"),d[0].focus();for(var x=0;x<d.length;++x){var w=d[x];(function(k){n.on(w,"click",function(N){n.e_preventDefault(N),y(),k&&k(E)})})(l[x]),n.on(w,"blur",function(){--b,setTimeout(function(){b<=0&&y()},200)}),n.on(w,"focus",function(){++b})}}),n.defineExtension("openNotification",function(o,l){i(this,E);var c=r(this,o,l&&l.bottom),p=!1,d,m=l&&typeof l.duration<"u"?l.duration:5e3;function E(){p||(p=!0,clearTimeout(d),n.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c))}return Dp(E,"close"),n.on(c,"click",function(b){n.e_preventDefault(b),E()}),m&&(d=setTimeout(E,m)),E})})})();var xg=xre.exports;const a4=Object.freeze(Object.defineProperty({__proto__:null,a:xg,d:o4({__proto__:null,default:fo(xg)},[xg])},Symbol.toStringTag,{value:"Module"}));var wre=Object.defineProperty,n1=(e,t)=>wre(e,"name",{value:t,configurable:!0});function s4(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"}))}n1(s4,"_mergeNamespaces");var Cre={exports:{}};(function(e,t){(function(n){n(Qi(),xg)})(function(n){n.defineOption("search",{bottom:!1});function r(l,c,p,d,m){l.openDialog?l.openDialog(c,m,{value:d,selectValueOnOpen:!0,bottom:l.options.search.bottom}):m(prompt(p,d))}n1(r,"dialog");function i(l){return l.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+l.phrase("(Use line:column or scroll% syntax)")+"</span>"}n1(i,"getJumpDialog");function o(l,c){var p=Number(c);return/^[-+]/.test(c)?l.getCursor().line+p:p-1}n1(o,"interpretLine"),n.commands.jumpToLine=function(l){var c=l.getCursor();r(l,i(l),l.phrase("Jump to line:"),c.line+1+":"+c.ch,function(p){if(p){var d;if(d=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(p))l.setCursor(o(l,d[1]),Number(d[2]));else if(d=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(p)){var m=Math.round(l.lineCount()*Number(d[1])/100);/^[-+]/.test(d[1])&&(m=c.line+m+1),l.setCursor(m-1,c.ch)}else(d=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(p))&&l.setCursor(o(l,d[1]),c.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})})();var l4=Cre.exports;const u4=Object.freeze(Object.defineProperty({__proto__:null,j:s4({__proto__:null,default:fo(l4)},[l4])},Symbol.toStringTag,{value:"Module"}));var _re=Object.defineProperty,Wo=(e,t)=>_re(e,"name",{value:t,configurable:!0});function c4(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"}))}Wo(c4,"_mergeNamespaces");var Nre={exports:{}};(function(e,t){(function(n){n(Qi(),t1(),HC())})(function(n){var r=n.commands,i=n.Pos;function o(_,L,V){if(V<0&&L.ch==0)return _.clipPos(i(L.line-1));var P=_.getLine(L.line);if(V>0&&L.ch>=P.length)return _.clipPos(i(L.line+1,0));for(var F="start",j,$=L.ch,X=$,J=V<0?0:P.length,ee=0;X!=J;X+=V,ee++){var K=P.charAt(V<0?X-1:X),B=K!="_"&&n.isWordChar(K)?"w":"o";if(B=="w"&&K.toUpperCase()==K&&(B="W"),F=="start")B!="o"?(F="in",j=B):$=X+V;else if(F=="in"&&j!=B){if(j=="w"&&B=="W"&&V<0&&X--,j=="W"&&B=="w"&&V>0)if(X==$+1){j="w";continue}else X--;break}}return i(L.line,X)}Wo(o,"findPosSubword");function l(_,L){_.extendSelectionsBy(function(V){return _.display.shift||_.doc.extend||V.empty()?o(_.doc,V.head,L):L<0?V.from():V.to()})}Wo(l,"moveSubword"),r.goSubwordLeft=function(_){l(_,-1)},r.goSubwordRight=function(_){l(_,1)},r.scrollLineUp=function(_){var L=_.getScrollInfo();if(!_.somethingSelected()){var V=_.lineAtHeight(L.top+L.clientHeight,"local");_.getCursor().line>=V&&_.execCommand("goLineUp")}_.scrollTo(null,L.top-_.defaultTextHeight())},r.scrollLineDown=function(_){var L=_.getScrollInfo();if(!_.somethingSelected()){var V=_.lineAtHeight(L.top,"local")+1;_.getCursor().line<=V&&_.execCommand("goLineDown")}_.scrollTo(null,L.top+_.defaultTextHeight())},r.splitSelectionByLine=function(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++)for(var F=L[P].from(),j=L[P].to(),$=F.line;$<=j.line;++$)j.line>F.line&&$==j.line&&j.ch==0||V.push({anchor:$==F.line?F:i($,0),head:$==j.line?j:i($)});_.setSelections(V,0)},r.singleSelectionTop=function(_){var L=_.listSelections()[0];_.setSelection(L.anchor,L.head,{scroll:!1})},r.selectLine=function(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++){var F=L[P];V.push({anchor:i(F.from().line,0),head:i(F.to().line+1,0)})}_.setSelections(V)};function c(_,L){if(_.isReadOnly())return n.Pass;_.operation(function(){for(var V=_.listSelections().length,P=[],F=-1,j=0;j<V;j++){var $=_.listSelections()[j].head;if(!($.line<=F)){var X=i($.line+(L?0:1),0);_.replaceRange(`
496
496
  `,X,null,"+insertLine"),_.indentLine(X.line,null,!0),P.push({head:X,anchor:X}),F=$.line+1}}_.setSelections(P)}),_.execCommand("indentAuto")}Wo(c,"insertLine"),r.insertLineAfter=function(_){return c(_,!1)},r.insertLineBefore=function(_){return c(_,!0)};function p(_,L){for(var V=L.ch,P=V,F=_.getLine(L.line);V&&n.isWordChar(F.charAt(V-1));)--V;for(;P<F.length&&n.isWordChar(F.charAt(P));)++P;return{from:i(L.line,V),to:i(L.line,P),word:F.slice(V,P)}}Wo(p,"wordAt"),r.selectNextOccurrence=function(_){var L=_.getCursor("from"),V=_.getCursor("to"),P=_.state.sublimeFindFullWord==_.doc.sel;if(n.cmpPos(L,V)==0){var F=p(_,L);if(!F.word)return;_.setSelection(F.from,F.to),P=!0}else{var j=_.getRange(L,V),$=P?new RegExp("\\b"+j+"\\b"):j,X=_.getSearchCursor($,V),J=X.findNext();if(J||(X=_.getSearchCursor($,i(_.firstLine(),0)),J=X.findNext()),!J||m(_.listSelections(),X.from(),X.to()))return;_.addSelection(X.from(),X.to())}P&&(_.state.sublimeFindFullWord=_.doc.sel)},r.skipAndSelectNextOccurrence=function(_){var L=_.getCursor("anchor"),V=_.getCursor("head");r.selectNextOccurrence(_),n.cmpPos(L,V)!=0&&_.doc.setSelections(_.doc.listSelections().filter(function(P){return P.anchor!=L||P.head!=V}))};function d(_,L){for(var V=_.listSelections(),P=[],F=0;F<V.length;F++){var j=V[F],$=_.findPosV(j.anchor,L,"line",j.anchor.goalColumn),X=_.findPosV(j.head,L,"line",j.head.goalColumn);$.goalColumn=j.anchor.goalColumn!=null?j.anchor.goalColumn:_.cursorCoords(j.anchor,"div").left,X.goalColumn=j.head.goalColumn!=null?j.head.goalColumn:_.cursorCoords(j.head,"div").left;var J={anchor:$,head:X};P.push(j),P.push(J)}_.setSelections(P)}Wo(d,"addCursorToSelection"),r.addCursorToPrevLine=function(_){d(_,-1)},r.addCursorToNextLine=function(_){d(_,1)};function m(_,L,V){for(var P=0;P<_.length;P++)if(n.cmpPos(_[P].from(),L)==0&&n.cmpPos(_[P].to(),V)==0)return!0;return!1}Wo(m,"isSelectedRange");var E="(){}[]";function b(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++){var F=L[P],j=F.head,$=_.scanForBracket(j,-1);if(!$)return!1;for(;;){var X=_.scanForBracket(j,1);if(!X)return!1;if(X.ch==E.charAt(E.indexOf($.ch)+1)){var J=i($.pos.line,$.pos.ch+1);if(n.cmpPos(J,F.from())==0&&n.cmpPos(X.pos,F.to())==0){if($=_.scanForBracket($.pos,-1),!$)return!1}else{V.push({anchor:J,head:X.pos});break}}j=i(X.pos.line,X.pos.ch+1)}}return _.setSelections(V),!0}Wo(b,"selectBetweenBrackets"),r.selectScope=function(_){b(_)||_.execCommand("selectAll")},r.selectBetweenBrackets=function(_){if(!b(_))return n.Pass};function y(_){return _?/\bpunctuation\b/.test(_)?_:void 0:null}Wo(y,"puncType"),r.goToBracket=function(_){_.extendSelectionsBy(function(L){var V=_.scanForBracket(L.head,1,y(_.getTokenTypeAt(L.head)));if(V&&n.cmpPos(V.pos,L.head)!=0)return V.pos;var P=_.scanForBracket(L.head,-1,y(_.getTokenTypeAt(i(L.head.line,L.head.ch+1))));return P&&i(P.pos.line,P.pos.ch+1)||L.head})},r.swapLineUp=function(_){if(_.isReadOnly())return n.Pass;for(var L=_.listSelections(),V=[],P=_.firstLine()-1,F=[],j=0;j<L.length;j++){var $=L[j],X=$.from().line-1,J=$.to().line;F.push({anchor:i($.anchor.line-1,$.anchor.ch),head:i($.head.line-1,$.head.ch)}),$.to().ch==0&&!$.empty()&&--J,X>P?V.push(X,J):V.length&&(V[V.length-1]=J),P=J}_.operation(function(){for(var ee=0;ee<V.length;ee+=2){var K=V[ee],B=V[ee+1],ne=_.getLine(K);_.replaceRange("",i(K,0),i(K+1,0),"+swapLine"),B>_.lastLine()?_.replaceRange(`
497
497
  `+ne,i(_.lastLine()),null,"+swapLine"):_.replaceRange(ne+`
498
498
  `,i(B,0),null,"+swapLine")}_.setSelections(F),_.scrollIntoView()})},r.swapLineDown=function(_){if(_.isReadOnly())return n.Pass;for(var L=_.listSelections(),V=[],P=_.lastLine()+1,F=L.length-1;F>=0;F--){var j=L[F],$=j.to().line+1,X=j.from().line;j.to().ch==0&&!j.empty()&&$--,$<P?V.push($,X):V.length&&(V[V.length-1]=X),P=X}_.operation(function(){for(var J=V.length-2;J>=0;J-=2){var ee=V[J],K=V[J+1],B=_.getLine(ee);ee==_.lastLine()?_.replaceRange("",i(ee-1),i(ee),"+swapLine"):_.replaceRange("",i(ee,0),i(ee+1,0),"+swapLine"),_.replaceRange(B+`
499
499
  `,i(K,0),null,"+swapLine")}_.scrollIntoView()})},r.toggleCommentIndented=function(_){_.toggleComment({indent:!0})},r.joinLines=function(_){for(var L=_.listSelections(),V=[],P=0;P<L.length;P++){for(var F=L[P],j=F.from(),$=j.line,X=F.to().line;P<L.length-1&&L[P+1].from().line==X;)X=L[++P].to().line;V.push({start:$,end:X,anchor:!F.empty()&&j})}_.operation(function(){for(var J=0,ee=[],K=0;K<V.length;K++){for(var B=V[K],ne=B.anchor&&i(B.anchor.line-J,B.anchor.ch),re,se=B.start;se<=B.end;se++){var fe=se-J;se==B.end&&(re=i(fe,_.getLine(fe).length+1)),fe<_.lastLine()&&(_.replaceRange(" ",i(fe),i(fe+1,/^\s*/.exec(_.getLine(fe+1))[0].length)),++J)}ee.push({anchor:ne||re,head:re})}_.setSelections(ee,0)})},r.duplicateLine=function(_){_.operation(function(){for(var L=_.listSelections().length,V=0;V<L;V++){var P=_.listSelections()[V];P.empty()?_.replaceRange(_.getLine(P.head.line)+`
500
- `,i(P.head.line,0)):_.replaceRange(_.getRange(P.from(),P.to()),P.from())}_.scrollIntoView()})};function x(_,L,V){if(_.isReadOnly())return n.Pass;for(var P=_.listSelections(),F=[],j,$=0;$<P.length;$++){var X=P[$];if(!X.empty()){for(var J=X.from().line,ee=X.to().line;$<P.length-1&&P[$+1].from().line==ee;)ee=P[++$].to().line;P[$].to().ch||ee--,F.push(J,ee)}}F.length?j=!0:F.push(_.firstLine(),_.lastLine()),_.operation(function(){for(var K=[],B=0;B<F.length;B+=2){var ne=F[B],re=F[B+1],se=i(ne,0),fe=i(re),Z=_.getRange(se,fe,!1);L?Z.sort(function(ge,ae){return ge<ae?-V:ge==ae?0:V}):Z.sort(function(ge,ae){var pe=ge.toUpperCase(),ce=ae.toUpperCase();return pe!=ce&&(ge=pe,ae=ce),ge<ae?-V:ge==ae?0:V}),_.replaceRange(Z,se,fe),j&&K.push({anchor:se,head:i(re+1,0)})}j&&_.setSelections(K,0)})}Wo(x,"sortLines"),r.sortLines=function(_){x(_,!0,1)},r.reverseSortLines=function(_){x(_,!0,-1)},r.sortLinesInsensitive=function(_){x(_,!1,1)},r.reverseSortLinesInsensitive=function(_){x(_,!1,-1)},r.nextBookmark=function(_){var L=_.state.sublimeBookmarks;if(L)for(;L.length;){var V=L.shift(),P=V.find();if(P)return L.push(V),_.setSelection(P.from,P.to)}},r.prevBookmark=function(_){var L=_.state.sublimeBookmarks;if(L)for(;L.length;){L.unshift(L.pop());var V=L[L.length-1].find();if(!V)L.pop();else return _.setSelection(V.from,V.to)}},r.toggleBookmark=function(_){for(var L=_.listSelections(),V=_.state.sublimeBookmarks||(_.state.sublimeBookmarks=[]),P=0;P<L.length;P++){for(var F=L[P].from(),j=L[P].to(),$=L[P].empty()?_.findMarksAt(F):_.findMarks(F,j),X=0;X<$.length;X++)if($[X].sublimeBookmark){$[X].clear();for(var J=0;J<V.length;J++)V[J]==$[X]&&V.splice(J--,1);break}X==$.length&&V.push(_.markText(F,j,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},r.clearBookmarks=function(_){var L=_.state.sublimeBookmarks;if(L)for(var V=0;V<L.length;V++)L[V].clear();L.length=0},r.selectBookmarks=function(_){var L=_.state.sublimeBookmarks,V=[];if(L)for(var P=0;P<L.length;P++){var F=L[P].find();F?V.push({anchor:F.from,head:F.to}):L.splice(P--,0)}V.length&&_.setSelections(V,0)};function w(_,L){_.operation(function(){for(var V=_.listSelections(),P=[],F=[],j=0;j<V.length;j++){var $=V[j];$.empty()?(P.push(j),F.push("")):F.push(L(_.getRange($.from(),$.to())))}_.replaceSelections(F,"around","case");for(var j=P.length-1,X;j>=0;j--){var $=V[P[j]];if(!(X&&n.cmpPos($.head,X)>0)){var J=p(_,$.head);X=J.from,_.replaceRange(L(J.word),J.from,J.to)}}})}Wo(w,"modifyWordOrSelection"),r.smartBackspace=function(_){if(_.somethingSelected())return n.Pass;_.operation(function(){for(var L=_.listSelections(),V=_.getOption("indentUnit"),P=L.length-1;P>=0;P--){var F=L[P].head,j=_.getRange({line:F.line,ch:0},F),$=n.countColumn(j,null,_.getOption("tabSize")),X=_.findPosH(F,-1,"char",!1);if(j&&!/\S/.test(j)&&$%V==0){var J=new i(F.line,n.findColumn(j,$-V,V));J.ch!=F.ch&&(X=J)}_.replaceRange("",X,F,"+delete")}})},r.delLineRight=function(_){_.operation(function(){for(var L=_.listSelections(),V=L.length-1;V>=0;V--)_.replaceRange("",L[V].anchor,i(L[V].to().line),"+delete");_.scrollIntoView()})},r.upcaseAtCursor=function(_){w(_,function(L){return L.toUpperCase()})},r.downcaseAtCursor=function(_){w(_,function(L){return L.toLowerCase()})},r.setSublimeMark=function(_){_.state.sublimeMark&&_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor())},r.selectToSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();L&&_.setSelection(_.getCursor(),L)},r.deleteToSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();if(L){var V=_.getCursor(),P=L;if(n.cmpPos(V,P)>0){var F=P;P=V,V=F}_.state.sublimeKilled=_.getRange(V,P),_.replaceRange("",V,P)}},r.swapWithSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();L&&(_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor()),_.setCursor(L))},r.sublimeYank=function(_){_.state.sublimeKilled!=null&&_.replaceSelection(_.state.sublimeKilled,null,"paste")},r.showInCenter=function(_){var L=_.cursorCoords(null,"local");_.scrollTo(null,(L.top+L.bottom)/2-_.getScrollInfo().clientHeight/2)};function k(_){var L=_.getCursor("from"),V=_.getCursor("to");if(n.cmpPos(L,V)==0){var P=p(_,L);if(!P.word)return;L=P.from,V=P.to}return{from:L,to:V,query:_.getRange(L,V),word:P}}Wo(k,"getTarget");function N(_,L){var V=k(_);if(V){var P=V.query,F=_.getSearchCursor(P,L?V.to:V.from);(L?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):(F=_.getSearchCursor(P,L?i(_.firstLine(),0):_.clipPos(i(_.lastLine()))),(L?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):V.word&&_.setSelection(V.from,V.to))}}Wo(N,"findAndGoTo"),r.findUnder=function(_){N(_,!0)},r.findUnderPrevious=function(_){N(_,!1)},r.findAllUnder=function(_){var L=k(_);if(L){for(var V=_.getSearchCursor(L.query),P=[],F=-1;V.findNext();)P.push({anchor:V.from(),head:V.to()}),V.from().line<=L.from.line&&V.from().ch<=L.from.ch&&F++;_.setSelections(P,F)}};var D=n.keyMap;D.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},n.normalizeKeyMap(D.macSublime),D.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},n.normalizeKeyMap(D.pcSublime);var A=D.default==D.macDefault;D.sublime=A?D.macSublime:D.pcSublime})})();var f4=Nre.exports;const d4=Object.freeze(Object.defineProperty({__proto__:null,s:c4({__proto__:null,default:fo(f4)},[f4])},Symbol.toStringTag,{value:"Module"}));var Are=Object.defineProperty,Xe=(e,t)=>Are(e,"name",{value:t,configurable:!0});function p4(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"}))}Xe(p4,"_mergeNamespaces");var Ore={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,l=i.statementIndent,c=i.jsonld,p=i.json||c,d=i.trackScope!==!1,m=i.typescript,E=i.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function W(_r){return{type:_r,style:"keyword"}}Xe(W,"kw");var ue=W("keyword a"),Fe=W("keyword b"),We=W("keyword c"),St=W("keyword d"),en=W("operator"),st={type:"atom",style:"atom"};return{if:W("if"),while:ue,with:ue,else:Fe,do:Fe,try:Fe,finally:Fe,return:St,break:St,continue:St,new:W("new"),delete:We,void:We,throw:We,debugger:W("debugger"),var:W("var"),const:W("var"),let:W("var"),function:W("function"),catch:W("catch"),for:W("for"),switch:W("switch"),case:W("case"),default:W("default"),in:en,typeof:en,instanceof:en,true:st,false:st,null:st,undefined:st,NaN:st,Infinity:st,this:W("this"),class:W("class"),super:W("atom"),yield:We,export:W("export"),import:W("import"),extends:We,await:We}}(),y=/[+\-*&%=<>!?|~^@]/,x=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function w(W){for(var ue=!1,Fe,We=!1;(Fe=W.next())!=null;){if(!ue){if(Fe=="/"&&!We)return;Fe=="["?We=!0:We&&Fe=="]"&&(We=!1)}ue=!ue&&Fe=="\\"}}Xe(w,"readRegexp");var k,N;function D(W,ue,Fe){return k=W,N=Fe,ue}Xe(D,"ret");function A(W,ue){var Fe=W.next();if(Fe=='"'||Fe=="'")return ue.tokenize=_(Fe),ue.tokenize(W,ue);if(Fe=="."&&W.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(Fe=="."&&W.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Fe))return D(Fe);if(Fe=="="&&W.eat(">"))return D("=>","operator");if(Fe=="0"&&W.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(Fe))return W.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(Fe=="/")return W.eat("*")?(ue.tokenize=L,L(W,ue)):W.eat("/")?(W.skipToEnd(),D("comment","comment")):ze(W,ue,1)?(w(W),W.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(W.eat("="),D("operator","operator",W.current()));if(Fe=="`")return ue.tokenize=V,V(W,ue);if(Fe=="#"&&W.peek()=="!")return W.skipToEnd(),D("meta","meta");if(Fe=="#"&&W.eatWhile(E))return D("variable","property");if(Fe=="<"&&W.match("!--")||Fe=="-"&&W.match("->")&&!/\S/.test(W.string.slice(0,W.start)))return W.skipToEnd(),D("comment","comment");if(y.test(Fe))return(Fe!=">"||!ue.lexical||ue.lexical.type!=">")&&(W.eat("=")?(Fe=="!"||Fe=="=")&&W.eat("="):/[<>*+\-|&?]/.test(Fe)&&(W.eat(Fe),Fe==">"&&W.eat(Fe))),Fe=="?"&&W.eat(".")?D("."):D("operator","operator",W.current());if(E.test(Fe)){W.eatWhile(E);var We=W.current();if(ue.lastType!="."){if(b.propertyIsEnumerable(We)){var St=b[We];return D(St.type,St.style,We)}if(We=="async"&&W.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",We)}return D("variable","variable",We)}}Xe(A,"tokenBase");function _(W){return function(ue,Fe){var We=!1,St;if(c&&ue.peek()=="@"&&ue.match(x))return Fe.tokenize=A,D("jsonld-keyword","meta");for(;(St=ue.next())!=null&&!(St==W&&!We);)We=!We&&St=="\\";return We||(Fe.tokenize=A),D("string","string")}}Xe(_,"tokenString");function L(W,ue){for(var Fe=!1,We;We=W.next();){if(We=="/"&&Fe){ue.tokenize=A;break}Fe=We=="*"}return D("comment","comment")}Xe(L,"tokenComment");function V(W,ue){for(var Fe=!1,We;(We=W.next())!=null;){if(!Fe&&(We=="`"||We=="$"&&W.eat("{"))){ue.tokenize=A;break}Fe=!Fe&&We=="\\"}return D("quasi","string-2",W.current())}Xe(V,"tokenQuasi");var P="([{}])";function F(W,ue){ue.fatArrowAt&&(ue.fatArrowAt=null);var Fe=W.string.indexOf("=>",W.start);if(!(Fe<0)){if(m){var We=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(W.string.slice(W.start,Fe));We&&(Fe=We.index)}for(var St=0,en=!1,st=Fe-1;st>=0;--st){var _r=W.string.charAt(st),ji=P.indexOf(_r);if(ji>=0&&ji<3){if(!St){++st;break}if(--St==0){_r=="("&&(en=!0);break}}else if(ji>=3&&ji<6)++St;else if(E.test(_r))en=!0;else if(/["'\/`]/.test(_r))for(;;--st){if(st==0)return;var vs=W.string.charAt(st-1);if(vs==_r&&W.string.charAt(st-2)!="\\"){st--;break}}else if(en&&!St){++st;break}}en&&!St&&(ue.fatArrowAt=st)}}Xe(F,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(W,ue,Fe,We,St,en){this.indented=W,this.column=ue,this.type=Fe,this.prev=St,this.info=en,We!=null&&(this.align=We)}Xe($,"JSLexical");function X(W,ue){if(!d)return!1;for(var Fe=W.localVars;Fe;Fe=Fe.next)if(Fe.name==ue)return!0;for(var We=W.context;We;We=We.prev)for(var Fe=We.vars;Fe;Fe=Fe.next)if(Fe.name==ue)return!0}Xe(X,"inScope");function J(W,ue,Fe,We,St){var en=W.cc;for(ee.state=W,ee.stream=St,ee.marked=null,ee.cc=en,ee.style=ue,W.lexical.hasOwnProperty("align")||(W.lexical.align=!0);;){var st=en.length?en.pop():p?vt:Ze;if(st(Fe,We)){for(;en.length&&en[en.length-1].lex;)en.pop()();return ee.marked?ee.marked:Fe=="variable"&&X(W,We)?"variable-2":ue}}}Xe(J,"parseJS");var ee={state:null,marked:null,cc:null};function K(){for(var W=arguments.length-1;W>=0;W--)ee.cc.push(arguments[W])}Xe(K,"pass");function B(){return K.apply(null,arguments),!0}Xe(B,"cont");function ne(W,ue){for(var Fe=ue;Fe;Fe=Fe.next)if(Fe.name==W)return!0;return!1}Xe(ne,"inList");function re(W){var ue=ee.state;if(ee.marked="def",!!d){if(ue.context){if(ue.lexical.info=="var"&&ue.context&&ue.context.block){var Fe=se(W,ue.context);if(Fe!=null){ue.context=Fe;return}}else if(!ne(W,ue.localVars)){ue.localVars=new ge(W,ue.localVars);return}}i.globalVars&&!ne(W,ue.globalVars)&&(ue.globalVars=new ge(W,ue.globalVars))}}Xe(re,"register");function se(W,ue){if(ue)if(ue.block){var Fe=se(W,ue.prev);return Fe?Fe==ue.prev?ue:new Z(Fe,ue.vars,!0):null}else return ne(W,ue.vars)?ue:new Z(ue.prev,new ge(W,ue.vars),!1);else return null}Xe(se,"registerVarScoped");function fe(W){return W=="public"||W=="private"||W=="protected"||W=="abstract"||W=="readonly"}Xe(fe,"isModifier");function Z(W,ue,Fe){this.prev=W,this.vars=ue,this.block=Fe}Xe(Z,"Context");function ge(W,ue){this.name=W,this.next=ue}Xe(ge,"Var");var ae=new ge("this",new ge("arguments",null));function pe(){ee.state.context=new Z(ee.state.context,ee.state.localVars,!1),ee.state.localVars=ae}Xe(pe,"pushcontext");function ce(){ee.state.context=new Z(ee.state.context,ee.state.localVars,!0),ee.state.localVars=null}Xe(ce,"pushblockcontext"),pe.lex=ce.lex=!0;function he(){ee.state.localVars=ee.state.context.vars,ee.state.context=ee.state.context.prev}Xe(he,"popcontext"),he.lex=!0;function Se(W,ue){var Fe=Xe(function(){var We=ee.state,St=We.indented;if(We.lexical.type=="stat")St=We.lexical.indented;else for(var en=We.lexical;en&&en.type==")"&&en.align;en=en.prev)St=en.indented;We.lexical=new $(St,ee.stream.column(),W,null,We.lexical,ue)},"result");return Fe.lex=!0,Fe}Xe(Se,"pushlex");function Ie(){var W=ee.state;W.lexical.prev&&(W.lexical.type==")"&&(W.indented=W.lexical.indented),W.lexical=W.lexical.prev)}Xe(Ie,"poplex"),Ie.lex=!0;function Ge(W){function ue(Fe){return Fe==W?B():W==";"||Fe=="}"||Fe==")"||Fe=="]"?K():B(ue)}return Xe(ue,"exp"),ue}Xe(Ge,"expect");function Ze(W,ue){return W=="var"?B(Se("vardef",ue),tr,Ge(";"),Ie):W=="keyword a"?B(Se("form"),Oe,Ze,Ie):W=="keyword b"?B(Se("form"),Ze,Ie):W=="keyword d"?ee.stream.match(/^\s*$/,!1)?B():B(Se("stat"),Le,Ge(";"),Ie):W=="debugger"?B(Ge(";")):W=="{"?B(Se("}"),ce,Vt,Ie,he):W==";"?B():W=="if"?(ee.state.lexical.info=="else"&&ee.state.cc[ee.state.cc.length-1]==Ie&&ee.state.cc.pop()(),B(Se("form"),Oe,Ze,Ie,Ko)):W=="function"?B(Bn):W=="for"?B(Se("form"),ce,Xo,Ze,he,Ie):W=="class"||m&&ue=="interface"?(ee.marked="keyword",B(Se("form",W=="class"?W:ue),po,Ie)):W=="variable"?m&&ue=="declare"?(ee.marked="keyword",B(Ze)):m&&(ue=="module"||ue=="enum"||ue=="type")&&ee.stream.match(/^\s*\w/,!1)?(ee.marked="keyword",ue=="enum"?B(Ir):ue=="type"?B(Fi,Ge("operator"),mt,Ge(";")):B(Se("form"),Ft,Ge("{"),Se("}"),Vt,Ie,Ie)):m&&ue=="namespace"?(ee.marked="keyword",B(Se("form"),vt,Ze,Ie)):m&&ue=="abstract"?(ee.marked="keyword",B(Ze)):B(Se("stat"),ht):W=="switch"?B(Se("form"),Oe,Ge("{"),Se("}","switch"),ce,Vt,Ie,Ie,he):W=="case"?B(vt,Ge(":")):W=="default"?B(Ge(":")):W=="catch"?B(Se("form"),pe,It,Ze,Ie,he):W=="export"?B(Se("stat"),ho,Ie):W=="import"?B(Se("stat"),nr,Ie):W=="async"?B(Ze):ue=="@"?B(vt,Ze):K(Se("stat"),vt,Ge(";"),Ie)}Xe(Ze,"statement");function It(W){if(W=="(")return B($r,Ge(")"))}Xe(It,"maybeCatchBinding");function vt(W,ue){return be(W,ue,!1)}Xe(vt,"expression");function at(W,ue){return be(W,ue,!0)}Xe(at,"expressionNoComma");function Oe(W){return W!="("?K():B(Se(")"),Le,Ge(")"),Ie)}Xe(Oe,"parenExpr");function be(W,ue,Fe){if(ee.state.fatArrowAt==ee.stream.start){var We=Fe?Ye:ct;if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,Ge("=>"),We,he);if(W=="variable")return K(pe,Ft,Ge("=>"),We,he)}var St=Fe?oe:Ee;return j.hasOwnProperty(W)?B(St):W=="function"?B(Bn,St):W=="class"||m&&ue=="interface"?(ee.marked="keyword",B(Se("form"),Oo,Ie)):W=="keyword c"||W=="async"?B(Fe?at:vt):W=="("?B(Se(")"),Le,Ge(")"),Ie,St):W=="operator"||W=="spread"?B(Fe?at:vt):W=="["?B(Se("]"),an,Ie,St):W=="{"?Wt(jt,"}",null,St):W=="quasi"?K(je,St):W=="new"?B(xe(Fe)):B()}Xe(be,"expressionInner");function Le(W){return W.match(/[;\}\)\],]/)?K():K(vt)}Xe(Le,"maybeexpression");function Ee(W,ue){return W==","?B(Le):oe(W,ue,!1)}Xe(Ee,"maybeoperatorComma");function oe(W,ue,Fe){var We=Fe==!1?Ee:oe,St=Fe==!1?vt:at;if(W=="=>")return B(pe,Fe?Ye:ct,he);if(W=="operator")return/\+\+|--/.test(ue)||m&&ue=="!"?B(We):m&&ue=="<"&&ee.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?B(Se(">"),pt(mt,">"),Ie,We):ue=="?"?B(vt,Ge(":"),St):B(St);if(W=="quasi")return K(je,We);if(W!=";"){if(W=="(")return Wt(at,")","call",We);if(W==".")return B(Ot,We);if(W=="[")return B(Se("]"),Le,Ge("]"),Ie,We);if(m&&ue=="as")return ee.marked="keyword",B(mt,We);if(W=="regexp")return ee.state.lastType=ee.marked="operator",ee.stream.backUp(ee.stream.pos-ee.stream.start-1),B(St)}}Xe(oe,"maybeoperatorNoComma");function je(W,ue){return W!="quasi"?K():ue.slice(ue.length-2)!="${"?B(je):B(Le,et)}Xe(je,"quasi");function et(W){if(W=="}")return ee.marked="string-2",ee.state.tokenize=V,B(je)}Xe(et,"continueQuasi");function ct(W){return F(ee.stream,ee.state),K(W=="{"?Ze:vt)}Xe(ct,"arrowBody");function Ye(W){return F(ee.stream,ee.state),K(W=="{"?Ze:at)}Xe(Ye,"arrowBodyNoComma");function xe(W){return function(ue){return ue=="."?B(W?nt:$e):ue=="variable"&&m?B(Bt,W?oe:Ee):K(W?at:vt)}}Xe(xe,"maybeTarget");function $e(W,ue){if(ue=="target")return ee.marked="keyword",B(Ee)}Xe($e,"target");function nt(W,ue){if(ue=="target")return ee.marked="keyword",B(oe)}Xe(nt,"targetNoComma");function ht(W){return W==":"?B(Ie,Ze):K(Ee,Ge(";"),Ie)}Xe(ht,"maybelabel");function Ot(W){if(W=="variable")return ee.marked="property",B()}Xe(Ot,"property");function jt(W,ue){if(W=="async")return ee.marked="property",B(jt);if(W=="variable"||ee.style=="keyword"){if(ee.marked="property",ue=="get"||ue=="set")return B(dt);var Fe;return m&&ee.state.fatArrowAt==ee.stream.start&&(Fe=ee.stream.match(/^\s*:\s*/,!1))&&(ee.state.fatArrowAt=ee.stream.pos+Fe[0].length),B(Et)}else{if(W=="number"||W=="string")return ee.marked=c?"property":ee.style+" property",B(Et);if(W=="jsonld-keyword")return B(Et);if(m&&fe(ue))return ee.marked="keyword",B(jt);if(W=="[")return B(vt,Jt,Ge("]"),Et);if(W=="spread")return B(at,Et);if(ue=="*")return ee.marked="keyword",B(jt);if(W==":")return K(Et)}}Xe(jt,"objprop");function dt(W){return W!="variable"?K(Et):(ee.marked="property",B(Bn))}Xe(dt,"getterSetter");function Et(W){if(W==":")return B(at);if(W=="(")return K(Bn)}Xe(Et,"afterprop");function pt(W,ue,Fe){function We(St,en){if(Fe?Fe.indexOf(St)>-1:St==","){var st=ee.state.lexical;return st.info=="call"&&(st.pos=(st.pos||0)+1),B(function(_r,ji){return _r==ue||ji==ue?K():K(W)},We)}return St==ue||en==ue?B():Fe&&Fe.indexOf(";")>-1?K(W):B(Ge(ue))}return Xe(We,"proceed"),function(St,en){return St==ue||en==ue?B():K(W,We)}}Xe(pt,"commasep");function Wt(W,ue,Fe){for(var We=3;We<arguments.length;We++)ee.cc.push(arguments[We]);return B(Se(ue,Fe),pt(W,ue),Ie)}Xe(Wt,"contCommasep");function Vt(W){return W=="}"?B():K(Ze,Vt)}Xe(Vt,"block");function Jt(W,ue){if(m){if(W==":")return B(mt);if(ue=="?")return B(Jt)}}Xe(Jt,"maybetype");function ot(W,ue){if(m&&(W==":"||ue=="in"))return B(mt)}Xe(ot,"maybetypeOrIn");function qn(W){if(m&&W==":")return ee.stream.match(/^\s*\w+\s+is\b/,!1)?B(vt,vn,mt):B(mt)}Xe(qn,"mayberettype");function vn(W,ue){if(ue=="is")return ee.marked="keyword",B()}Xe(vn,"isKW");function mt(W,ue){if(ue=="keyof"||ue=="typeof"||ue=="infer"||ue=="readonly")return ee.marked="keyword",B(ue=="typeof"?at:mt);if(W=="variable"||ue=="void")return ee.marked="type",B(wt);if(ue=="|"||ue=="&")return B(mt);if(W=="string"||W=="number"||W=="atom")return B(wt);if(W=="[")return B(Se("]"),pt(mt,"]",","),Ie,wt);if(W=="{")return B(Se("}"),di,Ie,wt);if(W=="(")return B(pt(Xi,")"),yn,wt);if(W=="<")return B(pt(mt,">"),mt);if(W=="quasi")return K(Mr,wt)}Xe(mt,"typeexpr");function yn(W){if(W=="=>")return B(mt)}Xe(yn,"maybeReturnType");function di(W){return W.match(/[\}\)\]]/)?B():W==","||W==";"?B(di):K(on,di)}Xe(di,"typeprops");function on(W,ue){if(W=="variable"||ee.style=="keyword")return ee.marked="property",B(on);if(ue=="?"||W=="number"||W=="string")return B(on);if(W==":")return B(mt);if(W=="[")return B(Ge("variable"),ot,Ge("]"),on);if(W=="(")return K(Lr,on);if(!W.match(/[;\}\)\],]/))return B()}Xe(on,"typeprop");function Mr(W,ue){return W!="quasi"?K():ue.slice(ue.length-2)!="${"?B(Mr):B(mt,An)}Xe(Mr,"quasiType");function An(W){if(W=="}")return ee.marked="string-2",ee.state.tokenize=V,B(Mr)}Xe(An,"continueQuasiType");function Xi(W,ue){return W=="variable"&&ee.stream.match(/^\s*[?:]/,!1)||ue=="?"?B(Xi):W==":"?B(mt):W=="spread"?B(Xi):K(mt)}Xe(Xi,"typearg");function wt(W,ue){if(ue=="<")return B(Se(">"),pt(mt,">"),Ie,wt);if(ue=="|"||W=="."||ue=="&")return B(mt);if(W=="[")return B(mt,Ge("]"),wt);if(ue=="extends"||ue=="implements")return ee.marked="keyword",B(mt);if(ue=="?")return B(mt,Ge(":"),mt)}Xe(wt,"afterType");function Bt(W,ue){if(ue=="<")return B(Se(">"),pt(mt,">"),Ie,wt)}Xe(Bt,"maybeTypeArgs");function cn(){return K(mt,kn)}Xe(cn,"typeparam");function kn(W,ue){if(ue=="=")return B(mt)}Xe(kn,"maybeTypeDefault");function tr(W,ue){return ue=="enum"?(ee.marked="keyword",B(Ir)):K(Ft,Jt,bn,Ii)}Xe(tr,"vardef");function Ft(W,ue){if(m&&fe(ue))return ee.marked="keyword",B(Ft);if(W=="variable")return re(ue),B();if(W=="spread")return B(Ft);if(W=="[")return Wt(Gt,"]");if(W=="{")return Wt(fn,"}")}Xe(Ft,"pattern");function fn(W,ue){return W=="variable"&&!ee.stream.match(/^\s*:/,!1)?(re(ue),B(bn)):(W=="variable"&&(ee.marked="property"),W=="spread"?B(Ft):W=="}"?K():W=="["?B(vt,Ge("]"),Ge(":"),fn):B(Ge(":"),Ft,bn))}Xe(fn,"proppattern");function Gt(){return K(Ft,bn)}Xe(Gt,"eltpattern");function bn(W,ue){if(ue=="=")return B(at)}Xe(bn,"maybeAssign");function Ii(W){if(W==",")return B(tr)}Xe(Ii,"vardefCont");function Ko(W,ue){if(W=="keyword b"&&ue=="else")return B(Se("form","else"),Ze,Ie)}Xe(Ko,"maybeelse");function Xo(W,ue){if(ue=="await")return B(Xo);if(W=="(")return B(Se(")"),Ao,Ie)}Xe(Xo,"forspec");function Ao(W){return W=="var"?B(tr,Er):W=="variable"?B(Er):K(Er)}Xe(Ao,"forspec1");function Er(W,ue){return W==")"?B():W==";"?B(Er):ue=="in"||ue=="of"?(ee.marked="keyword",B(vt,Er)):K(vt,Er)}Xe(Er,"forspec2");function Bn(W,ue){if(ue=="*")return ee.marked="keyword",B(Bn);if(W=="variable")return re(ue),B(Bn);if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,qn,Ze,he);if(m&&ue=="<")return B(Se(">"),pt(cn,">"),Ie,Bn)}Xe(Bn,"functiondef");function Lr(W,ue){if(ue=="*")return ee.marked="keyword",B(Lr);if(W=="variable")return re(ue),B(Lr);if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,qn,he);if(m&&ue=="<")return B(Se(">"),pt(cn,">"),Ie,Lr)}Xe(Lr,"functiondecl");function Fi(W,ue){if(W=="keyword"||W=="variable")return ee.marked="type",B(Fi);if(ue=="<")return B(Se(">"),pt(cn,">"),Ie)}Xe(Fi,"typename");function $r(W,ue){return ue=="@"&&B(vt,$r),W=="spread"?B($r):m&&fe(ue)?(ee.marked="keyword",B($r)):m&&W=="this"?B(Jt,bn):K(Ft,Jt,bn)}Xe($r,"funarg");function Oo(W,ue){return W=="variable"?po(W,ue):Rn(W,ue)}Xe(Oo,"classExpression");function po(W,ue){if(W=="variable")return re(ue),B(Rn)}Xe(po,"className");function Rn(W,ue){if(ue=="<")return B(Se(">"),pt(cn,">"),Ie,Rn);if(ue=="extends"||ue=="implements"||m&&W==",")return ue=="implements"&&(ee.marked="keyword"),B(m?mt:vt,Rn);if(W=="{")return B(Se("}"),Zi,Ie)}Xe(Rn,"classNameAfter");function Zi(W,ue){if(W=="async"||W=="variable"&&(ue=="static"||ue=="get"||ue=="set"||m&&fe(ue))&&ee.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ee.marked="keyword",B(Zi);if(W=="variable"||ee.style=="keyword")return ee.marked="property",B(Pi,Zi);if(W=="number"||W=="string")return B(Pi,Zi);if(W=="[")return B(vt,Jt,Ge("]"),Pi,Zi);if(ue=="*")return ee.marked="keyword",B(Zi);if(m&&W=="(")return K(Lr,Zi);if(W==";"||W==",")return B(Zi);if(W=="}")return B();if(ue=="@")return B(vt,Zi)}Xe(Zi,"classBody");function Pi(W,ue){if(ue=="!"||ue=="?")return B(Pi);if(W==":")return B(mt,bn);if(ue=="=")return B(at);var Fe=ee.state.lexical.prev,We=Fe&&Fe.info=="interface";return K(We?Lr:Bn)}Xe(Pi,"classfield");function ho(W,ue){return ue=="*"?(ee.marked="keyword",B(zr,Ge(";"))):ue=="default"?(ee.marked="keyword",B(vt,Ge(";"))):W=="{"?B(pt(Do,"}"),zr,Ge(";")):K(Ze)}Xe(ho,"afterExport");function Do(W,ue){if(ue=="as")return ee.marked="keyword",B(Ge("variable"));if(W=="variable")return K(at,Do)}Xe(Do,"exportField");function nr(W){return W=="string"?B():W=="("?K(vt):W=="."?K(Ee):K(ft,mo,zr)}Xe(nr,"afterImport");function ft(W,ue){return W=="{"?Wt(ft,"}"):(W=="variable"&&re(ue),ue=="*"&&(ee.marked="keyword"),B(Yl))}Xe(ft,"importSpec");function mo(W){if(W==",")return B(ft,mo)}Xe(mo,"maybeMoreImports");function Yl(W,ue){if(ue=="as")return ee.marked="keyword",B(ft)}Xe(Yl,"maybeAs");function zr(W,ue){if(ue=="from")return ee.marked="keyword",B(vt)}Xe(zr,"maybeFrom");function an(W){return W=="]"?B():K(pt(at,"]"))}Xe(an,"arrayLiteral");function Ir(){return K(Se("form"),Ft,Ge("{"),Se("}"),pt(Zo,"}"),Ie,Ie)}Xe(Ir,"enumdef");function Zo(){return K(Ft,bn)}Xe(Zo,"enummember");function Js(W,ue){return W.lastType=="operator"||W.lastType==","||y.test(ue.charAt(0))||/[,.]/.test(ue.charAt(0))}Xe(Js,"isContinuedStatement");function ze(W,ue,Fe){return ue.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ue.lastType)||ue.lastType=="quasi"&&/\{\s*$/.test(W.string.slice(0,W.pos-(Fe||0)))}return Xe(ze,"expressionAllowed"),{startState:function(W){var ue={tokenize:A,lastType:"sof",cc:[],lexical:new $((W||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Z(null,null,!1),indented:W||0};return i.globalVars&&typeof i.globalVars=="object"&&(ue.globalVars=i.globalVars),ue},token:function(W,ue){if(W.sol()&&(ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!1),ue.indented=W.indentation(),F(W,ue)),ue.tokenize!=L&&W.eatSpace())return null;var Fe=ue.tokenize(W,ue);return k=="comment"?Fe:(ue.lastType=k=="operator"&&(N=="++"||N=="--")?"incdec":k,J(ue,Fe,k,N,W))},indent:function(W,ue){if(W.tokenize==L||W.tokenize==V)return n.Pass;if(W.tokenize!=A)return 0;var Fe=ue&&ue.charAt(0),We=W.lexical,St;if(!/^\s*else\b/.test(ue))for(var en=W.cc.length-1;en>=0;--en){var st=W.cc[en];if(st==Ie)We=We.prev;else if(st!=Ko&&st!=he)break}for(;(We.type=="stat"||We.type=="form")&&(Fe=="}"||(St=W.cc[W.cc.length-1])&&(St==Ee||St==oe)&&!/^[,\.=+\-*:?[\(]/.test(ue));)We=We.prev;l&&We.type==")"&&We.prev.type=="stat"&&(We=We.prev);var _r=We.type,ji=Fe==_r;return _r=="vardef"?We.indented+(W.lastType=="operator"||W.lastType==","?We.info.length+1:0):_r=="form"&&Fe=="{"?We.indented:_r=="form"?We.indented+o:_r=="stat"?We.indented+(Js(W,ue)?l||o:0):We.info=="switch"&&!ji&&i.doubleIndentSwitch!=!1?We.indented+(/^(?:case|default)\b/.test(ue)?o:2*o):We.align?We.column+(ji?0:1):We.indented+(ji?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:c,jsonMode:p,expressionAllowed:ze,skipExpression:function(W){J(W,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var h4=Ore.exports;const Dre=Object.freeze(Object.defineProperty({__proto__:null,j:p4({__proto__:null,default:fo(h4)},[h4])},Symbol.toStringTag,{value:"Module"}));var kre=Object.defineProperty,r1=(e,t)=>kre(e,"name",{value:t,configurable:!0});function m4(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"}))}r1(m4,"_mergeNamespaces");var Rre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r={},i=/[^\s\u00a0]/,o=n.Pos,l=n.cmpPos;function c(m){var E=m.search(i);return E==-1?0:E}r1(c,"firstNonWS"),n.commands.toggleComment=function(m){m.toggleComment()},n.defineExtension("toggleComment",function(m){m||(m=r);for(var E=this,b=1/0,y=this.listSelections(),x=null,w=y.length-1;w>=0;w--){var k=y[w].from(),N=y[w].to();k.line>=b||(N.line>=b&&(N=o(b,0)),b=k.line,x==null?E.uncomment(k,N,m)?x="un":(E.lineComment(k,N,m),x="line"):x=="un"?E.uncomment(k,N,m):E.lineComment(k,N,m))}});function p(m,E,b){return/\bstring\b/.test(m.getTokenTypeAt(o(E.line,0)))&&!/^[\'\"\`]/.test(b)}r1(p,"probablyInsideString");function d(m,E){var b=m.getMode();return b.useInnerComments===!1||!b.innerMode?b:m.getModeAt(E)}r1(d,"getMode"),n.defineExtension("lineComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=y.getLine(m.line);if(!(w==null||p(y,m,w))){var k=b.lineComment||x.lineComment;if(!k){(b.blockCommentStart||x.blockCommentStart)&&(b.fullLines=!0,y.blockComment(m,E,b));return}var N=Math.min(E.ch!=0||E.line==m.line?E.line+1:E.line,y.lastLine()+1),D=b.padding==null?" ":b.padding,A=b.commentBlankLines||m.line==E.line;y.operation(function(){if(b.indent){for(var _=null,L=m.line;L<N;++L){var V=y.getLine(L),P=V.slice(0,c(V));(_==null||_.length>P.length)&&(_=P)}for(var L=m.line;L<N;++L){var V=y.getLine(L),F=_.length;!A&&!i.test(V)||(V.slice(0,F)!=_&&(F=c(V)),y.replaceRange(_+k+D,o(L,0),o(L,F)))}}else for(var L=m.line;L<N;++L)(A||i.test(y.getLine(L)))&&y.replaceRange(k+D,o(L,0))})}}),n.defineExtension("blockComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=b.blockCommentStart||x.blockCommentStart,k=b.blockCommentEnd||x.blockCommentEnd;if(!w||!k){(b.lineComment||x.lineComment)&&b.fullLines!=!1&&y.lineComment(m,E,b);return}if(!/\bcomment\b/.test(y.getTokenTypeAt(o(m.line,0)))){var N=Math.min(E.line,y.lastLine());N!=m.line&&E.ch==0&&i.test(y.getLine(N))&&--N;var D=b.padding==null?" ":b.padding;m.line>N||y.operation(function(){if(b.fullLines!=!1){var A=i.test(y.getLine(N));y.replaceRange(D+k,o(N)),y.replaceRange(w+D,o(m.line,0));var _=b.blockCommentLead||x.blockCommentLead;if(_!=null)for(var L=m.line+1;L<=N;++L)(L!=N||A)&&y.replaceRange(_+D,o(L,0))}else{var V=l(y.getCursor("to"),E)==0,P=!y.somethingSelected();y.replaceRange(k,E),V&&y.setSelection(P?E:y.getCursor("from"),E),y.replaceRange(w,m)}})}}),n.defineExtension("uncomment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=Math.min(E.ch!=0||E.line==m.line?E.line:E.line-1,y.lastLine()),k=Math.min(m.line,w),N=b.lineComment||x.lineComment,D=[],A=b.padding==null?" ":b.padding,_;e:{if(!N)break e;for(var L=k;L<=w;++L){var V=y.getLine(L),P=V.indexOf(N);if(P>-1&&!/comment/.test(y.getTokenTypeAt(o(L,P+1)))&&(P=-1),P==-1&&i.test(V)||P>-1&&i.test(V.slice(0,P)))break e;D.push(V)}if(y.operation(function(){for(var Z=k;Z<=w;++Z){var ge=D[Z-k],ae=ge.indexOf(N),pe=ae+N.length;ae<0||(ge.slice(pe,pe+A.length)==A&&(pe+=A.length),_=!0,y.replaceRange("",o(Z,ae),o(Z,pe)))}}),_)return!0}var F=b.blockCommentStart||x.blockCommentStart,j=b.blockCommentEnd||x.blockCommentEnd;if(!F||!j)return!1;var $=b.blockCommentLead||x.blockCommentLead,X=y.getLine(k),J=X.indexOf(F);if(J==-1)return!1;var ee=w==k?X:y.getLine(w),K=ee.indexOf(j,w==k?J+F.length:0),B=o(k,J+1),ne=o(w,K+1);if(K==-1||!/comment/.test(y.getTokenTypeAt(B))||!/comment/.test(y.getTokenTypeAt(ne))||y.getRange(B,ne,`
500
+ `,i(P.head.line,0)):_.replaceRange(_.getRange(P.from(),P.to()),P.from())}_.scrollIntoView()})};function x(_,L,V){if(_.isReadOnly())return n.Pass;for(var P=_.listSelections(),F=[],j,$=0;$<P.length;$++){var X=P[$];if(!X.empty()){for(var J=X.from().line,ee=X.to().line;$<P.length-1&&P[$+1].from().line==ee;)ee=P[++$].to().line;P[$].to().ch||ee--,F.push(J,ee)}}F.length?j=!0:F.push(_.firstLine(),_.lastLine()),_.operation(function(){for(var K=[],B=0;B<F.length;B+=2){var ne=F[B],re=F[B+1],se=i(ne,0),fe=i(re),Z=_.getRange(se,fe,!1);L?Z.sort(function(ge,ae){return ge<ae?-V:ge==ae?0:V}):Z.sort(function(ge,ae){var pe=ge.toUpperCase(),ce=ae.toUpperCase();return pe!=ce&&(ge=pe,ae=ce),ge<ae?-V:ge==ae?0:V}),_.replaceRange(Z,se,fe),j&&K.push({anchor:se,head:i(re+1,0)})}j&&_.setSelections(K,0)})}Wo(x,"sortLines"),r.sortLines=function(_){x(_,!0,1)},r.reverseSortLines=function(_){x(_,!0,-1)},r.sortLinesInsensitive=function(_){x(_,!1,1)},r.reverseSortLinesInsensitive=function(_){x(_,!1,-1)},r.nextBookmark=function(_){var L=_.state.sublimeBookmarks;if(L)for(;L.length;){var V=L.shift(),P=V.find();if(P)return L.push(V),_.setSelection(P.from,P.to)}},r.prevBookmark=function(_){var L=_.state.sublimeBookmarks;if(L)for(;L.length;){L.unshift(L.pop());var V=L[L.length-1].find();if(!V)L.pop();else return _.setSelection(V.from,V.to)}},r.toggleBookmark=function(_){for(var L=_.listSelections(),V=_.state.sublimeBookmarks||(_.state.sublimeBookmarks=[]),P=0;P<L.length;P++){for(var F=L[P].from(),j=L[P].to(),$=L[P].empty()?_.findMarksAt(F):_.findMarks(F,j),X=0;X<$.length;X++)if($[X].sublimeBookmark){$[X].clear();for(var J=0;J<V.length;J++)V[J]==$[X]&&V.splice(J--,1);break}X==$.length&&V.push(_.markText(F,j,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},r.clearBookmarks=function(_){var L=_.state.sublimeBookmarks;if(L)for(var V=0;V<L.length;V++)L[V].clear();L.length=0},r.selectBookmarks=function(_){var L=_.state.sublimeBookmarks,V=[];if(L)for(var P=0;P<L.length;P++){var F=L[P].find();F?V.push({anchor:F.from,head:F.to}):L.splice(P--,0)}V.length&&_.setSelections(V,0)};function w(_,L){_.operation(function(){for(var V=_.listSelections(),P=[],F=[],j=0;j<V.length;j++){var $=V[j];$.empty()?(P.push(j),F.push("")):F.push(L(_.getRange($.from(),$.to())))}_.replaceSelections(F,"around","case");for(var j=P.length-1,X;j>=0;j--){var $=V[P[j]];if(!(X&&n.cmpPos($.head,X)>0)){var J=p(_,$.head);X=J.from,_.replaceRange(L(J.word),J.from,J.to)}}})}Wo(w,"modifyWordOrSelection"),r.smartBackspace=function(_){if(_.somethingSelected())return n.Pass;_.operation(function(){for(var L=_.listSelections(),V=_.getOption("indentUnit"),P=L.length-1;P>=0;P--){var F=L[P].head,j=_.getRange({line:F.line,ch:0},F),$=n.countColumn(j,null,_.getOption("tabSize")),X=_.findPosH(F,-1,"char",!1);if(j&&!/\S/.test(j)&&$%V==0){var J=new i(F.line,n.findColumn(j,$-V,V));J.ch!=F.ch&&(X=J)}_.replaceRange("",X,F,"+delete")}})},r.delLineRight=function(_){_.operation(function(){for(var L=_.listSelections(),V=L.length-1;V>=0;V--)_.replaceRange("",L[V].anchor,i(L[V].to().line),"+delete");_.scrollIntoView()})},r.upcaseAtCursor=function(_){w(_,function(L){return L.toUpperCase()})},r.downcaseAtCursor=function(_){w(_,function(L){return L.toLowerCase()})},r.setSublimeMark=function(_){_.state.sublimeMark&&_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor())},r.selectToSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();L&&_.setSelection(_.getCursor(),L)},r.deleteToSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();if(L){var V=_.getCursor(),P=L;if(n.cmpPos(V,P)>0){var F=P;P=V,V=F}_.state.sublimeKilled=_.getRange(V,P),_.replaceRange("",V,P)}},r.swapWithSublimeMark=function(_){var L=_.state.sublimeMark&&_.state.sublimeMark.find();L&&(_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor()),_.setCursor(L))},r.sublimeYank=function(_){_.state.sublimeKilled!=null&&_.replaceSelection(_.state.sublimeKilled,null,"paste")},r.showInCenter=function(_){var L=_.cursorCoords(null,"local");_.scrollTo(null,(L.top+L.bottom)/2-_.getScrollInfo().clientHeight/2)};function k(_){var L=_.getCursor("from"),V=_.getCursor("to");if(n.cmpPos(L,V)==0){var P=p(_,L);if(!P.word)return;L=P.from,V=P.to}return{from:L,to:V,query:_.getRange(L,V),word:P}}Wo(k,"getTarget");function N(_,L){var V=k(_);if(V){var P=V.query,F=_.getSearchCursor(P,L?V.to:V.from);(L?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):(F=_.getSearchCursor(P,L?i(_.firstLine(),0):_.clipPos(i(_.lastLine()))),(L?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):V.word&&_.setSelection(V.from,V.to))}}Wo(N,"findAndGoTo"),r.findUnder=function(_){N(_,!0)},r.findUnderPrevious=function(_){N(_,!1)},r.findAllUnder=function(_){var L=k(_);if(L){for(var V=_.getSearchCursor(L.query),P=[],F=-1;V.findNext();)P.push({anchor:V.from(),head:V.to()}),V.from().line<=L.from.line&&V.from().ch<=L.from.ch&&F++;_.setSelections(P,F)}};var D=n.keyMap;D.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},n.normalizeKeyMap(D.macSublime),D.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},n.normalizeKeyMap(D.pcSublime);var A=D.default==D.macDefault;D.sublime=A?D.macSublime:D.pcSublime})})();var f4=Nre.exports;const d4=Object.freeze(Object.defineProperty({__proto__:null,s:c4({__proto__:null,default:fo(f4)},[f4])},Symbol.toStringTag,{value:"Module"}));var Are=Object.defineProperty,Xe=(e,t)=>Are(e,"name",{value:t,configurable:!0});function p4(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"}))}Xe(p4,"_mergeNamespaces");var Ore={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,l=i.statementIndent,c=i.jsonld,p=i.json||c,d=i.trackScope!==!1,m=i.typescript,E=i.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function W(_r){return{type:_r,style:"keyword"}}Xe(W,"kw");var ue=W("keyword a"),Fe=W("keyword b"),We=W("keyword c"),St=W("keyword d"),en=W("operator"),st={type:"atom",style:"atom"};return{if:W("if"),while:ue,with:ue,else:Fe,do:Fe,try:Fe,finally:Fe,return:St,break:St,continue:St,new:W("new"),delete:We,void:We,throw:We,debugger:W("debugger"),var:W("var"),const:W("var"),let:W("var"),function:W("function"),catch:W("catch"),for:W("for"),switch:W("switch"),case:W("case"),default:W("default"),in:en,typeof:en,instanceof:en,true:st,false:st,null:st,undefined:st,NaN:st,Infinity:st,this:W("this"),class:W("class"),super:W("atom"),yield:We,export:W("export"),import:W("import"),extends:We,await:We}})(),y=/[+\-*&%=<>!?|~^@]/,x=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function w(W){for(var ue=!1,Fe,We=!1;(Fe=W.next())!=null;){if(!ue){if(Fe=="/"&&!We)return;Fe=="["?We=!0:We&&Fe=="]"&&(We=!1)}ue=!ue&&Fe=="\\"}}Xe(w,"readRegexp");var k,N;function D(W,ue,Fe){return k=W,N=Fe,ue}Xe(D,"ret");function A(W,ue){var Fe=W.next();if(Fe=='"'||Fe=="'")return ue.tokenize=_(Fe),ue.tokenize(W,ue);if(Fe=="."&&W.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(Fe=="."&&W.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Fe))return D(Fe);if(Fe=="="&&W.eat(">"))return D("=>","operator");if(Fe=="0"&&W.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(Fe))return W.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(Fe=="/")return W.eat("*")?(ue.tokenize=L,L(W,ue)):W.eat("/")?(W.skipToEnd(),D("comment","comment")):ze(W,ue,1)?(w(W),W.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(W.eat("="),D("operator","operator",W.current()));if(Fe=="`")return ue.tokenize=V,V(W,ue);if(Fe=="#"&&W.peek()=="!")return W.skipToEnd(),D("meta","meta");if(Fe=="#"&&W.eatWhile(E))return D("variable","property");if(Fe=="<"&&W.match("!--")||Fe=="-"&&W.match("->")&&!/\S/.test(W.string.slice(0,W.start)))return W.skipToEnd(),D("comment","comment");if(y.test(Fe))return(Fe!=">"||!ue.lexical||ue.lexical.type!=">")&&(W.eat("=")?(Fe=="!"||Fe=="=")&&W.eat("="):/[<>*+\-|&?]/.test(Fe)&&(W.eat(Fe),Fe==">"&&W.eat(Fe))),Fe=="?"&&W.eat(".")?D("."):D("operator","operator",W.current());if(E.test(Fe)){W.eatWhile(E);var We=W.current();if(ue.lastType!="."){if(b.propertyIsEnumerable(We)){var St=b[We];return D(St.type,St.style,We)}if(We=="async"&&W.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",We)}return D("variable","variable",We)}}Xe(A,"tokenBase");function _(W){return function(ue,Fe){var We=!1,St;if(c&&ue.peek()=="@"&&ue.match(x))return Fe.tokenize=A,D("jsonld-keyword","meta");for(;(St=ue.next())!=null&&!(St==W&&!We);)We=!We&&St=="\\";return We||(Fe.tokenize=A),D("string","string")}}Xe(_,"tokenString");function L(W,ue){for(var Fe=!1,We;We=W.next();){if(We=="/"&&Fe){ue.tokenize=A;break}Fe=We=="*"}return D("comment","comment")}Xe(L,"tokenComment");function V(W,ue){for(var Fe=!1,We;(We=W.next())!=null;){if(!Fe&&(We=="`"||We=="$"&&W.eat("{"))){ue.tokenize=A;break}Fe=!Fe&&We=="\\"}return D("quasi","string-2",W.current())}Xe(V,"tokenQuasi");var P="([{}])";function F(W,ue){ue.fatArrowAt&&(ue.fatArrowAt=null);var Fe=W.string.indexOf("=>",W.start);if(!(Fe<0)){if(m){var We=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(W.string.slice(W.start,Fe));We&&(Fe=We.index)}for(var St=0,en=!1,st=Fe-1;st>=0;--st){var _r=W.string.charAt(st),ji=P.indexOf(_r);if(ji>=0&&ji<3){if(!St){++st;break}if(--St==0){_r=="("&&(en=!0);break}}else if(ji>=3&&ji<6)++St;else if(E.test(_r))en=!0;else if(/["'\/`]/.test(_r))for(;;--st){if(st==0)return;var vs=W.string.charAt(st-1);if(vs==_r&&W.string.charAt(st-2)!="\\"){st--;break}}else if(en&&!St){++st;break}}en&&!St&&(ue.fatArrowAt=st)}}Xe(F,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(W,ue,Fe,We,St,en){this.indented=W,this.column=ue,this.type=Fe,this.prev=St,this.info=en,We!=null&&(this.align=We)}Xe($,"JSLexical");function X(W,ue){if(!d)return!1;for(var Fe=W.localVars;Fe;Fe=Fe.next)if(Fe.name==ue)return!0;for(var We=W.context;We;We=We.prev)for(var Fe=We.vars;Fe;Fe=Fe.next)if(Fe.name==ue)return!0}Xe(X,"inScope");function J(W,ue,Fe,We,St){var en=W.cc;for(ee.state=W,ee.stream=St,ee.marked=null,ee.cc=en,ee.style=ue,W.lexical.hasOwnProperty("align")||(W.lexical.align=!0);;){var st=en.length?en.pop():p?vt:Ze;if(st(Fe,We)){for(;en.length&&en[en.length-1].lex;)en.pop()();return ee.marked?ee.marked:Fe=="variable"&&X(W,We)?"variable-2":ue}}}Xe(J,"parseJS");var ee={state:null,marked:null,cc:null};function K(){for(var W=arguments.length-1;W>=0;W--)ee.cc.push(arguments[W])}Xe(K,"pass");function B(){return K.apply(null,arguments),!0}Xe(B,"cont");function ne(W,ue){for(var Fe=ue;Fe;Fe=Fe.next)if(Fe.name==W)return!0;return!1}Xe(ne,"inList");function re(W){var ue=ee.state;if(ee.marked="def",!!d){if(ue.context){if(ue.lexical.info=="var"&&ue.context&&ue.context.block){var Fe=se(W,ue.context);if(Fe!=null){ue.context=Fe;return}}else if(!ne(W,ue.localVars)){ue.localVars=new ge(W,ue.localVars);return}}i.globalVars&&!ne(W,ue.globalVars)&&(ue.globalVars=new ge(W,ue.globalVars))}}Xe(re,"register");function se(W,ue){if(ue)if(ue.block){var Fe=se(W,ue.prev);return Fe?Fe==ue.prev?ue:new Z(Fe,ue.vars,!0):null}else return ne(W,ue.vars)?ue:new Z(ue.prev,new ge(W,ue.vars),!1);else return null}Xe(se,"registerVarScoped");function fe(W){return W=="public"||W=="private"||W=="protected"||W=="abstract"||W=="readonly"}Xe(fe,"isModifier");function Z(W,ue,Fe){this.prev=W,this.vars=ue,this.block=Fe}Xe(Z,"Context");function ge(W,ue){this.name=W,this.next=ue}Xe(ge,"Var");var ae=new ge("this",new ge("arguments",null));function pe(){ee.state.context=new Z(ee.state.context,ee.state.localVars,!1),ee.state.localVars=ae}Xe(pe,"pushcontext");function ce(){ee.state.context=new Z(ee.state.context,ee.state.localVars,!0),ee.state.localVars=null}Xe(ce,"pushblockcontext"),pe.lex=ce.lex=!0;function he(){ee.state.localVars=ee.state.context.vars,ee.state.context=ee.state.context.prev}Xe(he,"popcontext"),he.lex=!0;function Se(W,ue){var Fe=Xe(function(){var We=ee.state,St=We.indented;if(We.lexical.type=="stat")St=We.lexical.indented;else for(var en=We.lexical;en&&en.type==")"&&en.align;en=en.prev)St=en.indented;We.lexical=new $(St,ee.stream.column(),W,null,We.lexical,ue)},"result");return Fe.lex=!0,Fe}Xe(Se,"pushlex");function Ie(){var W=ee.state;W.lexical.prev&&(W.lexical.type==")"&&(W.indented=W.lexical.indented),W.lexical=W.lexical.prev)}Xe(Ie,"poplex"),Ie.lex=!0;function Ge(W){function ue(Fe){return Fe==W?B():W==";"||Fe=="}"||Fe==")"||Fe=="]"?K():B(ue)}return Xe(ue,"exp"),ue}Xe(Ge,"expect");function Ze(W,ue){return W=="var"?B(Se("vardef",ue),tr,Ge(";"),Ie):W=="keyword a"?B(Se("form"),Oe,Ze,Ie):W=="keyword b"?B(Se("form"),Ze,Ie):W=="keyword d"?ee.stream.match(/^\s*$/,!1)?B():B(Se("stat"),Le,Ge(";"),Ie):W=="debugger"?B(Ge(";")):W=="{"?B(Se("}"),ce,Vt,Ie,he):W==";"?B():W=="if"?(ee.state.lexical.info=="else"&&ee.state.cc[ee.state.cc.length-1]==Ie&&ee.state.cc.pop()(),B(Se("form"),Oe,Ze,Ie,Ko)):W=="function"?B(Bn):W=="for"?B(Se("form"),ce,Xo,Ze,he,Ie):W=="class"||m&&ue=="interface"?(ee.marked="keyword",B(Se("form",W=="class"?W:ue),po,Ie)):W=="variable"?m&&ue=="declare"?(ee.marked="keyword",B(Ze)):m&&(ue=="module"||ue=="enum"||ue=="type")&&ee.stream.match(/^\s*\w/,!1)?(ee.marked="keyword",ue=="enum"?B(Ir):ue=="type"?B(Fi,Ge("operator"),mt,Ge(";")):B(Se("form"),Ft,Ge("{"),Se("}"),Vt,Ie,Ie)):m&&ue=="namespace"?(ee.marked="keyword",B(Se("form"),vt,Ze,Ie)):m&&ue=="abstract"?(ee.marked="keyword",B(Ze)):B(Se("stat"),ht):W=="switch"?B(Se("form"),Oe,Ge("{"),Se("}","switch"),ce,Vt,Ie,Ie,he):W=="case"?B(vt,Ge(":")):W=="default"?B(Ge(":")):W=="catch"?B(Se("form"),pe,It,Ze,Ie,he):W=="export"?B(Se("stat"),ho,Ie):W=="import"?B(Se("stat"),nr,Ie):W=="async"?B(Ze):ue=="@"?B(vt,Ze):K(Se("stat"),vt,Ge(";"),Ie)}Xe(Ze,"statement");function It(W){if(W=="(")return B($r,Ge(")"))}Xe(It,"maybeCatchBinding");function vt(W,ue){return be(W,ue,!1)}Xe(vt,"expression");function at(W,ue){return be(W,ue,!0)}Xe(at,"expressionNoComma");function Oe(W){return W!="("?K():B(Se(")"),Le,Ge(")"),Ie)}Xe(Oe,"parenExpr");function be(W,ue,Fe){if(ee.state.fatArrowAt==ee.stream.start){var We=Fe?Ye:ct;if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,Ge("=>"),We,he);if(W=="variable")return K(pe,Ft,Ge("=>"),We,he)}var St=Fe?oe:Ee;return j.hasOwnProperty(W)?B(St):W=="function"?B(Bn,St):W=="class"||m&&ue=="interface"?(ee.marked="keyword",B(Se("form"),Oo,Ie)):W=="keyword c"||W=="async"?B(Fe?at:vt):W=="("?B(Se(")"),Le,Ge(")"),Ie,St):W=="operator"||W=="spread"?B(Fe?at:vt):W=="["?B(Se("]"),an,Ie,St):W=="{"?Wt(jt,"}",null,St):W=="quasi"?K(je,St):W=="new"?B(xe(Fe)):B()}Xe(be,"expressionInner");function Le(W){return W.match(/[;\}\)\],]/)?K():K(vt)}Xe(Le,"maybeexpression");function Ee(W,ue){return W==","?B(Le):oe(W,ue,!1)}Xe(Ee,"maybeoperatorComma");function oe(W,ue,Fe){var We=Fe==!1?Ee:oe,St=Fe==!1?vt:at;if(W=="=>")return B(pe,Fe?Ye:ct,he);if(W=="operator")return/\+\+|--/.test(ue)||m&&ue=="!"?B(We):m&&ue=="<"&&ee.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?B(Se(">"),pt(mt,">"),Ie,We):ue=="?"?B(vt,Ge(":"),St):B(St);if(W=="quasi")return K(je,We);if(W!=";"){if(W=="(")return Wt(at,")","call",We);if(W==".")return B(Ot,We);if(W=="[")return B(Se("]"),Le,Ge("]"),Ie,We);if(m&&ue=="as")return ee.marked="keyword",B(mt,We);if(W=="regexp")return ee.state.lastType=ee.marked="operator",ee.stream.backUp(ee.stream.pos-ee.stream.start-1),B(St)}}Xe(oe,"maybeoperatorNoComma");function je(W,ue){return W!="quasi"?K():ue.slice(ue.length-2)!="${"?B(je):B(Le,et)}Xe(je,"quasi");function et(W){if(W=="}")return ee.marked="string-2",ee.state.tokenize=V,B(je)}Xe(et,"continueQuasi");function ct(W){return F(ee.stream,ee.state),K(W=="{"?Ze:vt)}Xe(ct,"arrowBody");function Ye(W){return F(ee.stream,ee.state),K(W=="{"?Ze:at)}Xe(Ye,"arrowBodyNoComma");function xe(W){return function(ue){return ue=="."?B(W?nt:$e):ue=="variable"&&m?B(Bt,W?oe:Ee):K(W?at:vt)}}Xe(xe,"maybeTarget");function $e(W,ue){if(ue=="target")return ee.marked="keyword",B(Ee)}Xe($e,"target");function nt(W,ue){if(ue=="target")return ee.marked="keyword",B(oe)}Xe(nt,"targetNoComma");function ht(W){return W==":"?B(Ie,Ze):K(Ee,Ge(";"),Ie)}Xe(ht,"maybelabel");function Ot(W){if(W=="variable")return ee.marked="property",B()}Xe(Ot,"property");function jt(W,ue){if(W=="async")return ee.marked="property",B(jt);if(W=="variable"||ee.style=="keyword"){if(ee.marked="property",ue=="get"||ue=="set")return B(dt);var Fe;return m&&ee.state.fatArrowAt==ee.stream.start&&(Fe=ee.stream.match(/^\s*:\s*/,!1))&&(ee.state.fatArrowAt=ee.stream.pos+Fe[0].length),B(Et)}else{if(W=="number"||W=="string")return ee.marked=c?"property":ee.style+" property",B(Et);if(W=="jsonld-keyword")return B(Et);if(m&&fe(ue))return ee.marked="keyword",B(jt);if(W=="[")return B(vt,Jt,Ge("]"),Et);if(W=="spread")return B(at,Et);if(ue=="*")return ee.marked="keyword",B(jt);if(W==":")return K(Et)}}Xe(jt,"objprop");function dt(W){return W!="variable"?K(Et):(ee.marked="property",B(Bn))}Xe(dt,"getterSetter");function Et(W){if(W==":")return B(at);if(W=="(")return K(Bn)}Xe(Et,"afterprop");function pt(W,ue,Fe){function We(St,en){if(Fe?Fe.indexOf(St)>-1:St==","){var st=ee.state.lexical;return st.info=="call"&&(st.pos=(st.pos||0)+1),B(function(_r,ji){return _r==ue||ji==ue?K():K(W)},We)}return St==ue||en==ue?B():Fe&&Fe.indexOf(";")>-1?K(W):B(Ge(ue))}return Xe(We,"proceed"),function(St,en){return St==ue||en==ue?B():K(W,We)}}Xe(pt,"commasep");function Wt(W,ue,Fe){for(var We=3;We<arguments.length;We++)ee.cc.push(arguments[We]);return B(Se(ue,Fe),pt(W,ue),Ie)}Xe(Wt,"contCommasep");function Vt(W){return W=="}"?B():K(Ze,Vt)}Xe(Vt,"block");function Jt(W,ue){if(m){if(W==":")return B(mt);if(ue=="?")return B(Jt)}}Xe(Jt,"maybetype");function ot(W,ue){if(m&&(W==":"||ue=="in"))return B(mt)}Xe(ot,"maybetypeOrIn");function qn(W){if(m&&W==":")return ee.stream.match(/^\s*\w+\s+is\b/,!1)?B(vt,vn,mt):B(mt)}Xe(qn,"mayberettype");function vn(W,ue){if(ue=="is")return ee.marked="keyword",B()}Xe(vn,"isKW");function mt(W,ue){if(ue=="keyof"||ue=="typeof"||ue=="infer"||ue=="readonly")return ee.marked="keyword",B(ue=="typeof"?at:mt);if(W=="variable"||ue=="void")return ee.marked="type",B(wt);if(ue=="|"||ue=="&")return B(mt);if(W=="string"||W=="number"||W=="atom")return B(wt);if(W=="[")return B(Se("]"),pt(mt,"]",","),Ie,wt);if(W=="{")return B(Se("}"),di,Ie,wt);if(W=="(")return B(pt(Xi,")"),yn,wt);if(W=="<")return B(pt(mt,">"),mt);if(W=="quasi")return K(Mr,wt)}Xe(mt,"typeexpr");function yn(W){if(W=="=>")return B(mt)}Xe(yn,"maybeReturnType");function di(W){return W.match(/[\}\)\]]/)?B():W==","||W==";"?B(di):K(on,di)}Xe(di,"typeprops");function on(W,ue){if(W=="variable"||ee.style=="keyword")return ee.marked="property",B(on);if(ue=="?"||W=="number"||W=="string")return B(on);if(W==":")return B(mt);if(W=="[")return B(Ge("variable"),ot,Ge("]"),on);if(W=="(")return K(Lr,on);if(!W.match(/[;\}\)\],]/))return B()}Xe(on,"typeprop");function Mr(W,ue){return W!="quasi"?K():ue.slice(ue.length-2)!="${"?B(Mr):B(mt,An)}Xe(Mr,"quasiType");function An(W){if(W=="}")return ee.marked="string-2",ee.state.tokenize=V,B(Mr)}Xe(An,"continueQuasiType");function Xi(W,ue){return W=="variable"&&ee.stream.match(/^\s*[?:]/,!1)||ue=="?"?B(Xi):W==":"?B(mt):W=="spread"?B(Xi):K(mt)}Xe(Xi,"typearg");function wt(W,ue){if(ue=="<")return B(Se(">"),pt(mt,">"),Ie,wt);if(ue=="|"||W=="."||ue=="&")return B(mt);if(W=="[")return B(mt,Ge("]"),wt);if(ue=="extends"||ue=="implements")return ee.marked="keyword",B(mt);if(ue=="?")return B(mt,Ge(":"),mt)}Xe(wt,"afterType");function Bt(W,ue){if(ue=="<")return B(Se(">"),pt(mt,">"),Ie,wt)}Xe(Bt,"maybeTypeArgs");function cn(){return K(mt,kn)}Xe(cn,"typeparam");function kn(W,ue){if(ue=="=")return B(mt)}Xe(kn,"maybeTypeDefault");function tr(W,ue){return ue=="enum"?(ee.marked="keyword",B(Ir)):K(Ft,Jt,bn,Ii)}Xe(tr,"vardef");function Ft(W,ue){if(m&&fe(ue))return ee.marked="keyword",B(Ft);if(W=="variable")return re(ue),B();if(W=="spread")return B(Ft);if(W=="[")return Wt(Gt,"]");if(W=="{")return Wt(fn,"}")}Xe(Ft,"pattern");function fn(W,ue){return W=="variable"&&!ee.stream.match(/^\s*:/,!1)?(re(ue),B(bn)):(W=="variable"&&(ee.marked="property"),W=="spread"?B(Ft):W=="}"?K():W=="["?B(vt,Ge("]"),Ge(":"),fn):B(Ge(":"),Ft,bn))}Xe(fn,"proppattern");function Gt(){return K(Ft,bn)}Xe(Gt,"eltpattern");function bn(W,ue){if(ue=="=")return B(at)}Xe(bn,"maybeAssign");function Ii(W){if(W==",")return B(tr)}Xe(Ii,"vardefCont");function Ko(W,ue){if(W=="keyword b"&&ue=="else")return B(Se("form","else"),Ze,Ie)}Xe(Ko,"maybeelse");function Xo(W,ue){if(ue=="await")return B(Xo);if(W=="(")return B(Se(")"),Ao,Ie)}Xe(Xo,"forspec");function Ao(W){return W=="var"?B(tr,Er):W=="variable"?B(Er):K(Er)}Xe(Ao,"forspec1");function Er(W,ue){return W==")"?B():W==";"?B(Er):ue=="in"||ue=="of"?(ee.marked="keyword",B(vt,Er)):K(vt,Er)}Xe(Er,"forspec2");function Bn(W,ue){if(ue=="*")return ee.marked="keyword",B(Bn);if(W=="variable")return re(ue),B(Bn);if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,qn,Ze,he);if(m&&ue=="<")return B(Se(">"),pt(cn,">"),Ie,Bn)}Xe(Bn,"functiondef");function Lr(W,ue){if(ue=="*")return ee.marked="keyword",B(Lr);if(W=="variable")return re(ue),B(Lr);if(W=="(")return B(pe,Se(")"),pt($r,")"),Ie,qn,he);if(m&&ue=="<")return B(Se(">"),pt(cn,">"),Ie,Lr)}Xe(Lr,"functiondecl");function Fi(W,ue){if(W=="keyword"||W=="variable")return ee.marked="type",B(Fi);if(ue=="<")return B(Se(">"),pt(cn,">"),Ie)}Xe(Fi,"typename");function $r(W,ue){return ue=="@"&&B(vt,$r),W=="spread"?B($r):m&&fe(ue)?(ee.marked="keyword",B($r)):m&&W=="this"?B(Jt,bn):K(Ft,Jt,bn)}Xe($r,"funarg");function Oo(W,ue){return W=="variable"?po(W,ue):Rn(W,ue)}Xe(Oo,"classExpression");function po(W,ue){if(W=="variable")return re(ue),B(Rn)}Xe(po,"className");function Rn(W,ue){if(ue=="<")return B(Se(">"),pt(cn,">"),Ie,Rn);if(ue=="extends"||ue=="implements"||m&&W==",")return ue=="implements"&&(ee.marked="keyword"),B(m?mt:vt,Rn);if(W=="{")return B(Se("}"),Zi,Ie)}Xe(Rn,"classNameAfter");function Zi(W,ue){if(W=="async"||W=="variable"&&(ue=="static"||ue=="get"||ue=="set"||m&&fe(ue))&&ee.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ee.marked="keyword",B(Zi);if(W=="variable"||ee.style=="keyword")return ee.marked="property",B(Pi,Zi);if(W=="number"||W=="string")return B(Pi,Zi);if(W=="[")return B(vt,Jt,Ge("]"),Pi,Zi);if(ue=="*")return ee.marked="keyword",B(Zi);if(m&&W=="(")return K(Lr,Zi);if(W==";"||W==",")return B(Zi);if(W=="}")return B();if(ue=="@")return B(vt,Zi)}Xe(Zi,"classBody");function Pi(W,ue){if(ue=="!"||ue=="?")return B(Pi);if(W==":")return B(mt,bn);if(ue=="=")return B(at);var Fe=ee.state.lexical.prev,We=Fe&&Fe.info=="interface";return K(We?Lr:Bn)}Xe(Pi,"classfield");function ho(W,ue){return ue=="*"?(ee.marked="keyword",B(zr,Ge(";"))):ue=="default"?(ee.marked="keyword",B(vt,Ge(";"))):W=="{"?B(pt(Do,"}"),zr,Ge(";")):K(Ze)}Xe(ho,"afterExport");function Do(W,ue){if(ue=="as")return ee.marked="keyword",B(Ge("variable"));if(W=="variable")return K(at,Do)}Xe(Do,"exportField");function nr(W){return W=="string"?B():W=="("?K(vt):W=="."?K(Ee):K(ft,mo,zr)}Xe(nr,"afterImport");function ft(W,ue){return W=="{"?Wt(ft,"}"):(W=="variable"&&re(ue),ue=="*"&&(ee.marked="keyword"),B(Yl))}Xe(ft,"importSpec");function mo(W){if(W==",")return B(ft,mo)}Xe(mo,"maybeMoreImports");function Yl(W,ue){if(ue=="as")return ee.marked="keyword",B(ft)}Xe(Yl,"maybeAs");function zr(W,ue){if(ue=="from")return ee.marked="keyword",B(vt)}Xe(zr,"maybeFrom");function an(W){return W=="]"?B():K(pt(at,"]"))}Xe(an,"arrayLiteral");function Ir(){return K(Se("form"),Ft,Ge("{"),Se("}"),pt(Zo,"}"),Ie,Ie)}Xe(Ir,"enumdef");function Zo(){return K(Ft,bn)}Xe(Zo,"enummember");function Js(W,ue){return W.lastType=="operator"||W.lastType==","||y.test(ue.charAt(0))||/[,.]/.test(ue.charAt(0))}Xe(Js,"isContinuedStatement");function ze(W,ue,Fe){return ue.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ue.lastType)||ue.lastType=="quasi"&&/\{\s*$/.test(W.string.slice(0,W.pos-(Fe||0)))}return Xe(ze,"expressionAllowed"),{startState:function(W){var ue={tokenize:A,lastType:"sof",cc:[],lexical:new $((W||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Z(null,null,!1),indented:W||0};return i.globalVars&&typeof i.globalVars=="object"&&(ue.globalVars=i.globalVars),ue},token:function(W,ue){if(W.sol()&&(ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!1),ue.indented=W.indentation(),F(W,ue)),ue.tokenize!=L&&W.eatSpace())return null;var Fe=ue.tokenize(W,ue);return k=="comment"?Fe:(ue.lastType=k=="operator"&&(N=="++"||N=="--")?"incdec":k,J(ue,Fe,k,N,W))},indent:function(W,ue){if(W.tokenize==L||W.tokenize==V)return n.Pass;if(W.tokenize!=A)return 0;var Fe=ue&&ue.charAt(0),We=W.lexical,St;if(!/^\s*else\b/.test(ue))for(var en=W.cc.length-1;en>=0;--en){var st=W.cc[en];if(st==Ie)We=We.prev;else if(st!=Ko&&st!=he)break}for(;(We.type=="stat"||We.type=="form")&&(Fe=="}"||(St=W.cc[W.cc.length-1])&&(St==Ee||St==oe)&&!/^[,\.=+\-*:?[\(]/.test(ue));)We=We.prev;l&&We.type==")"&&We.prev.type=="stat"&&(We=We.prev);var _r=We.type,ji=Fe==_r;return _r=="vardef"?We.indented+(W.lastType=="operator"||W.lastType==","?We.info.length+1:0):_r=="form"&&Fe=="{"?We.indented:_r=="form"?We.indented+o:_r=="stat"?We.indented+(Js(W,ue)?l||o:0):We.info=="switch"&&!ji&&i.doubleIndentSwitch!=!1?We.indented+(/^(?:case|default)\b/.test(ue)?o:2*o):We.align?We.column+(ji?0:1):We.indented+(ji?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:c,jsonMode:p,expressionAllowed:ze,skipExpression:function(W){J(W,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var h4=Ore.exports;const Dre=Object.freeze(Object.defineProperty({__proto__:null,j:p4({__proto__:null,default:fo(h4)},[h4])},Symbol.toStringTag,{value:"Module"}));var kre=Object.defineProperty,r1=(e,t)=>kre(e,"name",{value:t,configurable:!0});function m4(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"}))}r1(m4,"_mergeNamespaces");var Rre={exports:{}};(function(e,t){(function(n){n(Qi())})(function(n){var r={},i=/[^\s\u00a0]/,o=n.Pos,l=n.cmpPos;function c(m){var E=m.search(i);return E==-1?0:E}r1(c,"firstNonWS"),n.commands.toggleComment=function(m){m.toggleComment()},n.defineExtension("toggleComment",function(m){m||(m=r);for(var E=this,b=1/0,y=this.listSelections(),x=null,w=y.length-1;w>=0;w--){var k=y[w].from(),N=y[w].to();k.line>=b||(N.line>=b&&(N=o(b,0)),b=k.line,x==null?E.uncomment(k,N,m)?x="un":(E.lineComment(k,N,m),x="line"):x=="un"?E.uncomment(k,N,m):E.lineComment(k,N,m))}});function p(m,E,b){return/\bstring\b/.test(m.getTokenTypeAt(o(E.line,0)))&&!/^[\'\"\`]/.test(b)}r1(p,"probablyInsideString");function d(m,E){var b=m.getMode();return b.useInnerComments===!1||!b.innerMode?b:m.getModeAt(E)}r1(d,"getMode"),n.defineExtension("lineComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=y.getLine(m.line);if(!(w==null||p(y,m,w))){var k=b.lineComment||x.lineComment;if(!k){(b.blockCommentStart||x.blockCommentStart)&&(b.fullLines=!0,y.blockComment(m,E,b));return}var N=Math.min(E.ch!=0||E.line==m.line?E.line+1:E.line,y.lastLine()+1),D=b.padding==null?" ":b.padding,A=b.commentBlankLines||m.line==E.line;y.operation(function(){if(b.indent){for(var _=null,L=m.line;L<N;++L){var V=y.getLine(L),P=V.slice(0,c(V));(_==null||_.length>P.length)&&(_=P)}for(var L=m.line;L<N;++L){var V=y.getLine(L),F=_.length;!A&&!i.test(V)||(V.slice(0,F)!=_&&(F=c(V)),y.replaceRange(_+k+D,o(L,0),o(L,F)))}}else for(var L=m.line;L<N;++L)(A||i.test(y.getLine(L)))&&y.replaceRange(k+D,o(L,0))})}}),n.defineExtension("blockComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=b.blockCommentStart||x.blockCommentStart,k=b.blockCommentEnd||x.blockCommentEnd;if(!w||!k){(b.lineComment||x.lineComment)&&b.fullLines!=!1&&y.lineComment(m,E,b);return}if(!/\bcomment\b/.test(y.getTokenTypeAt(o(m.line,0)))){var N=Math.min(E.line,y.lastLine());N!=m.line&&E.ch==0&&i.test(y.getLine(N))&&--N;var D=b.padding==null?" ":b.padding;m.line>N||y.operation(function(){if(b.fullLines!=!1){var A=i.test(y.getLine(N));y.replaceRange(D+k,o(N)),y.replaceRange(w+D,o(m.line,0));var _=b.blockCommentLead||x.blockCommentLead;if(_!=null)for(var L=m.line+1;L<=N;++L)(L!=N||A)&&y.replaceRange(_+D,o(L,0))}else{var V=l(y.getCursor("to"),E)==0,P=!y.somethingSelected();y.replaceRange(k,E),V&&y.setSelection(P?E:y.getCursor("from"),E),y.replaceRange(w,m)}})}}),n.defineExtension("uncomment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=Math.min(E.ch!=0||E.line==m.line?E.line:E.line-1,y.lastLine()),k=Math.min(m.line,w),N=b.lineComment||x.lineComment,D=[],A=b.padding==null?" ":b.padding,_;e:{if(!N)break e;for(var L=k;L<=w;++L){var V=y.getLine(L),P=V.indexOf(N);if(P>-1&&!/comment/.test(y.getTokenTypeAt(o(L,P+1)))&&(P=-1),P==-1&&i.test(V)||P>-1&&i.test(V.slice(0,P)))break e;D.push(V)}if(y.operation(function(){for(var Z=k;Z<=w;++Z){var ge=D[Z-k],ae=ge.indexOf(N),pe=ae+N.length;ae<0||(ge.slice(pe,pe+A.length)==A&&(pe+=A.length),_=!0,y.replaceRange("",o(Z,ae),o(Z,pe)))}}),_)return!0}var F=b.blockCommentStart||x.blockCommentStart,j=b.blockCommentEnd||x.blockCommentEnd;if(!F||!j)return!1;var $=b.blockCommentLead||x.blockCommentLead,X=y.getLine(k),J=X.indexOf(F);if(J==-1)return!1;var ee=w==k?X:y.getLine(w),K=ee.indexOf(j,w==k?J+F.length:0),B=o(k,J+1),ne=o(w,K+1);if(K==-1||!/comment/.test(y.getTokenTypeAt(B))||!/comment/.test(y.getTokenTypeAt(ne))||y.getRange(B,ne,`
501
501
  `).indexOf(j)>-1)return!1;var re=X.lastIndexOf(F,m.ch),se=re==-1?-1:X.slice(0,m.ch).indexOf(j,re+F.length);if(re!=-1&&se!=-1&&se+j.length!=m.ch)return!1;se=ee.indexOf(j,E.ch);var fe=ee.slice(E.ch).lastIndexOf(F,se-E.ch);return re=se==-1||fe==-1?-1:E.ch+fe,se!=-1&&re!=-1&&re!=E.ch?!1:(y.operation(function(){y.replaceRange("",o(w,K-(A&&ee.slice(K-A.length,K)==A?A.length:0)),o(w,K+j.length));var Z=J+F.length;if(A&&X.slice(Z,Z+A.length)==A&&(Z+=A.length),y.replaceRange("",o(k,J),o(k,Z)),$)for(var ge=k+1;ge<=w;++ge){var ae=y.getLine(ge),pe=ae.indexOf($);if(!(pe==-1||i.test(ae.slice(0,pe)))){var ce=pe+$.length;A&&ae.slice(ce,ce+A.length)==A&&(ce+=A.length),y.replaceRange("",o(ge,pe),o(ge,ce))}}}),!0)})})})();var g4=Rre.exports;const Mre=Object.freeze(Object.defineProperty({__proto__:null,c:m4({__proto__:null,default:fo(g4)},[g4])},Symbol.toStringTag,{value:"Module"}));var Lre=Object.defineProperty,fr=(e,t)=>Lre(e,"name",{value:t,configurable:!0});function v4(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"}))}fr(v4,"_mergeNamespaces");var Ire={exports:{}};(function(e,t){(function(n){n(Qi(),t1(),xg)})(function(n){n.defineOption("search",{bottom:!1});function r(F,j){return typeof F=="string"?F=new RegExp(F.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),j?"gi":"g"):F.global||(F=new RegExp(F.source,F.ignoreCase?"gi":"g")),{token:function($){F.lastIndex=$.pos;var X=F.exec($.string);if(X&&X.index==$.pos)return $.pos+=X[0].length||1,"searching";X?$.pos=X.index:$.skipToEnd()}}}fr(r,"searchOverlay");function i(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}fr(i,"SearchState");function o(F){return F.state.search||(F.state.search=new i)}fr(o,"getSearchState");function l(F){return typeof F=="string"&&F==F.toLowerCase()}fr(l,"queryCaseInsensitive");function c(F,j,$){return F.getSearchCursor(j,$,{caseFold:l(j),multiline:!0})}fr(c,"getSearchCursor");function p(F,j,$,X,J){F.openDialog(j,X,{value:$,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){k(F)},onKeyDown:J,bottom:F.options.search.bottom})}fr(p,"persistentDialog");function d(F,j,$,X,J){F.openDialog?F.openDialog(j,J,{value:X,selectValueOnOpen:!0,bottom:F.options.search.bottom}):J(prompt($,X))}fr(d,"dialog");function m(F,j,$,X){F.openConfirm?F.openConfirm(j,X):confirm($)&&X[0]()}fr(m,"confirmDialog");function E(F){return F.replace(/\\([nrt\\])/g,function(j,$){return $=="n"?`
502
- `:$=="r"?"\r":$=="t"?" ":$=="\\"?"\\":j})}fr(E,"parseString");function b(F){var j=F.match(/^\/(.*)\/([a-z]*)$/);if(j)try{F=new RegExp(j[1],j[2].indexOf("i")==-1?"":"i")}catch{}else F=E(F);return(typeof F=="string"?F=="":F.test(""))&&(F=/x^/),F}fr(b,"parseQuery");function y(F,j,$){j.queryText=$,j.query=b($),F.removeOverlay(j.overlay,l(j.query)),j.overlay=r(j.query,l(j.query)),F.addOverlay(j.overlay),F.showMatchesOnScrollbar&&(j.annotate&&(j.annotate.clear(),j.annotate=null),j.annotate=F.showMatchesOnScrollbar(j.query,l(j.query)))}fr(y,"startSearch");function x(F,j,$,X){var J=o(F);if(J.query)return w(F,j);var ee=F.getSelection()||J.lastQuery;if(ee instanceof RegExp&&ee.source=="x^"&&(ee=null),$&&F.openDialog){var K=null,B=fr(function(ne,re){n.e_stop(re),ne&&(ne!=J.queryText&&(y(F,J,ne),J.posFrom=J.posTo=F.getCursor()),K&&(K.style.opacity=1),w(F,re.shiftKey,function(se,fe){var Z;fe.line<3&&document.querySelector&&(Z=F.display.wrapper.querySelector(".CodeMirror-dialog"))&&Z.getBoundingClientRect().bottom-4>F.cursorCoords(fe,"window").top&&((K=Z).style.opacity=.4)}))},"searchNext");p(F,D(F),ee,B,function(ne,re){var se=n.keyName(ne),fe=F.getOption("extraKeys"),Z=fe&&fe[se]||n.keyMap[F.getOption("keyMap")][se];Z=="findNext"||Z=="findPrev"||Z=="findPersistentNext"||Z=="findPersistentPrev"?(n.e_stop(ne),y(F,o(F),re),F.execCommand(Z)):(Z=="find"||Z=="findPersistent")&&(n.e_stop(ne),B(re,ne))}),X&&ee&&(y(F,J,ee),w(F,j))}else d(F,D(F),"Search for:",ee,function(ne){ne&&!J.query&&F.operation(function(){y(F,J,ne),J.posFrom=J.posTo=F.getCursor(),w(F,j)})})}fr(x,"doSearch");function w(F,j,$){F.operation(function(){var X=o(F),J=c(F,X.query,j?X.posFrom:X.posTo);!J.find(j)&&(J=c(F,X.query,j?n.Pos(F.lastLine()):n.Pos(F.firstLine(),0)),!J.find(j))||(F.setSelection(J.from(),J.to()),F.scrollIntoView({from:J.from(),to:J.to()},20),X.posFrom=J.from(),X.posTo=J.to(),$&&$(J.from(),J.to()))})}fr(w,"findNext");function k(F){F.operation(function(){var j=o(F);j.lastQuery=j.query,j.query&&(j.query=j.queryText=null,F.removeOverlay(j.overlay),j.annotate&&(j.annotate.clear(),j.annotate=null))})}fr(k,"clearSearch");function N(F,j){var $=F?document.createElement(F):document.createDocumentFragment();for(var X in j)$[X]=j[X];for(var J=2;J<arguments.length;J++){var ee=arguments[J];$.appendChild(typeof ee=="string"?document.createTextNode(ee):ee)}return $}fr(N,"el");function D(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Search:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}fr(D,"getQueryDialog");function A(F){return N("",null," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}fr(A,"getReplaceQueryDialog");function _(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("With:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}fr(_,"getReplacementQueryDialog");function L(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Replace?"))," ",N("button",{},F.phrase("Yes"))," ",N("button",{},F.phrase("No"))," ",N("button",{},F.phrase("All"))," ",N("button",{},F.phrase("Stop")))}fr(L,"getDoReplaceConfirm");function V(F,j,$){F.operation(function(){for(var X=c(F,j);X.findNext();)if(typeof j!="string"){var J=F.getRange(X.from(),X.to()).match(j);X.replace($.replace(/\$(\d)/g,function(ee,K){return J[K]}))}else X.replace($)})}fr(V,"replaceAll");function P(F,j){if(!F.getOption("readOnly")){var $=F.getSelection()||o(F).lastQuery,X=j?F.phrase("Replace all:"):F.phrase("Replace:"),J=N("",null,N("span",{className:"CodeMirror-search-label"},X),A(F));d(F,J,X,$,function(ee){ee&&(ee=b(ee),d(F,_(F),F.phrase("Replace with:"),"",function(K){if(K=E(K),j)V(F,ee,K);else{k(F);var B=c(F,ee,F.getCursor("from")),ne=fr(function(){var se=B.from(),fe;!(fe=B.findNext())&&(B=c(F,ee),!(fe=B.findNext())||se&&B.from().line==se.line&&B.from().ch==se.ch)||(F.setSelection(B.from(),B.to()),F.scrollIntoView({from:B.from(),to:B.to()}),m(F,L(F),F.phrase("Replace?"),[function(){re(fe)},ne,function(){V(F,ee,K)}]))},"advance"),re=fr(function(se){B.replace(typeof ee=="string"?K:K.replace(/\$(\d)/g,function(fe,Z){return se[Z]})),ne()},"doReplace");ne()}}))})}}fr(P,"replace"),n.commands.find=function(F){k(F),x(F)},n.commands.findPersistent=function(F){k(F),x(F,!1,!0)},n.commands.findPersistentNext=function(F){x(F,!1,!0,!0)},n.commands.findPersistentPrev=function(F){x(F,!0,!0,!0)},n.commands.findNext=x,n.commands.findPrev=function(F){x(F,!0)},n.commands.clearSearch=k,n.commands.replace=P,n.commands.replaceAll=function(F){P(F,!0)}})})();var y4=Ire.exports;const b4=Object.freeze(Object.defineProperty({__proto__:null,s:v4({__proto__:null,default:fo(y4)},[y4])},Symbol.toStringTag,{value:"Module"}));qt.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r}=t;if(!n)return;const i=e.getCursor(),o=e.getTokenAt(i),l=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,c=new Sf(i.line,l),p={list:O9(n,e.getValue(),c,o,r).map(d=>({text:d.label,type:d.type,description:d.documentation,isDeprecated:d.isDeprecated,deprecationReason:d.deprecationReason})),from:{line:i.line,ch:l},to:{line:i.line,ch:o.end}};return p!=null&&p.list&&p.list.length>0&&(p.from=qt.Pos(p.from.line,p.from.ch),p.to=qt.Pos(p.to.line,p.to.ch),qt.signal(e,"hasCompletion",e,p,o)),p});const Fre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),E4=["error","warning","information","hint"],Pre={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};qt.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return Z9(e,n,r,void 0,i).map(o=>({message:o.message,severity:o.severity?E4[o.severity-1]:E4[0],type:o.source?Pre[o.source]:void 0,from:qt.Pos(o.range.start.line,o.range.start.character),to:qt.Pos(o.range.end.line,o.range.end.character)}))});const jre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Vre=Object.defineProperty,Ure=(e,t)=>Vre(e,"name",{value:t,configurable:!0});function GC(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])}Ure(GC,"forEachState");var qre=Object.defineProperty,zl=(e,t)=>qre(e,"name",{value:t,configurable:!0});function YC(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return GC(t,r=>{var i,o;switch(r.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":r.type&&(n.type=e.getType(r.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&r.name?WC(e,n.parentType,r.name):null,n.type=(i=n.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?gn(n.type):null;break;case"Directive":n.directiveDef=r.name?e.getDirective(r.name):null;break;case"Arguments":const l=r.prevState?r.prevState.kind==="Field"?n.fieldDef:r.prevState.kind==="Directive"?n.directiveDef:r.prevState.kind==="AliasedField"?r.prevState.name&&WC(e,n.parentType,r.prevState.name):null:null;n.argDefs=l?l.args:null;break;case"Argument":if(n.argDef=null,n.argDefs){for(let E=0;E<n.argDefs.length;E++)if(n.argDefs[E].name===r.name){n.argDef=n.argDefs[E];break}}n.inputType=(o=n.argDef)===null||o===void 0?void 0:o.type;break;case"EnumValue":const c=n.inputType?gn(n.inputType):null;n.enumValue=c instanceof Hi?S4(c.getValues(),E=>E.value===r.name):null;break;case"ListValue":const p=n.inputType?Mu(n.inputType):null;n.inputType=p instanceof lr?p.ofType:null;break;case"ObjectValue":const d=n.inputType?gn(n.inputType):null;n.objectFieldDefs=d instanceof so?d.getFields():null;break;case"ObjectField":const m=r.name&&n.objectFieldDefs?n.objectFieldDefs[r.name]:null;n.inputType=m?.type;break;case"NamedType":n.type=r.name?e.getType(r.name):null;break}}),n}zl(YC,"getTypeInfo");function WC(e,t,n){if(n===va.name&&e.getQueryType()===t)return va;if(n===ya.name&&e.getQueryType()===t)return ya;if(n===ba.name&&Qr(t))return ba;if(t&&t.getFields)return t.getFields()[n]}zl(WC,"getFieldDef");function S4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}zl(S4,"find");function QC(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:JC(e.fieldDef)?null:e.parentType}}zl(QC,"getFieldReference");function KC(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}zl(KC,"getDirectiveReference");function XC(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:JC(e.fieldDef)?null:e.parentType}}zl(XC,"getArgumentReference");function ZC(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?gn(e.inputType):void 0}}zl(ZC,"getEnumValueReference");function i1(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}zl(i1,"getTypeReference");function JC(e){return e.name.slice(0,2)==="__"}zl(JC,"isMetaField");var Bre=Object.defineProperty,gs=(e,t)=>Bre(e,"name",{value:t,configurable:!0});qt.defineOption("info",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.info.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const r=e.state.info=T4(t);r.onMouseOver=w4.bind(null,e),qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}});function T4(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}gs(T4,"createState");function x4(e){const{options:t}=e.state.info;return t?.hoverTime||500}gs(x4,"getHoverTime");function w4(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||r.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const i=r.getBoundingClientRect(),o=gs(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,p)},"onMouseMove"),l=gs(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),c=gs(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,C4(e,i)},"onHover"),p=x4(e);n.hoverTimeout=setTimeout(c,p),qt.on(document,"mousemove",o),qt.on(e.getWrapperElement(),"mouseout",l)}gs(w4,"onMouseOver");function C4(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const l=e.getTokenAt(n,!0);if(l){const c=o(l,i,e,n);c&&_4(e,t,c)}}}gs(C4,"onMouseHover");function _4(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),o=window.getComputedStyle(r),l=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),c=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let p=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-c),p<0&&(p=t.bottom);let d=Math.max(0,window.innerWidth-l-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=p+"px",r.style.left=d+"px";let m;const E=gs(function(){clearTimeout(m)},"onMouseOverPopup"),b=gs(function(){clearTimeout(m),m=setTimeout(y,200)},"onMouseOut"),y=gs(function(){qt.off(r,"mouseover",E),qt.off(r,"mouseout",b),qt.off(e.getWrapperElement(),"mouseout",b),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()},"hidePopup");qt.on(r,"mouseover",E),qt.on(r,"mouseout",b),qt.on(e.getWrapperElement(),"mouseout",b)}gs(_4,"showPopup");const $re=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var zre=Object.defineProperty,Xs=(e,t)=>zre(e,"name",{value:t,configurable:!0});qt.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=YC(t.schema,e.state);if(n==="Field"&&r===0&&i.fieldDef||n==="AliasedField"&&r===2&&i.fieldDef){const o=document.createElement("div");o.className="CodeMirror-info-header",N4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.fieldDef),l}if(n==="Directive"&&r===1&&i.directiveDef){const o=document.createElement("div");o.className="CodeMirror-info-header",O4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.directiveDef),l}if(n==="Argument"&&r===0&&i.argDef){const o=document.createElement("div");o.className="CodeMirror-info-header",D4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.argDef),l}if(n==="EnumValue"&&i.enumValue&&i.enumValue.description){const o=document.createElement("div");o.className="CodeMirror-info-header",k4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.enumValue),l}if(n==="NamedType"&&i.type&&i.type.description){const o=document.createElement("div");o.className="CodeMirror-info-header",Kf(o,i,t,i.type);const l=document.createElement("div");return l.append(o),kp(l,t,i.type),l}});function N4(e,t,n){A4(e,t,n),e_(e,t,n,t.type)}Xs(N4,"renderField");function A4(e,t,n){var r;const i=((r=t.fieldDef)===null||r===void 0?void 0:r.name)||"";No(e,i,"field-name",n,QC(t))}Xs(A4,"renderQualifiedField");function O4(e,t,n){var r;const i="@"+(((r=t.directiveDef)===null||r===void 0?void 0:r.name)||"");No(e,i,"directive-name",n,KC(t))}Xs(O4,"renderDirective");function D4(e,t,n){var r;const i=((r=t.argDef)===null||r===void 0?void 0:r.name)||"";No(e,i,"arg-name",n,XC(t)),e_(e,t,n,t.inputType)}Xs(D4,"renderArg");function k4(e,t,n){var r;const i=((r=t.enumValue)===null||r===void 0?void 0:r.name)||"";Kf(e,t,n,t.inputType),No(e,"."),No(e,i,"enum-value",n,ZC(t))}Xs(k4,"renderEnumValue");function e_(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Pt?(Kf(i,t,n,r.ofType),No(i,"!")):r instanceof lr?(No(i,"["),Kf(i,t,n,r.ofType),No(i,"]")):No(i,r?.name||"","type-name",n,i1(t,r)),e.append(i)}Xs(e_,"renderTypeAnnotation");function Kf(e,t,n,r){r instanceof Pt?(Kf(e,t,n,r.ofType),No(e,"!")):r instanceof lr?(No(e,"["),Kf(e,t,n,r.ofType),No(e,"]")):No(e,r?.name||"","type-name",n,i1(t,r))}Xs(Kf,"renderType");function kp(e,t,n){const{description:r}=n;if(r){const i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.append(document.createTextNode(r)),e.append(i)}R4(e,t,n)}Xs(kp,"renderDescription");function R4(e,t,n){const r=n.deprecationReason;if(r){const i=document.createElement("div");i.className="info-deprecation",e.append(i);const o=document.createElement("span");o.className="info-deprecation-label",o.append(document.createTextNode("Deprecated")),i.append(o);const l=document.createElement("div");l.className="info-deprecation-reason",t.renderDescription?l.innerHTML=t.renderDescription(r):l.append(document.createTextNode(r)),i.append(l)}}Xs(R4,"renderDeprecation");function No(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let l;o?(l=document.createElement("a"),l.href="javascript:void 0",l.addEventListener("click",c=>{c.preventDefault(),o(i,c)})):l=document.createElement("span"),l.className=n,l.append(document.createTextNode(t)),e.append(l)}else e.append(document.createTextNode(t))}Xs(No,"text");const Hre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Gre=Object.defineProperty,Hl=(e,t)=>Gre(e,"name",{value:t,configurable:!0});qt.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.jump.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r);const i=e.state.jump.onMouseOut;qt.off(e.getWrapperElement(),"mouseout",i),qt.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const r=e.state.jump={options:t,onMouseOver:M4.bind(null,e),onMouseOut:L4.bind(null,e),onKeyDown:I4.bind(null,e)};qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver),qt.on(e.getWrapperElement(),"mouseout",r.onMouseOut),qt.on(document,"keydown",r.onKeyDown)}});function M4(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||n?.nodeName!=="SPAN")return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&t_(e)}Hl(M4,"onMouseOver");function L4(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&n_(e)}Hl(L4,"onMouseOut");function I4(e,t){if(e.state.jump.isHoldingModifier||!F4(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&t_(e);const n=Hl(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&n_(e),qt.off(document,"keyup",n),qt.off(document,"click",r),e.off("mousedown",i))},"onKeyUp"),r=Hl(o=>{const{destination:l,options:c}=e.state.jump;l&&c.onClick(l,o)},"onClick"),i=Hl((o,l)=>{e.state.jump.destination&&(l.codemirrorIgnore=!0)},"onMouseDown");qt.on(document,"keyup",n),qt.on(document,"click",r),e.on("mousedown",i)}Hl(I4,"onKeyDown");const Yre=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function F4(e){return e===(Yre?"Meta":"Control")}Hl(F4,"isJumpModifier");function t_(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const l=o(i,n,e);if(l){const c=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=c,e.state.jump.destination=l}}}Hl(t_,"enableJumpMode");function n_(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}Hl(n_,"disableJumpMode"),qt.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=YC(t.schema,n);if(r==="Field"&&i===0&&o.fieldDef||r==="AliasedField"&&i===2&&o.fieldDef)return QC(o);if(r==="Directive"&&i===1&&o.directiveDef)return KC(o);if(r==="Argument"&&i===0&&o.argDef)return XC(o);if(r==="EnumValue"&&o.enumValue)return ZC(o);if(r==="NamedType"&&o.type)return i1(o)});const Wre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Qre=Object.defineProperty,Kre=(e,t)=>Qre(e,"name",{value:t,configurable:!0});function o1(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((!i||i.length===0?o:i.at(-1)-(!((n=this.electricInput)===null||n===void 0)&&n.test(t)?1:0))||0)*(((r=this.config)===null||r===void 0?void 0:r.indentUnit)||0)}Kre(o1,"indent");var Xre=Object.defineProperty,Zre=(e,t)=>Xre(e,"name",{value:t,configurable:!0});const Jre=Zre(e=>{const t=bm({eatWhitespace:n=>n.eatWhile(wD),lexRules:CD,parseRules:_D,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");qt.defineMode("graphql",Jre);const eie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var tie=Object.defineProperty,sc=(e,t)=>tie(e,"name",{value:t,configurable:!0});function Xf(e,t,n){const r=P4(n,r_(t.string));if(!r)return;const i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}sc(Xf,"hintList");function P4(e,t){if(!t)return a1(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:j4(r_(r.text),t),entry:r}));return a1(a1(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.text.length-i.entry.text.length).map(r=>r.entry)}sc(P4,"filterAndSortList");function a1(e,t){const n=e.filter(t);return n.length===0?e:n}sc(a1,"filterNonEmpty");function r_(e){return e.toLowerCase().replaceAll(/\W/g,"")}sc(r_,"normalizeText");function j4(e,t){let n=V4(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}sc(j4,"getProximity");function V4(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]}sc(V4,"lexicalDistance"),qt.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=U4(n,r,t);return i!=null&&i.list&&i.list.length>0&&(i.from=qt.Pos(i.from.line,i.from.ch),i.to=qt.Pos(i.to.line,i.to.ch),qt.signal(e,"hasCompletion",e,i,r)),i});function U4(e,t,n){const r=t.state.kind==="Invalid"?t.state.prevState:t.state,{kind:i,step:o}=r;if(i==="Document"&&o===0)return Xf(e,t,[{text:"{"}]);const{variableToType:l}=n;if(!l)return;const c=q4(l,t.state);if(i==="Document"||i==="Variable"&&o===0){const p=Object.keys(l);return Xf(e,t,p.map(d=>({text:`"${d}": `,type:l[d]})))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&c.fields){const p=Object.keys(c.fields).map(d=>c.fields[d]);return Xf(e,t,p.map(d=>({text:`"${d.name}": `,type:d.type,description:d.description})))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){const p=c.type?gn(c.type):void 0;if(p instanceof so)return Xf(e,t,[{text:"{"}]);if(p instanceof Hi){const d=p.getValues();return Xf(e,t,d.map(m=>({text:`"${m.name}"`,type:p,description:m.description})))}if(p===Zn)return Xf(e,t,[{text:"true",type:Zn,description:"Not false."},{text:"false",type:Zn,description:"Not true."}])}}sc(U4,"getVariablesHint");function q4(e,t){const n={type:null,fields:null};return GC(t,r=>{switch(r.kind){case"Variable":{n.type=e[r.name];break}case"ListValue":{const i=n.type?Mu(n.type):void 0;n.type=i instanceof lr?i.ofType:null;break}case"ObjectValue":{const i=n.type?gn(n.type):void 0;n.fields=i instanceof so?i.getFields():null;break}case"ObjectField":{const i=r.name&&n.fields?n.fields[r.name]:null;n.type=i?.type;break}}}),n}sc(q4,"getTypeInfo");const nie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var rie=Object.defineProperty,Br=(e,t)=>rie(e,"name",{value:t,configurable:!0});function B4(e){Zs=e,s1=e.length,fi=Ki=wg=-1,Kr(),_g();const t=i_();return Gl("EOF"),t}Br(B4,"jsonParse");let Zs,s1,fi,Ki,wg,Nn,Qo;function i_(){const e=fi,t=[];if(Gl("{"),!Cg("}")){do t.push($4());while(Cg(","));Gl("}")}return{kind:"Object",start:e,end:wg,members:t}}Br(i_,"parseObj");function $4(){const e=fi,t=Qo==="String"?a_():null;Gl("String"),Gl(":");const n=o_();return{kind:"Member",start:e,end:wg,key:t,value:n}}Br($4,"parseMember");function z4(){const e=fi,t=[];if(Gl("["),!Cg("]")){do t.push(o_());while(Cg(","));Gl("]")}return{kind:"Array",start:e,end:wg,values:t}}Br(z4,"parseArr");function o_(){switch(Qo){case"[":return z4();case"{":return i_();case"String":case"Number":case"Boolean":case"Null":const e=a_();return _g(),e}Gl("Value")}Br(o_,"parseVal");function a_(){return{kind:Qo,start:fi,end:Ki,value:JSON.parse(Zs.slice(fi,Ki))}}Br(a_,"curToken");function Gl(e){if(Qo===e){_g();return}let t;if(Qo==="EOF")t="[end of file]";else if(Ki-fi>1)t="`"+Zs.slice(fi,Ki)+"`";else{const n=Zs.slice(fi).match(/^.+?\b/);t="`"+(n?n[0]:Zs[fi])+"`"}throw Zf(`Expected ${e} but found ${t}.`)}Br(Gl,"expect");class s_ extends Error{constructor(t,n){super(t),this.position=n}}Br(s_,"JSONSyntaxError");function Zf(e){return new s_(e,{start:fi,end:Ki})}Br(Zf,"syntaxError");function Cg(e){if(Qo===e)return _g(),!0}Br(Cg,"skip");function Kr(){return Ki<s1&&(Ki++,Nn=Ki===s1?0:Zs.charCodeAt(Ki)),Nn}Br(Kr,"ch");function _g(){for(wg=Ki;Nn===9||Nn===10||Nn===13||Nn===32;)Kr();if(Nn===0){Qo="EOF";return}switch(fi=Ki,Nn){case 34:return Qo="String",H4();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Qo="Number",G4();case 102:if(Zs.slice(fi,fi+5)!=="false")break;Ki+=4,Kr(),Qo="Boolean";return;case 110:if(Zs.slice(fi,fi+4)!=="null")break;Ki+=3,Kr(),Qo="Null";return;case 116:if(Zs.slice(fi,fi+4)!=="true")break;Ki+=3,Kr(),Qo="Boolean";return}Qo=Zs[fi],Kr()}Br(_g,"lex");function H4(){for(Kr();Nn!==34&&Nn>31;)if(Nn===92)switch(Nn=Kr(),Nn){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Kr();break;case 117:Kr(),Ng(),Ng(),Ng(),Ng();break;default:throw Zf("Bad character escape sequence.")}else{if(Ki===s1)throw Zf("Unterminated string.");Kr()}if(Nn===34){Kr();return}throw Zf("Unterminated string.")}Br(H4,"readString");function Ng(){if(Nn>=48&&Nn<=57||Nn>=65&&Nn<=70||Nn>=97&&Nn<=102)return Kr();throw Zf("Expected hexadecimal digit.")}Br(Ng,"readHex");function G4(){Nn===45&&Kr(),Nn===48?Kr():l1(),Nn===46&&(Kr(),l1()),(Nn===69||Nn===101)&&(Nn=Kr(),(Nn===43||Nn===45)&&Kr(),l1())}Br(G4,"readNumber");function l1(){if(Nn<48||Nn>57)throw Zf("Expected decimal digit.");do Kr();while(Nn>=48&&Nn<=57)}Br(l1,"readDigits"),qt.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=B4(e)}catch(o){if(o instanceof s_)return[u1(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?Y4(n,i,r):[]});function Y4(e,t,n){var r;const i=[];for(const o of n.members)if(o){const l=(r=o.key)===null||r===void 0?void 0:r.value,c=t[l];if(c)for(const[p,d]of Rp(c,o.value))i.push(u1(e,p,d));else i.push(u1(e,o.key,`Variable "$${l}" does not appear in any GraphQL query.`))}return i}Br(Y4,"validateVariables");function Rp(e,t){if(!e||!t)return[];if(e instanceof Pt)return t.kind==="Null"?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:Rp(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof lr){const n=e.ofType;if(t.kind==="Array"){const r=t.values||[];return l_(r,i=>Rp(n,i))}return Rp(n,t)}if(e instanceof so){if(t.kind!=="Object")return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=l_(t.members,i=>{var o;const l=(o=i?.key)===null||o===void 0?void 0:o.value;n[l]=!0;const c=e.getFields()[l];if(!c)return[[i.key,`Type "${e}" does not have a field "${l}".`]];const p=c?c.type:void 0;return Rp(p,i.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Pt&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,`Expected value of type "${e}".`]]:(e instanceof Hi||e instanceof ma)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||W4(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}Br(Rp,"validateValue");function u1(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}Br(u1,"lintError");function W4(e){return e==null||e!==e}Br(W4,"isNullish");function l_(e,t){return Array.prototype.concat.apply([],e.map(t))}Br(l_,"mapCat");const iie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var oie=Object.defineProperty,aie=(e,t)=>oie(e,"name",{value:t,configurable:!0});qt.defineMode("graphql-variables",e=>{const t=bm({eatWhitespace:n=>n.eatSpace(),lexRules:sie,parseRules:lie,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const sie={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},lie={Document:[gt("{"),rn("Variable",vr(gt(","))),gt("}")],Variable:[u_("variable"),gt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[$o("Number","number")],StringValue:[$o("String","string")],BooleanValue:[$o("Keyword","builtin")],NullValue:[$o("Keyword","keyword")],ListValue:[gt("["),rn("Value",vr(gt(","))),gt("]")],ObjectValue:[gt("{"),rn("ObjectField",vr(gt(","))),gt("}")],ObjectField:[u_("attribute"),gt(":"),"Value"]};function u_(e){return{style:e,match:t=>t.kind==="String",update(t,n){t.name=n.value.slice(1,-1)}}}aie(u_,"namedKey");const uie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));qt.defineMode("graphql-results",e=>{const t=bm({eatWhitespace:n=>n.eatSpace(),lexRules:cie,parseRules:fie,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const cie={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},fie={Document:[gt("{"),rn("Entry",gt(",")),gt("}")],Entry:[$o("String","def"),gt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[$o("Number","number")],StringValue:[$o("String","string")],BooleanValue:[$o("Keyword","builtin")],NullValue:[$o("Keyword","keyword")],ListValue:[gt("["),rn("Value",gt(",")),gt("]")],ObjectValue:[gt("{"),rn("ObjectField",gt(",")),gt("}")],ObjectField:[$o("String","property"),gt(":"),"Value"]},die=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Fd.renderYogaGraphiQL=Yne,Object.defineProperty(Fd,Symbol.toStringTag,{value:"Module"})});
502
+ `:$=="r"?"\r":$=="t"?" ":$=="\\"?"\\":j})}fr(E,"parseString");function b(F){var j=F.match(/^\/(.*)\/([a-z]*)$/);if(j)try{F=new RegExp(j[1],j[2].indexOf("i")==-1?"":"i")}catch{}else F=E(F);return(typeof F=="string"?F=="":F.test(""))&&(F=/x^/),F}fr(b,"parseQuery");function y(F,j,$){j.queryText=$,j.query=b($),F.removeOverlay(j.overlay,l(j.query)),j.overlay=r(j.query,l(j.query)),F.addOverlay(j.overlay),F.showMatchesOnScrollbar&&(j.annotate&&(j.annotate.clear(),j.annotate=null),j.annotate=F.showMatchesOnScrollbar(j.query,l(j.query)))}fr(y,"startSearch");function x(F,j,$,X){var J=o(F);if(J.query)return w(F,j);var ee=F.getSelection()||J.lastQuery;if(ee instanceof RegExp&&ee.source=="x^"&&(ee=null),$&&F.openDialog){var K=null,B=fr(function(ne,re){n.e_stop(re),ne&&(ne!=J.queryText&&(y(F,J,ne),J.posFrom=J.posTo=F.getCursor()),K&&(K.style.opacity=1),w(F,re.shiftKey,function(se,fe){var Z;fe.line<3&&document.querySelector&&(Z=F.display.wrapper.querySelector(".CodeMirror-dialog"))&&Z.getBoundingClientRect().bottom-4>F.cursorCoords(fe,"window").top&&((K=Z).style.opacity=.4)}))},"searchNext");p(F,D(F),ee,B,function(ne,re){var se=n.keyName(ne),fe=F.getOption("extraKeys"),Z=fe&&fe[se]||n.keyMap[F.getOption("keyMap")][se];Z=="findNext"||Z=="findPrev"||Z=="findPersistentNext"||Z=="findPersistentPrev"?(n.e_stop(ne),y(F,o(F),re),F.execCommand(Z)):(Z=="find"||Z=="findPersistent")&&(n.e_stop(ne),B(re,ne))}),X&&ee&&(y(F,J,ee),w(F,j))}else d(F,D(F),"Search for:",ee,function(ne){ne&&!J.query&&F.operation(function(){y(F,J,ne),J.posFrom=J.posTo=F.getCursor(),w(F,j)})})}fr(x,"doSearch");function w(F,j,$){F.operation(function(){var X=o(F),J=c(F,X.query,j?X.posFrom:X.posTo);!J.find(j)&&(J=c(F,X.query,j?n.Pos(F.lastLine()):n.Pos(F.firstLine(),0)),!J.find(j))||(F.setSelection(J.from(),J.to()),F.scrollIntoView({from:J.from(),to:J.to()},20),X.posFrom=J.from(),X.posTo=J.to(),$&&$(J.from(),J.to()))})}fr(w,"findNext");function k(F){F.operation(function(){var j=o(F);j.lastQuery=j.query,j.query&&(j.query=j.queryText=null,F.removeOverlay(j.overlay),j.annotate&&(j.annotate.clear(),j.annotate=null))})}fr(k,"clearSearch");function N(F,j){var $=F?document.createElement(F):document.createDocumentFragment();for(var X in j)$[X]=j[X];for(var J=2;J<arguments.length;J++){var ee=arguments[J];$.appendChild(typeof ee=="string"?document.createTextNode(ee):ee)}return $}fr(N,"el");function D(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Search:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}fr(D,"getQueryDialog");function A(F){return N("",null," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}fr(A,"getReplaceQueryDialog");function _(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("With:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}fr(_,"getReplacementQueryDialog");function L(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Replace?"))," ",N("button",{},F.phrase("Yes"))," ",N("button",{},F.phrase("No"))," ",N("button",{},F.phrase("All"))," ",N("button",{},F.phrase("Stop")))}fr(L,"getDoReplaceConfirm");function V(F,j,$){F.operation(function(){for(var X=c(F,j);X.findNext();)if(typeof j!="string"){var J=F.getRange(X.from(),X.to()).match(j);X.replace($.replace(/\$(\d)/g,function(ee,K){return J[K]}))}else X.replace($)})}fr(V,"replaceAll");function P(F,j){if(!F.getOption("readOnly")){var $=F.getSelection()||o(F).lastQuery,X=j?F.phrase("Replace all:"):F.phrase("Replace:"),J=N("",null,N("span",{className:"CodeMirror-search-label"},X),A(F));d(F,J,X,$,function(ee){ee&&(ee=b(ee),d(F,_(F),F.phrase("Replace with:"),"",function(K){if(K=E(K),j)V(F,ee,K);else{k(F);var B=c(F,ee,F.getCursor("from")),ne=fr(function(){var se=B.from(),fe;!(fe=B.findNext())&&(B=c(F,ee),!(fe=B.findNext())||se&&B.from().line==se.line&&B.from().ch==se.ch)||(F.setSelection(B.from(),B.to()),F.scrollIntoView({from:B.from(),to:B.to()}),m(F,L(F),F.phrase("Replace?"),[function(){re(fe)},ne,function(){V(F,ee,K)}]))},"advance"),re=fr(function(se){B.replace(typeof ee=="string"?K:K.replace(/\$(\d)/g,function(fe,Z){return se[Z]})),ne()},"doReplace");ne()}}))})}}fr(P,"replace"),n.commands.find=function(F){k(F),x(F)},n.commands.findPersistent=function(F){k(F),x(F,!1,!0)},n.commands.findPersistentNext=function(F){x(F,!1,!0,!0)},n.commands.findPersistentPrev=function(F){x(F,!0,!0,!0)},n.commands.findNext=x,n.commands.findPrev=function(F){x(F,!0)},n.commands.clearSearch=k,n.commands.replace=P,n.commands.replaceAll=function(F){P(F,!0)}})})();var y4=Ire.exports;const b4=Object.freeze(Object.defineProperty({__proto__:null,s:v4({__proto__:null,default:fo(y4)},[y4])},Symbol.toStringTag,{value:"Module"}));qt.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r}=t;if(!n)return;const i=e.getCursor(),o=e.getTokenAt(i),l=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,c=new Sf(i.line,l),p={list:O9(n,e.getValue(),c,o,r).map(d=>({text:d.label,type:d.type,description:d.documentation,isDeprecated:d.isDeprecated,deprecationReason:d.deprecationReason})),from:{line:i.line,ch:l},to:{line:i.line,ch:o.end}};return p!=null&&p.list&&p.list.length>0&&(p.from=qt.Pos(p.from.line,p.from.ch),p.to=qt.Pos(p.to.line,p.to.ch),qt.signal(e,"hasCompletion",e,p,o)),p});const Fre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),E4=["error","warning","information","hint"],Pre={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};qt.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return Z9(e,n,r,void 0,i).map(o=>({message:o.message,severity:o.severity?E4[o.severity-1]:E4[0],type:o.source?Pre[o.source]:void 0,from:qt.Pos(o.range.start.line,o.range.start.character),to:qt.Pos(o.range.end.line,o.range.end.character)}))});const jre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Vre=Object.defineProperty,Ure=(e,t)=>Vre(e,"name",{value:t,configurable:!0});function GC(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])}Ure(GC,"forEachState");var qre=Object.defineProperty,zl=(e,t)=>qre(e,"name",{value:t,configurable:!0});function YC(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return GC(t,r=>{var i,o;switch(r.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":r.type&&(n.type=e.getType(r.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&r.name?WC(e,n.parentType,r.name):null,n.type=(i=n.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?gn(n.type):null;break;case"Directive":n.directiveDef=r.name?e.getDirective(r.name):null;break;case"Arguments":const l=r.prevState?r.prevState.kind==="Field"?n.fieldDef:r.prevState.kind==="Directive"?n.directiveDef:r.prevState.kind==="AliasedField"?r.prevState.name&&WC(e,n.parentType,r.prevState.name):null:null;n.argDefs=l?l.args:null;break;case"Argument":if(n.argDef=null,n.argDefs){for(let E=0;E<n.argDefs.length;E++)if(n.argDefs[E].name===r.name){n.argDef=n.argDefs[E];break}}n.inputType=(o=n.argDef)===null||o===void 0?void 0:o.type;break;case"EnumValue":const c=n.inputType?gn(n.inputType):null;n.enumValue=c instanceof Hi?S4(c.getValues(),E=>E.value===r.name):null;break;case"ListValue":const p=n.inputType?Mu(n.inputType):null;n.inputType=p instanceof lr?p.ofType:null;break;case"ObjectValue":const d=n.inputType?gn(n.inputType):null;n.objectFieldDefs=d instanceof so?d.getFields():null;break;case"ObjectField":const m=r.name&&n.objectFieldDefs?n.objectFieldDefs[r.name]:null;n.inputType=m?.type;break;case"NamedType":n.type=r.name?e.getType(r.name):null;break}}),n}zl(YC,"getTypeInfo");function WC(e,t,n){if(n===va.name&&e.getQueryType()===t)return va;if(n===ya.name&&e.getQueryType()===t)return ya;if(n===ba.name&&Qr(t))return ba;if(t&&t.getFields)return t.getFields()[n]}zl(WC,"getFieldDef");function S4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}zl(S4,"find");function QC(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:JC(e.fieldDef)?null:e.parentType}}zl(QC,"getFieldReference");function KC(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}zl(KC,"getDirectiveReference");function XC(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:JC(e.fieldDef)?null:e.parentType}}zl(XC,"getArgumentReference");function ZC(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?gn(e.inputType):void 0}}zl(ZC,"getEnumValueReference");function i1(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}zl(i1,"getTypeReference");function JC(e){return e.name.slice(0,2)==="__"}zl(JC,"isMetaField");var Bre=Object.defineProperty,gs=(e,t)=>Bre(e,"name",{value:t,configurable:!0});qt.defineOption("info",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.info.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const r=e.state.info=T4(t);r.onMouseOver=w4.bind(null,e),qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}});function T4(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}gs(T4,"createState");function x4(e){const{options:t}=e.state.info;return t?.hoverTime||500}gs(x4,"getHoverTime");function w4(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||r.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const i=r.getBoundingClientRect(),o=gs(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,p)},"onMouseMove"),l=gs(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),c=gs(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,C4(e,i)},"onHover"),p=x4(e);n.hoverTimeout=setTimeout(c,p),qt.on(document,"mousemove",o),qt.on(e.getWrapperElement(),"mouseout",l)}gs(w4,"onMouseOver");function C4(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const l=e.getTokenAt(n,!0);if(l){const c=o(l,i,e,n);c&&_4(e,t,c)}}}gs(C4,"onMouseHover");function _4(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),o=window.getComputedStyle(r),l=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),c=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let p=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-c),p<0&&(p=t.bottom);let d=Math.max(0,window.innerWidth-l-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=p+"px",r.style.left=d+"px";let m;const E=gs(function(){clearTimeout(m)},"onMouseOverPopup"),b=gs(function(){clearTimeout(m),m=setTimeout(y,200)},"onMouseOut"),y=gs(function(){qt.off(r,"mouseover",E),qt.off(r,"mouseout",b),qt.off(e.getWrapperElement(),"mouseout",b),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()},"hidePopup");qt.on(r,"mouseover",E),qt.on(r,"mouseout",b),qt.on(e.getWrapperElement(),"mouseout",b)}gs(_4,"showPopup");const $re=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var zre=Object.defineProperty,Xs=(e,t)=>zre(e,"name",{value:t,configurable:!0});qt.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=YC(t.schema,e.state);if(n==="Field"&&r===0&&i.fieldDef||n==="AliasedField"&&r===2&&i.fieldDef){const o=document.createElement("div");o.className="CodeMirror-info-header",N4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.fieldDef),l}if(n==="Directive"&&r===1&&i.directiveDef){const o=document.createElement("div");o.className="CodeMirror-info-header",O4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.directiveDef),l}if(n==="Argument"&&r===0&&i.argDef){const o=document.createElement("div");o.className="CodeMirror-info-header",D4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.argDef),l}if(n==="EnumValue"&&i.enumValue&&i.enumValue.description){const o=document.createElement("div");o.className="CodeMirror-info-header",k4(o,i,t);const l=document.createElement("div");return l.append(o),kp(l,t,i.enumValue),l}if(n==="NamedType"&&i.type&&i.type.description){const o=document.createElement("div");o.className="CodeMirror-info-header",Kf(o,i,t,i.type);const l=document.createElement("div");return l.append(o),kp(l,t,i.type),l}});function N4(e,t,n){A4(e,t,n),e_(e,t,n,t.type)}Xs(N4,"renderField");function A4(e,t,n){var r;const i=((r=t.fieldDef)===null||r===void 0?void 0:r.name)||"";No(e,i,"field-name",n,QC(t))}Xs(A4,"renderQualifiedField");function O4(e,t,n){var r;const i="@"+(((r=t.directiveDef)===null||r===void 0?void 0:r.name)||"");No(e,i,"directive-name",n,KC(t))}Xs(O4,"renderDirective");function D4(e,t,n){var r;const i=((r=t.argDef)===null||r===void 0?void 0:r.name)||"";No(e,i,"arg-name",n,XC(t)),e_(e,t,n,t.inputType)}Xs(D4,"renderArg");function k4(e,t,n){var r;const i=((r=t.enumValue)===null||r===void 0?void 0:r.name)||"";Kf(e,t,n,t.inputType),No(e,"."),No(e,i,"enum-value",n,ZC(t))}Xs(k4,"renderEnumValue");function e_(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Pt?(Kf(i,t,n,r.ofType),No(i,"!")):r instanceof lr?(No(i,"["),Kf(i,t,n,r.ofType),No(i,"]")):No(i,r?.name||"","type-name",n,i1(t,r)),e.append(i)}Xs(e_,"renderTypeAnnotation");function Kf(e,t,n,r){r instanceof Pt?(Kf(e,t,n,r.ofType),No(e,"!")):r instanceof lr?(No(e,"["),Kf(e,t,n,r.ofType),No(e,"]")):No(e,r?.name||"","type-name",n,i1(t,r))}Xs(Kf,"renderType");function kp(e,t,n){const{description:r}=n;if(r){const i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.append(document.createTextNode(r)),e.append(i)}R4(e,t,n)}Xs(kp,"renderDescription");function R4(e,t,n){const r=n.deprecationReason;if(r){const i=document.createElement("div");i.className="info-deprecation",e.append(i);const o=document.createElement("span");o.className="info-deprecation-label",o.append(document.createTextNode("Deprecated")),i.append(o);const l=document.createElement("div");l.className="info-deprecation-reason",t.renderDescription?l.innerHTML=t.renderDescription(r):l.append(document.createTextNode(r)),i.append(l)}}Xs(R4,"renderDeprecation");function No(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let l;o?(l=document.createElement("a"),l.href="javascript:void 0",l.addEventListener("click",c=>{c.preventDefault(),o(i,c)})):l=document.createElement("span"),l.className=n,l.append(document.createTextNode(t)),e.append(l)}else e.append(document.createTextNode(t))}Xs(No,"text");const Hre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Gre=Object.defineProperty,Hl=(e,t)=>Gre(e,"name",{value:t,configurable:!0});qt.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.jump.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r);const i=e.state.jump.onMouseOut;qt.off(e.getWrapperElement(),"mouseout",i),qt.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const r=e.state.jump={options:t,onMouseOver:M4.bind(null,e),onMouseOut:L4.bind(null,e),onKeyDown:I4.bind(null,e)};qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver),qt.on(e.getWrapperElement(),"mouseout",r.onMouseOut),qt.on(document,"keydown",r.onKeyDown)}});function M4(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||n?.nodeName!=="SPAN")return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&t_(e)}Hl(M4,"onMouseOver");function L4(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&n_(e)}Hl(L4,"onMouseOut");function I4(e,t){if(e.state.jump.isHoldingModifier||!F4(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&t_(e);const n=Hl(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&n_(e),qt.off(document,"keyup",n),qt.off(document,"click",r),e.off("mousedown",i))},"onKeyUp"),r=Hl(o=>{const{destination:l,options:c}=e.state.jump;l&&c.onClick(l,o)},"onClick"),i=Hl((o,l)=>{e.state.jump.destination&&(l.codemirrorIgnore=!0)},"onMouseDown");qt.on(document,"keyup",n),qt.on(document,"click",r),e.on("mousedown",i)}Hl(I4,"onKeyDown");const Yre=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function F4(e){return e===(Yre?"Meta":"Control")}Hl(F4,"isJumpModifier");function t_(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const l=o(i,n,e);if(l){const c=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=c,e.state.jump.destination=l}}}Hl(t_,"enableJumpMode");function n_(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}Hl(n_,"disableJumpMode"),qt.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=YC(t.schema,n);if(r==="Field"&&i===0&&o.fieldDef||r==="AliasedField"&&i===2&&o.fieldDef)return QC(o);if(r==="Directive"&&i===1&&o.directiveDef)return KC(o);if(r==="Argument"&&i===0&&o.argDef)return XC(o);if(r==="EnumValue"&&o.enumValue)return ZC(o);if(r==="NamedType"&&o.type)return i1(o)});const Wre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Qre=Object.defineProperty,Kre=(e,t)=>Qre(e,"name",{value:t,configurable:!0});function o1(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((!i||i.length===0?o:i.at(-1)-(!((n=this.electricInput)===null||n===void 0)&&n.test(t)?1:0))||0)*(((r=this.config)===null||r===void 0?void 0:r.indentUnit)||0)}Kre(o1,"indent");var Xre=Object.defineProperty,Zre=(e,t)=>Xre(e,"name",{value:t,configurable:!0});const Jre=Zre(e=>{const t=bm({eatWhitespace:n=>n.eatWhile(wD),lexRules:CD,parseRules:_D,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");qt.defineMode("graphql",Jre);const eie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var tie=Object.defineProperty,sc=(e,t)=>tie(e,"name",{value:t,configurable:!0});function Xf(e,t,n){const r=P4(n,r_(t.string));if(!r)return;const i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}sc(Xf,"hintList");function P4(e,t){if(!t)return a1(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:j4(r_(r.text),t),entry:r}));return a1(a1(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.text.length-i.entry.text.length).map(r=>r.entry)}sc(P4,"filterAndSortList");function a1(e,t){const n=e.filter(t);return n.length===0?e:n}sc(a1,"filterNonEmpty");function r_(e){return e.toLowerCase().replaceAll(/\W/g,"")}sc(r_,"normalizeText");function j4(e,t){let n=V4(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}sc(j4,"getProximity");function V4(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]}sc(V4,"lexicalDistance"),qt.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=U4(n,r,t);return i!=null&&i.list&&i.list.length>0&&(i.from=qt.Pos(i.from.line,i.from.ch),i.to=qt.Pos(i.to.line,i.to.ch),qt.signal(e,"hasCompletion",e,i,r)),i});function U4(e,t,n){const r=t.state.kind==="Invalid"?t.state.prevState:t.state,{kind:i,step:o}=r;if(i==="Document"&&o===0)return Xf(e,t,[{text:"{"}]);const{variableToType:l}=n;if(!l)return;const c=q4(l,t.state);if(i==="Document"||i==="Variable"&&o===0){const p=Object.keys(l);return Xf(e,t,p.map(d=>({text:`"${d}": `,type:l[d]})))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&c.fields){const p=Object.keys(c.fields).map(d=>c.fields[d]);return Xf(e,t,p.map(d=>({text:`"${d.name}": `,type:d.type,description:d.description})))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){const p=c.type?gn(c.type):void 0;if(p instanceof so)return Xf(e,t,[{text:"{"}]);if(p instanceof Hi){const d=p.getValues();return Xf(e,t,d.map(m=>({text:`"${m.name}"`,type:p,description:m.description})))}if(p===Zn)return Xf(e,t,[{text:"true",type:Zn,description:"Not false."},{text:"false",type:Zn,description:"Not true."}])}}sc(U4,"getVariablesHint");function q4(e,t){const n={type:null,fields:null};return GC(t,r=>{switch(r.kind){case"Variable":{n.type=e[r.name];break}case"ListValue":{const i=n.type?Mu(n.type):void 0;n.type=i instanceof lr?i.ofType:null;break}case"ObjectValue":{const i=n.type?gn(n.type):void 0;n.fields=i instanceof so?i.getFields():null;break}case"ObjectField":{const i=r.name&&n.fields?n.fields[r.name]:null;n.type=i?.type;break}}}),n}sc(q4,"getTypeInfo");const nie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var rie=Object.defineProperty,Br=(e,t)=>rie(e,"name",{value:t,configurable:!0});function B4(e){Zs=e,s1=e.length,fi=Ki=wg=-1,Kr(),_g();const t=i_();return Gl("EOF"),t}Br(B4,"jsonParse");let Zs,s1,fi,Ki,wg,Nn,Qo;function i_(){const e=fi,t=[];if(Gl("{"),!Cg("}")){do t.push($4());while(Cg(","));Gl("}")}return{kind:"Object",start:e,end:wg,members:t}}Br(i_,"parseObj");function $4(){const e=fi,t=Qo==="String"?a_():null;Gl("String"),Gl(":");const n=o_();return{kind:"Member",start:e,end:wg,key:t,value:n}}Br($4,"parseMember");function z4(){const e=fi,t=[];if(Gl("["),!Cg("]")){do t.push(o_());while(Cg(","));Gl("]")}return{kind:"Array",start:e,end:wg,values:t}}Br(z4,"parseArr");function o_(){switch(Qo){case"[":return z4();case"{":return i_();case"String":case"Number":case"Boolean":case"Null":const e=a_();return _g(),e}Gl("Value")}Br(o_,"parseVal");function a_(){return{kind:Qo,start:fi,end:Ki,value:JSON.parse(Zs.slice(fi,Ki))}}Br(a_,"curToken");function Gl(e){if(Qo===e){_g();return}let t;if(Qo==="EOF")t="[end of file]";else if(Ki-fi>1)t="`"+Zs.slice(fi,Ki)+"`";else{const n=Zs.slice(fi).match(/^.+?\b/);t="`"+(n?n[0]:Zs[fi])+"`"}throw Zf(`Expected ${e} but found ${t}.`)}Br(Gl,"expect");class s_ extends Error{constructor(t,n){super(t),this.position=n}}Br(s_,"JSONSyntaxError");function Zf(e){return new s_(e,{start:fi,end:Ki})}Br(Zf,"syntaxError");function Cg(e){if(Qo===e)return _g(),!0}Br(Cg,"skip");function Kr(){return Ki<s1&&(Ki++,Nn=Ki===s1?0:Zs.charCodeAt(Ki)),Nn}Br(Kr,"ch");function _g(){for(wg=Ki;Nn===9||Nn===10||Nn===13||Nn===32;)Kr();if(Nn===0){Qo="EOF";return}switch(fi=Ki,Nn){case 34:return Qo="String",H4();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Qo="Number",G4();case 102:if(Zs.slice(fi,fi+5)!=="false")break;Ki+=4,Kr(),Qo="Boolean";return;case 110:if(Zs.slice(fi,fi+4)!=="null")break;Ki+=3,Kr(),Qo="Null";return;case 116:if(Zs.slice(fi,fi+4)!=="true")break;Ki+=3,Kr(),Qo="Boolean";return}Qo=Zs[fi],Kr()}Br(_g,"lex");function H4(){for(Kr();Nn!==34&&Nn>31;)if(Nn===92)switch(Nn=Kr(),Nn){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Kr();break;case 117:Kr(),Ng(),Ng(),Ng(),Ng();break;default:throw Zf("Bad character escape sequence.")}else{if(Ki===s1)throw Zf("Unterminated string.");Kr()}if(Nn===34){Kr();return}throw Zf("Unterminated string.")}Br(H4,"readString");function Ng(){if(Nn>=48&&Nn<=57||Nn>=65&&Nn<=70||Nn>=97&&Nn<=102)return Kr();throw Zf("Expected hexadecimal digit.")}Br(Ng,"readHex");function G4(){Nn===45&&Kr(),Nn===48?Kr():l1(),Nn===46&&(Kr(),l1()),(Nn===69||Nn===101)&&(Nn=Kr(),(Nn===43||Nn===45)&&Kr(),l1())}Br(G4,"readNumber");function l1(){if(Nn<48||Nn>57)throw Zf("Expected decimal digit.");do Kr();while(Nn>=48&&Nn<=57)}Br(l1,"readDigits"),qt.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=B4(e)}catch(o){if(o instanceof s_)return[u1(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?Y4(n,i,r):[]});function Y4(e,t,n){var r;const i=[];for(const o of n.members)if(o){const l=(r=o.key)===null||r===void 0?void 0:r.value,c=t[l];if(c)for(const[p,d]of Rp(c,o.value))i.push(u1(e,p,d));else i.push(u1(e,o.key,`Variable "$${l}" does not appear in any GraphQL query.`))}return i}Br(Y4,"validateVariables");function Rp(e,t){if(!e||!t)return[];if(e instanceof Pt)return t.kind==="Null"?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:Rp(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof lr){const n=e.ofType;if(t.kind==="Array"){const r=t.values||[];return l_(r,i=>Rp(n,i))}return Rp(n,t)}if(e instanceof so){if(t.kind!=="Object")return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=l_(t.members,i=>{var o;const l=(o=i?.key)===null||o===void 0?void 0:o.value;n[l]=!0;const c=e.getFields()[l];if(!c)return[[i.key,`Type "${e}" does not have a field "${l}".`]];const p=c?c.type:void 0;return Rp(p,i.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Pt&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,`Expected value of type "${e}".`]]:(e instanceof Hi||e instanceof ma)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||W4(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}Br(Rp,"validateValue");function u1(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}Br(u1,"lintError");function W4(e){return e==null||e!==e}Br(W4,"isNullish");function l_(e,t){return Array.prototype.concat.apply([],e.map(t))}Br(l_,"mapCat");const iie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var oie=Object.defineProperty,aie=(e,t)=>oie(e,"name",{value:t,configurable:!0});qt.defineMode("graphql-variables",e=>{const t=bm({eatWhitespace:n=>n.eatSpace(),lexRules:sie,parseRules:lie,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const sie={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},lie={Document:[gt("{"),rn("Variable",vr(gt(","))),gt("}")],Variable:[u_("variable"),gt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[$o("Number","number")],StringValue:[$o("String","string")],BooleanValue:[$o("Keyword","builtin")],NullValue:[$o("Keyword","keyword")],ListValue:[gt("["),rn("Value",vr(gt(","))),gt("]")],ObjectValue:[gt("{"),rn("ObjectField",vr(gt(","))),gt("}")],ObjectField:[u_("attribute"),gt(":"),"Value"]};function u_(e){return{style:e,match:t=>t.kind==="String",update(t,n){t.name=n.value.slice(1,-1)}}}aie(u_,"namedKey");const uie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));qt.defineMode("graphql-results",e=>{const t=bm({eatWhitespace:n=>n.eatSpace(),lexRules:cie,parseRules:fie,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const cie={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},fie={Document:[gt("{"),rn("Entry",gt(",")),gt("}")],Entry:[$o("String","def"),gt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[$o("Number","number")],StringValue:[$o("String","string")],BooleanValue:[$o("Keyword","builtin")],NullValue:[$o("Keyword","keyword")],ListValue:[gt("["),rn("Value",gt(",")),gt("]")],ObjectValue:[gt("{"),rn("ObjectField",gt(",")),gt("}")],ObjectField:[$o("String","property"),gt(":"),"Value"]},die=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Fd.renderYogaGraphiQL=Yne,Object.defineProperty(Fd,Symbol.toStringTag,{value:"Module"})}));