@zuplo/editor 1.0.32509156067 → 1.0.32772092313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/static/js/{GraphiQLConsole-CqQo2CF-.js → GraphiQLConsole-CZejKwC9.js} +4 -4
- package/dist/client/static/js/{McpCapabilityFilterDesigner-DQmYnesj.js → McpCapabilityFilterDesigner-CG8ZVkh4.js} +1 -1
- package/dist/client/static/js/{SchemaReference-DmOMs1uj.js → SchemaReference-CVISAWin.js} +1 -1
- package/dist/client/static/js/{esm-3DQ2iEXb.js → esm-DT7XeAdc.js} +1 -1
- package/dist/client/static/js/{hint-M-i0TnUi.js → hint-CCoTt5GK.js} +1 -1
- package/dist/client/static/js/{hint-BWsl0iSB.js → hint-DNFkA331.js} +1 -1
- package/dist/client/static/js/{info-B_REw8Fs.js → info-YdH-rhDt.js} +1 -1
- package/dist/client/static/js/{jump-CSyp-FPz.js → jump-8XyX3WVu.js} +1 -1
- package/dist/client/static/js/{lint-DIfkaCZ9.js → lint-CwJ2CwI5.js} +1 -1
- package/dist/client/static/js/{main-CHszS0A6.js → main-Ca-EGG-M.js} +4 -4
- package/dist/client/static/js/{mode-BtpBKz8W.js → mode-C60KbNsM.js} +1 -1
- package/dist/client/static/js/{mode-C8UF2hJP.js → mode-_ctRsloH.js} +1 -1
- package/dist/client/static/js/{mode-CyjopHoY.js → mode-hY8bkHTk.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-6ITIKbGP.js","static/js/chunk-6hGRweTZ.js","static/js/show-hint-6TfMghSZ.js","static/js/matchbrackets-Bf7gn3FZ.js","static/js/closebrackets-E_-ZAIpT.js","static/js/brace-fold-zcgUhfJP.js","static/js/foldgutter-nI1fUyS5.js","static/js/lint-Bt36_p6a.js","static/js/searchcursor-Ccp0pHab.js","static/js/jump-to-line-B0d3q3MR.js","static/js/dialog-BCFM5Ua8.js","static/js/sublime-CnmrqOqk.js","static/js/javascript-D3bo9a4I.js","static/js/comment-ZVSXp2TA.js","static/js/search-B5lzXui6.js","static/js/hint-
|
|
2
|
-
import{a as e,o as t,r as n,t as r}from"./chunk-6hGRweTZ.js";import{An as i,At as a,C as o,Ct as s,Fn as c,Ft as l,G as u,I as d,In as f,Ln as p,Lt as m,Mt as h,Nn as g,Nt as _,Ot as v,Pt as y,Rn as b,Rt as x,St as S,Tt as C,_ as w,ar as T,at as E,b as D,bt as O,c as k,d as A,f as j,g as M,h as N,ir as P,it as F,jt as I,kn as L,kt as ee,l as R,m as te,n as z,p as ne,st as re,t as ie,u as ae,v as oe,vt as se,w as ce,wt as le,xt as ue,y as de,yt as fe,zt as B}from"./dist-DSg6bEGY.js";import{t as V}from"./preload-helper-DxkSl20Q.js";import{C as pe,E as me,I as he,M as ge,N as _e,O as ve,P as ye,S as be,T as xe,_ as Se,b as Ce,h as we,tt as Te,w as Ee,y as De,z as Oe}from"./definition-C7QrKMH2.js";import{_ as ke,g as Ae,h as je,i as Me,n as Ne,o as Pe}from"./esm-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-6ITIKbGP.js","static/js/chunk-6hGRweTZ.js","static/js/show-hint-6TfMghSZ.js","static/js/matchbrackets-Bf7gn3FZ.js","static/js/closebrackets-E_-ZAIpT.js","static/js/brace-fold-zcgUhfJP.js","static/js/foldgutter-nI1fUyS5.js","static/js/lint-Bt36_p6a.js","static/js/searchcursor-Ccp0pHab.js","static/js/jump-to-line-B0d3q3MR.js","static/js/dialog-BCFM5Ua8.js","static/js/sublime-CnmrqOqk.js","static/js/javascript-D3bo9a4I.js","static/js/comment-ZVSXp2TA.js","static/js/search-B5lzXui6.js","static/js/hint-DNFkA331.js","static/js/esm-DT7XeAdc.js","static/js/main-Ca-EGG-M.js","static/js/preload-helper-DxkSl20Q.js","static/js/dist-DSg6bEGY.js","static/js/definition-C7QrKMH2.js","static/css/main-BLDYkhRa.css","static/js/lint-CwJ2CwI5.js","static/js/info-YdH-rhDt.js","static/js/SchemaReference-CVISAWin.js","static/js/forEachState-RgNwT9Fn.js","static/js/info-addon-DQRIr3kJ.js","static/js/jump-8XyX3WVu.js","static/js/mode-_ctRsloH.js","static/js/mode-indent-XFXH0bnx.js","static/js/hint-CCoTt5GK.js","static/js/lint-D1zgMa6Q.js","static/js/mode-hY8bkHTk.js","static/js/mode-C60KbNsM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,o as t,r as n,t as r}from"./chunk-6hGRweTZ.js";import{An as i,At as a,C as o,Ct as s,Fn as c,Ft as l,G as u,I as d,In as f,Ln as p,Lt as m,Mt as h,Nn as g,Nt as _,Ot as v,Pt as y,Rn as b,Rt as x,St as S,Tt as C,_ as w,ar as T,at as E,b as D,bt as O,c as k,d as A,f as j,g as M,h as N,ir as P,it as F,jt as I,kn as L,kt as ee,l as R,m as te,n as z,p as ne,st as re,t as ie,u as ae,v as oe,vt as se,w as ce,wt as le,xt as ue,y as de,yt as fe,zt as B}from"./dist-DSg6bEGY.js";import{t as V}from"./preload-helper-DxkSl20Q.js";import{C as pe,E as me,I as he,M as ge,N as _e,O as ve,P as ye,S as be,T as xe,_ as Se,b as Ce,h as we,tt as Te,w as Ee,y as De,z as Oe}from"./definition-C7QrKMH2.js";import{_ as ke,g as Ae,h as je,i as Me,n as Ne,o as Pe}from"./esm-DT7XeAdc.js";import{A as Fe,D as Ie,M as Le,N as Re,O as ze,a as Be,b as Ve,d as He,j as Ue,k as We,n as Ge,t as Ke}from"./main-Ca-EGG-M.js";function qe(e,t,n){let r=n.initialDeps??[],i;function a(){var a;let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
|
|
3
3
|
font-size: .6rem;
|
|
4
4
|
font-weight: bold;
|
|
5
5
|
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return(a=n?.onChange)==null||a.call(n,i),i}return a.updateDeps=e=>{r=e},a}function Je(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var Ye=(e,t)=>Math.abs(e-t)<1,Xe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Ze=e=>e,Qe=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},$e=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(n.getBoundingClientRect())};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},et={passive:!0},tt=typeof window>`u`?!0:`onscrollend`in window,nt=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&tt?()=>void 0:Xe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);c(),n.addEventListener(`scroll`,s,et);let l=e.options.useScrollendEvent&&tt;return l&&n.addEventListener(`scrollend`,c,et),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},rt=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?`width`:`height`])},it=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},at=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ze,rangeExtractor:Qe,onChange:()=>{},measureElement:rt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=qe(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this.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=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.end<a.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=qe(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=qe(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,o);for(let i=o;i<e;i++){let e=r(i),o=this.options.lanes===1?s[i-1]:this.getFurthestMeasurement(s,i),c=o?o.end+this.options.gap:t+n,l=a.get(e),u=typeof l==`number`?l:this.options.estimateSize(i),d=c+u,f=o?o.lane:i%this.options.lanes;s[i]={index:i,start:c,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=qe(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?st({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=qe(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start<this.getScrollOffset()+this.scrollAdjustments:this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=qe(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Je(t[ot(0,t.length-1,e=>Je(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.options.horizontal?`scrollWidth`:`scrollHeight`,o=(this.scrollElement?`document`in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`)if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t];let a=t===`end`?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{this.cancelScrollToIndex(),n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),n!==`smooth`&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=Je(this.getOffsetForIndex(e,a));Ye(t,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:n})}else this.scrollToIndex(e,{align:a,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}},ot=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function st({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=ot(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){let a=Array(r).fill(0);for(;s<i&&a.some(e=>e<n+t);){let t=e[s];a[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var H=t(T(),1),ct=t(P(),1),lt=typeof document<`u`?H.useLayoutEffect:H.useEffect;function ut(e){let t=H.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,ct.flushSync)(t):t(),(i=e.onChange)==null||i.call(e,n,r)}},[r]=H.useState(()=>new at(n));return r.setOptions(n),lt(()=>r._didMount(),[]),lt(()=>r._willUpdate()),r}function dt(e){return ut({observeElementRect:$e,observeElementOffset:nt,scrollToFn:it,...e})}var ft=r(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},u=(e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),d=e=>l(r({},`__esModule`,{value:!0}),e),f={};c(f,{$dispatcherGuard:()=>w,$makeReadOnly:()=>D,$reset:()=>E,$structuralCheck:()=>P,c:()=>y,clearRenderCounterRegistry:()=>k,renderCounterRegistry:()=>O,useRenderCounter:()=>M}),t.exports=d(f);var p=u(T()),{useRef:m,useEffect:h,isValidElement:g}=p,_=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for(`react.memo_cache_sentinel`),y=typeof p.__COMPILER_RUNTIME?.c==`function`?p.__COMPILER_RUNTIME.c:function(e){return p.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=v;return t[v]=!0,t},[])},b={};[`readContext`,`useCallback`,`useContext`,`useEffect`,`useImperativeHandle`,`useInsertionEffect`,`useLayoutEffect`,`useMemo`,`useReducer`,`useRef`,`useState`,`useDebugValue`,`useDeferredValue`,`useTransition`,`useMutableSource`,`useSyncExternalStore`,`useId`,`unstable_isNewReconciler`,`getCacheSignal`,`getCacheForType`,`useCacheRefresh`].forEach(e=>{b[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;b.useMemoCache=e=>{if(x==null)throw Error(`React Compiler internal invariant violation: unexpected null dispatcher`);return x.useMemoCache(e)};function S(e){return _.ReactCurrentDispatcher.current=e,_.ReactCurrentDispatcher.current}var C=[];function w(e){let t=_.ReactCurrentDispatcher.current;if(e===0){if(C.push(t),C.length===1&&(x=t),t===b)throw Error(`[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.`);S(b)}else if(e===1){let e=C.pop();if(e==null)throw Error(`React Compiler internal error: unexpected null in guard stack`);C.length===0&&(x=null),S(e)}else if(e===2)C.push(t),S(x);else if(e===3){let e=C.pop();if(e==null)throw Error(`React Compiler internal error: unexpected null in guard stack`);S(e)}else throw Error(`React Compiler internal error: unreachable block`+e)}function E(e){for(let t=0;t<e.length;t++)e[t]=v}function D(){throw Error(`TODO: implement $makeReadOnly in react-compiler-runtime`)}var O=new Map;function k(){for(let e of O.values())e.forEach(e=>{e.count=0})}function A(e,t){let n=O.get(e);n??(n=new Set,O.set(e,n)),n.add(t)}function j(e,t){O.get(e)?.delete(t)}function M(e){let t=m(null);t.current!=null&&(t.current.count+=1),h(()=>{if(t.current==null){let n={count:0};A(e,n),t.current=n}return()=>{t.current!==null&&j(e,t.current)}})}var N=new Set;function P(e,t,n,r,i,a){function o(e,t,o,s){let c=`${r}:${a} [${i}] ${n}${o} changed from ${e} to ${t} at depth ${s}`;N.has(c)||(N.add(c),console.error(c))}function s(e,t,n,r){if(!(r>2)&&e!==t)if(typeof e!=typeof t)o(`type ${typeof e}`,`type ${typeof t}`,n,r);else if(typeof e==`object`){let i=Array.isArray(e),a=Array.isArray(t);if(e===null&&t!==null)o(`null`,`type ${typeof t}`,n,r);else if(t===null)o(`type ${typeof e}`,`null`,n,r);else if(e instanceof Map)if(!(t instanceof Map))o(`Map instance`,`other value`,n,r);else if(e.size!==t.size)o(`Map instance with size ${e.size}`,`Map instance with size ${t.size}`,n,r);else for(let[i,a]of e)t.has(i)?s(a,t.get(i),`${n}.get(${i})`,r+1):o(`Map instance with key ${i}`,`Map instance without key ${i}`,n,r);else if(t instanceof Map)o(`other value`,`Map instance`,n,r);else if(e instanceof Set)if(!(t instanceof Set))o(`Set instance`,`other value`,n,r);else if(e.size!==t.size)o(`Set instance with size ${e.size}`,`Set instance with size ${t.size}`,n,r);else for(let i of t)e.has(i)||o(`Set instance without element ${i}`,`Set instance with element ${i}`,n,r);else if(t instanceof Set)o(`other value`,`Set instance`,n,r);else if(i||a)if(i!==a)o(`type ${i?`array`:`object`}`,`type ${a?`array`:`object`}`,n,r);else if(e.length!==t.length)o(`array with length ${e.length}`,`array with length ${t.length}`,n,r);else for(let i=0;i<e.length;i++)s(e[i],t[i],`${n}[${i}]`,r+1);else if(g(e)||g(t))g(e)===g(t)?e.type===t.type?s(e.props,t.props,`[props of ${n}]`,r+1):o(`React element of type ${e.type}`,`React element of type ${t.type}`,n,r):o(`type ${g(e)?`React element`:`object`}`,`type ${g(t)?`React element`:`object`}`,n,r);else{for(let i in t)i in e||o(`object without key ${i}`,`object with key ${i}`,n,r);for(let i in e)i in t?s(e[i],t[i],`${n}.${i}`,r+1):o(`object with key ${i}`,`object without key ${i}`,n,r)}}else if(typeof e==`function`)return;else isNaN(e)||isNaN(t)?isNaN(e)!==isNaN(t)&&o(`${isNaN(e)?`NaN`:`non-NaN value`}`,`${isNaN(t)?`NaN`:`non-NaN value`}`,n,r):e!==t&&o(e,t,n,r)}s(e,t,``,0)}})),pt=Object.defineProperty,mt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||={})_t.call(t,n)&&yt(e,n,t[n]);if(gt)for(var n of gt(t))vt.call(t,n)&&yt(e,n,t[n]);return e},xt=(e,t)=>mt(e,ht(t));function St(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function Ct(e){return new Promise((t,n)=>{let r=e.subscribe({next(e){t(e),r.unsubscribe()},error:n,complete(){n(Error(`no value resolved`))}})})}function wt(e){return typeof e==`object`&&!!e&&`subscribe`in e&&typeof e.subscribe==`function`}function Tt(e){return typeof e==`object`&&!!e&&(e[Symbol.toStringTag]===`AsyncGenerator`||Symbol.asyncIterator in e)}async function Et(e){let t=(`return`in e?e:e[Symbol.asyncIterator]()).return?.bind(e),n=await(`next`in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return t?.(),n.value}async function Dt(e){let t=await e;return Tt(t)?Et(t):wt(t)?Ct(t):t}function Ot(e){return JSON.stringify(e,null,2)}function kt(e){return xt(bt({},e),{message:e.message,stack:e.stack})}function At(e){return e instanceof Error?kt(e):e}function jt(e){return Ot(Array.isArray(e)?{errors:e.map(e=>At(e))}:{errors:[At(e)]})}function Mt(e){return Ot(e)}function Nt(e,t,n){let r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Ve(t)}catch{return{insertions:r,result:t}}let a=n||Pt,o=new je(e);return Oe(i,{leave(e){o.leave(e)},enter(e){if(o.enter(e),e.kind===`Field`&&!e.selectionSet){let n=Ft(Rt(o.getType()),a);if(n&&e.loc){let i=Lt(t,e.loc.start);r.push({index:e.loc.end,string:` `+he(n).replaceAll(`
|
|
@@ -17,7 +17,7 @@ import{a as e,o as t,r as n,t as r}from"./chunk-6hGRweTZ.js";import{An as i,At a
|
|
|
17
17
|
`:`>`,i},ii.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},ii.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
|
|
18
18
|
`;break;default:}return r},ii.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function ai(){this.__rules__=[],this.__cache__=null}ai.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},ai.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},ai.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},ai.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},ai.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},ai.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},ai.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},ai.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},ai.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},ai.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function oi(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}oi.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},oi.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},oi.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},oi.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},oi.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function si(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}si.prototype.Token=oi;var ci=/\r\n?|\n/g,li=/\0/g;function ui(e){let t;t=e.src.replace(ci,`
|
|
19
19
|
`),t=t.replace(li,`�`),e.src=t}function di(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function fi(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function pi(e){return/^<a[>\s]/i.test(e)}function mi(e){return/^<\/a\s*>/i.test(e)}function hi(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(pi(o.content)&&i>0&&i--,mi(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>u){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(u),t.level=l,c.push(t)}t[n].children=r=kr(r,a,c)}}}}var gi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_i=/\((c|tm|r)\)/i,vi=/\((c|tm|r)\)/gi,yi={c:`©`,r:`®`,tm:`™`};function bi(e,t){return yi[t.toLowerCase()]}function xi(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(vi,bi)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Si(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&gi.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Ci(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(_i.test(e.tokens[t].content)&&xi(e.tokens[t].children),gi.test(e.tokens[t].content)&&Si(e.tokens[t].children))}var wi=/['"]/,Ti=/['"]/g,Ei=`’`;function Di(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Oi(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function ki(e,t){let n,r=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let c=o.content,l=0,u=c.length;OUTER:for(;l<u;){Ti.lastIndex=l;let o=Ti.exec(c);if(!o)break;let d=!0,f=!0;l=o.index+1;let p=o[0]===`'`,m=32;if(o.index-1>=0)m=c.charCodeAt(o.index-1);else for(n=a-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<u)h=c.charCodeAt(l);else for(n=a+1;n<e.length&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=Jr(m)||qr(m),_=Jr(h)||qr(h),v=Gr(m),y=Gr(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&o[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&Di(i,a,o.index,Ei);continue}if(f)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level<s)break;if(e.single===p&&r[n].level===s){e=r[n];let s,c;p?(s=t.md.options.quotes[2],c=t.md.options.quotes[3]):(s=t.md.options.quotes[0],c=t.md.options.quotes[1]),Di(i,a,o.index,c),Di(i,e.token,e.pos,s),r.length=n;continue OUTER}}d?r.push({token:a,pos:o.index,single:p,level:s}):f&&p&&Di(i,a,o.index,Ei)}}Object.keys(i).forEach(function(t){e[t].content=Oi(e[t].content,i[t])})}function Ai(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!==`inline`||!wi.test(e.tokens[t].content)||ki(e.tokens[t].children,e)}function ji(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Mi=[[`normalize`,ui],[`block`,di],[`inline`,fi],[`linkify`,hi],[`replacements`,Ci],[`smartquotes`,Ai],[`text_join`,ji]];function Ni(){this.ruler=new ai;for(let e=0;e<Mi.length;e++)this.ruler.push(Mi[e][0],Mi[e][1])}Ni.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},Ni.prototype.State=si;function Pi(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(W(s)){n++,s===9?r+=4-r%4:r++;continue}else o=!0;(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pi.prototype.push=function(e,t,n){let r=new oi(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Pi.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Pi.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Pi.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&W(this.src.charCodeAt(e));e++);return e},Pi.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!W(this.src.charCodeAt(--e)))return e+1;return e},Pi.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Pi.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Pi.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(W(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},Pi.prototype.Token=oi;var Fi=65536;function Ii(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Li(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Ri(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!W(s)||o===45&&W(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!W(t))return!1;a++}let c=Ii(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Ii(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Li(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Ii(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Li(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Fi))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function zi(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
20
|
-
`,a.map=[t,e.line],!0}function Bi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Vi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(W(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Hi(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!W(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Ui(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!W(e.src.charCodeAt(r))?-1:r}function Wi(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!W(a))?-1:i}function Gi(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Ki(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Wi(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Ui(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=Wi(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Ui(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Gi(e,h),!0}function qi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!W(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!W(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&W(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&W(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Yr(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var Ji=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Yi=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Xi=RegExp(`^(?:`+Yi+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Zi=RegExp(`^(?:`+Yi+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),Qi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Ji.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Zi.source+`\\s*$`),/^$/,!1]];function $i(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Qi.length&&!Qi[s][0].test(o);s++);if(s===Qi.length)return!1;if(r)return Qi[s][2];let c=t+1,l=Qi[s][1].test(``);if(!Qi[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Qi[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function ea(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!W(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&W(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Zr(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function ta(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Zr(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function na(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Zr(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var ra=[[`table`,Ri,[`paragraph`,`reference`]],[`code`,zi],[`fence`,Bi,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Vi,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Hi,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Ki,[`paragraph`,`reference`,`blockquote`]],[`reference`,qi],[`html_block`,$i,[`paragraph`,`reference`,`blockquote`]],[`heading`,ea,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ta],[`paragraph`,na]];function ia(){this.ruler=new ai;for(let e=0;e<ra.length;e++)this.ruler.push(ra[e][0],ra[e][1],{alt:(ra[e][2]||[]).slice()})}ia.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},ia.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},ia.prototype.State=Pi;function aa(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}aa.prototype.pushPending=function(){let e=new oi(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},aa.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new oi(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},aa.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else (i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else (s&64512)==56320&&(s=65533);let c=Jr(i)||qr(i),l=Jr(s)||qr(s),u=Gr(i),d=Gr(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},aa.prototype.Token=oi;function oa(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function sa(e,t){let n=e.pos;for(;n<e.posMax&&!oa(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var ca=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function la(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(ca);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function ua(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&W(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var da=[];for(let e=0;e<256;e++)da.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){da[e.charCodeAt(0)]=1});function fa(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),W(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&da[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function pa(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function ma(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function ha(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function ga(e){let t=e.tokens_meta,n=e.tokens_meta.length;ha(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ha(e,t[r].delimiters)}var _a={tokenize:ma,postProcess:ga};function va(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function ya(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function ba(e){let t=e.tokens_meta,n=e.tokens_meta.length;ya(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ya(e,t[r].delimiters)}var xa={tokenize:va,postProcess:ba};function Sa(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Yr(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function Ca(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Yr(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var wa=/^([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])?)*)$/,Ta=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ea(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Ta.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(wa.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Da(e){return/^<a[>\s]/i.test(e)}function Oa(e){return/^<\/a\s*>/i.test(e)}function ka(e){let t=e|32;return t>=97&&t<=122}function Aa(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!ka(i))return!1;let a=e.src.slice(r).match(Xi);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Da(t.content)&&e.linkLevel++,Oa(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var ja=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ma=/^&([a-z][a-z0-9]{1,31});/i;function Na(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ja);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Ar(t)?jr(t):jr(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Ma);if(r){let n=Sr(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Pa(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Fa(e){let t=e.tokens_meta,n=e.tokens_meta.length;Pa(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Pa(t[e].delimiters)}function Ia(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var La=[[`text`,sa],[`linkify`,la],[`newline`,ua],[`escape`,fa],[`backticks`,pa],[`strikethrough`,_a.tokenize],[`emphasis`,xa.tokenize],[`link`,Sa],[`image`,Ca],[`autolink`,Ea],[`html_inline`,Aa],[`entity`,Na]],Ra=[[`balance_pairs`,Fa],[`strikethrough`,_a.postProcess],[`emphasis`,xa.postProcess],[`fragments_join`,Ia]];function za(){this.ruler=new ai;for(let e=0;e<La.length;e++)this.ruler.push(La[e][0],La[e][1]);this.ruler2=new ai;for(let e=0;e<Ra.length;e++)this.ruler2.push(Ra[e][0],Ra[e][1])}za.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},za.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},za.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},za.prototype.State=aa;function Ba(e){let t={};e||={},t.src_Any=Xn.source,t.src_Cc=Zn.source,t.src_Z=tr.source,t.src_P=$n.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function Va(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Ha(e){return Object.prototype.toString.call(e)}function Ua(e){return Ha(e)===`[object String]`}function Wa(e){return Ha(e)===`[object Object]`}function Ga(e){return Ha(e)===`[object RegExp]`}function Ka(e){return Ha(e)===`[object Function]`}function qa(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Ja={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ya(e){return Object.keys(e||{}).reduce(function(e,t){return e||Ja.hasOwnProperty(t)},!1)}var Xa={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Za=`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]`,Qa=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function $a(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function eo(){return function(e,t){t.normalize(e)}}function to(e){let t=e.re=Ba(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Za),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,Wa(n)){Ga(n.validate)?r.validate=$a(n.validate):Ka(n.validate)?r.validate=n.validate:a(t,n),Ka(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=eo();return}if(Ua(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:eo()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(qa).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`)}function no(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function ro(e,t){if(!(this instanceof ro))return new ro(e,t);t||Ya(e)&&(t=e,e={}),this.__opts__=Va({},Ja,t),this.__schemas__=Va({},Xa,e),this.__compiled__={},this.__tlds__=Qa,this.__tlds_replaced__=!1,this.re={},to(this)}ro.prototype.add=function(e,t){return this.__schemas__[e]=t,to(this),this},ro.prototype.set=function(e){return this.__opts__=Va(this.__opts__,e),this},ro.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},ro.prototype.pretest=function(e){return this.re.pretest.test(e)},ro.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},ro.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new no(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},ro.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new no(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},ro.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),to(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,to(this),this)},ro.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},ro.prototype.onCompile=function(){};var io=2147483647,ao=36,oo=1,so=26,co=38,lo=700,uo=72,fo=128,po=`-`,mo=/^xn--/,ho=/[^\0-\x7F]/,go=/[\x2E\u3002\uFF0E\uFF61]/g,_o={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},vo=ao-oo,yo=Math.floor,bo=String.fromCharCode;function xo(e){throw RangeError(_o[e])}function So(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Co(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(go,`.`);let i=So(e.split(`.`),t).join(`.`);return r+i}function wo(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var To=e=>String.fromCodePoint(...e),Eo=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ao},Do=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Oo=function(e,t,n){let r=0;for(e=n?yo(e/lo):e>>1,e+=yo(e/t);e>vo*so>>1;r+=ao)e=yo(e/vo);return yo(r+(vo+1)*e/(e+co))},ko=function(e){let t=[],n=e.length,r=0,i=fo,a=uo,o=e.lastIndexOf(po);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&xo(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=ao;;i+=ao){s>=n&&xo(`invalid-input`);let o=Eo(e.charCodeAt(s++));o>=ao&&xo(`invalid-input`),o>yo((io-r)/t)&&xo(`overflow`),r+=o*t;let c=i<=a?oo:i>=a+so?so:i-a;if(o<c)break;let l=ao-c;t>yo(io/l)&&xo(`overflow`),t*=l}let c=t.length+1;a=Oo(r-o,c,o==0),yo(r/c)>io-i&&xo(`overflow`),i+=yo(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Ao=function(e){let t=[];e=wo(e);let n=e.length,r=fo,i=0,a=uo;for(let n of e)n<128&&t.push(bo(n));let o=t.length,s=o;for(o&&t.push(po);s<n;){let n=io;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>yo((io-i)/c)&&xo(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>io&&xo(`overflow`),n===r){let e=i;for(let n=ao;;n+=ao){let r=n<=a?oo:n>=a+so?so:n-a;if(e<r)break;let i=e-r,o=ao-r;t.push(bo(Do(r+i%o,0))),e=yo(i/o)}t.push(bo(Do(e,0))),a=Oo(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},jo={version:`2.3.1`,ucs2:{decode:wo,encode:To},decode:ko,encode:Ao,toASCII:function(e){return Co(e,function(e){return ho.test(e)?`xn--`+Ao(e):e})},toUnicode:function(e){return Co(e,function(e){return mo.test(e)?ko(e.slice(4).toLowerCase()):e})}},Mo={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},No=/^(vbscript|javascript|file|data):/,Po=/^data:image\/(gif|png|jpeg|webp);/;function Fo(e){let t=e.trim().toLowerCase();return No.test(t)?Po.test(t):!0}var Io=[`http:`,`https:`,`mailto:`];function Lo(e){let t=Jn(e,!0);if(t.hostname&&(!t.protocol||Io.indexOf(t.protocol)>=0))try{t.hostname=jo.toASCII(t.hostname)}catch{}return Fn(In(t))}function Ro(e){let t=Jn(e,!0);if(t.hostname&&(!t.protocol||Io.indexOf(t.protocol)>=0))try{t.hostname=jo.toUnicode(t.hostname)}catch{}return Mn(In(t),Mn.defaultChars+`%`)}function zo(e,t){if(!(this instanceof zo))return new zo(e,t);t||Tr(e)||(t=e||{},e=`default`),this.inline=new za,this.block=new ia,this.core=new Ni,this.renderer=new ii,this.linkify=new ro,this.validateLink=Fo,this.normalizeLink=Lo,this.normalizeLinkText=Ro,this.utils=Cr,this.helpers=Or({},ni),this.options={},this.configure(e),t&&this.set(t)}zo.prototype.set=function(e){return Or(this.options,e),this},zo.prototype.configure=function(e){let t=this;if(Tr(e)){let t=e;if(e=Mo[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},zo.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},zo.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},zo.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},zo.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},zo.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},zo.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},zo.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var Bo=new zo({breaks:!1,linkify:!0});function Vo(e,t,{schema:n,setSchemaReference:r},i,a){vn([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c)if(e.type){i.style.display=`inline`;let t=e=>{me(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):Ee(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`;l&&(e.description?(l.style.display=`block`,l.innerHTML=Bo.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=Bo.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function Ho(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var Uo=t(bn());function Wo(e,t){let n=(0,U.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,H.useEffect)(r,i)}function Go(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function Ko(e,t,n,r,i){let a=(0,U.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=nc(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=cn.getState(),a=Ho(500,e=>{n!==null&&i.set(n,e)}),o=Ho(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,H.useEffect)(c,l)}function qo(e,t){let n=(0,U.c)(7),{schema:r,setSchemaReference:i}=En(),a=Cn(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{Vo(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,H.useEffect)(o,s)}function Jo(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}var Yo=$o,Xo=es,Zo=ns,Qo=rs;function $o(e){let t=(0,U.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Yo,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=nc(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,Uo.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function es(e){let t=(0,U.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Xo,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=nc(a),{schema:s}=En(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();!e||!t||o.setValue(he(Vt(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function ts(e){return he(Ve(e))}function ns(e){let t=(0,U.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?ts:i,o=r||Zo,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=nc(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function rs(e){let t=(0,U.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=En(),o=i||Qo,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=nc(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let{insertions:e,result:t}=Nt(a,c.getValue(),r);return e&&e.length>0&&c.operation(()=>{let n=c.getCursor(),r=c.indexFromPos(n);c.setValue(t||``);let i=0,a=e.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:t,string:n}of e)t<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),t},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function is(){return vn([V(()=>import(`./javascript-D3bo9a4I.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var as=os;function os(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?hn:i,l=a===void 0?gn:a,u=s===void 0?!1:s,d=t||as,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=nc(f),_=lc(),v=t||as,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=es(y),x=t||as,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=ns(S),w=(0,H.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return is().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:_n});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,ss),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,H.useEffect)(T,E),Go(m,`keyMap`,l),Ko(m,o,g?cs:null,`headers`,as);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Jo(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Jo(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Jo(m,k,b),w}function ss(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var cs=`headers`,ls=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),us=RegExp(`[`+ls.join(``)+`]`,`g`);function ds(e){return e.replace(us,` `)}function fs(){return vn([V(()=>import(`./comment-ZVSXp2TA.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),V(()=>import(`./search-B5lzXui6.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,10,0,8])),V(()=>import(`./hint-BWsl0iSB.js`),__vite__mapDeps([15,1,2,0,16,17,18,19,20,21])),V(()=>import(`./lint-DIfkaCZ9.js`),__vite__mapDeps([22,1,0,16,17,18,19,20,21])),V(()=>import(`./info-B_REw8Fs.js`),__vite__mapDeps([23,1,24,17,18,19,20,21,25,26,0])),V(()=>import(`./jump-CSyp-FPz.js`),__vite__mapDeps([27,1,24,17,18,19,20,21,25,0])),V(()=>import(`./mode-C8UF2hJP.js`),__vite__mapDeps([28,1,29,0,16,17,18,19,20,21]))])}var ps=vs;function ms(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function hs(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function gs(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function _s(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function vs(e,t){let n=(0,U.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?hn:i,f=a===void 0?gn:a,p=u===void 0?!1:u,{schema:m,setSchemaReference:h}=En(),g=t||ps,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=nc(_),E=lc(),D=dn(),O=Cn(),k=t||ps,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=$o(A),M=t||ps,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let P=es(N),F=t||ps,I;n[9]!==l||n[10]!==F?(I={caller:F,onPrettifyQuery:l},n[9]=l,n[10]=F,n[11]=I):I=n[11];let L=ns(I),ee=(0,H.useRef)(null),R=(0,H.useRef)(void 0),te=(0,H.useRef)(Ss),z,ne;n[12]!==o||n[13]!==O||n[14]!==h?(z=()=>{te.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},ne=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=z,n[16]=ne):(z=n[15],ne=n[16]),(0,H.useEffect)(z,ne);let re,ie;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(re=()=>{let e=!0;return fs().then(t=>{if(!e)return;R.current=t;let n=ee.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Pe.EXECUTABLE}},info:{schema:void 0,renderDescription:xs,onClick(e){te.current(e)}},jump:{schema:void 0,onClick(e){te.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{..._n,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,bs);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,ys),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},ie=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=re,n[22]=ie):(re=n[21],ie=n[22]),(0,H.useEffect)(re,ie),Go(b,`keyMap`,f);let ae,oe;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ae=()=>{if(!b)return;let e=function(e){var t;let n=Ne(m,e.getValue()),r=Ht(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(ms(w,n),(t=R.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=Ho(100,t=>{let n=t.getValue();D.set(Ds,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(Os,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},oe=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ae,n[31]=oe):(ae=n[30],oe=n[31]),(0,H.useEffect)(ae,oe),Cs(b,m??null,R),ws(b,C??null,R),Ts(b,v,R),qo(b,o);let se=E?.run,ce;n[32]!==b||n[33]!==se||n[34]!==x?(ce=()=>{if(!se||!b||!b.operations||!b.hasFocus()){se?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),se()},n[32]=b,n[33]=se,n[34]=x,n[35]=ce):ce=n[35];let le=ce,ue;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(ue=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=ue):ue=n[36],Jo(b,ue,le);let de;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(de=[`Shift-Ctrl-C`],n[37]=de):de=n[37],Jo(b,de,j);let fe;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(fe=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=fe):fe=n[38],Jo(b,fe,L);let B;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(B=[`Shift-Ctrl-M`],n[39]=B):B=n[39],Jo(b,B,P),ee}function ys(e,t){var n;if(t.origin===`paste`){let e=t.text.map(ds);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function bs(e,t){Es.test(t.key)&&e.execCommand(`autocomplete`)}function xs(e){return Bo.render(e)}function Ss(){}function Cs(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;hs(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function ws(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;gs(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function Ts(e,t,n){let r=(0,U.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;_s(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,H.useEffect)(o,s)}var Es=/^[a-zA-Z0-9_@(]$/,Ds=`query`,Os=`operationName`;function ks({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=cn.getState(),c=s.get(Ks);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(As(e)){let r=Hs({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=Hs({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?Us(i):null;e.tabs.push({id:Vs(),hash:r,title:t||Gs,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(zs)}}}function As(e){return e&&typeof e==`object`&&!Array.isArray(e)&&Ms(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(js)}function js(e){return e&&typeof e==`object`&&!Array.isArray(e)&&Ns(e,`id`)&&Ns(e,`title`)&&Ps(e,`query`)&&Ps(e,`variables`)&&Ps(e,`headers`)&&Ps(e,`operationName`)&&Ps(e,`response`)}function Ms(e,t){return t in e&&typeof e[t]==`number`}function Ns(e,t){return t in e&&typeof e[t]==`string`}function Ps(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function Fs({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,H.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return Bs(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function Is(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function Ls({shouldPersistHeaders:e}){return(0,H.useCallback)(t=>{let{storage:n}=cn.getState();Ho(500,e=>{n.set(Ks,e)})(Is(t,e))},[e])}function Rs({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,H.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function zs({query:e=null,variables:t=null,headers:n=null}={}){let r=e?Us(e):null;return{id:Vs(),hash:Hs({query:e,variables:t,headers:n}),title:r||Gs,query:e,variables:t,headers:n,operationName:r,response:null}}function Bs(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:Hs(i),title:i.operationName||(i.query?Us(i.query):void 0)||Gs}})}}function Vs(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Hs(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function Us(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function Ws(){let{storage:e}=cn.getState(),t=e.get(Ks);if(t){let n=JSON.parse(t);e.set(Ks,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Gs=`<untitled>`,Ks=`tabState`;function qs(){return vn([V(()=>import(`./hint-M-i0TnUi.js`),__vite__mapDeps([30,1,17,18,19,20,21,25,0])),V(()=>import(`./lint-D1zgMa6Q.js`),__vite__mapDeps([31,1,0,20])),V(()=>import(`./mode-CyjopHoY.js`),__vite__mapDeps([32,1,29,0,16,17,18,19,20,21]))])}var Js=Ys;function Ys(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?hn:i,u=a===void 0?gn:a,d=c===void 0?!1:c,f=t||Js,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=nc(p),_=lc(),v=t||Js,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=es(y),x=t||Js,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=ns(S),w=(0,H.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return qs().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:_n});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Xs),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,H.useEffect)(T,E),Go(h,`keyMap`,u),Ko(h,s,Zs,`variables`,Js),qo(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Jo(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Jo(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Jo(h,k,b),w}function Xs(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Zs=`variables`,Qs=`# Welcome to GraphiQL
|
|
20
|
+
`,a.map=[t,e.line],!0}function Bi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Vi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(W(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Hi(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!W(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Ui(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!W(e.src.charCodeAt(r))?-1:r}function Wi(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!W(a))?-1:i}function Gi(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Ki(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Wi(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Ui(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=Wi(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Ui(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Gi(e,h),!0}function qi(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!W(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!W(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&W(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&W(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Yr(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var Ji=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Yi=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Xi=RegExp(`^(?:`+Yi+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Zi=RegExp(`^(?:`+Yi+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),Qi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Ji.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Zi.source+`\\s*$`),/^$/,!1]];function $i(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Qi.length&&!Qi[s][0].test(o);s++);if(s===Qi.length)return!1;if(r)return Qi[s][2];let c=t+1,l=Qi[s][1].test(``);if(!Qi[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Qi[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function ea(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!W(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&W(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Zr(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function ta(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Zr(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function na(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Zr(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var ra=[[`table`,Ri,[`paragraph`,`reference`]],[`code`,zi],[`fence`,Bi,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Vi,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Hi,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Ki,[`paragraph`,`reference`,`blockquote`]],[`reference`,qi],[`html_block`,$i,[`paragraph`,`reference`,`blockquote`]],[`heading`,ea,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ta],[`paragraph`,na]];function ia(){this.ruler=new ai;for(let e=0;e<ra.length;e++)this.ruler.push(ra[e][0],ra[e][1],{alt:(ra[e][2]||[]).slice()})}ia.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},ia.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},ia.prototype.State=Pi;function aa(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}aa.prototype.pushPending=function(){let e=new oi(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},aa.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new oi(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},aa.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else (i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else (s&64512)==56320&&(s=65533);let c=Jr(i)||qr(i),l=Jr(s)||qr(s),u=Gr(i),d=Gr(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},aa.prototype.Token=oi;function oa(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function sa(e,t){let n=e.pos;for(;n<e.posMax&&!oa(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var ca=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function la(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(ca);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function ua(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&W(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var da=[];for(let e=0;e<256;e++)da.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){da[e.charCodeAt(0)]=1});function fa(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),W(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&da[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function pa(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function ma(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function ha(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function ga(e){let t=e.tokens_meta,n=e.tokens_meta.length;ha(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ha(e,t[r].delimiters)}var _a={tokenize:ma,postProcess:ga};function va(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function ya(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function ba(e){let t=e.tokens_meta,n=e.tokens_meta.length;ya(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ya(e,t[r].delimiters)}var xa={tokenize:va,postProcess:ba};function Sa(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!W(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Yr(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function Ca(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!W(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Yr(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var wa=/^([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])?)*)$/,Ta=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ea(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Ta.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(wa.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Da(e){return/^<a[>\s]/i.test(e)}function Oa(e){return/^<\/a\s*>/i.test(e)}function ka(e){let t=e|32;return t>=97&&t<=122}function Aa(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!ka(i))return!1;let a=e.src.slice(r).match(Xi);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Da(t.content)&&e.linkLevel++,Oa(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var ja=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ma=/^&([a-z][a-z0-9]{1,31});/i;function Na(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ja);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Ar(t)?jr(t):jr(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Ma);if(r){let n=Sr(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Pa(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Fa(e){let t=e.tokens_meta,n=e.tokens_meta.length;Pa(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Pa(t[e].delimiters)}function Ia(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var La=[[`text`,sa],[`linkify`,la],[`newline`,ua],[`escape`,fa],[`backticks`,pa],[`strikethrough`,_a.tokenize],[`emphasis`,xa.tokenize],[`link`,Sa],[`image`,Ca],[`autolink`,Ea],[`html_inline`,Aa],[`entity`,Na]],Ra=[[`balance_pairs`,Fa],[`strikethrough`,_a.postProcess],[`emphasis`,xa.postProcess],[`fragments_join`,Ia]];function za(){this.ruler=new ai;for(let e=0;e<La.length;e++)this.ruler.push(La[e][0],La[e][1]);this.ruler2=new ai;for(let e=0;e<Ra.length;e++)this.ruler2.push(Ra[e][0],Ra[e][1])}za.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},za.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},za.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},za.prototype.State=aa;function Ba(e){let t={};e||={},t.src_Any=Xn.source,t.src_Cc=Zn.source,t.src_Z=tr.source,t.src_P=$n.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function Va(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Ha(e){return Object.prototype.toString.call(e)}function Ua(e){return Ha(e)===`[object String]`}function Wa(e){return Ha(e)===`[object Object]`}function Ga(e){return Ha(e)===`[object RegExp]`}function Ka(e){return Ha(e)===`[object Function]`}function qa(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Ja={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ya(e){return Object.keys(e||{}).reduce(function(e,t){return e||Ja.hasOwnProperty(t)},!1)}var Xa={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Za=`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]`,Qa=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function $a(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function eo(){return function(e,t){t.normalize(e)}}function to(e){let t=e.re=Ba(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Za),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,Wa(n)){Ga(n.validate)?r.validate=$a(n.validate):Ka(n.validate)?r.validate=n.validate:a(t,n),Ka(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=eo();return}if(Ua(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:eo()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(qa).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`)}function no(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function ro(e,t){if(!(this instanceof ro))return new ro(e,t);t||Ya(e)&&(t=e,e={}),this.__opts__=Va({},Ja,t),this.__schemas__=Va({},Xa,e),this.__compiled__={},this.__tlds__=Qa,this.__tlds_replaced__=!1,this.re={},to(this)}ro.prototype.add=function(e,t){return this.__schemas__[e]=t,to(this),this},ro.prototype.set=function(e){return this.__opts__=Va(this.__opts__,e),this},ro.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},ro.prototype.pretest=function(e){return this.re.pretest.test(e)},ro.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},ro.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new no(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},ro.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new no(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},ro.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),to(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,to(this),this)},ro.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},ro.prototype.onCompile=function(){};var io=2147483647,ao=36,oo=1,so=26,co=38,lo=700,uo=72,fo=128,po=`-`,mo=/^xn--/,ho=/[^\0-\x7F]/,go=/[\x2E\u3002\uFF0E\uFF61]/g,_o={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},vo=ao-oo,yo=Math.floor,bo=String.fromCharCode;function xo(e){throw RangeError(_o[e])}function So(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Co(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(go,`.`);let i=So(e.split(`.`),t).join(`.`);return r+i}function wo(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var To=e=>String.fromCodePoint(...e),Eo=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ao},Do=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Oo=function(e,t,n){let r=0;for(e=n?yo(e/lo):e>>1,e+=yo(e/t);e>vo*so>>1;r+=ao)e=yo(e/vo);return yo(r+(vo+1)*e/(e+co))},ko=function(e){let t=[],n=e.length,r=0,i=fo,a=uo,o=e.lastIndexOf(po);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&xo(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=ao;;i+=ao){s>=n&&xo(`invalid-input`);let o=Eo(e.charCodeAt(s++));o>=ao&&xo(`invalid-input`),o>yo((io-r)/t)&&xo(`overflow`),r+=o*t;let c=i<=a?oo:i>=a+so?so:i-a;if(o<c)break;let l=ao-c;t>yo(io/l)&&xo(`overflow`),t*=l}let c=t.length+1;a=Oo(r-o,c,o==0),yo(r/c)>io-i&&xo(`overflow`),i+=yo(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Ao=function(e){let t=[];e=wo(e);let n=e.length,r=fo,i=0,a=uo;for(let n of e)n<128&&t.push(bo(n));let o=t.length,s=o;for(o&&t.push(po);s<n;){let n=io;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>yo((io-i)/c)&&xo(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>io&&xo(`overflow`),n===r){let e=i;for(let n=ao;;n+=ao){let r=n<=a?oo:n>=a+so?so:n-a;if(e<r)break;let i=e-r,o=ao-r;t.push(bo(Do(r+i%o,0))),e=yo(i/o)}t.push(bo(Do(e,0))),a=Oo(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},jo={version:`2.3.1`,ucs2:{decode:wo,encode:To},decode:ko,encode:Ao,toASCII:function(e){return Co(e,function(e){return ho.test(e)?`xn--`+Ao(e):e})},toUnicode:function(e){return Co(e,function(e){return mo.test(e)?ko(e.slice(4).toLowerCase()):e})}},Mo={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},No=/^(vbscript|javascript|file|data):/,Po=/^data:image\/(gif|png|jpeg|webp);/;function Fo(e){let t=e.trim().toLowerCase();return No.test(t)?Po.test(t):!0}var Io=[`http:`,`https:`,`mailto:`];function Lo(e){let t=Jn(e,!0);if(t.hostname&&(!t.protocol||Io.indexOf(t.protocol)>=0))try{t.hostname=jo.toASCII(t.hostname)}catch{}return Fn(In(t))}function Ro(e){let t=Jn(e,!0);if(t.hostname&&(!t.protocol||Io.indexOf(t.protocol)>=0))try{t.hostname=jo.toUnicode(t.hostname)}catch{}return Mn(In(t),Mn.defaultChars+`%`)}function zo(e,t){if(!(this instanceof zo))return new zo(e,t);t||Tr(e)||(t=e||{},e=`default`),this.inline=new za,this.block=new ia,this.core=new Ni,this.renderer=new ii,this.linkify=new ro,this.validateLink=Fo,this.normalizeLink=Lo,this.normalizeLinkText=Ro,this.utils=Cr,this.helpers=Or({},ni),this.options={},this.configure(e),t&&this.set(t)}zo.prototype.set=function(e){return Or(this.options,e),this},zo.prototype.configure=function(e){let t=this;if(Tr(e)){let t=e;if(e=Mo[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},zo.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},zo.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},zo.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},zo.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},zo.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},zo.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},zo.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var Bo=new zo({breaks:!1,linkify:!0});function Vo(e,t,{schema:n,setSchemaReference:r},i,a){vn([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c)if(e.type){i.style.display=`inline`;let t=e=>{me(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):Ee(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`;l&&(e.description?(l.style.display=`block`,l.innerHTML=Bo.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=Bo.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function Ho(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var Uo=t(bn());function Wo(e,t){let n=(0,U.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,H.useEffect)(r,i)}function Go(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function Ko(e,t,n,r,i){let a=(0,U.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=nc(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=cn.getState(),a=Ho(500,e=>{n!==null&&i.set(n,e)}),o=Ho(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,H.useEffect)(c,l)}function qo(e,t){let n=(0,U.c)(7),{schema:r,setSchemaReference:i}=En(),a=Cn(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{Vo(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,H.useEffect)(o,s)}function Jo(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}var Yo=$o,Xo=es,Zo=ns,Qo=rs;function $o(e){let t=(0,U.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Yo,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=nc(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,Uo.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function es(e){let t=(0,U.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Xo,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=nc(a),{schema:s}=En(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();!e||!t||o.setValue(he(Vt(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function ts(e){return he(Ve(e))}function ns(e){let t=(0,U.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?ts:i,o=r||Zo,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=nc(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function rs(e){let t=(0,U.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=En(),o=i||Qo,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=nc(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let{insertions:e,result:t}=Nt(a,c.getValue(),r);return e&&e.length>0&&c.operation(()=>{let n=c.getCursor(),r=c.indexFromPos(n);c.setValue(t||``);let i=0,a=e.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:t,string:n}of e)t<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),t},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function is(){return vn([V(()=>import(`./javascript-D3bo9a4I.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var as=os;function os(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?hn:i,l=a===void 0?gn:a,u=s===void 0?!1:s,d=t||as,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=nc(f),_=lc(),v=t||as,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=es(y),x=t||as,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=ns(S),w=(0,H.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return is().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:_n});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,ss),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,H.useEffect)(T,E),Go(m,`keyMap`,l),Ko(m,o,g?cs:null,`headers`,as);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Jo(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Jo(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Jo(m,k,b),w}function ss(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var cs=`headers`,ls=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),us=RegExp(`[`+ls.join(``)+`]`,`g`);function ds(e){return e.replace(us,` `)}function fs(){return vn([V(()=>import(`./comment-ZVSXp2TA.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),V(()=>import(`./search-B5lzXui6.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,10,0,8])),V(()=>import(`./hint-DNFkA331.js`),__vite__mapDeps([15,1,2,0,16,17,18,19,20,21])),V(()=>import(`./lint-CwJ2CwI5.js`),__vite__mapDeps([22,1,0,16,17,18,19,20,21])),V(()=>import(`./info-YdH-rhDt.js`),__vite__mapDeps([23,1,24,17,18,19,20,21,25,26,0])),V(()=>import(`./jump-8XyX3WVu.js`),__vite__mapDeps([27,1,24,17,18,19,20,21,25,0])),V(()=>import(`./mode-_ctRsloH.js`),__vite__mapDeps([28,1,29,0,16,17,18,19,20,21]))])}var ps=vs;function ms(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function hs(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function gs(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function _s(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function vs(e,t){let n=(0,U.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?hn:i,f=a===void 0?gn:a,p=u===void 0?!1:u,{schema:m,setSchemaReference:h}=En(),g=t||ps,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=nc(_),E=lc(),D=dn(),O=Cn(),k=t||ps,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=$o(A),M=t||ps,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let P=es(N),F=t||ps,I;n[9]!==l||n[10]!==F?(I={caller:F,onPrettifyQuery:l},n[9]=l,n[10]=F,n[11]=I):I=n[11];let L=ns(I),ee=(0,H.useRef)(null),R=(0,H.useRef)(void 0),te=(0,H.useRef)(Ss),z,ne;n[12]!==o||n[13]!==O||n[14]!==h?(z=()=>{te.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},ne=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=z,n[16]=ne):(z=n[15],ne=n[16]),(0,H.useEffect)(z,ne);let re,ie;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(re=()=>{let e=!0;return fs().then(t=>{if(!e)return;R.current=t;let n=ee.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Pe.EXECUTABLE}},info:{schema:void 0,renderDescription:xs,onClick(e){te.current(e)}},jump:{schema:void 0,onClick(e){te.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{..._n,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,bs);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,ys),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},ie=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=re,n[22]=ie):(re=n[21],ie=n[22]),(0,H.useEffect)(re,ie),Go(b,`keyMap`,f);let ae,oe;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ae=()=>{if(!b)return;let e=function(e){var t;let n=Ne(m,e.getValue()),r=Ht(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(ms(w,n),(t=R.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=Ho(100,t=>{let n=t.getValue();D.set(Ds,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(Os,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},oe=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ae,n[31]=oe):(ae=n[30],oe=n[31]),(0,H.useEffect)(ae,oe),Cs(b,m??null,R),ws(b,C??null,R),Ts(b,v,R),qo(b,o);let se=E?.run,ce;n[32]!==b||n[33]!==se||n[34]!==x?(ce=()=>{if(!se||!b||!b.operations||!b.hasFocus()){se?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),se()},n[32]=b,n[33]=se,n[34]=x,n[35]=ce):ce=n[35];let le=ce,ue;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(ue=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=ue):ue=n[36],Jo(b,ue,le);let de;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(de=[`Shift-Ctrl-C`],n[37]=de):de=n[37],Jo(b,de,j);let fe;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(fe=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=fe):fe=n[38],Jo(b,fe,L);let B;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(B=[`Shift-Ctrl-M`],n[39]=B):B=n[39],Jo(b,B,P),ee}function ys(e,t){var n;if(t.origin===`paste`){let e=t.text.map(ds);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function bs(e,t){Es.test(t.key)&&e.execCommand(`autocomplete`)}function xs(e){return Bo.render(e)}function Ss(){}function Cs(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;hs(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function ws(e,t,n){let r=(0,U.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;gs(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,H.useEffect)(i,a)}function Ts(e,t,n){let r=(0,U.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;_s(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,H.useEffect)(o,s)}var Es=/^[a-zA-Z0-9_@(]$/,Ds=`query`,Os=`operationName`;function ks({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=cn.getState(),c=s.get(Ks);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(As(e)){let r=Hs({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=Hs({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?Us(i):null;e.tabs.push({id:Vs(),hash:r,title:t||Gs,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(zs)}}}function As(e){return e&&typeof e==`object`&&!Array.isArray(e)&&Ms(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(js)}function js(e){return e&&typeof e==`object`&&!Array.isArray(e)&&Ns(e,`id`)&&Ns(e,`title`)&&Ps(e,`query`)&&Ps(e,`variables`)&&Ps(e,`headers`)&&Ps(e,`operationName`)&&Ps(e,`response`)}function Ms(e,t){return t in e&&typeof e[t]==`number`}function Ns(e,t){return t in e&&typeof e[t]==`string`}function Ps(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function Fs({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,H.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return Bs(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function Is(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function Ls({shouldPersistHeaders:e}){return(0,H.useCallback)(t=>{let{storage:n}=cn.getState();Ho(500,e=>{n.set(Ks,e)})(Is(t,e))},[e])}function Rs({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,H.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function zs({query:e=null,variables:t=null,headers:n=null}={}){let r=e?Us(e):null;return{id:Vs(),hash:Hs({query:e,variables:t,headers:n}),title:r||Gs,query:e,variables:t,headers:n,operationName:r,response:null}}function Bs(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:Hs(i),title:i.operationName||(i.query?Us(i.query):void 0)||Gs}})}}function Vs(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Hs(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function Us(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function Ws(){let{storage:e}=cn.getState(),t=e.get(Ks);if(t){let n=JSON.parse(t);e.set(Ks,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Gs=`<untitled>`,Ks=`tabState`;function qs(){return vn([V(()=>import(`./hint-CCoTt5GK.js`),__vite__mapDeps([30,1,17,18,19,20,21,25,0])),V(()=>import(`./lint-D1zgMa6Q.js`),__vite__mapDeps([31,1,0,20])),V(()=>import(`./mode-hY8bkHTk.js`),__vite__mapDeps([32,1,29,0,16,17,18,19,20,21]))])}var Js=Ys;function Ys(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?hn:i,u=a===void 0?gn:a,d=c===void 0?!1:c,f=t||Js,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=nc(p),_=lc(),v=t||Js,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=es(y),x=t||Js,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=ns(S),w=(0,H.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return qs().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:_n});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Xs),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,H.useEffect)(T,E),Go(h,`keyMap`,u),Ko(h,s,Zs,`variables`,Js),qo(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Jo(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Jo(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Jo(h,k,b),w}function Xs(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Zs=`variables`,Qs=`# Welcome to GraphiQL
|
|
21
21
|
#
|
|
22
22
|
# GraphiQL is an in-browser tool for writing, validating, and
|
|
23
23
|
# testing GraphQL queries.
|
|
@@ -50,7 +50,7 @@ import{a as e,o as t,r as n,t as r}from"./chunk-6hGRweTZ.js";import{An as i,At a
|
|
|
50
50
|
|
|
51
51
|
`,G=f(),$s=en(`EditorContext`),ec=e=>{let t=(0,U.c)(88),n=dn(),[r,i]=(0,H.useState)(null),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null),d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{let t=n.get(rc)!==null;return e.shouldPersistHeaders!==!1&&t?n.get(rc)===`true`:!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];let[f,p]=(0,H.useState)(d);Wo(r,e.headers),Wo(a,e.query),Wo(s,e.response),Wo(l,e.variables);let m;t[3]===f?m=t[4]:(m={shouldPersistHeaders:f},t[3]=f,t[4]=m);let h=Ls(m),g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==h?(g=()=>{let t=e.query??n.get(`query`)??null,r=e.variables??n.get(`variables`)??null,i=e.headers??n.get(`headers`)??null,a=e.response??``,o=ks({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||Qs,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:f});return h(o),{query:t??(o.activeTabIndex===0?o.tabs[0].query:null)??``,variables:r??``,headers:i??e.defaultHeaders??``,response:a,tabState:o}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=f,t[13]=n,t[14]=h,t[15]=g):g=t[15];let[_]=(0,H.useState)(g),[v,y]=(0,H.useState)(_.tabState),b;t[16]!==r||t[17]!==n||t[18]!==v?(b=e=>{if(e){n.set(cs,r?.getValue()??``);let e=Is(v,!0);n.set(Ks,e)}else n.set(cs,``),Ws();p(e),n.set(rc,e.toString())},t[16]=r,t[17]=n,t[18]=v,t[19]=b):b=t[19];let x=b,S=(0,H.useRef)(void 0),C,w;t[20]!==e.shouldPersistHeaders||t[21]!==x?(C=()=>{let t=!!e.shouldPersistHeaders;S?.current!==t&&(x(t),S.current=t)},w=[e.shouldPersistHeaders,x],t[20]=e.shouldPersistHeaders,t[21]=x,t[22]=C,t[23]=w):(C=t[22],w=t[23]),(0,H.useEffect)(C,w);let T;t[24]!==r||t[25]!==a||t[26]!==s||t[27]!==l?(T={queryEditor:a,variableEditor:l,headerEditor:r,responseEditor:s},t[24]=r,t[25]=a,t[26]=s,t[27]=l,t[28]=T):T=t[28];let E=Fs(T),{onTabChange:D,defaultHeaders:O,defaultQuery:k,children:A}=e,j;t[29]!==O||t[30]!==r||t[31]!==a||t[32]!==s||t[33]!==l?(j={queryEditor:a,variableEditor:l,headerEditor:r,responseEditor:s,defaultHeaders:O},t[29]=O,t[30]=r,t[31]=a,t[32]=s,t[33]=l,t[34]=j):j=t[34];let M=Rs(j),N;t[35]!==O||t[36]!==k||t[37]!==D||t[38]!==M||t[39]!==h||t[40]!==E?(N=()=>{y(e=>{let t=E(e),n={tabs:[...t.tabs,zs({headers:O,query:k??Qs})],activeTabIndex:t.tabs.length};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[35]=O,t[36]=k,t[37]=D,t[38]=M,t[39]=h,t[40]=E,t[41]=N):N=t[41];let P=N,F;t[42]!==D||t[43]!==M||t[44]!==h?(F=e=>{y(t=>{let n={...t,activeTabIndex:e};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[42]=D,t[43]=M,t[44]=h,t[45]=F):F=t[45];let I=F,L;t[46]!==D||t[47]!==M||t[48]!==h?(L=e=>{y(t=>{let n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return h(r),M(r.tabs[r.activeTabIndex]),D?.(r),r})},t[46]=D,t[47]=M,t[48]=h,t[49]=L):L=t[49];let ee=L,R;t[50]!==D||t[51]!==M||t[52]!==h?(R=e=>{y(t=>{let n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[50]=D,t[51]=M,t[52]=h,t[53]=R):R=t[53];let te=R,z;t[54]!==D||t[55]!==h?(z=e=>{y(t=>{let n=Bs(t,e);return h(n),D?.(n),n})},t[54]=D,t[55]=h,t[56]=z):z=t[56];let ne=z,{onEditOperationName:re}=e,ie;t[57]!==re||t[58]!==a||t[59]!==ne?(ie=e=>{a&&(tc(a,e),ne({operationName:e}),re?.(e))},t[57]=re,t[58]=a,t[59]=ne,t[60]=ie):ie=t[60];let ae=ie,oe,se;if(t[61]!==e.externalFragments){if(se=new Map,Array.isArray(e.externalFragments))for(let t of e.externalFragments)se.set(t.name.value,t);else if(typeof e.externalFragments==`string`)Oe(Ve(e.externalFragments,{}),{FragmentDefinition(e){se.set(e.name.value,e)}});else if(e.externalFragments)throw Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=se}else se=t[62];oe=se;let ce=oe,le;t[63]===e.validationRules?le=t[64]:(le=e.validationRules||[],t[63]=e.validationRules,t[64]=le);let ue=le,de;t[65]!==P||t[66]!==I||t[67]!==te||t[68]!==ce||t[69]!==r||t[70]!==_.headers||t[71]!==_.query||t[72]!==_.response||t[73]!==_.variables||t[74]!==ee||t[75]!==a||t[76]!==s||t[77]!==ae||t[78]!==x||t[79]!==f||t[80]!==v||t[81]!==ne||t[82]!==ue||t[83]!==l?(de={...v,addTab:P,changeTab:I,moveTab:ee,closeTab:te,updateActiveTabValues:ne,headerEditor:r,queryEditor:a,responseEditor:s,variableEditor:l,setHeaderEditor:i,setQueryEditor:o,setResponseEditor:c,setVariableEditor:u,setOperationName:ae,initialQuery:_.query,initialVariables:_.variables,initialHeaders:_.headers,initialResponse:_.response,externalFragments:ce,validationRules:ue,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=P,t[66]=I,t[67]=te,t[68]=ce,t[69]=r,t[70]=_.headers,t[71]=_.query,t[72]=_.response,t[73]=_.variables,t[74]=ee,t[75]=a,t[76]=s,t[77]=ae,t[78]=x,t[79]=f,t[80]=v,t[81]=ne,t[82]=ue,t[83]=l,t[84]=de):de=t[84];let fe=de,B;return t[85]!==A||t[86]!==fe?(B=(0,G.jsx)($s.Provider,{value:fe,children:A}),t[85]=A,t[86]=fe,t[87]=B):B=t[87],B};function tc(e,t){e.operationName=t}var nc=tn($s),rc=`shouldPersistHeaders`,ic=t(Qt()),ac=t($t()),oc=en(`ExecutionContext`),sc=e=>{let t=(0,U.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:a}=e;if(typeof n!=`function`)throw TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:sc},t[0]=o):o=t[0];let{externalFragments:s,headerEditor:c,queryEditor:l,responseEditor:u,variableEditor:d,updateActiveTabValues:f}=nc(o),p;t[1]===r?p=t[2]:(p={getDefaultFieldNames:r,caller:sc},t[1]=r,t[2]=p);let m=rs(p),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(null),y=(0,H.useRef)(0),b;t[3]===_?b=t[4]:(b=()=>{_?.unsubscribe(),g(!1),v(null)},t[3]=_,t[4]=b);let x=b,S;t[5]!==m||t[6]!==s||t[7]!==n||t[8]!==c||t[9]!==a||t[10]!==l||t[11]!==u||t[12]!==x||t[13]!==_||t[14]!==f||t[15]!==d?(S=async()=>{if(!l||!u)return;if(_){x();return}let e=e=>{u.setValue(e),f({response:e})};y.current+=1;let t=y.current,r=m()||l.getValue(),i=d?.getValue(),o;try{o=uc({json:i,errorMessageParse:`Variables are invalid JSON`,errorMessageType:`Variables are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}let p=c?.getValue(),h;try{h=uc({json:p,errorMessageParse:`Headers are invalid JSON`,errorMessageType:`Headers are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}if(s){let e=l.documentAST?Me(l.documentAST,s):[];e.length>0&&(r+=`
|
|
52
52
|
`+e.map(pc).join(`
|
|
53
|
-
`))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)fc(i,e);g(!1),e(Mt(i))}else{let t=Mt(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});wt(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(jt(t)),v(null)},complete(){g(!1),v(null)}})):Tt(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await cc(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(jt(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,G.jsx)(oc.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function cc(e,t){for await(let n of t)e(n)}var lc=tn(oc);function uc({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&!(typeof r==`object`&&r&&!Array.isArray(r)))throw Error(n);return r}var dc=new WeakMap;function fc(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=dc.get(e);t===void 0&&(t=new Map,dc.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=dc.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,ac.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,ic.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=dc.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,ic.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,ic.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)fc(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=dc.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function pc(e){return he(e)}var mc=e=>{let t=(0,U.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let P=N,F;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(F={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=F):F=t[29];let I=F,L;t[30]!==n||t[31]!==I?(L=(0,G.jsx)(Sn,{...I,children:n}),t[30]=n,t[31]=I,t[32]=L):L=t[32];let ee;t[33]!==P||t[34]!==L?(ee=(0,G.jsx)(sc,{...P,children:L}),t[33]=P,t[34]=L,t[35]=ee):ee=t[35];let R;t[36]!==M||t[37]!==ee?(R=(0,G.jsx)(Tn,{...M,children:ee}),t[36]=M,t[37]=ee,t[38]=R):R=t[38];let te;t[39]!==A||t[40]!==R?(te=(0,G.jsx)(ec,{...A,children:R}),t[39]=A,t[40]=R,t[41]=te):te=t[41];let z;return t[42]!==T||t[43]!==te?(z=(0,G.jsx)(ln,{storage:T,children:te}),t[42]=T,t[43]=te,t[44]=z):z=t[44],z};function hc(e){let t=(0,U.c)(11),n=e===void 0?null:e,r=dn(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(gc);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(gc,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,H.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,H.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(gc,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var gc=`theme`,_c=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),vc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),yc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),bc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),xc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),H.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),Sc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),Cc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),wc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),H.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`})),Tc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),Ec=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),H.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`})),Dc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.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}),H.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`})),Oc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),kc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),H.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`})),Ac=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),jc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),H.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),H.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})),Mc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),H.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),Nc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`}),H.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`}),H.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`}),H.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),H.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`})),Pc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),H.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),Fc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.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}),H.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),H.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),Ic=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`}),H.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),H.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),Lc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Rc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),zc=({title:e,titleId:t,...n})=>H.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?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),H.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),H.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}),H.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),H.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`})),Bc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),H.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),H.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}),H.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})),Vc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),H.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})),Hc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Uc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Wc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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})),Gc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Kc=({title:e,titleId:t,...n})=>H.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?H.createElement(`title`,{id:t},e):null,H.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`})),qc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),Jc=K(_c),Yc=K(vc),Xc=K(yc),Zc=K(bc),Qc=K(xc),$c=K(Sc),el=K(Cc),tl=K(wc),nl=K(Tc),rl=K(Ec),il=K(Dc),al=K(Oc),ol=K(kc),sl=K(Ac),cl=K(jc),ll=K(Mc),ul=K(Nc),dl=K(Pc),fl=K(Fc),pl=K(Ic),ml=K(Lc),hl=K(Rc),gl=K(zc),_l=K(Bc),vl=K(Vc),yl=K(Hc),bl=K(Uc),xl=K(Wc),Sl=K(Gc),Cl=K(Kc),wl=K(qc);function K(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,U.c)(2),i;return r[0]===n?i=r[1]:(i=(0,G.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function Tl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tl(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function q(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=Tl(e))&&(r&&(r+=` `),r+=t);return r}var El=e=>{let t=(0,U.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:El},t[3]=i):i=t[3];let{headerEditor:a}=nc(i),o=os(n,El),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,H.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=q(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,G.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},Dl=Object.assign(e=>{let t=(0,U.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,H.useState)(n),[a,o]=(0,H.useState)(null),s=(0,H.useRef)(null),c=Ol(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{if(s.current){if(!c){i({width:null,height:null}),o(null);return}fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)})}},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,H.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,G.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,G.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,G.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=Ol(e);return t?kl(t):!1}});function Ol(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function kl(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var Al=e=>{let t=(0,U.c)(2),n=vs(e,Al),r;return t[0]===n?r=t[1]:(r=(0,G.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},jl=Re();function Ml(){return vn([V(()=>import(`./foldgutter-nI1fUyS5.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),V(()=>import(`./brace-fold-zcgUhfJP.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),V(()=>import(`./dialog-BCFM5Ua8.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),V(()=>import(`./search-B5lzXui6.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,10,0,8])),V(()=>import(`./searchcursor-Ccp0pHab.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),V(()=>import(`./jump-to-line-B0d3q3MR.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,10,0])),V(()=>import(`./sublime-CnmrqOqk.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,3,0,8])),V(()=>import(`./mode-BtpBKz8W.js`),__vite__mapDeps([33,1,29,0,16,17,18,19,20,21])),V(()=>import(`./info-addon-DQRIr3kJ.js`),__vite__mapDeps([26,1,0]))],{useCommonAddons:!1})}var Nl=Pl;function Pl(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?hn:a,c=o===void 0?gn:o,{fetchError:l,validationErrors:u}=En(),d=t||Nl,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=nc(f),g=(0,H.useRef)(null),_=(0,H.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,H.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return Ml().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,jl.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,G.jsx)(o,{pos:a,token:e}),Dl.shouldRender(e)&&(0,G.jsx)(Dl,{token:e},`image-preview`)].filter(Fl);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;i&&h(t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:_n}))}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,H.useEffect)(b,x),Go(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(jt(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,H.useEffect)(S,C),g}function Fl(e){return!!e}var Il=e=>{let t=(0,U.c)(2),n=Pl(e,Il),r;return t[0]===n?r=t[1]:(r=(0,G.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},Ll=e=>{let t=(0,U.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:Ll},t[3]=i):i=t[3];let{variableEditor:a}=nc(i),o=Ys(n,Ll),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,H.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=q(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,G.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function Rl(e){let t=(0,U.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=dn(),p;t[0]!==f||t[1]!==c?(p=Ho(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===zl||i===`first`?`first`:e===Bl||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,H.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,H.useRef)(null),x=(0,H.useRef)(null),S=(0,H.useRef)(null),C=(0,H.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===zl||e===Bl?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,H.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==zl&&e!==Bl&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,H.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(zl);else if(p<d)y(`second`),m(Bl);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,H.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var zl=`hide-first`,Bl=`hide-second`,Vl=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Vl.displayName=`UnStyledButton`;var Hl=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=q(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,G.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});Hl.displayName=`Button`;var Ul=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ul.displayName=`ButtonGroup`;var Wl=Symbol.for(`react.lazy`),Gl=H.use;function Kl(e){return typeof e==`object`&&!!e&&`then`in e}function ql(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Wl&&`_payload`in e&&Kl(e._payload)}function Jl(e){let t=Yl(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e;ql(r)&&typeof Gl==`function`&&(r=Gl(r._payload));let a=H.Children.toArray(r),o=a.find(Zl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Yl(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(ql(n)&&typeof Gl==`function`&&(n=Gl(n._payload)),H.isValidElement(n)){let e=$l(n),i=Ql(r,n.props);return n.type!==H.Fragment&&(i.ref=t?p(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xl=Symbol(`radix.slottable`);function Zl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Xl}function Ql(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function $l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eu=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Jl(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tu=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`}),nu=`VisuallyHidden`,ru=H.forwardRef((e,t)=>(0,G.jsx)(eu.span,{...e,ref:t,style:{...tu,...e.style}}));ru.displayName=nu;var iu=ru,au=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(8),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(iu,{children:`Close dialog`}),a=(0,G.jsx)(Qc,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,G.jsx)(se,{asChild:!0,children:(0,G.jsxs)(Vl,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});au.displayName=`Dialog.Close`;var ou=Object.assign(e=>{let t=(0,U.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(ue,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,G.jsxs)(S,{children:[i,(0,G.jsx)(fe,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,G.jsx)(s,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:au,Title:le,Trigger:C,Description:O}),su=`rovingFocusGroup.onEntryFocus`,cu={bubbles:!1,cancelable:!0},lu=`RovingFocusGroup`,[uu,du,fu]=ie(lu),[pu,mu]=c(lu,[fu]),[hu,gu]=pu(lu),_u=H.forwardRef((e,t)=>(0,G.jsx)(uu.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(uu.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(vu,{...e,ref:t})})}));_u.displayName=lu;var vu=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=H.useRef(null),m=b(t,p),h=z(o),[g,v]=L({prop:s,defaultProp:c??null,onChange:l,caller:lu}),[y,x]=H.useState(!1),S=i(u),C=du(n),w=H.useRef(!1),[T,E]=H.useState(0);return H.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(su,S),()=>e.removeEventListener(su,S)},[S]),(0,G.jsx)(hu,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:H.useCallback(e=>v(e),[v]),onItemShiftTab:H.useCallback(()=>x(!0),[]),onFocusableItemAdd:H.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>E(e=>e-1),[]),children:(0,G.jsx)(_.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:`none`,...e.style},onMouseDown:B(e.onMouseDown,()=>{w.current=!0}),onFocus:B(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(su,cu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);wu([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}w.current=!1}),onBlur:B(e.onBlur,()=>x(!1))})})}),yu=`RovingFocusGroupItem`,bu=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=x(),l=a||c,u=gu(yu,n),d=u.currentTabStopId===l,f=du(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return H.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,G.jsx)(uu.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,G.jsx)(_.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:B(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:B(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:B(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cu(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Tu(n,r+1):n.slice(r+1)}setTimeout(()=>wu(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});bu.displayName=yu;var xu={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Su(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cu(e,t,n){let r=Su(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xu[r]}function wu(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eu=_u,Du=bu,Ou=[`Enter`,` `],ku=[`ArrowDown`,`PageUp`,`Home`],Au=[`ArrowUp`,`PageDown`,`End`],ju=[...ku,...Au],Mu={ltr:[...Ou,`ArrowRight`],rtl:[...Ou,`ArrowLeft`]},Nu={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Pu=`Menu`,[Fu,Iu,Lu]=ie(Pu),[Ru,zu]=c(Pu,[Lu,j,mu]),Bu=j(),Vu=mu(),[Hu,Uu]=Ru(Pu),[Wu,Gu]=Ru(Pu),Ku=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:s=!0}=e,c=Bu(t),[l,u]=H.useState(null),d=H.useRef(!1),f=i(o),p=z(a);return H.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,G.jsx)(A,{...c,children:(0,G.jsx)(Hu,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,G.jsx)(Wu,{scope:t,onClose:H.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};Ku.displayName=Pu;var qu=`MenuAnchor`,Ju=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bu(n);return(0,G.jsx)(k,{...i,...r,ref:t})});Ju.displayName=qu;var Yu=`MenuPortal`,[Xu,Zu]=Ru(Yu,{forceMount:void 0}),Qu=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Uu(Yu,t);return(0,G.jsx)(Xu,{scope:t,forceMount:n,children:(0,G.jsx)(I,{present:n||a.open,children:(0,G.jsx)(h,{asChild:!0,container:i,children:r})})})};Qu.displayName=Yu;var $u=`MenuContent`,[ed,td]=Ru($u),nd=H.forwardRef((e,t)=>{let n=Zu($u,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uu($u,e.__scopeMenu),o=Gu($u,e.__scopeMenu);return(0,G.jsx)(Fu.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(I,{present:r||a.open,children:(0,G.jsx)(Fu.Slot,{scope:e.__scopeMenu,children:o.modal?(0,G.jsx)(rd,{...i,ref:t}):(0,G.jsx)(id,{...i,ref:t})})})})}),rd=H.forwardRef((e,t)=>{let n=Uu($u,e.__scopeMenu),r=H.useRef(null),i=b(t,r);return H.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,G.jsx)(od,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),id=H.forwardRef((e,t)=>{let n=Uu($u,e.__scopeMenu);return(0,G.jsx)(od,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ad=l(`MenuContent.ScrollLock`),od=H.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:_,...v}=e,y=Uu($u,n),x=Gu($u,n),S=Bu(n),C=Vu(n),w=Iu(n),[T,E]=H.useState(null),D=H.useRef(null),O=b(t,D,y.onContentChange),k=H.useRef(0),A=H.useRef(``),j=H.useRef(0),M=H.useRef(null),N=H.useRef(`right`),P=H.useRef(0),F=_?ee:H.Fragment,I=_?{as:ad,allowPinchZoom:!0}:void 0,L=e=>{let t=A.current+e,n=w().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Wd(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){A.current=t,window.clearTimeout(k.current),t!==``&&(k.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};H.useEffect(()=>()=>window.clearTimeout(k.current),[]),a();let R=H.useCallback(e=>N.current===M.current?.side&&Kd(e,M.current?.area),[]);return(0,G.jsx)(ed,{scope:n,searchRef:A,onItemEnter:H.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:H.useCallback(e=>{R(e)||(D.current?.focus(),E(null))},[R]),onTriggerLeave:H.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:j,onPointerGraceIntentChange:H.useCallback(e=>{M.current=e},[]),children:(0,G.jsx)(F,{...I,children:(0,G.jsx)(m,{asChild:!0,trapped:i,onMountAutoFocus:B(o,e=>{e.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,G.jsx)(g,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:(0,G.jsx)(Eu,{asChild:!0,...C,dir:x.dir,orientation:`vertical`,loop:r,currentTabStopId:T,onCurrentTabStopIdChange:E,onEntryFocus:B(l,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,G.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":zd(y.open),"data-radix-menu-content":``,dir:x.dir,...S,...v,ref:O,style:{outline:`none`,...v.style},onKeyDown:B(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&L(e.key));let i=D.current;if(e.target!==i||!ju.includes(e.key))return;e.preventDefault();let a=w().filter(e=>!e.disabled).map(e=>e.ref.current);Au.includes(e.key)&&a.reverse(),Hd(a)}),onBlur:B(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),A.current=``)}),onPointerMove:B(e.onPointerMove,qd(e=>{let t=e.target,n=P.current!==e.clientX;e.currentTarget.contains(t)&&n&&(N.current=e.clientX>P.current?`right`:`left`,P.current=e.clientX)}))})})})})})})});nd.displayName=$u;var sd=`MenuGroup`,cd=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{role:`group`,...r,ref:t})});cd.displayName=sd;var ld=`MenuLabel`,ud=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{...r,ref:t})});ud.displayName=ld;var dd=`MenuItem`,fd=`menu.itemSelect`,pd=H.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Gu(dd,e.__scopeMenu),s=td(dd,e.__scopeMenu),c=b(t,a),l=H.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(fd,{bubbles:!0,cancelable:!0});e.addEventListener(fd,e=>r?.(e),{once:!0}),y(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,G.jsx)(md,{...i,ref:c,disabled:n,onClick:B(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:B(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Ou.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});pd.displayName=dd;var md=H.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=td(dd,n),s=Vu(n),c=H.useRef(null),l=b(t,c),[u,d]=H.useState(!1),[f,p]=H.useState(``);return H.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,G.jsx)(Fu.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,G.jsx)(Du,{asChild:!0,...s,focusable:!r,children:(0,G.jsx)(_.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:B(e.onPointerMove,qd(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,qd(e=>o.onItemLeave(e))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),hd=`MenuCheckboxItem`,gd=H.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,G.jsx)(wd,{scope:e.__scopeMenu,checked:n,children:(0,G.jsx)(pd,{role:`menuitemcheckbox`,"aria-checked":Bd(n)?`mixed`:n,...i,ref:t,"data-state":Vd(n),onSelect:B(i.onSelect,()=>r?.(Bd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gd.displayName=hd;var _d=`MenuRadioGroup`,[vd,yd]=Ru(_d,{value:void 0,onValueChange:()=>{}}),bd=H.forwardRef((e,t)=>{let{value:n,onValueChange:r,...a}=e,o=i(r);return(0,G.jsx)(vd,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,G.jsx)(cd,{...a,ref:t})})});bd.displayName=_d;var xd=`MenuRadioItem`,Sd=H.forwardRef((e,t)=>{let{value:n,...r}=e,i=yd(xd,e.__scopeMenu),a=n===i.value;return(0,G.jsx)(wd,{scope:e.__scopeMenu,checked:a,children:(0,G.jsx)(pd,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Vd(a),onSelect:B(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Sd.displayName=xd;var Cd=`MenuItemIndicator`,[wd,Td]=Ru(Cd,{checked:!1}),Ed=H.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Td(Cd,n);return(0,G.jsx)(I,{present:r||Bd(a.checked)||a.checked===!0,children:(0,G.jsx)(_.span,{...i,ref:t,"data-state":Vd(a.checked)})})});Ed.displayName=Cd;var Dd=`MenuSeparator`,Od=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Od.displayName=Dd;var kd=`MenuArrow`,Ad=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bu(n);return(0,G.jsx)(R,{...i,...r,ref:t})});Ad.displayName=kd;var jd=`MenuSub`,[Md,Nd]=Ru(jd),Pd=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,o=Uu(jd,t),s=Bu(t),[c,l]=H.useState(null),[u,d]=H.useState(null),f=i(a);return H.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),(0,G.jsx)(A,{...s,children:(0,G.jsx)(Hu,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,G.jsx)(Md,{scope:t,contentId:x(),triggerId:x(),trigger:c,onTriggerChange:l,children:n})})})};Pd.displayName=jd;var Fd=`MenuSubTrigger`,Id=H.forwardRef((e,t)=>{let n=Uu(Fd,e.__scopeMenu),r=Gu(Fd,e.__scopeMenu),i=Nd(Fd,e.__scopeMenu),a=td(Fd,e.__scopeMenu),o=H.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=H.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return H.useEffect(()=>u,[u]),H.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,G.jsx)(Ju,{asChild:!0,...l,children:(0,G.jsx)(md,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":zd(n.open),...e,ref:p(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,qd(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:B(e.onPointerLeave,qd(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Mu[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Id.displayName=Fd;var Ld=`MenuSubContent`,Rd=H.forwardRef((e,t)=>{let n=Zu($u,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uu($u,e.__scopeMenu),o=Gu($u,e.__scopeMenu),s=Nd(Ld,e.__scopeMenu),c=H.useRef(null),l=b(t,c);return(0,G.jsx)(Fu.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(I,{present:r||a.open,children:(0,G.jsx)(Fu.Slot,{scope:e.__scopeMenu,children:(0,G.jsx)(od,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:B(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:B(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Nu[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Rd.displayName=Ld;function zd(e){return e?`open`:`closed`}function Bd(e){return e===`indeterminate`}function Vd(e){return Bd(e)?`indeterminate`:e?`checked`:`unchecked`}function Hd(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ud(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wd(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ud(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Gd(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Kd(e,t){return t?Gd({x:e.clientX,y:e.clientY},t):!1}function qd(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Jd=Ku,Yd=Ju,Xd=Qu,Zd=nd,Qd=cd,$d=ud,ef=pd,tf=gd,nf=bd,rf=Sd,af=Ed,of=Od,sf=Ad,cf=Id,lf=Rd,uf=`DropdownMenu`,[df,ff]=c(uf,[zu]),pf=zu(),[mf,hf]=df(uf),gf=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=pf(t),l=H.useRef(null),[u,d]=L({prop:i,defaultProp:a??!1,onChange:o,caller:uf});return(0,G.jsx)(mf,{scope:t,triggerId:x(),triggerRef:l,contentId:x(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,G.jsx)(Jd,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};gf.displayName=uf;var _f=`DropdownMenuTrigger`,vf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=hf(_f,n),o=pf(n);return(0,G.jsx)(Yd,{asChild:!0,...o,children:(0,G.jsx)(_.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:p(t,a.triggerRef),onPointerDown:B(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:B(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});vf.displayName=_f;var yf=`DropdownMenuPortal`,bf=e=>{let{__scopeDropdownMenu:t,...n}=e,r=pf(t);return(0,G.jsx)(Xd,{...r,...n})};bf.displayName=yf;var xf=`DropdownMenuContent`,Sf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=hf(xf,n),a=pf(n),o=H.useRef(!1);return(0,G.jsx)(Zd,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:B(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Sf.displayName=xf;var Cf=`DropdownMenuGroup`,wf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(Qd,{...i,...r,ref:t})});wf.displayName=Cf;var Tf=`DropdownMenuLabel`,Ef=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)($d,{...i,...r,ref:t})});Ef.displayName=Tf;var Df=`DropdownMenuItem`,Of=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(ef,{...i,...r,ref:t})});Of.displayName=Df;var kf=`DropdownMenuCheckboxItem`,Af=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(tf,{...i,...r,ref:t})});Af.displayName=kf;var jf=`DropdownMenuRadioGroup`,Mf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(nf,{...i,...r,ref:t})});Mf.displayName=jf;var Nf=`DropdownMenuRadioItem`,Pf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(rf,{...i,...r,ref:t})});Pf.displayName=Nf;var Ff=`DropdownMenuItemIndicator`,If=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(af,{...i,...r,ref:t})});If.displayName=Ff;var Lf=`DropdownMenuSeparator`,Rf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(of,{...i,...r,ref:t})});Rf.displayName=Lf;var zf=`DropdownMenuArrow`,Bf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(sf,{...i,...r,ref:t})});Bf.displayName=zf;var Vf=`DropdownMenuSubTrigger`,Hf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(cf,{...i,...r,ref:t})});Hf.displayName=Vf;var Uf=`DropdownMenuSubContent`,Wf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(lf,{...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)`}})});Wf.displayName=Uf;var Gf=gf,Kf=vf,qf=bf,Jf=Sf,Yf=Of,Xf=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(Kf,{asChild:!0,children:(0,G.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Xf.displayName=`DropdownMenuButton`;var Zf=Object.assign(Gf,{Button:Xf,Item:e=>{let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=q(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,G.jsx)(Yf,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,U.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=q(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,G.jsx)(qf,{children:(0,G.jsx)(Jf,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),Qf=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=q(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=Bo.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,G.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});Qf.displayName=`MarkdownContent`;var $f=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});$f.displayName=`Spinner`;var ep=(0,H.createContext)({});function tp(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var np=typeof window<`u`?H.useLayoutEffect:H.useEffect,rp=(0,H.createContext)(null);function ip(e,t){e.indexOf(t)===-1&&e.push(t)}function ap(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function op([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var sp=(e,t,n)=>n>t?t:n<e?e:n,cp={},lp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),up=e=>typeof e==`object`&&!!e,dp=e=>/^0[^.\s]+$/u.test(e);function fp(e){let t;return()=>(t===void 0&&(t=e()),t)}var pp=e=>e,mp=(...e)=>e.reduce((e,t)=>n=>t(e(n))),hp=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},gp=class{constructor(){this.subscriptions=[]}add(e){return ip(this.subscriptions,e),()=>ap(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},_p=e=>e*1e3,vp=e=>e/1e3,yp=(e,t)=>t?1e3/t*e:0,bp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xp=1e-7,Sp=12;function Cp(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=bp(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>xp&&++s<Sp);return o}function wp(e,t,n,r){if(e===t&&n===r)return pp;let i=t=>Cp(t,0,1,e,n);return e=>e===0||e===1?e:bp(i(e),t,r)}var Tp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ep=e=>t=>1-e(1-t),Dp=wp(.33,1.53,.69,.99),Op=Ep(Dp),kp=Tp(Op),Ap=e=>e>=1?1:(e*=2)<1?.5*Op(e):.5*(2-2**(-10*(e-1))),jp=e=>1-Math.sin(Math.acos(e)),Mp=Ep(jp),Np=Tp(jp),Pp=wp(.42,0,1,1),Fp=wp(0,0,.58,1),Ip=wp(.42,0,.58,1),Lp=e=>Array.isArray(e)&&typeof e[0]!=`number`,Rp=e=>Array.isArray(e)&&typeof e[0]==`number`,zp={linear:pp,easeIn:Pp,easeInOut:Ip,easeOut:Fp,circIn:jp,circInOut:Np,circOut:Mp,backIn:Op,backInOut:kp,backOut:Dp,anticipate:Ap},Bp=e=>typeof e==`string`,Vp=e=>{if(Rp(e)){e.length;let[t,n,r,i]=e;return wp(t,n,r,i)}else if(Bp(e))return zp[e],`${e}`,zp[e];return e},Hp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Up={value:null,addProjectionMetrics:null};function Wp(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Up.value&&Up.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Gp=40;function Kp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Hp.reduce((e,n)=>(e[n]=Wp(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=cp.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Gp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Hp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Hp.length;t++)o[Hp[t]].cancel(e)},state:i,steps:o}}var{schedule:J,cancel:qp,state:Jp,steps:Yp}=Kp(typeof requestAnimationFrame<`u`?requestAnimationFrame:pp,!0),Xp;function Zp(){Xp=void 0}var Qp={now:()=>(Xp===void 0&&Qp.set(Jp.isProcessing||cp.useManualTiming?Jp.timestamp:performance.now()),Xp),set:e=>{Xp=e,queueMicrotask(Zp)}},$p={layout:0,mainThread:0,waapi:0},em=e=>t=>typeof t==`string`&&t.startsWith(e),tm=em(`--`),nm=em(`var(--`),rm=e=>nm(e)?im.test(e.split(`/*`)[0].trim()):!1,im=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function am(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var om={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},sm={...om,transform:e=>sp(0,1,e)},cm={...om,default:1},lm=e=>Math.round(e*1e5)/1e5,um=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dm(e){return e==null}var fm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pm=(e,t)=>n=>!!(typeof n==`string`&&fm.test(n)&&n.startsWith(e)||t&&!dm(n)&&Object.prototype.hasOwnProperty.call(n,t)),mm=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(um);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},hm=e=>sp(0,255,e),gm={...om,transform:e=>Math.round(hm(e))},_m={test:pm(`rgb`,`red`),parse:mm(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+gm.transform(e)+`, `+gm.transform(t)+`, `+gm.transform(n)+`, `+lm(sm.transform(r))+`)`};function vm(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ym={test:pm(`#`),parse:vm,transform:_m.transform},bm=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xm=bm(`deg`),Sm=bm(`%`),Y=bm(`px`),Cm=bm(`vh`),wm=bm(`vw`),Tm={...Sm,parse:e=>Sm.parse(e)/100,transform:e=>Sm.transform(e*100)},Em={test:pm(`hsl`,`hue`),parse:mm(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Sm.transform(lm(t))+`, `+Sm.transform(lm(n))+`, `+lm(sm.transform(r))+`)`},Dm={test:e=>_m.test(e)||ym.test(e)||Em.test(e),parse:e=>_m.test(e)?_m.parse(e):Em.test(e)?Em.parse(e):ym.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?_m.transform(e):Em.transform(e),getAnimatableNone:e=>{let t=Dm.parse(e);return t.alpha=0,Dm.transform(t)}},Om=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function km(e){return isNaN(e)&&typeof e==`string`&&(e.match(um)?.length||0)+(e.match(Om)?.length||0)>0}var Am=`number`,jm=`color`,Mm=`var`,Nm=`var(`,Pm="${}",Fm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Im(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Fm,e=>(Dm.test(e)?(r.color.push(a),i.push(jm),n.push(Dm.parse(e))):e.startsWith(Nm)?(r.var.push(a),i.push(Mm),n.push(e)):(r.number.push(a),i.push(Am),n.push(parseFloat(e))),++a,Pm)).split(Pm),indexes:r,types:i}}function Lm(e){return Im(e).values}function Rm({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Am?i+=lm(r[a]):e===jm?i+=Dm.transform(r[a]):i+=r[a]}return i}}function zm(e){return Rm(Im(e))}var Bm=e=>typeof e==`number`?0:Dm.test(e)?Dm.getAnimatableNone(e):e,Vm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Bm(e);function Hm(e){let t=Im(e);return Rm(t)(t.values.map((e,n)=>Vm(e,t.split[n])))}var Um={test:km,parse:Lm,createTransformer:zm,getAnimatableNone:Hm};function Wm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Wm(s,r,e+1/3),a=Wm(s,r,e),o=Wm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Km(e,t){return n=>n>0?t:e}var X=(e,t,n)=>e+(t-e)*n,qm=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Jm=[ym,_m,Em],Ym=e=>Jm.find(t=>t.test(e));function Xm(e){let t=Ym(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Em&&(n=Gm(n)),n}var Zm=(e,t)=>{let n=Xm(e),r=Xm(t);if(!n||!r)return Km(e,t);let i={...n};return e=>(i.red=qm(n.red,r.red,e),i.green=qm(n.green,r.green,e),i.blue=qm(n.blue,r.blue,e),i.alpha=X(n.alpha,r.alpha,e),_m.transform(i))},Qm=new Set([`none`,`hidden`]);function $m(e,t){return Qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eh(e,t){return n=>X(e,t,n)}function th(e){return typeof e==`number`?eh:typeof e==`string`?rm(e)?Km:Dm.test(e)?Zm:ah:Array.isArray(e)?nh:typeof e==`object`?Dm.test(e)?Zm:rh:Km}function nh(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>th(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function rh(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=th(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ih(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var ah=(e,t)=>{let n=Um.createTransformer(t),r=Im(e),i=Im(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qm.has(e)&&!i.values.length||Qm.has(t)&&!r.values.length?$m(e,t):mp(nh(ih(r,i),i.values),n):(`${e}${t}`,Km(e,t))};function oh(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?X(e,t,n):th(e)(e,t)}var sh=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>J.update(t,e),stop:()=>qp(t),now:()=>Jp.isProcessing?Jp.timestamp:Qp.now()}},ch=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},lh=2e4;function uh(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function dh(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(uh(r),lh);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:vp(i)}}var Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function fh(e,t){return e*Math.sqrt(1-t*t)}var ph=12;function mh(e,t,n){let r=n;for(let n=1;n<ph;n++)r-=e(r)/t(r);return r}var hh=.001;function gh({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,a;Z.maxDuration;let o=1-t;o=sp(Z.minDamping,Z.maxDamping,o),e=sp(Z.minDuration,Z.maxDuration,vp(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=fh(t,o),c=Math.exp(-i);return hh-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=fh(t**2,o);return(-i(t)+hh>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-hh+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=mh(i,a,s);if(e=_p(e),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var _h=[`duration`,`bounce`],vh=[`stiffness`,`damping`,`mass`];function yh(e,t){return t.some(t=>e[t]!==void 0)}function bh(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!yh(e,vh)&&yh(e,_h))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*sp(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:a}}else{let n=gh({...e,velocity:0});t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function xh(e=Z.visualDuration,t=Z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=bh({...n,velocity:-vp(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=vp(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Z.restSpeed.granular:Z.restSpeed.default,i||=v?Z.restDelta.granular:Z.restDelta.default;let y,b,x,S,C,w;if(h<1)x=fh(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>_p(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=_p(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=_p(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(uh(T),lh),t=ch(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}xh.applyToOptions=e=>{let t=dh(e,100,xh);return e.ease=t.ease,e.duration=_p(t.duration),e.type=`keyframes`,e};var Sh=5;function Ch(e,t,n){let r=Math.max(t-Sh,0);return yp(n-e(r),t-r)}function wh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=xh({keyframes:[f.value,m(f.value)],velocity:Ch(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Th(e,t,n){let r=[],i=n||cp.mix||oh,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=mp(Array.isArray(t)?t[n]||pp:t,a)),r.push(a)}return r}function Eh(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Th(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=hp(e[r],e[r+1],n);return s[r](i)};return n?t=>l(sp(e[0],e[a-1],t)):l}function Dh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=hp(0,t,r);e.push(X(n,1,i))}}function Oh(e){let t=[0];return Dh(t,e.length-1),t}function kh(e,t){return e.map(e=>e*t)}function Ah(e,t){return e.map(()=>t||Ip).splice(0,e.length-1)}function jh({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Lp(r)?r.map(Vp):Vp(r),a={done:!1,value:t[0]},o=Eh(kh(n&&n.length===t.length?n:Oh(t),e),t,{ease:Array.isArray(i)?i:Ah(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Mh=e=>e!==null;function Nh(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mh),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ph={decay:wh,inertia:wh,tween:jh,keyframes:jh,spring:xh};function Fh(e){typeof e.type==`string`&&(e.type=Ph[e.type])}var Ih=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Lh=e=>e/100,Rh=class extends Ih{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Qp.now()&&this.tick(Qp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},$p.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fh(e);let{type:t=jh,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jh;s!==jh&&typeof o[0]!=`number`&&(this.mixKeyframes=mp(Lh,oh(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=uh(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=sp(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wh&&(b.value=Nh(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return vp(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vp(e)}get time(){return vp(this.currentTime)}set time(e){e=_p(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Ch(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Qp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=vp(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=sh,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Qp.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,$p.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Bh=e=>e*180/Math.PI,Vh=e=>Uh(Bh(Math.atan2(e[1],e[0]))),Hh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vh,rotateZ:Vh,skewX:e=>Bh(Math.atan(e[1])),skewY:e=>Bh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uh=e=>(e%=360,e<0&&(e+=360),e),Wh=Vh,Gh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gh,scaleY:Kh,scale:e=>(Gh(e)+Kh(e))/2,rotateX:e=>Uh(Bh(Math.atan2(e[6],e[5]))),rotateY:e=>Uh(Bh(Math.atan2(-e[2],e[0]))),rotateZ:Wh,rotate:Wh,skewX:e=>Bh(Math.atan(e[4])),skewY:e=>Bh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jh(e){return e.includes(`scale`)?1:0}function Yh(e,t){if(!e||e===`none`)return Jh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qh,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hh,i=t}if(!i)return Jh(t);let a=r[t],o=i[1].split(`,`).map(Zh);return typeof a==`function`?a(o):o[a]}var Xh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yh(n,t)};function Zh(e){return parseFloat(e.trim())}var Qh=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$h=new Set([...Qh,`pathRotation`]),eg=e=>e===om||e===Y,tg=new Set([`x`,`y`,`z`]),ng=Qh.filter(e=>!tg.has(e));function rg(e){let t=[];return ng.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var ig={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yh(t,`x`),y:(e,{transform:t})=>Yh(t,`y`)};ig.translateX=ig.x,ig.translateY=ig.y;var ag=new Set,og=!1,sg=!1,cg=!1;function lg(){if(sg){let e=Array.from(ag).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=rg(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sg=!1,og=!1,ag.forEach(e=>e.complete(cg)),ag.clear()}function ug(){ag.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sg=!0)})}function dg(){cg=!0,ug(),lg(),cg=!1}var fg=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ag.add(this),og||(og=!0,J.read(ug),J.resolveKeyframes(lg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ag.delete(this)}cancel(){this.state===`scheduled`&&(ag.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pg=e=>e.startsWith(`--`);function mg(e,t,n){pg(t)?e.style.setProperty(t,n):e.style[t]=n}var hg={};function gg(e,t){let n=fp(e);return()=>hg[t]??n()}var _g=gg(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),vg=gg(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yg=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bg={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yg([0,.65,.55,1]),circOut:yg([.55,0,1,.45]),backIn:yg([.31,.01,.66,-.59]),backOut:yg([.33,1.53,.69,.99])};function xg(e,t){if(e)return typeof e==`function`?vg()?ch(e,t):`ease-out`:Rp(e)?yg(e):Array.isArray(e)?e.map(e=>xg(e,t)||bg.easeOut):bg[e]}function Sg(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xg(s,i);Array.isArray(d)&&(u.easing=d),Up.value&&$p.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Up.value&&p.finished.finally(()=>{$p.waapi--}),p}function Cg(e){return typeof e==`function`&&`applyToOptions`in e}function wg({type:e,...t}){return Cg(e)&&vg()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tg=class extends Ih{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wg(e);this.animation=Sg(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nh(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),mg(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return vp(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vp(e)}get time(){return vp(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_p(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_g()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),pp):r(this)}},Eg={anticipate:Ap,backInOut:kp,circInOut:Np};function Dg(e){return e in Eg}function Og(e){typeof e.ease==`string`&&Dg(e.ease)&&(e.ease=Eg[e.ease])}var kg=10,Ag=class extends Tg{constructor(e){Og(e),Fh(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rh({...a,autoplay:!1}),s=Math.max(kg,Qp.now()-this.startTime),c=sp(0,kg,s-kg),l=o.sample(s).value,{name:u}=this.options;i&&u&&mg(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},jg=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Um.test(e)||e===`0`)&&!e.startsWith(`url(`));function Mg(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ng(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=jg(i,t),s=jg(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Mg(e)||(n===`spring`||Cg(n))&&r}function Pg(e){e.duration=0,e.type=`keyframes`}var Fg=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ig=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lg(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ig.test(e[t]))return!0;return!1}var Rg=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zg=fp(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Bg(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zg()&&n&&(Fg.has(n)||Rg.has(n)&&Lg(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vg=40,Hg=class extends Ih{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Qp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||fg)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Qp.now();let u=!0;Ng(e,i,a,o)||(u=!1,(cp.instantAnimations||!s)&&l?.(Nh(e,n,t)),e[0]=e[e.length-1],Pg(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vg?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Bg(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ag({...d,element:p})}catch{m=new Rh(d)}else m=new Rh(d);m.finished.then(()=>{this.notifyFinished()}).catch(pp),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dg()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Ug(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Wg=30,Gg=e=>!isNaN(parseFloat(e)),Kg={current:void 0},qg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Qp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Qp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gg(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new gp);let n=this.events[e].add(t);return e===`change`?()=>{n(),J.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Kg.current&&Kg.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Qp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Wg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Wg);return yp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Jg(e,t){return new qg(e,t)}function Yg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Xg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Yg(n,e)}var Zg={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qg=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$g={type:`keyframes`,duration:.8},e_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},t_=(e,{keyframes:t})=>t.length>2?$g:$h.has(e)?e.startsWith(`scale`)?Qg(t[1]):Zg:e_,n_=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function r_(e){for(let t in e)if(!n_.has(t))return!0;return!1}var i_=(e,t,n,r={},i,a)=>o=>{let s=Xg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=_p(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};r_(s)||Object.assign(u,t_(e,u)),u.duration&&=_p(u.duration),u.repeatDelay&&=_p(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pg(u),u.delay===0&&(d=!0)),(cp.instantAnimations||cp.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Pg(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nh(u.keyframes,s);if(e!==void 0){J.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rh(u):new Hg(u)},a_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o_(e){let t=a_.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function s_(e,t,n=1){`${e}`;let[r,i]=o_(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return lp(e)?parseFloat(e):e}return rm(i)?s_(i,t,n+1):i}function c_(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function l_(e,t,n,r){if(typeof t==`function`){let[i,a]=c_(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=c_(r);t=t(n===void 0?e.custom:n,i,a)}return t}function u_(e,t,n){let r=e.getProps();return l_(r,t,n===void 0?r.custom:n,e)}var d_=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qh]),f_=e=>Array.isArray(e);function p_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jg(n))}function m_(e){return f_(e)?e[e.length-1]||0:e}function h_(e,t){let{transitionEnd:n={},transition:r={},...i}=u_(e,t)||{};i={...i,...n};for(let t in i)p_(e,t,m_(i[t]))}var g_=e=>!!(e&&e.getVelocity);function __(e){return!!(g_(e)&&e.add)}function v_(e,t){let n=e.getValue(`willChange`);if(__(n))return n.add(t);if(!n&&cp.WillChange){let n=new cp.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function y_(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var b_=`data-`+y_(`framerAppearId`);function x_(e){return e.props[b_]}function S_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function C_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Yg(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&S_(f,t))continue;let o={delay:n,...Xg(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){J.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=x_(e);if(n){let e=window.MotionHandoffAnimation(n,t,J);e!==null&&(o.startTime=e,p=!0)}}v_(e,t);let m=l??e.shouldReduceMotion;r.start(i_(t,r,i,m&&d_.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>J.update(()=>{o&&h_(e,o)});d.length?Promise.all(d).then(t):t()}return d}function w_(e,t,n={}){let r=u_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(C_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return T_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function T_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(w_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Ug(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function E_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>w_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=w_(e,t,n);else{let i=typeof t==`function`?u_(e,t,n.custom):t;r=Promise.all(C_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var D_={test:e=>e===`auto`,parse:e=>e},O_=e=>t=>t.test(e),k_=[om,Y,Sm,xm,wm,Cm,D_],A_=e=>k_.find(O_(e));function j_(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||dp(e)}var M_=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function N_(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(um)||[];if(!r)return e;let i=n.replace(r,``),a=M_.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var P_=/\b([a-z-]*)\(.*?\)/gu,F_={...Um,getAnimatableNone:e=>{let t=e.match(P_);return t?t.map(N_).join(` `):e}},I_={...Um,getAnimatableNone:e=>{let t=Um.parse(e);return Um.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},L_={...om,transform:Math.round},R_={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:xm,pathRotation:xm,rotateX:xm,rotateY:xm,rotateZ:xm,scale:cm,scaleX:cm,scaleY:cm,scaleZ:cm,skew:xm,skewX:xm,skewY:xm,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sm,originX:Tm,originY:Tm,originZ:Y,zIndex:L_,fillOpacity:sm,strokeOpacity:sm,numOctaves:L_},z_={...R_,color:Dm,backgroundColor:Dm,outlineColor:Dm,fill:Dm,stroke:Dm,borderColor:Dm,borderTopColor:Dm,borderRightColor:Dm,borderBottomColor:Dm,borderLeftColor:Dm,filter:F_,WebkitFilter:F_,mask:I_,WebkitMask:I_},B_=e=>z_[e],V_=new Set([F_,I_]);function H_(e,t){let n=B_(e);return V_.has(n)||(n=Um),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var U_=new Set([`auto`,`none`,`0`]);function W_(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!U_.has(t)&&Im(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=H_(n,i)}var G_=class extends fg{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),rm(r))){let i=s_(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!d_.has(n)||e.length!==2)return;let[r,i]=e,a=A_(r),o=A_(i);if(am(r)!==am(i)&&ig[n]){this.needsMeasurement=!0;return}if(a!==o)if(eg(a)&&eg(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ig[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||j_(e[t]))&&n.push(t);n.length&&W_(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ig[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ig[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function K_(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var q_=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function J_(e){return up(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Y_,cancel:X_}=Kp(queueMicrotask,!1),Z_={x:!1,y:!1};function Q_(){return Z_.x||Z_.y}function $_(e){return e===`x`||e===`y`?Z_[e]?null:(Z_[e]=!0,()=>{Z_[e]=!1}):Z_.x||Z_.y?null:(Z_.x=Z_.y=!0,()=>{Z_.x=Z_.y=!1})}function ev(e,t){let n=K_(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function tv(e){return!(e.pointerType===`touch`||Q_())}function nv(e,t,n={}){let[r,i,a]=ev(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!tv(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var rv=(e,t)=>t?e===t?!0:rv(e,t.parentElement):!1,iv=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,av=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ov(e){return av.has(e.tagName)||e.isContentEditable===!0}var sv=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function cv(e){return sv.has(e.tagName)||e.isContentEditable===!0}var lv=new WeakSet;function uv(e){return t=>{t.key===`Enter`&&e(t)}}function dv(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fv=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=uv(()=>{if(lv.has(n))return;dv(n,`down`);let e=uv(()=>{dv(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>dv(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function pv(e){return iv(e)&&!Q_()}var mv=new WeakSet;function hv(e,t,n={}){let[r,i,a]=ev(e,n),o=e=>{let r=e.currentTarget;if(!pv(e)||mv.has(e))return;lv.add(r),n.stopPropagation&&mv.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),lv.has(r)&&lv.delete(r),pv(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||rv(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),J_(e)&&(e.addEventListener(`focus`,e=>fv(e,i)),!ov(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function gv(e){return up(e)&&`ownerSVGElement`in e}var _v=new WeakMap,vv,yv=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:gv(r)&&`getBBox`in r?r.getBBox()[t]:r[n],bv=yv(`inline`,`width`,`offsetWidth`),xv=yv(`block`,`height`,`offsetHeight`);function Sv({target:e,borderBoxSize:t}){_v.get(e)?.forEach(n=>{n(e,{get width(){return bv(e,t)},get height(){return xv(e,t)}})})}function Cv(e){e.forEach(Sv)}function wv(){typeof ResizeObserver>`u`||(vv=new ResizeObserver(Cv))}function Tv(e,t){vv||wv();let n=K_(e);return n.forEach(e=>{let n=_v.get(e);n||(n=new Set,_v.set(e,n)),n.add(t),vv?.observe(e)}),()=>{n.forEach(e=>{let n=_v.get(e);n?.delete(t),n?.size||vv?.unobserve(e)})}}var Ev=new Set,Dv;function Ov(){Dv=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ev.forEach(t=>t(e))},window.addEventListener(`resize`,Dv)}function kv(e){return Ev.add(e),Dv||Ov(),()=>{Ev.delete(e),!Ev.size&&typeof Dv==`function`&&(window.removeEventListener(`resize`,Dv),Dv=void 0)}}function Av(e,t){return typeof e==`function`?kv(e):Tv(e,t)}function jv(e){return gv(e)&&e.tagName===`svg`}function Mv(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Eh(i,a,o);return t?s(r):s}var Nv=[...k_,Dm,Um],Pv=e=>Nv.find(O_(e)),Fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Iv=()=>({x:Fv(),y:Fv()}),Lv=()=>({min:0,max:0}),Rv=()=>({x:Lv(),y:Lv()}),zv=new WeakMap;function Bv(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Vv(e){return typeof e==`string`||Array.isArray(e)}var Hv=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Uv=[`initial`,...Hv];function Wv(e){return Bv(e.animate)||Uv.some(t=>Vv(e[t]))}function Gv(e){return!!(Wv(e)||e.variants)}function Kv(e,t,n){for(let r in t){let i=t[r],a=n[r];if(g_(i))e.addValue(r,i);else if(g_(a))e.addValue(r,Jg(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Jg(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var qv={current:null},Jv={current:!1},Yv=typeof window<`u`;function Xv(){if(Jv.current=!0,Yv)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>qv.current=e.matches;e.addEventListener(`change`,t),t()}else qv.current=!1}var Zv=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Qv={};function $v(e){Qv=e}function ey(){return Qv}var ty=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Qp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,J.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Wv(t),this.isVariantNode=Gv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&g_(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,zv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Jv.current||Xv(),this.shouldReduceMotion=qv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),qp(this.notifyUpdate),qp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Fg.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Tg({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:_p(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=$h.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&J.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Qv){let t=Qv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rv()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Zv.length;t++){let n=Zv[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Kv(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Jg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(lp(n)||dp(n))?n=parseFloat(n):!Pv(n)&&Um.test(t)&&(n=H_(e,t)),this.setBaseTarget(e,g_(n)?n.get():n)),g_(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=l_(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!g_(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new gp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Y_.render(this.render)}},ny=class extends ty{constructor(){super(...arguments),this.KeyframeResolver=G_}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;g_(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ry=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function iy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ay({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oy(e,t){if(!t)return e;let 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 sy(e){return e===void 0||e===1}function cy({scale:e,scaleX:t,scaleY:n}){return!sy(e)||!sy(t)||!sy(n)}function ly(e){return cy(e)||uy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uy(e){return dy(e.x)||dy(e.y)}function dy(e){return e&&e!==`0%`}function fy(e,t,n){return n+t*(e-n)}function py(e,t,n,r,i){return i!==void 0&&(e=fy(e,i,r)),fy(e,n,r)+t}function my(e,t=0,n=1,r,i){e.min=py(e.min,t,n,r,i),e.max=py(e.max,t,n,r,i)}function hy(e,{x:t,y:n}){my(e.x,t.translate,t.scale,t.originPoint),my(e.y,n.translate,n.scale,n.originPoint)}var gy=.999999999999,_y=1.0000000000001;function vy(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(yy(e.x,-a.scroll.offset.x),yy(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,hy(e,o)),r&&ly(a.latestValues)&&Sy(e,a.latestValues,a.layout?.layoutBox))}t.x<_y&&t.x>gy&&(t.x=1),t.y<_y&&t.y>gy&&(t.y=1)}function yy(e,t){e.min+=t,e.max+=t}function by(e,t,n,r,i=.5){my(e,t,n,X(e.min,e.max,i),r)}function xy(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Sy(e,t,n){let r=n??e;by(e.x,xy(t.x,r.x),t.scaleX,t.scale,t.originX),by(e.y,xy(t.y,r.y),t.scaleY,t.scale,t.originY)}function Cy(e,t){return iy(oy(e.getBoundingClientRect(),t))}function wy(e,t,n){let r=Cy(e,n),{scroll:i}=t;return i&&(yy(r.x,i.offset.x),yy(r.y,i.offset.y)),r}var Ty={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ey=Qh.length;function Dy(e,t,n){let r=``,i=!0;for(let a=0;a<Ey;a++){let o=Qh[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=q_(s,R_[o]);if(!c){i=!1;let t=Ty[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${q_(a,R_.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Oy(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($h.has(e)){o=!0;continue}else if(tm(e)){i[e]=n;continue}else{let t=q_(n,R_[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Dy(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ky(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ay(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var jy={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(Y.test(e))e=parseFloat(e);else return e;return`${Ay(e,t.target.x)}% ${Ay(e,t.target.y)}%`}},My={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Um.parse(e);if(i.length>5)return r;let a=Um.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=X(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ny={borderRadius:{...jy,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:jy,borderTopRightRadius:jy,borderBottomLeftRadius:jy,borderBottomRightRadius:jy,boxShadow:My};function Py(e,{layout:t,layoutId:n}){return $h.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ny[e]||e===`opacity`)}function Fy(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(g_(r[t])||i&&g_(i[t])||Py(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Iy(e){return window.getComputedStyle(e)}var Ly=class extends ny{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ky}readValueFromInstance(e,t){if($h.has(t))return this.projection?.isProjecting?Jh(t):Xh(e,t);{let n=Iy(e),r=(tm(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Cy(e,t)}build(e,t,n){Oy(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Fy(e,t,n)}},Ry={offset:`stroke-dashoffset`,array:`stroke-dasharray`},zy={offset:`strokeDashoffset`,array:`strokeDasharray`};function By(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ry:zy;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Vy=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Hy(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Oy(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Vy)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&By(d,i,a,o,!1)}var Uy=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Wy=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Gy(e,t,n,r){ky(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Uy.has(n)?n:y_(n),t.attrs[n])}function Ky(e,t,n){let r=Fy(e,t,n);for(let n in e)if(g_(e[n])||g_(t[n])){let t=Qh.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var qy=class extends ny{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Rv}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($h.has(t)){let e=B_(t);return e&&e.default||0}return t=Uy.has(t)?t:y_(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ky(e,t,n)}build(e,t,n){Hy(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Gy(e,t,n,r)}mount(e){this.isSVGTag=Wy(e.tagName),super.mount(e)}},Jy=Uv.length;function Yy(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Yy(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Jy;n++){let r=Uv[n],i=e.props[r];(Vv(i)||i===!1)&&(t[r]=i)}return t}function Xy(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Zy=[...Hv].reverse(),Qy=Hv.length;function $y(e){return t=>Promise.all(t.map(({animation:t,options:n})=>E_(e,t,n)))}function eb(e){let t=$y(e),n=rb(),r=!0,i=!1,a=t=>(n,r)=>{let i=u_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Yy(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Qy;t++){let p=Zy[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Vv(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Bv(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=tb(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=f_(t)&&f_(n)?!Xy(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=u_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Ug(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=u_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rb(),i=!0}}}function tb(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Xy(t,e):!1}function nb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rb(){return{animate:nb(!0),whileInView:nb(),whileHover:nb(),whileTap:nb(),whileDrag:nb(),whileFocus:nb(),exit:nb()}}function ib(e,t){e.min=t.min,e.max=t.max}function ab(e,t){ib(e.x,t.x),ib(e.y,t.y)}function ob(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var sb=1e-4,cb=1-sb,lb=1+sb,ub=.01,db=0-ub,fb=0+ub;function pb(e){return e.max-e.min}function mb(e,t,n){return Math.abs(e-t)<=n}function hb(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=pb(n)/pb(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cb&&e.scale<=lb||isNaN(e.scale))&&(e.scale=1),(e.translate>=db&&e.translate<=fb||isNaN(e.translate))&&(e.translate=0)}function gb(e,t,n,r){hb(e.x,t.x,n.x,r?r.originX:void 0),hb(e.y,t.y,n.y,r?r.originY:void 0)}function _b(e,t,n,r=0){e.min=(r?X(n.min,n.max,r):n.min)+t.min,e.max=e.min+pb(t)}function vb(e,t,n,r){_b(e.x,t.x,n.x,r?.x),_b(e.y,t.y,n.y,r?.y)}function yb(e,t,n,r=0){let i=r?X(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+pb(t)}function bb(e,t,n,r){yb(e.x,t.x,n.x,r?.x),yb(e.y,t.y,n.y,r?.y)}function xb(e,t,n,r,i){return e-=t,e=fy(e,1/n,r),i!==void 0&&(e=fy(e,1/i,r)),e}function Sb(e,t=0,n=1,r=.5,i,a=e,o=e){if(Sm.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=X(a.min,a.max,r);e===a&&(s-=t),e.min=xb(e.min,t,n,s,i),e.max=xb(e.max,t,n,s,i)}function Cb(e,t,[n,r,i],a,o){Sb(e,t[n],t[r],t[i],t.scale,a,o)}var wb=[`x`,`scaleX`,`originX`],Tb=[`y`,`scaleY`,`originY`];function Eb(e,t,n,r){Cb(e.x,t,wb,n?n.x:void 0,r?r.x:void 0),Cb(e.y,t,Tb,n?n.y:void 0,r?r.y:void 0)}function Db(e){return e.translate===0&&e.scale===1}function Ob(e){return Db(e.x)&&Db(e.y)}function kb(e,t){return e.min===t.min&&e.max===t.max}function Ab(e,t){return kb(e.x,t.x)&&kb(e.y,t.y)}function jb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mb(e,t){return jb(e.x,t.x)&&jb(e.y,t.y)}function Nb(e){return pb(e.x)/pb(e.y)}function Pb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Fb(e){return[e(`x`),e(`y`)]}function Ib(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Lb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Rb=Lb.length,zb=e=>typeof e==`string`?parseFloat(e):e,Bb=e=>typeof e==`number`||Y.test(e);function Vb(e,t,n,r,i,a){i?(e.opacity=X(0,n.opacity??1,Ub(r)),e.opacityExit=X(t.opacity??1,0,Wb(r))):a&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let i=0;i<Rb;i++){let a=Lb[i],o=Hb(t,a),s=Hb(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Bb(o)===Bb(s)?(e[a]=Math.max(X(zb(o),zb(s),r),0),(Sm.test(s)||Sm.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function Hb(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ub=Gb(0,.5,Mp),Wb=Gb(.5,.95,pp);function Gb(e,t,n){return r=>r<e?0:r>t?1:n(hp(e,t,r))}function Kb(e,t,n){let r=g_(e)?e:Jg(e);return r.start(i_(``,r,t,n)),r.animation}function qb(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Jb=(e,t)=>e.depth-t.depth,Yb=class{constructor(){this.children=[],this.isDirty=!1}add(e){ip(this.children,e),this.isDirty=!0}remove(e){ap(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jb),this.isDirty=!1,this.children.forEach(e)}};function Xb(e,t){let n=Qp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(qp(r),e(a-t))};return J.setup(r,!0),()=>qp(r)}function Zb(e){return g_(e)?e.get():e}var Qb=class{constructor(){this.members=[]}add(e){ip(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ap(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ap(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},$b={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ex={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tx=[``,`X`,`Y`,`Z`],nx=1e3,rx=0;function ix(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ax(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=x_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,J,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ax(r)}function ox({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rx++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Up.value&&(ex.nodes=ex.calculatedTargetDeltas=ex.calculatedProjections=0),this.nodes.forEach(lx),this.nodes.forEach(vx),this.nodes.forEach(yx),this.nodes.forEach(ux),Up.addProjectionMetrics&&Up.addProjectionMetrics(ex)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yb)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=gv(t)&&!jv(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;J.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Xb(i,250),$b.hasAnimatedSinceResize&&($b.hasAnimatedSinceResize=!1,this.nodes.forEach(_x)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ex,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Mb(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Xg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||_x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qp(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bx),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ax(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(px),this.nodes.forEach(fx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(mx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hx),this.nodes.forEach(gx),this.nodes.forEach(sx),this.nodes.forEach(cx)):this.nodes.forEach(mx),this.clearAllSnapshots();let e=Qp.now();Jp.delta=sp(0,1e3/60,e-Jp.timestamp),Jp.timestamp=e,Jp.isProcessing=!0,Yp.update.process(Jp),Yp.preRender.process(Jp),Yp.render.process(Jp),Jp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Y_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dx),this.sharedNodes.forEach(xx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pb(this.snapshot.measuredBox.x)&&!pb(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Rv(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ob(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ly(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Ax(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Rv();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Mx))){let{scroll:e}=this.root;e&&(yy(t.x,e.offset.x),yy(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Rv();if(ab(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&ab(t,e),yy(t.x,i.offset.x),yy(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Rv();ab(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(yy(r.x,-n.scroll.offset.x),yy(r.y,-n.scroll.offset.y)),ly(n.latestValues)&&Sy(r,n.latestValues,n.layout?.layoutBox)}return ly(this.latestValues)&&Sy(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Rv();ab(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ly(n.latestValues))continue;let r;n.instance&&(cy(n.latestValues)&&n.updateSnapshot(),r=Rv(),ab(r,n.measurePageBox())),Eb(t,n.latestValues,n.snapshot?.layoutBox,r)}return ly(this.latestValues)&&Eb(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Jp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Jp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Rv(),this.targetWithTransforms=Rv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ab(this.target,this.layout.layoutBox),hy(this.target,this.targetDelta)):ab(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Up.value&&ex.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||cy(this.parent.latestValues)||uy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rv(),this.relativeTargetOrigin=Rv(),bb(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),ab(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Jp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;ab(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;vy(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Rv());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ob(this.prevProjectionDelta.x,this.projectionDelta.x),ob(this.prevProjectionDelta.y,this.projectionDelta.y)),gb(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Pb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Up.value&&ex.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Iv(),this.projectionDelta=Iv(),this.projectionDeltaWithTransform=Iv()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Iv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Rv(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Tx));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=X(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=X(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Sx(o.x,e.x,n),Sx(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bb(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wx(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ab(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Rv(),ab(f,this.relativeTarget)),c&&(this.animationValues=a,Vb(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(qp(this.pendingAnimation),void 0),this.pendingAnimation=J.update(()=>{$b.hasAnimatedSinceResize=!0,$p.layout++,this.motionValue||=Jg(0),this.motionValue.jump(0,!1),this.currentAnimation=Kb(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{$p.layout--},onComplete:()=>{$p.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&jx(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Rv();let t=pb(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=pb(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ab(t,n),Sy(t,i),gb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qb),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ix(`z`,e,r,this.animationValues);for(let t=0;t<tx.length;t++)ix(`rotate${tx[t]}`,e,r,this.animationValues),ix(`skew${tx[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Zb(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Zb(t?.pointerEvents)||``),this.hasProjected&&!ly(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ib(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ny){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ny[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Zb(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(fx),this.root.sharedNodes.clear()}}}function sx(e){e.updateLayout()}function cx(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Fb(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=pb(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ib(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else jx(i,t.layoutBox,n)&&Fb(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=pb(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Iv();gb(o,n,t.layoutBox);let s=Iv();a?gb(s,e.applyTransform(r,!0),t.measuredBox):gb(s,n,t.layoutBox);let c=!Ob(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Rv();bb(s,t.layoutBox,i.layoutBox,o);let c=Rv();bb(c,n,a.layoutBox,o),Mb(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function lx(e){Up.value&&ex.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ux(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dx(e){e.clearSnapshot()}function fx(e){e.clearMeasurements()}function px(e){e.isLayoutDirty=!0,e.updateLayout()}function mx(e){e.isLayoutDirty=!1}function hx(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function gx(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function _x(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vx(e){e.resolveTargetDelta()}function yx(e){e.calcProjection()}function bx(e){e.resetSkewAndRotation()}function xx(e){e.removeLeadSnapshot()}function Sx(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cx(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function wx(e,t,n,r){Cx(e.x,t.x,n.x,r),Cx(e.y,t.y,n.y,r)}function Tx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ex={duration:.45,ease:[.4,0,.1,1]},Dx=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ox=Dx(`applewebkit/`)&&!Dx(`chrome/`)?Math.round:pp;function kx(e){e.min=Ox(e.min),e.max=Ox(e.max)}function Ax(e){kx(e.x),kx(e.y)}function jx(e,t,n){return e===`position`||e===`preserve-aspect`&&!mb(Nb(t),Nb(n),.2)}function Mx(e){return e!==e.root&&e.scroll?.wasRoot}var Nx=ox({attachResizeListener:(e,t)=>qb(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Px={current:void 0},Fx=ox({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Px.current){let e=new Nx({});e.mount(window),e.setOptions({layoutScroll:!0}),Px.current=e}return Px.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ix=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Lx(e=!0){let t=(0,H.useContext)(rp);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Rx=(0,H.createContext)({strict:!1}),zx={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Bx=!1;function Vx(){if(Bx)return;let e={};for(let t in zx)e[t]={isEnabled:e=>zx[t].some(t=>!!e[t])};$v(e),Bx=!0}function Hx(){return Vx(),ey()}function Ux(e){let t=Hx();for(let n in e)t[n]={...t[n],...e[n]};$v(t)}var Wx=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Gx(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Wx.has(e)}var Kx=e=>!Gx(e);function qx(e){typeof e==`function`&&(Kx=t=>t.startsWith(`on`)?!Gx(t):e(t))}try{qx((ce(),e(o)).default)}catch{}function Jx(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||g_(e[i])||(Kx(i)||n===!0&&Gx(i)||!t&&!Gx(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Yx=(0,H.createContext)({});function Xx(e,t){if(Wv(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Vv(t)?t:void 0,animate:Vv(n)?n:void 0}}return e.inherit===!1?{}:t}function Zx(e){let{initial:t,animate:n}=Xx(e,(0,H.useContext)(Yx));return(0,H.useMemo)(()=>({initial:t,animate:n}),[Qx(t),Qx(n)])}function Qx(e){return Array.isArray(e)?e.join(` `):e}var $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eS(e,t,n){for(let r in t)!g_(t[r])&&!Py(r,n)&&(e[r]=t[r])}function tS({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=$x();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nS(e,t){let n=e.style||{},r={};return eS(r,n,e),Object.assign(r,tS(e,t)),r}function rS(e,t){let n={},r=nS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var iS=()=>({...$x(),attrs:{}});function aS(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=iS();return Hy(n,t,Wy(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};eS(t,e.style,e),i.style={...t,...i.style}}return i}var oS=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function sS(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(oS.indexOf(e)>-1||/[A-Z]/u.test(e))}function cS(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??sS(e)?aS:rS)(t,r,i,e),c=Jx(t,typeof e==`string`,a),l=e===H.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,H.useMemo)(()=>g_(u)?u.get():u,[u]);return(0,H.createElement)(e,{...l,children:d})}function lS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:uS(n,r,i,e),renderState:t()}}function uS(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Zb(a[e]);let{initial:o,animate:s}=e,c=Wv(e),l=Gv(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Bv(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=l_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var dS=e=>(t,n)=>{let r=(0,H.useContext)(Yx),i=(0,H.useContext)(rp),a=()=>lS(e,t,r,i);return n?a():tp(a)},fS=dS({scrapeMotionValuesFromProps:Fy,createRenderState:$x}),pS=dS({scrapeMotionValuesFromProps:Ky,createRenderState:iS}),mS=Symbol.for(`motionComponentSymbol`);function hS(e,t,n){let r=(0,H.useRef)(n);(0,H.useInsertionEffect)(()=>{r.current=n});let i=(0,H.useRef)(null);return(0,H.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var gS=(0,H.createContext)({});function _S(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function vS(e,t,n,r,i,a){let{visualElement:o}=(0,H.useContext)(Yx),s=(0,H.useContext)(Rx),c=(0,H.useContext)(rp),l=(0,H.useContext)(Ix),u=l.reducedMotion,d=l.skipAnimations,f=(0,H.useRef)(null),p=(0,H.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,H.useContext)(gS);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&yS(f.current,n,i,h);let g=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[b_],v=(0,H.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return np(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,H.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function yS(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:bS(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_S(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function bS(e){if(e)return e.options.allowProjection===!1?bS(e.parent):e.projection}function xS(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ux(r);let a=n?n===`svg`:sS(e),o=a?pS:fS;function s(n,s){let c,l={...(0,H.useContext)(Ix),...n,layoutId:SS(n)},{isStatic:u}=l,d=Zx(n),f=o(n,u);if(!u&&typeof window<`u`){CS(l,r);let t=wS(l);c=t.MeasureLayout,d.visualElement=vS(e,f,l,i,t.ProjectionNode,a)}return(0,G.jsxs)(Yx.Provider,{value:d,children:[c&&d.visualElement?(0,G.jsx)(c,{visualElement:d.visualElement,...l}):null,cS(e,n,hS(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,H.forwardRef)(s);return c[mS]=e,c}function SS({layoutId:e}){let t=(0,H.useContext)(ep).id;return t&&e!==void 0?t+`-`+e:e}function CS(e,t){(0,H.useContext)(Rx).strict}function wS(e){let{drag:t,layout:n}=Hx();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function TS(e,t){if(typeof Proxy>`u`)return xS;let n=new Map,r=(n,r)=>xS(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,xS(a,void 0,e,t)),n.get(a))})}var ES=(e,t)=>t.isSVG??sS(e)?new qy(t):new Ly(t,{allowProjection:e!==H.Fragment}),DS=class extends ry{constructor(e){super(e),e.animationState||=eb(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Bv(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},OS=0,kS={animation:{Feature:DS},exit:{Feature:class extends ry{constructor(){super(...arguments),this.id=OS++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=u_(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function AS(e){return{point:{x:e.pageX,y:e.pageY}}}var jS=e=>t=>iv(t)&&e(t,AS(t));function MS(e,t,n,r){return qb(e,t,jS(n),r)}var NS=({current:e})=>e?e.ownerDocument.defaultView:null,PS=(e,t)=>Math.abs(e-t);function FS(e,t){let n=PS(e.x,t.x),r=PS(e.y,t.y);return Math.sqrt(n**2+r**2)}var IS=new Set([`auto`,`scroll`]),LS=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=RS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=BS(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=FS(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Jp;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=RS(t,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=BS(e.type===`pointercancel`?this.lastMoveEventInfo:RS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!iv(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=RS(AS(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Jp;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,BS(s,this.history)),this.removeListeners=mp(MS(this.contextWindow,`pointermove`,this.handlePointerMove),MS(this.contextWindow,`pointerup`,this.handlePointerUp),MS(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(IS.has(e.overflowX)||IS.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),J.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),qp(this.updatePoint)}};function RS(e,t){return t?{point:t(e.point)}:e}function zS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function BS({point:e},t){return{point:e,delta:zS(e,HS(t)),offset:zS(e,VS(t)),velocity:US(t,.1)}}function VS(e){return e[0]}function HS(e){return e[e.length-1]}function US(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=HS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_p(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>_p(t)*2&&(r=e[1]);let a=vp(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function WS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}function GS(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function KS(e,{top:t,left:n,bottom:r,right:i}){return{x:GS(e.x,n,i),y:GS(e.y,t,r)}}function qS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function JS(e,t){return{x:qS(e.x,t.x),y:qS(e.y,t.y)}}function YS(e,t){let n=.5,r=pb(e),i=pb(t);return i>r?n=hp(t.min,t.max-r,e.min):r>i&&(n=hp(e.min,e.max-i,t.min)),sp(0,1,n)}function XS(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ZS=.35;function QS(e=ZS){return e===!1?e=0:e===!0&&(e=ZS),{x:$S(e,`left`,`right`),y:$S(e,`top`,`bottom`)}}function $S(e,t,n){return{min:eC(e,t),max:eC(e,n)}}function eC(e,t){return typeof e==`number`?e:e[t]||0}var tC=new WeakMap,nC=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rv(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(AS(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$_(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sm.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=pb(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&J.update(()=>i(e,t),!1,!0),v_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oC(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&J.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new LS(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:NS(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&J.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aC(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=WS(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&_S(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=KS(n.layoutBox,e):this.constraints=!1,this.elastic=QS(t),r!==this.constraints&&!_S(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Fb(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=XS(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!_S(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=wy(n,r.root,this.visualElement.getTransformPagePoint()),a=JS(r.layout.layoutBox,i);if(t){let e=t(ay(a));this.hasMutatedConstraints=!!e,e&&(a=iy(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Fb(o=>{if(!aC(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return v_(this.visualElement,e),n.start(i_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Fb(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Fb(t=>{let{drag:n}=this.getProps();if(!aC(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-X(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_S(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Fb(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=YS({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Fb(t=>{if(!aC(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(X(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;tC.set(this.visualElement,this);let e=this.visualElement.current,t=MS(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&cv(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();_S(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=iC(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),J.read(r);let o=qb(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Fb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ZS,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function rC(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iC(e,t,n){let r=Av(e,rC(n)),i=Av(t,rC(n));return()=>{r(),i()}}function aC(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oC(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sC=class extends ry{constructor(e){super(e),this.removeGroupControls=pp,this.removeListeners=pp,this.controls=new nC(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pp}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},cC=e=>(t,n)=>{e&&J.update(()=>e(t,n),!1,!0)},lC=class extends ry{constructor(){super(...arguments),this.removePointerDownListener=pp}onPointerDown(e){this.session=new LS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:NS(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cC(e),onStart:cC(t),onMove:cC(n),onEnd:(e,t)=>{delete this.session,r&&J.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=MS(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},uC=!1,dC=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),uC&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$b.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),uC=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||J.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Y_.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;uC=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fC(e){let[t,n]=Lx(),r=(0,H.useContext)(ep);return(0,G.jsx)(dC,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(gS),isPresent:t,safeToRemove:n})}var pC={pan:{Feature:lC},drag:{Feature:sC,ProjectionNode:Fx,MeasureLayout:fC}};function mC(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&J.postRender(()=>i(t,AS(t)))}var hC=class extends ry{mount(){let{current:e}=this.node;e&&(this.unmount=nv(e,(e,t)=>(mC(this.node,t,`Start`),e=>mC(this.node,e,`End`))))}unmount(){}},gC=class extends ry{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=mp(qb(this.node.current,`focus`,()=>this.onFocus()),qb(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function _C(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&J.postRender(()=>i(t,AS(t)))}var vC=class extends ry{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=hv(e,(e,t)=>(_C(this.node,t,`Start`),(e,{success:t})=>_C(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},yC=new WeakMap,bC=new WeakMap,xC=e=>{let t=yC.get(e.target);t&&t(e)},SC=e=>{e.forEach(xC)};function CC({root:e,...t}){let n=e||document;bC.has(n)||bC.set(n,{});let r=bC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(SC,{root:e,...t})),r[i]}function wC(e,t,n){let r=CC(t);return yC.set(e,n),r.observe(e),()=>{yC.delete(e),r.unobserve(e)}}var TC={some:0,all:1},EC=class extends ry{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:TC[r]};this.stopObserver=wC(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(DC(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function DC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var OC={inView:{Feature:EC},tap:{Feature:vC},focus:{Feature:gC},hover:{Feature:hC}},kC={layout:{ProjectionNode:Fx,MeasureLayout:fC}},AC=TS({...kS,...OC,...pC,...kC},ES);function jC(e){let t=tp(()=>Jg(e)),{isStatic:n}=(0,H.useContext)(Ix);if(n){let[,n]=(0,H.useState)(e);(0,H.useEffect)(()=>t.on(`change`,n),[])}return t}function MC(e,t){let n=jC(t()),r=()=>n.set(t());return r(),np(()=>{let t=()=>J.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),qp(r)}}),n}function NC(e){Kg.current=[],e();let t=MC(Kg.current,e);return Kg.current=void 0,t}function PC(e,t,n,r){if(typeof e==`function`)return NC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return IC(e,t,n,r);let i=typeof t==`function`?t:Mv(t,n,r),a=Array.isArray(e)?FC(e,i):FC([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function FC(e,t){let n=tp(()=>[]);return MC(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function IC(e,t,n,r){let i=tp(()=>Object.keys(n)),a=tp(()=>({}));for(let o of i)a[o]=PC(e,t,n[o],r);return a}var LC=(0,H.createContext)(null);function RC(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=X(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?op(e,i,i+a):e}function zC({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=tp(()=>AC[t]),c=[],l=(0,H.useRef)(!1),u=(0,H.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(VC)},updateOrder:(e,t,n)=>{if(l.current)return;let a=RC(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,H.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,G.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,G.jsx)(LC.Provider,{value:d,children:e})})}var BC=(0,H.forwardRef)(zC);function VC(e,t){return e.layout.min-t.layout.min}var HC=50,UC=25,WC=new Set([`auto`,`scroll`]),GC=new WeakMap,KC=new WeakMap,qC=null;function JC(){if(qC){let e=XC(qC,`y`);e&&(KC.delete(e),GC.delete(e));let t=XC(qC,`x`);t&&t!==e&&(KC.delete(t),GC.delete(t)),qC=null}}function YC(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return WC.has(r)||i}function XC(e,t){let n=e?.parentElement;for(;n;){if(YC(n,t))return n;n=n.parentElement}return null}function ZC(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<HC){let e=1-o/HC;return{amount:-UC*e*e,edge:`start`}}else if(s<HC){let e=1-s/HC;return{amount:UC*e*e,edge:`end`}}return{amount:0,edge:null}}function QC(e,t,n,r){if(!e)return;qC=e;let i=XC(e,n);if(!i)return;let{amount:a,edge:o}=ZC(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){KC.delete(i),GC.delete(i);return}let s=KC.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;KC.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);GC.set(i,e)}if(a>0){let e=GC.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function $C(e,t=0){return g_(e)?e:jC(t)}function ew({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=tp(()=>AC[r]),u=(0,H.useContext)(LC),d={x:$C(t.x),y:$C(t.y)},f=PC([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,G.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t;h(n,d[p].get(),r[p]),QC(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{JC(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var tw=(0,H.forwardRef)(ew),nw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=q(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,G.jsx)(tw,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});nw.displayName=`Tab`;var rw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=q(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,G.jsx)(Vl,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});rw.displayName=`Tab.Button`;var iw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(7),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(Qc,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,G.jsx)(Vl,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});iw.displayName=`Tab.Close`;var aw=Object.assign(nw,{Button:rw,Close:iw}),ow=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=q(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,G.jsx)(BC,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});ow.displayName=`Tabs`;var sw=Object.assign(e=>{let t=(0,U.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,l=a===void 0?5:a,u;t[0]===n?u=t[1]:(u=(0,G.jsx)(Le,{asChild:!0,children:n}),t[0]=n,t[1]=u);let d;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==l?(d=(0,G.jsx)(We,{children:(0,G.jsx)(ze,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:l,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;return t[7]!==u||t[8]!==d?(f=(0,G.jsxs)(Ue,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f},{Provider:Fe}),cw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,H.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=q(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,G.jsx)(Vl,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,G.jsx)(sw,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});cw.displayName=`ToolbarButton`;var lw=()=>{let e=(0,U.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:lw},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=nc(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:lw},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=lc(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,G.jsx)(Sl,{}):(0,G.jsx)(ml,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,G.jsxs)(Zf,{children:[(0,G.jsx)(sw,{label:m,children:(0,G.jsx)(Zf.Button,{..._})}),(0,G.jsx)(Zf.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,G.jsx)(Zf.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,G.jsx)(sw,{label:m,children:(0,G.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},uw=rn((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),dw=e=>{let t=(0,U.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=lc(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=nc(s),u=c[l],d=dn(),f;t[2]!==i||t[3]!==d?(f=new Jt(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{uw.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,H.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=uw.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,H.useEffect)(g,_),r},fw=sn(uw),pw=()=>fw(hw),mw=()=>fw(gw);function hw(e){return e.historyStorage.queries}function gw(e){return e.actions}function _w(e,t){for(let n of e)t(n,!0)}var vw=()=>{let e=(0,U.c)(13),t=pw(),{deleteFromHistory:n}=mw(),r;r=t.slice().map(xw).reverse();let i=r.filter(Sw);i.length&&(r=r.filter(Cw));let[a,o]=(0,H.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,H.useEffect)(s,c);let l=()=>{try{_w(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,G.jsx)(Hl,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,G.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,G.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(ww)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,G.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,G.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(Tw)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,G.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},yw=e=>{let t=(0,U.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=mw(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:yw},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=nc(o),u=(0,H.useRef)(null),d=(0,H.useRef)(null),[f,p]=(0,H.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,H.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||bw(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=q(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,G.jsx)(Vl,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,G.jsx)(Vl,{type:`button`,ref:d,onClick:x,children:(0,G.jsx)(Qc,{})})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(sw,{label:`Set active`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,G.jsx)(sw,{label:`Edit label`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,G.jsx)(pl,{"aria-hidden":`true`})})}),(0,G.jsx)(sw,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,G.jsx)(bl,{"aria-hidden":`true`}):(0,G.jsx)(xl,{"aria-hidden":`true`})})}),(0,G.jsx)(sw,{label:`Delete from history`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,G.jsx)(Cl,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,G.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function bw(e){return e?.split(`
|
|
53
|
+
`))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)fc(i,e);g(!1),e(Mt(i))}else{let t=Mt(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});wt(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(jt(t)),v(null)},complete(){g(!1),v(null)}})):Tt(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await cc(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(jt(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,G.jsx)(oc.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function cc(e,t){for await(let n of t)e(n)}var lc=tn(oc);function uc({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&!(typeof r==`object`&&r&&!Array.isArray(r)))throw Error(n);return r}var dc=new WeakMap;function fc(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=dc.get(e);t===void 0&&(t=new Map,dc.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=dc.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,ac.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,ic.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=dc.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,ic.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,ic.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)fc(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=dc.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function pc(e){return he(e)}var mc=e=>{let t=(0,U.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let P=N,F;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(F={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=F):F=t[29];let I=F,L;t[30]!==n||t[31]!==I?(L=(0,G.jsx)(Sn,{...I,children:n}),t[30]=n,t[31]=I,t[32]=L):L=t[32];let ee;t[33]!==P||t[34]!==L?(ee=(0,G.jsx)(sc,{...P,children:L}),t[33]=P,t[34]=L,t[35]=ee):ee=t[35];let R;t[36]!==M||t[37]!==ee?(R=(0,G.jsx)(Tn,{...M,children:ee}),t[36]=M,t[37]=ee,t[38]=R):R=t[38];let te;t[39]!==A||t[40]!==R?(te=(0,G.jsx)(ec,{...A,children:R}),t[39]=A,t[40]=R,t[41]=te):te=t[41];let z;return t[42]!==T||t[43]!==te?(z=(0,G.jsx)(ln,{storage:T,children:te}),t[42]=T,t[43]=te,t[44]=z):z=t[44],z};function hc(e){let t=(0,U.c)(11),n=e===void 0?null:e,r=dn(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(gc);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(gc,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,H.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,H.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(gc,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var gc=`theme`,_c=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),vc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),yc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),bc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),xc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),H.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),Sc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),Cc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),wc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),H.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`})),Tc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),Ec=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),H.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`})),Dc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.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}),H.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`})),Oc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),kc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),H.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`})),Ac=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),jc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),H.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),H.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})),Mc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),H.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),Nc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`}),H.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`}),H.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`}),H.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),H.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`})),Pc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),H.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),Fc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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}),H.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}),H.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),H.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),Ic=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`}),H.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),H.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),Lc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Rc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),zc=({title:e,titleId:t,...n})=>H.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?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),H.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),H.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}),H.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),H.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`})),Bc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),H.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),H.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}),H.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})),Vc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),H.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})),Hc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Uc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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`})),Wc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.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})),Gc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Kc=({title:e,titleId:t,...n})=>H.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?H.createElement(`title`,{id:t},e):null,H.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`})),qc=({title:e,titleId:t,...n})=>H.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?H.createElement(`title`,{id:t},e):null,H.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),H.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),Jc=K(_c),Yc=K(vc),Xc=K(yc),Zc=K(bc),Qc=K(xc),$c=K(Sc),el=K(Cc),tl=K(wc),nl=K(Tc),rl=K(Ec),il=K(Dc),al=K(Oc),ol=K(kc),sl=K(Ac),cl=K(jc),ll=K(Mc),ul=K(Nc),dl=K(Pc),fl=K(Fc),pl=K(Ic),ml=K(Lc),hl=K(Rc),gl=K(zc),_l=K(Bc),vl=K(Vc),yl=K(Hc),bl=K(Uc),xl=K(Wc),Sl=K(Gc),Cl=K(Kc),wl=K(qc);function K(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,U.c)(2),i;return r[0]===n?i=r[1]:(i=(0,G.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function Tl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tl(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function q(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=Tl(e))&&(r&&(r+=` `),r+=t);return r}var El=e=>{let t=(0,U.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:El},t[3]=i):i=t[3];let{headerEditor:a}=nc(i),o=os(n,El),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,H.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=q(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,G.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},Dl=Object.assign(e=>{let t=(0,U.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,H.useState)(n),[a,o]=(0,H.useState)(null),s=(0,H.useRef)(null),c=Ol(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{if(s.current){if(!c){i({width:null,height:null}),o(null);return}fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)})}},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,H.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,G.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,G.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,G.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=Ol(e);return t?kl(t):!1}});function Ol(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function kl(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var Al=e=>{let t=(0,U.c)(2),n=vs(e,Al),r;return t[0]===n?r=t[1]:(r=(0,G.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},jl=Re();function Ml(){return vn([V(()=>import(`./foldgutter-nI1fUyS5.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),V(()=>import(`./brace-fold-zcgUhfJP.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),V(()=>import(`./dialog-BCFM5Ua8.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),V(()=>import(`./search-B5lzXui6.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,10,0,8])),V(()=>import(`./searchcursor-Ccp0pHab.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),V(()=>import(`./jump-to-line-B0d3q3MR.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,10,0])),V(()=>import(`./sublime-CnmrqOqk.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,3,0,8])),V(()=>import(`./mode-C60KbNsM.js`),__vite__mapDeps([33,1,29,0,16,17,18,19,20,21])),V(()=>import(`./info-addon-DQRIr3kJ.js`),__vite__mapDeps([26,1,0]))],{useCommonAddons:!1})}var Nl=Pl;function Pl(e,t){let n=(0,U.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?hn:a,c=o===void 0?gn:o,{fetchError:l,validationErrors:u}=En(),d=t||Nl,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=nc(f),g=(0,H.useRef)(null),_=(0,H.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,H.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return Ml().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,jl.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,G.jsx)(o,{pos:a,token:e}),Dl.shouldRender(e)&&(0,G.jsx)(Dl,{token:e},`image-preview`)].filter(Fl);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;i&&h(t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:_n}))}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,H.useEffect)(b,x),Go(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(jt(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,H.useEffect)(S,C),g}function Fl(e){return!!e}var Il=e=>{let t=(0,U.c)(2),n=Pl(e,Il),r;return t[0]===n?r=t[1]:(r=(0,G.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},Ll=e=>{let t=(0,U.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:Ll},t[3]=i):i=t[3];let{variableEditor:a}=nc(i),o=Ys(n,Ll),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,H.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=q(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,G.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function Rl(e){let t=(0,U.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=dn(),p;t[0]!==f||t[1]!==c?(p=Ho(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===zl||i===`first`?`first`:e===Bl||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,H.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,H.useRef)(null),x=(0,H.useRef)(null),S=(0,H.useRef)(null),C=(0,H.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===zl||e===Bl?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,H.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==zl&&e!==Bl&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,H.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(zl);else if(p<d)y(`second`),m(Bl);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,H.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var zl=`hide-first`,Bl=`hide-second`,Vl=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Vl.displayName=`UnStyledButton`;var Hl=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=q(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,G.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});Hl.displayName=`Button`;var Ul=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ul.displayName=`ButtonGroup`;var Wl=Symbol.for(`react.lazy`),Gl=H.use;function Kl(e){return typeof e==`object`&&!!e&&`then`in e}function ql(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Wl&&`_payload`in e&&Kl(e._payload)}function Jl(e){let t=Yl(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e;ql(r)&&typeof Gl==`function`&&(r=Gl(r._payload));let a=H.Children.toArray(r),o=a.find(Zl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Yl(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(ql(n)&&typeof Gl==`function`&&(n=Gl(n._payload)),H.isValidElement(n)){let e=$l(n),i=Ql(r,n.props);return n.type!==H.Fragment&&(i.ref=t?p(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xl=Symbol(`radix.slottable`);function Zl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Xl}function Ql(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function $l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eu=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Jl(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tu=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`}),nu=`VisuallyHidden`,ru=H.forwardRef((e,t)=>(0,G.jsx)(eu.span,{...e,ref:t,style:{...tu,...e.style}}));ru.displayName=nu;var iu=ru,au=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(8),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(iu,{children:`Close dialog`}),a=(0,G.jsx)(Qc,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,G.jsx)(se,{asChild:!0,children:(0,G.jsxs)(Vl,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});au.displayName=`Dialog.Close`;var ou=Object.assign(e=>{let t=(0,U.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(ue,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,G.jsxs)(S,{children:[i,(0,G.jsx)(fe,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,G.jsx)(s,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:au,Title:le,Trigger:C,Description:O}),su=`rovingFocusGroup.onEntryFocus`,cu={bubbles:!1,cancelable:!0},lu=`RovingFocusGroup`,[uu,du,fu]=ie(lu),[pu,mu]=c(lu,[fu]),[hu,gu]=pu(lu),_u=H.forwardRef((e,t)=>(0,G.jsx)(uu.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(uu.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(vu,{...e,ref:t})})}));_u.displayName=lu;var vu=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=H.useRef(null),m=b(t,p),h=z(o),[g,v]=L({prop:s,defaultProp:c??null,onChange:l,caller:lu}),[y,x]=H.useState(!1),S=i(u),C=du(n),w=H.useRef(!1),[T,E]=H.useState(0);return H.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(su,S),()=>e.removeEventListener(su,S)},[S]),(0,G.jsx)(hu,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:H.useCallback(e=>v(e),[v]),onItemShiftTab:H.useCallback(()=>x(!0),[]),onFocusableItemAdd:H.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>E(e=>e-1),[]),children:(0,G.jsx)(_.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:`none`,...e.style},onMouseDown:B(e.onMouseDown,()=>{w.current=!0}),onFocus:B(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(su,cu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);wu([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}w.current=!1}),onBlur:B(e.onBlur,()=>x(!1))})})}),yu=`RovingFocusGroupItem`,bu=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=x(),l=a||c,u=gu(yu,n),d=u.currentTabStopId===l,f=du(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return H.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,G.jsx)(uu.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,G.jsx)(_.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:B(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:B(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:B(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cu(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Tu(n,r+1):n.slice(r+1)}setTimeout(()=>wu(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});bu.displayName=yu;var xu={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Su(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cu(e,t,n){let r=Su(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xu[r]}function wu(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eu=_u,Du=bu,Ou=[`Enter`,` `],ku=[`ArrowDown`,`PageUp`,`Home`],Au=[`ArrowUp`,`PageDown`,`End`],ju=[...ku,...Au],Mu={ltr:[...Ou,`ArrowRight`],rtl:[...Ou,`ArrowLeft`]},Nu={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Pu=`Menu`,[Fu,Iu,Lu]=ie(Pu),[Ru,zu]=c(Pu,[Lu,j,mu]),Bu=j(),Vu=mu(),[Hu,Uu]=Ru(Pu),[Wu,Gu]=Ru(Pu),Ku=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:s=!0}=e,c=Bu(t),[l,u]=H.useState(null),d=H.useRef(!1),f=i(o),p=z(a);return H.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,G.jsx)(A,{...c,children:(0,G.jsx)(Hu,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,G.jsx)(Wu,{scope:t,onClose:H.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};Ku.displayName=Pu;var qu=`MenuAnchor`,Ju=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bu(n);return(0,G.jsx)(k,{...i,...r,ref:t})});Ju.displayName=qu;var Yu=`MenuPortal`,[Xu,Zu]=Ru(Yu,{forceMount:void 0}),Qu=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Uu(Yu,t);return(0,G.jsx)(Xu,{scope:t,forceMount:n,children:(0,G.jsx)(I,{present:n||a.open,children:(0,G.jsx)(h,{asChild:!0,container:i,children:r})})})};Qu.displayName=Yu;var $u=`MenuContent`,[ed,td]=Ru($u),nd=H.forwardRef((e,t)=>{let n=Zu($u,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uu($u,e.__scopeMenu),o=Gu($u,e.__scopeMenu);return(0,G.jsx)(Fu.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(I,{present:r||a.open,children:(0,G.jsx)(Fu.Slot,{scope:e.__scopeMenu,children:o.modal?(0,G.jsx)(rd,{...i,ref:t}):(0,G.jsx)(id,{...i,ref:t})})})})}),rd=H.forwardRef((e,t)=>{let n=Uu($u,e.__scopeMenu),r=H.useRef(null),i=b(t,r);return H.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,G.jsx)(od,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),id=H.forwardRef((e,t)=>{let n=Uu($u,e.__scopeMenu);return(0,G.jsx)(od,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ad=l(`MenuContent.ScrollLock`),od=H.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:_,...v}=e,y=Uu($u,n),x=Gu($u,n),S=Bu(n),C=Vu(n),w=Iu(n),[T,E]=H.useState(null),D=H.useRef(null),O=b(t,D,y.onContentChange),k=H.useRef(0),A=H.useRef(``),j=H.useRef(0),M=H.useRef(null),N=H.useRef(`right`),P=H.useRef(0),F=_?ee:H.Fragment,I=_?{as:ad,allowPinchZoom:!0}:void 0,L=e=>{let t=A.current+e,n=w().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Wd(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){A.current=t,window.clearTimeout(k.current),t!==``&&(k.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};H.useEffect(()=>()=>window.clearTimeout(k.current),[]),a();let R=H.useCallback(e=>N.current===M.current?.side&&Kd(e,M.current?.area),[]);return(0,G.jsx)(ed,{scope:n,searchRef:A,onItemEnter:H.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:H.useCallback(e=>{R(e)||(D.current?.focus(),E(null))},[R]),onTriggerLeave:H.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:j,onPointerGraceIntentChange:H.useCallback(e=>{M.current=e},[]),children:(0,G.jsx)(F,{...I,children:(0,G.jsx)(m,{asChild:!0,trapped:i,onMountAutoFocus:B(o,e=>{e.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,G.jsx)(g,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:(0,G.jsx)(Eu,{asChild:!0,...C,dir:x.dir,orientation:`vertical`,loop:r,currentTabStopId:T,onCurrentTabStopIdChange:E,onEntryFocus:B(l,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,G.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":zd(y.open),"data-radix-menu-content":``,dir:x.dir,...S,...v,ref:O,style:{outline:`none`,...v.style},onKeyDown:B(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&L(e.key));let i=D.current;if(e.target!==i||!ju.includes(e.key))return;e.preventDefault();let a=w().filter(e=>!e.disabled).map(e=>e.ref.current);Au.includes(e.key)&&a.reverse(),Hd(a)}),onBlur:B(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),A.current=``)}),onPointerMove:B(e.onPointerMove,qd(e=>{let t=e.target,n=P.current!==e.clientX;e.currentTarget.contains(t)&&n&&(N.current=e.clientX>P.current?`right`:`left`,P.current=e.clientX)}))})})})})})})});nd.displayName=$u;var sd=`MenuGroup`,cd=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{role:`group`,...r,ref:t})});cd.displayName=sd;var ld=`MenuLabel`,ud=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{...r,ref:t})});ud.displayName=ld;var dd=`MenuItem`,fd=`menu.itemSelect`,pd=H.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Gu(dd,e.__scopeMenu),s=td(dd,e.__scopeMenu),c=b(t,a),l=H.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(fd,{bubbles:!0,cancelable:!0});e.addEventListener(fd,e=>r?.(e),{once:!0}),y(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,G.jsx)(md,{...i,ref:c,disabled:n,onClick:B(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:B(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Ou.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});pd.displayName=dd;var md=H.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=td(dd,n),s=Vu(n),c=H.useRef(null),l=b(t,c),[u,d]=H.useState(!1),[f,p]=H.useState(``);return H.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,G.jsx)(Fu.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,G.jsx)(Du,{asChild:!0,...s,focusable:!r,children:(0,G.jsx)(_.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:B(e.onPointerMove,qd(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,qd(e=>o.onItemLeave(e))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),hd=`MenuCheckboxItem`,gd=H.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,G.jsx)(wd,{scope:e.__scopeMenu,checked:n,children:(0,G.jsx)(pd,{role:`menuitemcheckbox`,"aria-checked":Bd(n)?`mixed`:n,...i,ref:t,"data-state":Vd(n),onSelect:B(i.onSelect,()=>r?.(Bd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gd.displayName=hd;var _d=`MenuRadioGroup`,[vd,yd]=Ru(_d,{value:void 0,onValueChange:()=>{}}),bd=H.forwardRef((e,t)=>{let{value:n,onValueChange:r,...a}=e,o=i(r);return(0,G.jsx)(vd,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,G.jsx)(cd,{...a,ref:t})})});bd.displayName=_d;var xd=`MenuRadioItem`,Sd=H.forwardRef((e,t)=>{let{value:n,...r}=e,i=yd(xd,e.__scopeMenu),a=n===i.value;return(0,G.jsx)(wd,{scope:e.__scopeMenu,checked:a,children:(0,G.jsx)(pd,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Vd(a),onSelect:B(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Sd.displayName=xd;var Cd=`MenuItemIndicator`,[wd,Td]=Ru(Cd,{checked:!1}),Ed=H.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Td(Cd,n);return(0,G.jsx)(I,{present:r||Bd(a.checked)||a.checked===!0,children:(0,G.jsx)(_.span,{...i,ref:t,"data-state":Vd(a.checked)})})});Ed.displayName=Cd;var Dd=`MenuSeparator`,Od=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(_.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Od.displayName=Dd;var kd=`MenuArrow`,Ad=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bu(n);return(0,G.jsx)(R,{...i,...r,ref:t})});Ad.displayName=kd;var jd=`MenuSub`,[Md,Nd]=Ru(jd),Pd=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,o=Uu(jd,t),s=Bu(t),[c,l]=H.useState(null),[u,d]=H.useState(null),f=i(a);return H.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),(0,G.jsx)(A,{...s,children:(0,G.jsx)(Hu,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,G.jsx)(Md,{scope:t,contentId:x(),triggerId:x(),trigger:c,onTriggerChange:l,children:n})})})};Pd.displayName=jd;var Fd=`MenuSubTrigger`,Id=H.forwardRef((e,t)=>{let n=Uu(Fd,e.__scopeMenu),r=Gu(Fd,e.__scopeMenu),i=Nd(Fd,e.__scopeMenu),a=td(Fd,e.__scopeMenu),o=H.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=H.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return H.useEffect(()=>u,[u]),H.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,G.jsx)(Ju,{asChild:!0,...l,children:(0,G.jsx)(md,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":zd(n.open),...e,ref:p(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,qd(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:B(e.onPointerLeave,qd(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Mu[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Id.displayName=Fd;var Ld=`MenuSubContent`,Rd=H.forwardRef((e,t)=>{let n=Zu($u,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uu($u,e.__scopeMenu),o=Gu($u,e.__scopeMenu),s=Nd(Ld,e.__scopeMenu),c=H.useRef(null),l=b(t,c);return(0,G.jsx)(Fu.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(I,{present:r||a.open,children:(0,G.jsx)(Fu.Slot,{scope:e.__scopeMenu,children:(0,G.jsx)(od,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:B(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:B(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Nu[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Rd.displayName=Ld;function zd(e){return e?`open`:`closed`}function Bd(e){return e===`indeterminate`}function Vd(e){return Bd(e)?`indeterminate`:e?`checked`:`unchecked`}function Hd(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ud(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wd(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ud(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Gd(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Kd(e,t){return t?Gd({x:e.clientX,y:e.clientY},t):!1}function qd(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Jd=Ku,Yd=Ju,Xd=Qu,Zd=nd,Qd=cd,$d=ud,ef=pd,tf=gd,nf=bd,rf=Sd,af=Ed,of=Od,sf=Ad,cf=Id,lf=Rd,uf=`DropdownMenu`,[df,ff]=c(uf,[zu]),pf=zu(),[mf,hf]=df(uf),gf=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=pf(t),l=H.useRef(null),[u,d]=L({prop:i,defaultProp:a??!1,onChange:o,caller:uf});return(0,G.jsx)(mf,{scope:t,triggerId:x(),triggerRef:l,contentId:x(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,G.jsx)(Jd,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};gf.displayName=uf;var _f=`DropdownMenuTrigger`,vf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=hf(_f,n),o=pf(n);return(0,G.jsx)(Yd,{asChild:!0,...o,children:(0,G.jsx)(_.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:p(t,a.triggerRef),onPointerDown:B(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:B(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});vf.displayName=_f;var yf=`DropdownMenuPortal`,bf=e=>{let{__scopeDropdownMenu:t,...n}=e,r=pf(t);return(0,G.jsx)(Xd,{...r,...n})};bf.displayName=yf;var xf=`DropdownMenuContent`,Sf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=hf(xf,n),a=pf(n),o=H.useRef(!1);return(0,G.jsx)(Zd,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:B(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Sf.displayName=xf;var Cf=`DropdownMenuGroup`,wf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(Qd,{...i,...r,ref:t})});wf.displayName=Cf;var Tf=`DropdownMenuLabel`,Ef=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)($d,{...i,...r,ref:t})});Ef.displayName=Tf;var Df=`DropdownMenuItem`,Of=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(ef,{...i,...r,ref:t})});Of.displayName=Df;var kf=`DropdownMenuCheckboxItem`,Af=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(tf,{...i,...r,ref:t})});Af.displayName=kf;var jf=`DropdownMenuRadioGroup`,Mf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(nf,{...i,...r,ref:t})});Mf.displayName=jf;var Nf=`DropdownMenuRadioItem`,Pf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(rf,{...i,...r,ref:t})});Pf.displayName=Nf;var Ff=`DropdownMenuItemIndicator`,If=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(af,{...i,...r,ref:t})});If.displayName=Ff;var Lf=`DropdownMenuSeparator`,Rf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(of,{...i,...r,ref:t})});Rf.displayName=Lf;var zf=`DropdownMenuArrow`,Bf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(sf,{...i,...r,ref:t})});Bf.displayName=zf;var Vf=`DropdownMenuSubTrigger`,Hf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(cf,{...i,...r,ref:t})});Hf.displayName=Vf;var Uf=`DropdownMenuSubContent`,Wf=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=pf(n);return(0,G.jsx)(lf,{...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)`}})});Wf.displayName=Uf;var Gf=gf,Kf=vf,qf=bf,Jf=Sf,Yf=Of,Xf=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(Kf,{asChild:!0,children:(0,G.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Xf.displayName=`DropdownMenuButton`;var Zf=Object.assign(Gf,{Button:Xf,Item:e=>{let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=q(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,G.jsx)(Yf,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,U.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=q(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,G.jsx)(qf,{children:(0,G.jsx)(Jf,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),Qf=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=q(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=Bo.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,G.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});Qf.displayName=`MarkdownContent`;var $f=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(6),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,G.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});$f.displayName=`Spinner`;var ep=(0,H.createContext)({});function tp(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var np=typeof window<`u`?H.useLayoutEffect:H.useEffect,rp=(0,H.createContext)(null);function ip(e,t){e.indexOf(t)===-1&&e.push(t)}function ap(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function op([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var sp=(e,t,n)=>n>t?t:n<e?e:n,cp={},lp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),up=e=>typeof e==`object`&&!!e,dp=e=>/^0[^.\s]+$/u.test(e);function fp(e){let t;return()=>(t===void 0&&(t=e()),t)}var pp=e=>e,mp=(...e)=>e.reduce((e,t)=>n=>t(e(n))),hp=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},gp=class{constructor(){this.subscriptions=[]}add(e){return ip(this.subscriptions,e),()=>ap(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},_p=e=>e*1e3,vp=e=>e/1e3,yp=(e,t)=>t?1e3/t*e:0,bp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xp=1e-7,Sp=12;function Cp(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=bp(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>xp&&++s<Sp);return o}function wp(e,t,n,r){if(e===t&&n===r)return pp;let i=t=>Cp(t,0,1,e,n);return e=>e===0||e===1?e:bp(i(e),t,r)}var Tp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ep=e=>t=>1-e(1-t),Dp=wp(.33,1.53,.69,.99),Op=Ep(Dp),kp=Tp(Op),Ap=e=>e>=1?1:(e*=2)<1?.5*Op(e):.5*(2-2**(-10*(e-1))),jp=e=>1-Math.sin(Math.acos(e)),Mp=Ep(jp),Np=Tp(jp),Pp=wp(.42,0,1,1),Fp=wp(0,0,.58,1),Ip=wp(.42,0,.58,1),Lp=e=>Array.isArray(e)&&typeof e[0]!=`number`,Rp=e=>Array.isArray(e)&&typeof e[0]==`number`,zp={linear:pp,easeIn:Pp,easeInOut:Ip,easeOut:Fp,circIn:jp,circInOut:Np,circOut:Mp,backIn:Op,backInOut:kp,backOut:Dp,anticipate:Ap},Bp=e=>typeof e==`string`,Vp=e=>{if(Rp(e)){e.length;let[t,n,r,i]=e;return wp(t,n,r,i)}else if(Bp(e))return zp[e],`${e}`,zp[e];return e},Hp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Up={value:null,addProjectionMetrics:null};function Wp(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Up.value&&Up.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Gp=40;function Kp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Hp.reduce((e,n)=>(e[n]=Wp(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=cp.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Gp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Hp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Hp.length;t++)o[Hp[t]].cancel(e)},state:i,steps:o}}var{schedule:J,cancel:qp,state:Jp,steps:Yp}=Kp(typeof requestAnimationFrame<`u`?requestAnimationFrame:pp,!0),Xp;function Zp(){Xp=void 0}var Qp={now:()=>(Xp===void 0&&Qp.set(Jp.isProcessing||cp.useManualTiming?Jp.timestamp:performance.now()),Xp),set:e=>{Xp=e,queueMicrotask(Zp)}},$p={layout:0,mainThread:0,waapi:0},em=e=>t=>typeof t==`string`&&t.startsWith(e),tm=em(`--`),nm=em(`var(--`),rm=e=>nm(e)?im.test(e.split(`/*`)[0].trim()):!1,im=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function am(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var om={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},sm={...om,transform:e=>sp(0,1,e)},cm={...om,default:1},lm=e=>Math.round(e*1e5)/1e5,um=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dm(e){return e==null}var fm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pm=(e,t)=>n=>!!(typeof n==`string`&&fm.test(n)&&n.startsWith(e)||t&&!dm(n)&&Object.prototype.hasOwnProperty.call(n,t)),mm=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(um);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},hm=e=>sp(0,255,e),gm={...om,transform:e=>Math.round(hm(e))},_m={test:pm(`rgb`,`red`),parse:mm(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+gm.transform(e)+`, `+gm.transform(t)+`, `+gm.transform(n)+`, `+lm(sm.transform(r))+`)`};function vm(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ym={test:pm(`#`),parse:vm,transform:_m.transform},bm=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xm=bm(`deg`),Sm=bm(`%`),Y=bm(`px`),Cm=bm(`vh`),wm=bm(`vw`),Tm={...Sm,parse:e=>Sm.parse(e)/100,transform:e=>Sm.transform(e*100)},Em={test:pm(`hsl`,`hue`),parse:mm(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Sm.transform(lm(t))+`, `+Sm.transform(lm(n))+`, `+lm(sm.transform(r))+`)`},Dm={test:e=>_m.test(e)||ym.test(e)||Em.test(e),parse:e=>_m.test(e)?_m.parse(e):Em.test(e)?Em.parse(e):ym.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?_m.transform(e):Em.transform(e),getAnimatableNone:e=>{let t=Dm.parse(e);return t.alpha=0,Dm.transform(t)}},Om=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function km(e){return isNaN(e)&&typeof e==`string`&&(e.match(um)?.length||0)+(e.match(Om)?.length||0)>0}var Am=`number`,jm=`color`,Mm=`var`,Nm=`var(`,Pm="${}",Fm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Im(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Fm,e=>(Dm.test(e)?(r.color.push(a),i.push(jm),n.push(Dm.parse(e))):e.startsWith(Nm)?(r.var.push(a),i.push(Mm),n.push(e)):(r.number.push(a),i.push(Am),n.push(parseFloat(e))),++a,Pm)).split(Pm),indexes:r,types:i}}function Lm(e){return Im(e).values}function Rm({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Am?i+=lm(r[a]):e===jm?i+=Dm.transform(r[a]):i+=r[a]}return i}}function zm(e){return Rm(Im(e))}var Bm=e=>typeof e==`number`?0:Dm.test(e)?Dm.getAnimatableNone(e):e,Vm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Bm(e);function Hm(e){let t=Im(e);return Rm(t)(t.values.map((e,n)=>Vm(e,t.split[n])))}var Um={test:km,parse:Lm,createTransformer:zm,getAnimatableNone:Hm};function Wm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Wm(s,r,e+1/3),a=Wm(s,r,e),o=Wm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Km(e,t){return n=>n>0?t:e}var X=(e,t,n)=>e+(t-e)*n,qm=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Jm=[ym,_m,Em],Ym=e=>Jm.find(t=>t.test(e));function Xm(e){let t=Ym(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Em&&(n=Gm(n)),n}var Zm=(e,t)=>{let n=Xm(e),r=Xm(t);if(!n||!r)return Km(e,t);let i={...n};return e=>(i.red=qm(n.red,r.red,e),i.green=qm(n.green,r.green,e),i.blue=qm(n.blue,r.blue,e),i.alpha=X(n.alpha,r.alpha,e),_m.transform(i))},Qm=new Set([`none`,`hidden`]);function $m(e,t){return Qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eh(e,t){return n=>X(e,t,n)}function th(e){return typeof e==`number`?eh:typeof e==`string`?rm(e)?Km:Dm.test(e)?Zm:ah:Array.isArray(e)?nh:typeof e==`object`?Dm.test(e)?Zm:rh:Km}function nh(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>th(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function rh(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=th(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ih(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var ah=(e,t)=>{let n=Um.createTransformer(t),r=Im(e),i=Im(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qm.has(e)&&!i.values.length||Qm.has(t)&&!r.values.length?$m(e,t):mp(nh(ih(r,i),i.values),n):(`${e}${t}`,Km(e,t))};function oh(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?X(e,t,n):th(e)(e,t)}var sh=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>J.update(t,e),stop:()=>qp(t),now:()=>Jp.isProcessing?Jp.timestamp:Qp.now()}},ch=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},lh=2e4;function uh(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function dh(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(uh(r),lh);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:vp(i)}}var Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function fh(e,t){return e*Math.sqrt(1-t*t)}var ph=12;function mh(e,t,n){let r=n;for(let n=1;n<ph;n++)r-=e(r)/t(r);return r}var hh=.001;function gh({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,a;Z.maxDuration;let o=1-t;o=sp(Z.minDamping,Z.maxDamping,o),e=sp(Z.minDuration,Z.maxDuration,vp(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=fh(t,o),c=Math.exp(-i);return hh-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=fh(t**2,o);return(-i(t)+hh>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-hh+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=mh(i,a,s);if(e=_p(e),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var _h=[`duration`,`bounce`],vh=[`stiffness`,`damping`,`mass`];function yh(e,t){return t.some(t=>e[t]!==void 0)}function bh(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!yh(e,vh)&&yh(e,_h))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*sp(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:a}}else{let n=gh({...e,velocity:0});t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function xh(e=Z.visualDuration,t=Z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=bh({...n,velocity:-vp(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=vp(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Z.restSpeed.granular:Z.restSpeed.default,i||=v?Z.restDelta.granular:Z.restDelta.default;let y,b,x,S,C,w;if(h<1)x=fh(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>_p(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=_p(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=_p(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(uh(T),lh),t=ch(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}xh.applyToOptions=e=>{let t=dh(e,100,xh);return e.ease=t.ease,e.duration=_p(t.duration),e.type=`keyframes`,e};var Sh=5;function Ch(e,t,n){let r=Math.max(t-Sh,0);return yp(n-e(r),t-r)}function wh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=xh({keyframes:[f.value,m(f.value)],velocity:Ch(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Th(e,t,n){let r=[],i=n||cp.mix||oh,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=mp(Array.isArray(t)?t[n]||pp:t,a)),r.push(a)}return r}function Eh(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Th(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=hp(e[r],e[r+1],n);return s[r](i)};return n?t=>l(sp(e[0],e[a-1],t)):l}function Dh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=hp(0,t,r);e.push(X(n,1,i))}}function Oh(e){let t=[0];return Dh(t,e.length-1),t}function kh(e,t){return e.map(e=>e*t)}function Ah(e,t){return e.map(()=>t||Ip).splice(0,e.length-1)}function jh({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Lp(r)?r.map(Vp):Vp(r),a={done:!1,value:t[0]},o=Eh(kh(n&&n.length===t.length?n:Oh(t),e),t,{ease:Array.isArray(i)?i:Ah(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Mh=e=>e!==null;function Nh(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mh),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ph={decay:wh,inertia:wh,tween:jh,keyframes:jh,spring:xh};function Fh(e){typeof e.type==`string`&&(e.type=Ph[e.type])}var Ih=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Lh=e=>e/100,Rh=class extends Ih{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Qp.now()&&this.tick(Qp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},$p.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fh(e);let{type:t=jh,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jh;s!==jh&&typeof o[0]!=`number`&&(this.mixKeyframes=mp(Lh,oh(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=uh(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=sp(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wh&&(b.value=Nh(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return vp(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vp(e)}get time(){return vp(this.currentTime)}set time(e){e=_p(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Ch(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Qp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=vp(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=sh,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Qp.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,$p.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Bh=e=>e*180/Math.PI,Vh=e=>Uh(Bh(Math.atan2(e[1],e[0]))),Hh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vh,rotateZ:Vh,skewX:e=>Bh(Math.atan(e[1])),skewY:e=>Bh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uh=e=>(e%=360,e<0&&(e+=360),e),Wh=Vh,Gh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gh,scaleY:Kh,scale:e=>(Gh(e)+Kh(e))/2,rotateX:e=>Uh(Bh(Math.atan2(e[6],e[5]))),rotateY:e=>Uh(Bh(Math.atan2(-e[2],e[0]))),rotateZ:Wh,rotate:Wh,skewX:e=>Bh(Math.atan(e[4])),skewY:e=>Bh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jh(e){return e.includes(`scale`)?1:0}function Yh(e,t){if(!e||e===`none`)return Jh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qh,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hh,i=t}if(!i)return Jh(t);let a=r[t],o=i[1].split(`,`).map(Zh);return typeof a==`function`?a(o):o[a]}var Xh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yh(n,t)};function Zh(e){return parseFloat(e.trim())}var Qh=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$h=new Set([...Qh,`pathRotation`]),eg=e=>e===om||e===Y,tg=new Set([`x`,`y`,`z`]),ng=Qh.filter(e=>!tg.has(e));function rg(e){let t=[];return ng.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var ig={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yh(t,`x`),y:(e,{transform:t})=>Yh(t,`y`)};ig.translateX=ig.x,ig.translateY=ig.y;var ag=new Set,og=!1,sg=!1,cg=!1;function lg(){if(sg){let e=Array.from(ag).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=rg(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sg=!1,og=!1,ag.forEach(e=>e.complete(cg)),ag.clear()}function ug(){ag.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sg=!0)})}function dg(){cg=!0,ug(),lg(),cg=!1}var fg=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ag.add(this),og||(og=!0,J.read(ug),J.resolveKeyframes(lg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ag.delete(this)}cancel(){this.state===`scheduled`&&(ag.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pg=e=>e.startsWith(`--`);function mg(e,t,n){pg(t)?e.style.setProperty(t,n):e.style[t]=n}var hg={};function gg(e,t){let n=fp(e);return()=>hg[t]??n()}var _g=gg(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),vg=gg(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yg=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bg={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yg([0,.65,.55,1]),circOut:yg([.55,0,1,.45]),backIn:yg([.31,.01,.66,-.59]),backOut:yg([.33,1.53,.69,.99])};function xg(e,t){if(e)return typeof e==`function`?vg()?ch(e,t):`ease-out`:Rp(e)?yg(e):Array.isArray(e)?e.map(e=>xg(e,t)||bg.easeOut):bg[e]}function Sg(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xg(s,i);Array.isArray(d)&&(u.easing=d),Up.value&&$p.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Up.value&&p.finished.finally(()=>{$p.waapi--}),p}function Cg(e){return typeof e==`function`&&`applyToOptions`in e}function wg({type:e,...t}){return Cg(e)&&vg()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tg=class extends Ih{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wg(e);this.animation=Sg(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nh(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),mg(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return vp(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+vp(e)}get time(){return vp(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_p(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_g()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),pp):r(this)}},Eg={anticipate:Ap,backInOut:kp,circInOut:Np};function Dg(e){return e in Eg}function Og(e){typeof e.ease==`string`&&Dg(e.ease)&&(e.ease=Eg[e.ease])}var kg=10,Ag=class extends Tg{constructor(e){Og(e),Fh(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rh({...a,autoplay:!1}),s=Math.max(kg,Qp.now()-this.startTime),c=sp(0,kg,s-kg),l=o.sample(s).value,{name:u}=this.options;i&&u&&mg(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},jg=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Um.test(e)||e===`0`)&&!e.startsWith(`url(`));function Mg(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ng(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=jg(i,t),s=jg(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Mg(e)||(n===`spring`||Cg(n))&&r}function Pg(e){e.duration=0,e.type=`keyframes`}var Fg=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ig=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lg(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ig.test(e[t]))return!0;return!1}var Rg=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zg=fp(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Bg(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zg()&&n&&(Fg.has(n)||Rg.has(n)&&Lg(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vg=40,Hg=class extends Ih{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Qp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||fg)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Qp.now();let u=!0;Ng(e,i,a,o)||(u=!1,(cp.instantAnimations||!s)&&l?.(Nh(e,n,t)),e[0]=e[e.length-1],Pg(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vg?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Bg(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ag({...d,element:p})}catch{m=new Rh(d)}else m=new Rh(d);m.finished.then(()=>{this.notifyFinished()}).catch(pp),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dg()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Ug(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Wg=30,Gg=e=>!isNaN(parseFloat(e)),Kg={current:void 0},qg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Qp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Qp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gg(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new gp);let n=this.events[e].add(t);return e===`change`?()=>{n(),J.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Kg.current&&Kg.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Qp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Wg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Wg);return yp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Jg(e,t){return new qg(e,t)}function Yg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Xg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Yg(n,e)}var Zg={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qg=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$g={type:`keyframes`,duration:.8},e_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},t_=(e,{keyframes:t})=>t.length>2?$g:$h.has(e)?e.startsWith(`scale`)?Qg(t[1]):Zg:e_,n_=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function r_(e){for(let t in e)if(!n_.has(t))return!0;return!1}var i_=(e,t,n,r={},i,a)=>o=>{let s=Xg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=_p(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};r_(s)||Object.assign(u,t_(e,u)),u.duration&&=_p(u.duration),u.repeatDelay&&=_p(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pg(u),u.delay===0&&(d=!0)),(cp.instantAnimations||cp.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Pg(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nh(u.keyframes,s);if(e!==void 0){J.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rh(u):new Hg(u)},a_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o_(e){let t=a_.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function s_(e,t,n=1){`${e}`;let[r,i]=o_(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return lp(e)?parseFloat(e):e}return rm(i)?s_(i,t,n+1):i}function c_(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function l_(e,t,n,r){if(typeof t==`function`){let[i,a]=c_(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=c_(r);t=t(n===void 0?e.custom:n,i,a)}return t}function u_(e,t,n){let r=e.getProps();return l_(r,t,n===void 0?r.custom:n,e)}var d_=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qh]),f_=e=>Array.isArray(e);function p_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jg(n))}function m_(e){return f_(e)?e[e.length-1]||0:e}function h_(e,t){let{transitionEnd:n={},transition:r={},...i}=u_(e,t)||{};i={...i,...n};for(let t in i)p_(e,t,m_(i[t]))}var g_=e=>!!(e&&e.getVelocity);function __(e){return!!(g_(e)&&e.add)}function v_(e,t){let n=e.getValue(`willChange`);if(__(n))return n.add(t);if(!n&&cp.WillChange){let n=new cp.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function y_(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var b_=`data-`+y_(`framerAppearId`);function x_(e){return e.props[b_]}function S_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function C_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Yg(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&S_(f,t))continue;let o={delay:n,...Xg(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){J.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=x_(e);if(n){let e=window.MotionHandoffAnimation(n,t,J);e!==null&&(o.startTime=e,p=!0)}}v_(e,t);let m=l??e.shouldReduceMotion;r.start(i_(t,r,i,m&&d_.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>J.update(()=>{o&&h_(e,o)});d.length?Promise.all(d).then(t):t()}return d}function w_(e,t,n={}){let r=u_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(C_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return T_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function T_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(w_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Ug(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function E_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>w_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=w_(e,t,n);else{let i=typeof t==`function`?u_(e,t,n.custom):t;r=Promise.all(C_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var D_={test:e=>e===`auto`,parse:e=>e},O_=e=>t=>t.test(e),k_=[om,Y,Sm,xm,wm,Cm,D_],A_=e=>k_.find(O_(e));function j_(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||dp(e)}var M_=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function N_(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(um)||[];if(!r)return e;let i=n.replace(r,``),a=M_.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var P_=/\b([a-z-]*)\(.*?\)/gu,F_={...Um,getAnimatableNone:e=>{let t=e.match(P_);return t?t.map(N_).join(` `):e}},I_={...Um,getAnimatableNone:e=>{let t=Um.parse(e);return Um.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},L_={...om,transform:Math.round},R_={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:xm,pathRotation:xm,rotateX:xm,rotateY:xm,rotateZ:xm,scale:cm,scaleX:cm,scaleY:cm,scaleZ:cm,skew:xm,skewX:xm,skewY:xm,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sm,originX:Tm,originY:Tm,originZ:Y,zIndex:L_,fillOpacity:sm,strokeOpacity:sm,numOctaves:L_},z_={...R_,color:Dm,backgroundColor:Dm,outlineColor:Dm,fill:Dm,stroke:Dm,borderColor:Dm,borderTopColor:Dm,borderRightColor:Dm,borderBottomColor:Dm,borderLeftColor:Dm,filter:F_,WebkitFilter:F_,mask:I_,WebkitMask:I_},B_=e=>z_[e],V_=new Set([F_,I_]);function H_(e,t){let n=B_(e);return V_.has(n)||(n=Um),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var U_=new Set([`auto`,`none`,`0`]);function W_(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!U_.has(t)&&Im(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=H_(n,i)}var G_=class extends fg{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),rm(r))){let i=s_(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!d_.has(n)||e.length!==2)return;let[r,i]=e,a=A_(r),o=A_(i);if(am(r)!==am(i)&&ig[n]){this.needsMeasurement=!0;return}if(a!==o)if(eg(a)&&eg(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ig[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||j_(e[t]))&&n.push(t);n.length&&W_(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ig[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ig[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function K_(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var q_=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function J_(e){return up(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Y_,cancel:X_}=Kp(queueMicrotask,!1),Z_={x:!1,y:!1};function Q_(){return Z_.x||Z_.y}function $_(e){return e===`x`||e===`y`?Z_[e]?null:(Z_[e]=!0,()=>{Z_[e]=!1}):Z_.x||Z_.y?null:(Z_.x=Z_.y=!0,()=>{Z_.x=Z_.y=!1})}function ev(e,t){let n=K_(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function tv(e){return!(e.pointerType===`touch`||Q_())}function nv(e,t,n={}){let[r,i,a]=ev(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!tv(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var rv=(e,t)=>t?e===t?!0:rv(e,t.parentElement):!1,iv=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,av=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ov(e){return av.has(e.tagName)||e.isContentEditable===!0}var sv=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function cv(e){return sv.has(e.tagName)||e.isContentEditable===!0}var lv=new WeakSet;function uv(e){return t=>{t.key===`Enter`&&e(t)}}function dv(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fv=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=uv(()=>{if(lv.has(n))return;dv(n,`down`);let e=uv(()=>{dv(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>dv(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function pv(e){return iv(e)&&!Q_()}var mv=new WeakSet;function hv(e,t,n={}){let[r,i,a]=ev(e,n),o=e=>{let r=e.currentTarget;if(!pv(e)||mv.has(e))return;lv.add(r),n.stopPropagation&&mv.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),lv.has(r)&&lv.delete(r),pv(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||rv(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),J_(e)&&(e.addEventListener(`focus`,e=>fv(e,i)),!ov(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function gv(e){return up(e)&&`ownerSVGElement`in e}var _v=new WeakMap,vv,yv=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:gv(r)&&`getBBox`in r?r.getBBox()[t]:r[n],bv=yv(`inline`,`width`,`offsetWidth`),xv=yv(`block`,`height`,`offsetHeight`);function Sv({target:e,borderBoxSize:t}){_v.get(e)?.forEach(n=>{n(e,{get width(){return bv(e,t)},get height(){return xv(e,t)}})})}function Cv(e){e.forEach(Sv)}function wv(){typeof ResizeObserver>`u`||(vv=new ResizeObserver(Cv))}function Tv(e,t){vv||wv();let n=K_(e);return n.forEach(e=>{let n=_v.get(e);n||(n=new Set,_v.set(e,n)),n.add(t),vv?.observe(e)}),()=>{n.forEach(e=>{let n=_v.get(e);n?.delete(t),n?.size||vv?.unobserve(e)})}}var Ev=new Set,Dv;function Ov(){Dv=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ev.forEach(t=>t(e))},window.addEventListener(`resize`,Dv)}function kv(e){return Ev.add(e),Dv||Ov(),()=>{Ev.delete(e),!Ev.size&&typeof Dv==`function`&&(window.removeEventListener(`resize`,Dv),Dv=void 0)}}function Av(e,t){return typeof e==`function`?kv(e):Tv(e,t)}function jv(e){return gv(e)&&e.tagName===`svg`}function Mv(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Eh(i,a,o);return t?s(r):s}var Nv=[...k_,Dm,Um],Pv=e=>Nv.find(O_(e)),Fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Iv=()=>({x:Fv(),y:Fv()}),Lv=()=>({min:0,max:0}),Rv=()=>({x:Lv(),y:Lv()}),zv=new WeakMap;function Bv(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Vv(e){return typeof e==`string`||Array.isArray(e)}var Hv=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Uv=[`initial`,...Hv];function Wv(e){return Bv(e.animate)||Uv.some(t=>Vv(e[t]))}function Gv(e){return!!(Wv(e)||e.variants)}function Kv(e,t,n){for(let r in t){let i=t[r],a=n[r];if(g_(i))e.addValue(r,i);else if(g_(a))e.addValue(r,Jg(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Jg(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var qv={current:null},Jv={current:!1},Yv=typeof window<`u`;function Xv(){if(Jv.current=!0,Yv)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>qv.current=e.matches;e.addEventListener(`change`,t),t()}else qv.current=!1}var Zv=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Qv={};function $v(e){Qv=e}function ey(){return Qv}var ty=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Qp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,J.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Wv(t),this.isVariantNode=Gv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&g_(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,zv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Jv.current||Xv(),this.shouldReduceMotion=qv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),qp(this.notifyUpdate),qp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Fg.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Tg({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:_p(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=$h.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&J.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Qv){let t=Qv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rv()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Zv.length;t++){let n=Zv[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Kv(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Jg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(lp(n)||dp(n))?n=parseFloat(n):!Pv(n)&&Um.test(t)&&(n=H_(e,t)),this.setBaseTarget(e,g_(n)?n.get():n)),g_(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=l_(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!g_(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new gp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Y_.render(this.render)}},ny=class extends ty{constructor(){super(...arguments),this.KeyframeResolver=G_}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;g_(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ry=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function iy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ay({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oy(e,t){if(!t)return e;let 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 sy(e){return e===void 0||e===1}function cy({scale:e,scaleX:t,scaleY:n}){return!sy(e)||!sy(t)||!sy(n)}function ly(e){return cy(e)||uy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uy(e){return dy(e.x)||dy(e.y)}function dy(e){return e&&e!==`0%`}function fy(e,t,n){return n+t*(e-n)}function py(e,t,n,r,i){return i!==void 0&&(e=fy(e,i,r)),fy(e,n,r)+t}function my(e,t=0,n=1,r,i){e.min=py(e.min,t,n,r,i),e.max=py(e.max,t,n,r,i)}function hy(e,{x:t,y:n}){my(e.x,t.translate,t.scale,t.originPoint),my(e.y,n.translate,n.scale,n.originPoint)}var gy=.999999999999,_y=1.0000000000001;function vy(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(yy(e.x,-a.scroll.offset.x),yy(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,hy(e,o)),r&&ly(a.latestValues)&&Sy(e,a.latestValues,a.layout?.layoutBox))}t.x<_y&&t.x>gy&&(t.x=1),t.y<_y&&t.y>gy&&(t.y=1)}function yy(e,t){e.min+=t,e.max+=t}function by(e,t,n,r,i=.5){my(e,t,n,X(e.min,e.max,i),r)}function xy(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Sy(e,t,n){let r=n??e;by(e.x,xy(t.x,r.x),t.scaleX,t.scale,t.originX),by(e.y,xy(t.y,r.y),t.scaleY,t.scale,t.originY)}function Cy(e,t){return iy(oy(e.getBoundingClientRect(),t))}function wy(e,t,n){let r=Cy(e,n),{scroll:i}=t;return i&&(yy(r.x,i.offset.x),yy(r.y,i.offset.y)),r}var Ty={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ey=Qh.length;function Dy(e,t,n){let r=``,i=!0;for(let a=0;a<Ey;a++){let o=Qh[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=q_(s,R_[o]);if(!c){i=!1;let t=Ty[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${q_(a,R_.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Oy(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($h.has(e)){o=!0;continue}else if(tm(e)){i[e]=n;continue}else{let t=q_(n,R_[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Dy(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ky(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ay(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var jy={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(Y.test(e))e=parseFloat(e);else return e;return`${Ay(e,t.target.x)}% ${Ay(e,t.target.y)}%`}},My={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Um.parse(e);if(i.length>5)return r;let a=Um.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=X(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ny={borderRadius:{...jy,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:jy,borderTopRightRadius:jy,borderBottomLeftRadius:jy,borderBottomRightRadius:jy,boxShadow:My};function Py(e,{layout:t,layoutId:n}){return $h.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ny[e]||e===`opacity`)}function Fy(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(g_(r[t])||i&&g_(i[t])||Py(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Iy(e){return window.getComputedStyle(e)}var Ly=class extends ny{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ky}readValueFromInstance(e,t){if($h.has(t))return this.projection?.isProjecting?Jh(t):Xh(e,t);{let n=Iy(e),r=(tm(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Cy(e,t)}build(e,t,n){Oy(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Fy(e,t,n)}},Ry={offset:`stroke-dashoffset`,array:`stroke-dasharray`},zy={offset:`strokeDashoffset`,array:`strokeDasharray`};function By(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ry:zy;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Vy=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Hy(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Oy(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Vy)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&By(d,i,a,o,!1)}var Uy=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Wy=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Gy(e,t,n,r){ky(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Uy.has(n)?n:y_(n),t.attrs[n])}function Ky(e,t,n){let r=Fy(e,t,n);for(let n in e)if(g_(e[n])||g_(t[n])){let t=Qh.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var qy=class extends ny{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Rv}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($h.has(t)){let e=B_(t);return e&&e.default||0}return t=Uy.has(t)?t:y_(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ky(e,t,n)}build(e,t,n){Hy(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Gy(e,t,n,r)}mount(e){this.isSVGTag=Wy(e.tagName),super.mount(e)}},Jy=Uv.length;function Yy(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Yy(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Jy;n++){let r=Uv[n],i=e.props[r];(Vv(i)||i===!1)&&(t[r]=i)}return t}function Xy(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Zy=[...Hv].reverse(),Qy=Hv.length;function $y(e){return t=>Promise.all(t.map(({animation:t,options:n})=>E_(e,t,n)))}function eb(e){let t=$y(e),n=rb(),r=!0,i=!1,a=t=>(n,r)=>{let i=u_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Yy(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Qy;t++){let p=Zy[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Vv(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Bv(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=tb(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=f_(t)&&f_(n)?!Xy(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=u_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Ug(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=u_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rb(),i=!0}}}function tb(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Xy(t,e):!1}function nb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rb(){return{animate:nb(!0),whileInView:nb(),whileHover:nb(),whileTap:nb(),whileDrag:nb(),whileFocus:nb(),exit:nb()}}function ib(e,t){e.min=t.min,e.max=t.max}function ab(e,t){ib(e.x,t.x),ib(e.y,t.y)}function ob(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var sb=1e-4,cb=1-sb,lb=1+sb,ub=.01,db=0-ub,fb=0+ub;function pb(e){return e.max-e.min}function mb(e,t,n){return Math.abs(e-t)<=n}function hb(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=pb(n)/pb(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cb&&e.scale<=lb||isNaN(e.scale))&&(e.scale=1),(e.translate>=db&&e.translate<=fb||isNaN(e.translate))&&(e.translate=0)}function gb(e,t,n,r){hb(e.x,t.x,n.x,r?r.originX:void 0),hb(e.y,t.y,n.y,r?r.originY:void 0)}function _b(e,t,n,r=0){e.min=(r?X(n.min,n.max,r):n.min)+t.min,e.max=e.min+pb(t)}function vb(e,t,n,r){_b(e.x,t.x,n.x,r?.x),_b(e.y,t.y,n.y,r?.y)}function yb(e,t,n,r=0){let i=r?X(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+pb(t)}function bb(e,t,n,r){yb(e.x,t.x,n.x,r?.x),yb(e.y,t.y,n.y,r?.y)}function xb(e,t,n,r,i){return e-=t,e=fy(e,1/n,r),i!==void 0&&(e=fy(e,1/i,r)),e}function Sb(e,t=0,n=1,r=.5,i,a=e,o=e){if(Sm.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=X(a.min,a.max,r);e===a&&(s-=t),e.min=xb(e.min,t,n,s,i),e.max=xb(e.max,t,n,s,i)}function Cb(e,t,[n,r,i],a,o){Sb(e,t[n],t[r],t[i],t.scale,a,o)}var wb=[`x`,`scaleX`,`originX`],Tb=[`y`,`scaleY`,`originY`];function Eb(e,t,n,r){Cb(e.x,t,wb,n?n.x:void 0,r?r.x:void 0),Cb(e.y,t,Tb,n?n.y:void 0,r?r.y:void 0)}function Db(e){return e.translate===0&&e.scale===1}function Ob(e){return Db(e.x)&&Db(e.y)}function kb(e,t){return e.min===t.min&&e.max===t.max}function Ab(e,t){return kb(e.x,t.x)&&kb(e.y,t.y)}function jb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mb(e,t){return jb(e.x,t.x)&&jb(e.y,t.y)}function Nb(e){return pb(e.x)/pb(e.y)}function Pb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Fb(e){return[e(`x`),e(`y`)]}function Ib(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Lb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Rb=Lb.length,zb=e=>typeof e==`string`?parseFloat(e):e,Bb=e=>typeof e==`number`||Y.test(e);function Vb(e,t,n,r,i,a){i?(e.opacity=X(0,n.opacity??1,Ub(r)),e.opacityExit=X(t.opacity??1,0,Wb(r))):a&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let i=0;i<Rb;i++){let a=Lb[i],o=Hb(t,a),s=Hb(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Bb(o)===Bb(s)?(e[a]=Math.max(X(zb(o),zb(s),r),0),(Sm.test(s)||Sm.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function Hb(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ub=Gb(0,.5,Mp),Wb=Gb(.5,.95,pp);function Gb(e,t,n){return r=>r<e?0:r>t?1:n(hp(e,t,r))}function Kb(e,t,n){let r=g_(e)?e:Jg(e);return r.start(i_(``,r,t,n)),r.animation}function qb(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Jb=(e,t)=>e.depth-t.depth,Yb=class{constructor(){this.children=[],this.isDirty=!1}add(e){ip(this.children,e),this.isDirty=!0}remove(e){ap(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jb),this.isDirty=!1,this.children.forEach(e)}};function Xb(e,t){let n=Qp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(qp(r),e(a-t))};return J.setup(r,!0),()=>qp(r)}function Zb(e){return g_(e)?e.get():e}var Qb=class{constructor(){this.members=[]}add(e){ip(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ap(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ap(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},$b={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ex={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tx=[``,`X`,`Y`,`Z`],nx=1e3,rx=0;function ix(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ax(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=x_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,J,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ax(r)}function ox({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rx++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Up.value&&(ex.nodes=ex.calculatedTargetDeltas=ex.calculatedProjections=0),this.nodes.forEach(lx),this.nodes.forEach(vx),this.nodes.forEach(yx),this.nodes.forEach(ux),Up.addProjectionMetrics&&Up.addProjectionMetrics(ex)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yb)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=gv(t)&&!jv(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;J.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Xb(i,250),$b.hasAnimatedSinceResize&&($b.hasAnimatedSinceResize=!1,this.nodes.forEach(_x)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ex,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Mb(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Xg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||_x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qp(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bx),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ax(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(px),this.nodes.forEach(fx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(mx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hx),this.nodes.forEach(gx),this.nodes.forEach(sx),this.nodes.forEach(cx)):this.nodes.forEach(mx),this.clearAllSnapshots();let e=Qp.now();Jp.delta=sp(0,1e3/60,e-Jp.timestamp),Jp.timestamp=e,Jp.isProcessing=!0,Yp.update.process(Jp),Yp.preRender.process(Jp),Yp.render.process(Jp),Jp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Y_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dx),this.sharedNodes.forEach(xx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pb(this.snapshot.measuredBox.x)&&!pb(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Rv(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ob(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ly(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Ax(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Rv();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Mx))){let{scroll:e}=this.root;e&&(yy(t.x,e.offset.x),yy(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Rv();if(ab(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&ab(t,e),yy(t.x,i.offset.x),yy(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Rv();ab(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(yy(r.x,-n.scroll.offset.x),yy(r.y,-n.scroll.offset.y)),ly(n.latestValues)&&Sy(r,n.latestValues,n.layout?.layoutBox)}return ly(this.latestValues)&&Sy(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Rv();ab(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ly(n.latestValues))continue;let r;n.instance&&(cy(n.latestValues)&&n.updateSnapshot(),r=Rv(),ab(r,n.measurePageBox())),Eb(t,n.latestValues,n.snapshot?.layoutBox,r)}return ly(this.latestValues)&&Eb(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Jp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Jp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Rv(),this.targetWithTransforms=Rv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ab(this.target,this.layout.layoutBox),hy(this.target,this.targetDelta)):ab(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Up.value&&ex.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||cy(this.parent.latestValues)||uy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rv(),this.relativeTargetOrigin=Rv(),bb(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),ab(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Jp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;ab(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;vy(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Rv());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ob(this.prevProjectionDelta.x,this.projectionDelta.x),ob(this.prevProjectionDelta.y,this.projectionDelta.y)),gb(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Pb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Up.value&&ex.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Iv(),this.projectionDelta=Iv(),this.projectionDeltaWithTransform=Iv()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Iv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Rv(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Tx));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=X(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=X(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Sx(o.x,e.x,n),Sx(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bb(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wx(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ab(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Rv(),ab(f,this.relativeTarget)),c&&(this.animationValues=a,Vb(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(qp(this.pendingAnimation),void 0),this.pendingAnimation=J.update(()=>{$b.hasAnimatedSinceResize=!0,$p.layout++,this.motionValue||=Jg(0),this.motionValue.jump(0,!1),this.currentAnimation=Kb(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{$p.layout--},onComplete:()=>{$p.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&jx(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Rv();let t=pb(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=pb(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ab(t,n),Sy(t,i),gb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qb),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ix(`z`,e,r,this.animationValues);for(let t=0;t<tx.length;t++)ix(`rotate${tx[t]}`,e,r,this.animationValues),ix(`skew${tx[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Zb(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Zb(t?.pointerEvents)||``),this.hasProjected&&!ly(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ib(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ny){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ny[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Zb(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(fx),this.root.sharedNodes.clear()}}}function sx(e){e.updateLayout()}function cx(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Fb(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=pb(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ib(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else jx(i,t.layoutBox,n)&&Fb(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=pb(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Iv();gb(o,n,t.layoutBox);let s=Iv();a?gb(s,e.applyTransform(r,!0),t.measuredBox):gb(s,n,t.layoutBox);let c=!Ob(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Rv();bb(s,t.layoutBox,i.layoutBox,o);let c=Rv();bb(c,n,a.layoutBox,o),Mb(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function lx(e){Up.value&&ex.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ux(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dx(e){e.clearSnapshot()}function fx(e){e.clearMeasurements()}function px(e){e.isLayoutDirty=!0,e.updateLayout()}function mx(e){e.isLayoutDirty=!1}function hx(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function gx(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function _x(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vx(e){e.resolveTargetDelta()}function yx(e){e.calcProjection()}function bx(e){e.resetSkewAndRotation()}function xx(e){e.removeLeadSnapshot()}function Sx(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cx(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function wx(e,t,n,r){Cx(e.x,t.x,n.x,r),Cx(e.y,t.y,n.y,r)}function Tx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ex={duration:.45,ease:[.4,0,.1,1]},Dx=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ox=Dx(`applewebkit/`)&&!Dx(`chrome/`)?Math.round:pp;function kx(e){e.min=Ox(e.min),e.max=Ox(e.max)}function Ax(e){kx(e.x),kx(e.y)}function jx(e,t,n){return e===`position`||e===`preserve-aspect`&&!mb(Nb(t),Nb(n),.2)}function Mx(e){return e!==e.root&&e.scroll?.wasRoot}var Nx=ox({attachResizeListener:(e,t)=>qb(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Px={current:void 0},Fx=ox({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Px.current){let e=new Nx({});e.mount(window),e.setOptions({layoutScroll:!0}),Px.current=e}return Px.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ix=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Lx(e=!0){let t=(0,H.useContext)(rp);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Rx=(0,H.createContext)({strict:!1}),zx={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Bx=!1;function Vx(){if(Bx)return;let e={};for(let t in zx)e[t]={isEnabled:e=>zx[t].some(t=>!!e[t])};$v(e),Bx=!0}function Hx(){return Vx(),ey()}function Ux(e){let t=Hx();for(let n in e)t[n]={...t[n],...e[n]};$v(t)}var Wx=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Gx(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Wx.has(e)}var Kx=e=>!Gx(e);function qx(e){typeof e==`function`&&(Kx=t=>t.startsWith(`on`)?!Gx(t):e(t))}try{qx((ce(),e(o)).default)}catch{}function Jx(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||g_(e[i])||(Kx(i)||n===!0&&Gx(i)||!t&&!Gx(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Yx=(0,H.createContext)({});function Xx(e,t){if(Wv(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Vv(t)?t:void 0,animate:Vv(n)?n:void 0}}return e.inherit===!1?{}:t}function Zx(e){let{initial:t,animate:n}=Xx(e,(0,H.useContext)(Yx));return(0,H.useMemo)(()=>({initial:t,animate:n}),[Qx(t),Qx(n)])}function Qx(e){return Array.isArray(e)?e.join(` `):e}var $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eS(e,t,n){for(let r in t)!g_(t[r])&&!Py(r,n)&&(e[r]=t[r])}function tS({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=$x();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nS(e,t){let n=e.style||{},r={};return eS(r,n,e),Object.assign(r,tS(e,t)),r}function rS(e,t){let n={},r=nS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var iS=()=>({...$x(),attrs:{}});function aS(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=iS();return Hy(n,t,Wy(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};eS(t,e.style,e),i.style={...t,...i.style}}return i}var oS=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function sS(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(oS.indexOf(e)>-1||/[A-Z]/u.test(e))}function cS(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??sS(e)?aS:rS)(t,r,i,e),c=Jx(t,typeof e==`string`,a),l=e===H.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,H.useMemo)(()=>g_(u)?u.get():u,[u]);return(0,H.createElement)(e,{...l,children:d})}function lS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:uS(n,r,i,e),renderState:t()}}function uS(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Zb(a[e]);let{initial:o,animate:s}=e,c=Wv(e),l=Gv(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Bv(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=l_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var dS=e=>(t,n)=>{let r=(0,H.useContext)(Yx),i=(0,H.useContext)(rp),a=()=>lS(e,t,r,i);return n?a():tp(a)},fS=dS({scrapeMotionValuesFromProps:Fy,createRenderState:$x}),pS=dS({scrapeMotionValuesFromProps:Ky,createRenderState:iS}),mS=Symbol.for(`motionComponentSymbol`);function hS(e,t,n){let r=(0,H.useRef)(n);(0,H.useInsertionEffect)(()=>{r.current=n});let i=(0,H.useRef)(null);return(0,H.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var gS=(0,H.createContext)({});function _S(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function vS(e,t,n,r,i,a){let{visualElement:o}=(0,H.useContext)(Yx),s=(0,H.useContext)(Rx),c=(0,H.useContext)(rp),l=(0,H.useContext)(Ix),u=l.reducedMotion,d=l.skipAnimations,f=(0,H.useRef)(null),p=(0,H.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,H.useContext)(gS);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&yS(f.current,n,i,h);let g=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[b_],v=(0,H.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return np(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,H.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function yS(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:bS(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_S(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function bS(e){if(e)return e.options.allowProjection===!1?bS(e.parent):e.projection}function xS(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ux(r);let a=n?n===`svg`:sS(e),o=a?pS:fS;function s(n,s){let c,l={...(0,H.useContext)(Ix),...n,layoutId:SS(n)},{isStatic:u}=l,d=Zx(n),f=o(n,u);if(!u&&typeof window<`u`){CS(l,r);let t=wS(l);c=t.MeasureLayout,d.visualElement=vS(e,f,l,i,t.ProjectionNode,a)}return(0,G.jsxs)(Yx.Provider,{value:d,children:[c&&d.visualElement?(0,G.jsx)(c,{visualElement:d.visualElement,...l}):null,cS(e,n,hS(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,H.forwardRef)(s);return c[mS]=e,c}function SS({layoutId:e}){let t=(0,H.useContext)(ep).id;return t&&e!==void 0?t+`-`+e:e}function CS(e,t){(0,H.useContext)(Rx).strict}function wS(e){let{drag:t,layout:n}=Hx();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function TS(e,t){if(typeof Proxy>`u`)return xS;let n=new Map,r=(n,r)=>xS(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,xS(a,void 0,e,t)),n.get(a))})}var ES=(e,t)=>t.isSVG??sS(e)?new qy(t):new Ly(t,{allowProjection:e!==H.Fragment}),DS=class extends ry{constructor(e){super(e),e.animationState||=eb(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Bv(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},OS=0,kS={animation:{Feature:DS},exit:{Feature:class extends ry{constructor(){super(...arguments),this.id=OS++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=u_(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function AS(e){return{point:{x:e.pageX,y:e.pageY}}}var jS=e=>t=>iv(t)&&e(t,AS(t));function MS(e,t,n,r){return qb(e,t,jS(n),r)}var NS=({current:e})=>e?e.ownerDocument.defaultView:null,PS=(e,t)=>Math.abs(e-t);function FS(e,t){let n=PS(e.x,t.x),r=PS(e.y,t.y);return Math.sqrt(n**2+r**2)}var IS=new Set([`auto`,`scroll`]),LS=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=RS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=BS(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=FS(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Jp;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=RS(t,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=BS(e.type===`pointercancel`?this.lastMoveEventInfo:RS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!iv(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=RS(AS(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Jp;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,BS(s,this.history)),this.removeListeners=mp(MS(this.contextWindow,`pointermove`,this.handlePointerMove),MS(this.contextWindow,`pointerup`,this.handlePointerUp),MS(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(IS.has(e.overflowX)||IS.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),J.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),qp(this.updatePoint)}};function RS(e,t){return t?{point:t(e.point)}:e}function zS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function BS({point:e},t){return{point:e,delta:zS(e,HS(t)),offset:zS(e,VS(t)),velocity:US(t,.1)}}function VS(e){return e[0]}function HS(e){return e[e.length-1]}function US(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=HS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_p(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>_p(t)*2&&(r=e[1]);let a=vp(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function WS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}function GS(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function KS(e,{top:t,left:n,bottom:r,right:i}){return{x:GS(e.x,n,i),y:GS(e.y,t,r)}}function qS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function JS(e,t){return{x:qS(e.x,t.x),y:qS(e.y,t.y)}}function YS(e,t){let n=.5,r=pb(e),i=pb(t);return i>r?n=hp(t.min,t.max-r,e.min):r>i&&(n=hp(e.min,e.max-i,t.min)),sp(0,1,n)}function XS(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ZS=.35;function QS(e=ZS){return e===!1?e=0:e===!0&&(e=ZS),{x:$S(e,`left`,`right`),y:$S(e,`top`,`bottom`)}}function $S(e,t,n){return{min:eC(e,t),max:eC(e,n)}}function eC(e,t){return typeof e==`number`?e:e[t]||0}var tC=new WeakMap,nC=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rv(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(AS(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$_(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sm.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=pb(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&J.update(()=>i(e,t),!1,!0),v_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oC(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&J.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new LS(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:NS(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&J.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aC(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=WS(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&_S(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=KS(n.layoutBox,e):this.constraints=!1,this.elastic=QS(t),r!==this.constraints&&!_S(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Fb(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=XS(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!_S(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=wy(n,r.root,this.visualElement.getTransformPagePoint()),a=JS(r.layout.layoutBox,i);if(t){let e=t(ay(a));this.hasMutatedConstraints=!!e,e&&(a=iy(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Fb(o=>{if(!aC(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return v_(this.visualElement,e),n.start(i_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Fb(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Fb(t=>{let{drag:n}=this.getProps();if(!aC(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-X(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_S(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Fb(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=YS({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Fb(t=>{if(!aC(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(X(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;tC.set(this.visualElement,this);let e=this.visualElement.current,t=MS(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&cv(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();_S(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=iC(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),J.read(r);let o=qb(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Fb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ZS,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function rC(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iC(e,t,n){let r=Av(e,rC(n)),i=Av(t,rC(n));return()=>{r(),i()}}function aC(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oC(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sC=class extends ry{constructor(e){super(e),this.removeGroupControls=pp,this.removeListeners=pp,this.controls=new nC(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pp}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},cC=e=>(t,n)=>{e&&J.update(()=>e(t,n),!1,!0)},lC=class extends ry{constructor(){super(...arguments),this.removePointerDownListener=pp}onPointerDown(e){this.session=new LS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:NS(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cC(e),onStart:cC(t),onMove:cC(n),onEnd:(e,t)=>{delete this.session,r&&J.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=MS(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},uC=!1,dC=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),uC&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$b.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),uC=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||J.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Y_.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;uC=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fC(e){let[t,n]=Lx(),r=(0,H.useContext)(ep);return(0,G.jsx)(dC,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(gS),isPresent:t,safeToRemove:n})}var pC={pan:{Feature:lC},drag:{Feature:sC,ProjectionNode:Fx,MeasureLayout:fC}};function mC(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&J.postRender(()=>i(t,AS(t)))}var hC=class extends ry{mount(){let{current:e}=this.node;e&&(this.unmount=nv(e,(e,t)=>(mC(this.node,t,`Start`),e=>mC(this.node,e,`End`))))}unmount(){}},gC=class extends ry{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=mp(qb(this.node.current,`focus`,()=>this.onFocus()),qb(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function _C(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&J.postRender(()=>i(t,AS(t)))}var vC=class extends ry{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=hv(e,(e,t)=>(_C(this.node,t,`Start`),(e,{success:t})=>_C(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},yC=new WeakMap,bC=new WeakMap,xC=e=>{let t=yC.get(e.target);t&&t(e)},SC=e=>{e.forEach(xC)};function CC({root:e,...t}){let n=e||document;bC.has(n)||bC.set(n,{});let r=bC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(SC,{root:e,...t})),r[i]}function wC(e,t,n){let r=CC(t);return yC.set(e,n),r.observe(e),()=>{yC.delete(e),r.unobserve(e)}}var TC={some:0,all:1},EC=class extends ry{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:TC[r]};this.stopObserver=wC(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(DC(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function DC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var OC={inView:{Feature:EC},tap:{Feature:vC},focus:{Feature:gC},hover:{Feature:hC}},kC={layout:{ProjectionNode:Fx,MeasureLayout:fC}},AC=TS({...kS,...OC,...pC,...kC},ES);function jC(e){let t=tp(()=>Jg(e)),{isStatic:n}=(0,H.useContext)(Ix);if(n){let[,n]=(0,H.useState)(e);(0,H.useEffect)(()=>t.on(`change`,n),[])}return t}function MC(e,t){let n=jC(t()),r=()=>n.set(t());return r(),np(()=>{let t=()=>J.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),qp(r)}}),n}function NC(e){Kg.current=[],e();let t=MC(Kg.current,e);return Kg.current=void 0,t}function PC(e,t,n,r){if(typeof e==`function`)return NC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return IC(e,t,n,r);let i=typeof t==`function`?t:Mv(t,n,r),a=Array.isArray(e)?FC(e,i):FC([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function FC(e,t){let n=tp(()=>[]);return MC(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function IC(e,t,n,r){let i=tp(()=>Object.keys(n)),a=tp(()=>({}));for(let o of i)a[o]=PC(e,t,n[o],r);return a}var LC=(0,H.createContext)(null);function RC(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=X(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?op(e,i,i+a):e}function zC({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=tp(()=>AC[t]),c=[],l=(0,H.useRef)(!1),u=(0,H.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(VC)},updateOrder:(e,t,n)=>{if(l.current)return;let a=RC(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,H.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,G.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,G.jsx)(LC.Provider,{value:d,children:e})})}var BC=(0,H.forwardRef)(zC);function VC(e,t){return e.layout.min-t.layout.min}var HC=50,UC=25,WC=new Set([`auto`,`scroll`]),GC=new WeakMap,KC=new WeakMap,qC=null;function JC(){if(qC){let e=XC(qC,`y`);e&&(KC.delete(e),GC.delete(e));let t=XC(qC,`x`);t&&t!==e&&(KC.delete(t),GC.delete(t)),qC=null}}function YC(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return WC.has(r)||i}function XC(e,t){let n=e?.parentElement;for(;n;){if(YC(n,t))return n;n=n.parentElement}return null}function ZC(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<HC){let e=1-o/HC;return{amount:-UC*e*e,edge:`start`}}else if(s<HC){let e=1-s/HC;return{amount:UC*e*e,edge:`end`}}return{amount:0,edge:null}}function QC(e,t,n,r){if(!e)return;qC=e;let i=XC(e,n);if(!i)return;let{amount:a,edge:o}=ZC(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){KC.delete(i),GC.delete(i);return}let s=KC.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;KC.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);GC.set(i,e)}if(a>0){let e=GC.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function $C(e,t=0){return g_(e)?e:jC(t)}function ew({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=tp(()=>AC[r]),u=(0,H.useContext)(LC),d={x:$C(t.x),y:$C(t.y)},f=PC([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,G.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t;h(n,d[p].get(),r[p]),QC(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{JC(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var tw=(0,H.forwardRef)(ew),nw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=q(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,G.jsx)(tw,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});nw.displayName=`Tab`;var rw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=q(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,G.jsx)(Vl,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});rw.displayName=`Tab.Button`;var iw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(7),r;n[0]===e.className?r=n[1]:(r=q(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(Qc,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,G.jsx)(Vl,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});iw.displayName=`Tab.Close`;var aw=Object.assign(nw,{Button:rw,Close:iw}),ow=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=q(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,G.jsx)(BC,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});ow.displayName=`Tabs`;var sw=Object.assign(e=>{let t=(0,U.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,l=a===void 0?5:a,u;t[0]===n?u=t[1]:(u=(0,G.jsx)(Le,{asChild:!0,children:n}),t[0]=n,t[1]=u);let d;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==l?(d=(0,G.jsx)(We,{children:(0,G.jsx)(ze,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:l,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;return t[7]!==u||t[8]!==d?(f=(0,G.jsxs)(Ue,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f},{Provider:Fe}),cw=(0,H.forwardRef)((e,t)=>{let n=(0,U.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,H.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=q(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,G.jsx)(Vl,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,G.jsx)(sw,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});cw.displayName=`ToolbarButton`;var lw=()=>{let e=(0,U.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:lw},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=nc(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:lw},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=lc(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,G.jsx)(Sl,{}):(0,G.jsx)(ml,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,G.jsxs)(Zf,{children:[(0,G.jsx)(sw,{label:m,children:(0,G.jsx)(Zf.Button,{..._})}),(0,G.jsx)(Zf.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,G.jsx)(Zf.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,G.jsx)(sw,{label:m,children:(0,G.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},uw=rn((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),dw=e=>{let t=(0,U.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=lc(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=nc(s),u=c[l],d=dn(),f;t[2]!==i||t[3]!==d?(f=new Jt(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{uw.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,H.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=uw.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,H.useEffect)(g,_),r},fw=sn(uw),pw=()=>fw(hw),mw=()=>fw(gw);function hw(e){return e.historyStorage.queries}function gw(e){return e.actions}function _w(e,t){for(let n of e)t(n,!0)}var vw=()=>{let e=(0,U.c)(13),t=pw(),{deleteFromHistory:n}=mw(),r;r=t.slice().map(xw).reverse();let i=r.filter(Sw);i.length&&(r=r.filter(Cw));let[a,o]=(0,H.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,H.useEffect)(s,c);let l=()=>{try{_w(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,G.jsx)(Hl,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,G.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,G.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(ww)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,G.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,G.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(Tw)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,G.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},yw=e=>{let t=(0,U.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=mw(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:yw},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=nc(o),u=(0,H.useRef)(null),d=(0,H.useRef)(null),[f,p]=(0,H.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,H.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||bw(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=q(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,G.jsx)(Vl,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,G.jsx)(Vl,{type:`button`,ref:d,onClick:x,children:(0,G.jsx)(Qc,{})})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(sw,{label:`Set active`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,G.jsx)(sw,{label:`Edit label`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,G.jsx)(pl,{"aria-hidden":`true`})})}),(0,G.jsx)(sw,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,G.jsx)(bl,{"aria-hidden":`true`}):(0,G.jsx)(xl,{"aria-hidden":`true`})})}),(0,G.jsx)(sw,{label:`Delete from history`,children:(0,G.jsx)(Vl,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,G.jsx)(Cl,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,G.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function bw(e){return e?.split(`
|
|
54
54
|
`).map(e=>e.replace(/#(.*)/,``)).join(` `).replaceAll(`{`,` { `).replaceAll(`}`,` } `).replaceAll(/[\s]{2,}/g,` `)}function xw(e,t){return{...e,index:t}}function Sw(e){return e.favorite}function Cw(e){return!e.favorite}function ww(e){return(0,G.jsx)(yw,{item:e},e.index)}function Tw(e){return(0,G.jsx)(yw,{item:e},e.index)}var Ew={title:`History`,icon:cl,content:vw},Dw=[{name:`Docs`}],Ow=rn((e,t)=>({explorerNavStack:Dw,actions:{push(t){e(e=>{let n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length===1?t:Dw}})},resolveSchemaReferenceToNavItem(e){if(!e)return;let{push:n}=t().actions;switch(e.kind){case`Type`:n({name:e.type.name,def:e.type});break;case`Field`:n({name:e.field.name,def:e.field});break;case`Argument`:e.field&&n({name:e.field.name,def:e.field});break;case`EnumValue`:e.type&&n({name:e.type.name,def:e.type});break}},rebuildNavStackWithSchema(t){e(e=>{let n=e.explorerNavStack;if(n.length===1)return e;let r=[...Dw],i=null;for(let e of n)if(e!==Dw[0])if(e.def)if(xe(e.def)){let n=t.getType(e.def.name);if(n)r.push({name:e.name,def:n}),i=n;else break}else if(i===null)break;else if(ve(i)||Ce(i)){let t=i.getFields()[e.name];if(t)r.push({name:e.name,def:t});else break}else if(ge(i)||De(i)||be(i)||ye(i))break;else{let t=i;if(t.args.some(t=>t.name===e.name))r.push({name:e.name,def:t});else break}else i=null,r.push(e);return{explorerNavStack:r}})}}})),kw=e=>{let t=(0,U.c)(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:a}=En(),o,s;t[0]===a?(o=t[1],s=t[2]):(o=()=>{let{resolveSchemaReferenceToNavItem:e}=Ow.getState().actions;e(a)},s=[a],t[0]=a,t[1]=o,t[2]=s),(0,H.useEffect)(o,s);let c,l;return t[3]!==r||t[4]!==i?(c=()=>{let{reset:e,rebuildNavStackWithSchema:t}=Ow.getState().actions;r==null||i.length>0?e():t(r)},l=[r,i],t[3]=r,t[4]=i,t[5]=c,t[6]=l):(c=t[5],l=t[6]),(0,H.useEffect)(c,l),n},Aw=sn(Ow),jw=()=>Aw(Nw),Mw=()=>Aw(Pw);function Nw(e){return e.explorerNavStack}function Pw(e){return e.actions}var Fw=e=>e?he(e):``,Iw=e=>{let t=(0,U.c)(12),{field:n}=e;if(!(`defaultValue`in n)||n.defaultValue===void 0)return null;let r=n.defaultValue,i=n.type,a,o,s,c;if(t[0]!==n.defaultValue||t[1]!==n.type){c=Symbol.for(`react.early_return_sentinel`);bb0:{let e=He(r,i);if(!e){c=null;break bb0}s=` = `,a=`graphiql-doc-explorer-default-value`,o=Fw(e)}t[0]=n.defaultValue,t[1]=n.type,t[2]=a,t[3]=o,t[4]=s,t[5]=c}else a=t[2],o=t[3],s=t[4],c=t[5];if(c!==Symbol.for(`react.early_return_sentinel`))return c;let l;t[6]!==a||t[7]!==o?(l=(0,G.jsx)(`span`,{className:a,children:o}),t[6]=a,t[7]=o,t[8]=l):l=t[8];let u;return t[9]!==s||t[10]!==l?(u=(0,G.jsxs)(G.Fragment,{children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],u};function Lw(e,t){return me(e)?(0,G.jsxs)(G.Fragment,{children:[Lw(e.ofType,t),`!`]}):Ee(e)?(0,G.jsxs)(G.Fragment,{children:[`[`,Lw(e.ofType,t),`]`]}):t(e)}var Rw=e=>{let t=(0,U.c)(5),{type:n}=e,{push:r}=Mw();if(!n)return null;let i;t[0]===r?i=t[1]:(i=e=>(0,G.jsx)(`a`,{className:`graphiql-doc-explorer-type-name`,onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:`#`,children:e.name}),t[0]=r,t[1]=i);let a;return t[2]!==i||t[3]!==n?(a=Lw(n,i),t[2]=i,t[3]=n,t[4]=a):a=t[4],a},zw=e=>{let t=(0,U.c)(19),{arg:n,showDefaultValue:r,inline:i}=e,a;t[0]===n.name?a=t[1]:(a=(0,G.jsx)(`span`,{className:`graphiql-doc-explorer-argument-name`,children:n.name}),t[0]=n.name,t[1]=a);let o;t[2]===n.type?o=t[3]:(o=(0,G.jsx)(Rw,{type:n.type}),t[2]=n.type,t[3]=o);let s;t[4]!==n||t[5]!==r?(s=r!==!1&&(0,G.jsx)(Iw,{field:n}),t[4]=n,t[5]=r,t[6]=s):s=t[6];let c;t[7]!==a||t[8]!==o||t[9]!==s?(c=(0,G.jsxs)(`span`,{children:[a,`: `,o,s]}),t[7]=a,t[8]=o,t[9]=s,t[10]=c):c=t[10];let l=c;if(i)return l;let u;t[11]===n.description?u=t[12]:(u=n.description?(0,G.jsx)(Qf,{type:`description`,children:n.description}):null,t[11]=n.description,t[12]=u);let d;t[13]===n.deprecationReason?d=t[14]:(d=n.deprecationReason?(0,G.jsxs)(`div`,{className:`graphiql-doc-explorer-argument-deprecation`,children:[(0,G.jsx)(`div`,{className:`graphiql-doc-explorer-argument-deprecation-label`,children:`Deprecated`}),(0,G.jsx)(Qf,{type:`deprecation`,children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d);let f;return t[15]!==l||t[16]!==u||t[17]!==d?(f=(0,G.jsxs)(`div`,{className:`graphiql-doc-explorer-argument`,children:[l,u,d]}),t[15]=l,t[16]=u,t[17]=d,t[18]=f):f=t[18],f},Bw=e=>{let t=(0,U.c)(3),n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,G.jsxs)(`div`,{className:`graphiql-doc-explorer-deprecation`,children:[(0,G.jsx)(`div`,{className:`graphiql-doc-explorer-deprecation-label`,children:`Deprecated`}),(0,G.jsx)(Qf,{type:`deprecation`,onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},Vw=e=>{let t=(0,U.c)(2),{directive:n}=e,r;return t[0]===n.name.value?r=t[1]:(r=(0,G.jsxs)(`span`,{className:`graphiql-doc-explorer-directive`,children:[`@`,n.name.value]}),t[0]=n.name.value,t[1]=r),r},Hw=e=>{let t=(0,U.c)(10),{title:n,children:r}=e,i=Uw[n],a;t[0]===i?a=t[1]:(a=(0,G.jsx)(i,{}),t[0]=i,t[1]=a);let o;t[2]!==a||t[3]!==n?(o=(0,G.jsxs)(`div`,{className:`graphiql-doc-explorer-section-title`,children:[a,n]}),t[2]=a,t[3]=n,t[4]=o):o=t[4];let s;t[5]===r?s=t[6]:(s=(0,G.jsx)(`div`,{className:`graphiql-doc-explorer-section-content`,children:r}),t[5]=r,t[6]=s);let c;return t[7]!==o||t[8]!==s?(c=(0,G.jsxs)(`div`,{children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c},Uw={Arguments:Jc,"Deprecated Arguments":el,"Deprecated Enum Values":tl,"Deprecated Fields":nl,Directives:rl,"Enum Values":ol,Fields:sl,Implements:ll,Implementations:wl,"Possible Types":wl,"Root Types":vl,Type:wl,"All Schema Types":wl},Ww=e=>{let t=(0,U.c)(15),{field:n}=e,r;t[0]===n.description?r=t[1]:(r=n.description?(0,G.jsx)(Qf,{type:`description`,children:n.description}):null,t[0]=n.description,t[1]=r);let i;t[2]===n.deprecationReason?i=t[3]:(i=(0,G.jsx)(Bw,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i);let a;t[4]===n.type?a=t[5]:(a=(0,G.jsx)(Hw,{title:`Type`,children:(0,G.jsx)(Rw,{type:n.type})}),t[4]=n.type,t[5]=a);let o,s;t[6]===n?(o=t[7],s=t[8]):(o=(0,G.jsx)(Gw,{field:n}),s=(0,G.jsx)(Kw,{field:n}),t[6]=n,t[7]=o,t[8]=s);let c;return t[9]!==r||t[10]!==i||t[11]!==a||t[12]!==o||t[13]!==s?(c=(0,G.jsxs)(G.Fragment,{children:[r,i,a,o,s]}),t[9]=r,t[10]=i,t[11]=a,t[12]=o,t[13]=s,t[14]=c):c=t[14],c},Gw=e=>{let t=(0,U.c)(12),{field:n}=e,[r,i]=(0,H.useState)(!1),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{i(!0)},t[0]=a):a=t[0];let o=a;if(!(`args`in n))return null;let s,c,l;if(t[1]!==n.args){s=[],c=[];for(let e of n.args)e.deprecationReason?c.push(e):s.push(e);l=s.length>0?(0,G.jsx)(Hw,{title:`Arguments`,children:s.map(qw)}):null,t[1]=n.args,t[2]=s,t[3]=c,t[4]=l}else s=t[2],c=t[3],l=t[4];let u;t[5]!==s.length||t[6]!==c||t[7]!==r?(u=c.length>0?r||s.length===0?(0,G.jsx)(Hw,{title:`Deprecated Arguments`,children:c.map(Jw)}):(0,G.jsx)(Hl,{type:`button`,onClick:o,children:`Show Deprecated Arguments`}):null,t[5]=s.length,t[6]=c,t[7]=r,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,G.jsxs)(G.Fragment,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d},Kw=e=>{let t=(0,U.c)(4),{field:n}=e,r=n.astNode?.directives;if(!r?.length)return null;let i;t[0]===r?i=t[1]:(i=r.map(Yw),t[0]=r,t[1]=i);let a;return t[2]===i?a=t[3]:(a=(0,G.jsx)(Hw,{title:`Directives`,children:i}),t[2]=i,t[3]=a),a};function qw(e){return(0,G.jsx)(zw,{arg:e},e.name)}function Jw(e){return(0,G.jsx)(zw,{arg:e},e.name)}function Yw(e){return(0,G.jsx)(`div`,{children:(0,G.jsx)(Vw,{directive:e})},e.name.value)}var Xw=e=>{let t=(0,U.c)(39),{schema:n}=e,r;t[0]===n?r=t[1]:(r=n.getQueryType(),t[0]=n,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=n.getMutationType?.call(n),t[2]=n,t[3]=a);let o=a,s;t[4]===n?s=t[5]:(s=n.getSubscriptionType?.call(n),t[4]=n,t[5]=s);let c=s,l,u,d,f,p;if(t[6]!==o||t[7]!==i||t[8]!==n||t[9]!==c){let e=n.getTypeMap(),r=i?.name,a=o?.name,s=c?.name,m;t[15]!==s||t[16]!==r||t[17]!==a?(m=[r,a,s],t[15]=s,t[16]=r,t[17]=a,t[18]=m):m=t[18];let h=m,g=n.description||`A GraphQL schema provides a root type for each kind of operation.`;t[19]===g?f=t[20]:(f=(0,G.jsx)(Qf,{type:`description`,children:g}),t[19]=g,t[20]=f);let _;t[21]===i?_=t[22]:(_=i?(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`query`}),`: `,(0,G.jsx)(Rw,{type:i})]}):null,t[21]=i,t[22]=_);let v;t[23]===o?v=t[24]:(v=o&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`mutation`}),`: `,(0,G.jsx)(Rw,{type:o})]}),t[23]=o,t[24]=v);let y;t[25]===c?y=t[26]:(y=c&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`subscription`}),`: `,(0,G.jsx)(Rw,{type:c})]}),t[25]=c,t[26]=y),t[27]!==_||t[28]!==v||t[29]!==y?(p=(0,G.jsxs)(Hw,{title:`Root Types`,children:[_,v,y]}),t[27]=_,t[28]=v,t[29]=y,t[30]=p):p=t[30],l=Hw,u=`All Schema Types`,d=e&&(0,G.jsx)(`div`,{children:Object.values(e).map(e=>h.includes(e.name)||e.name.startsWith(`__`)?null:(0,G.jsx)(`div`,{children:(0,G.jsx)(Rw,{type:e})},e.name))}),t[6]=o,t[7]=i,t[8]=n,t[9]=c,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p}else l=t[10],u=t[11],d=t[12],f=t[13],p=t[14];let m;t[31]!==l||t[32]!==u||t[33]!==d?(m=(0,G.jsx)(l,{title:u,children:d}),t[31]=l,t[32]=u,t[33]=d,t[34]=m):m=t[34];let h;return t[35]!==f||t[36]!==p||t[37]!==m?(h=(0,G.jsxs)(G.Fragment,{children:[f,p,m]}),t[35]=f,t[36]=p,t[37]=m,t[38]=h):h=t[38],h},Zw=typeof document<`u`?H.useLayoutEffect:()=>{};function Qw(e){let t=(0,H.useRef)(null);return Zw(()=>{t.current=e},[e]),(0,H.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}var $w=e=>e?.ownerDocument??document,eT=e=>e&&`window`in e&&e.window===e?e:$w(e).defaultView||window;function tT(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function nT(e){return tT(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var rT=!1;function iT(){return rT}function aT(e,t){if(!iT())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:nT(n)?n.host:n.parentNode}return!1}var oT=(e=document)=>{if(!iT())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function sT(e){return iT()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function cT(e){return typeof window>`u`||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function lT(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function uT(e){let t=null;return()=>(t??=e(),t)}var dT=uT(function(){return lT(/^Mac/i)}),fT=uT(function(){return cT(/Android/i)});function pT(){let e=(0,H.useRef)(new Map),t=(0,H.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,H.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,H.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,H.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function mT(e){return e.mozInputSource===0&&e.isTrusted?!0:fT()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function hT(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function gT(e,t){Object.defineProperty(e,`target`,{value:t}),Object.defineProperty(e,`currentTarget`,{value:t})}function _T(e){let t=(0,H.useRef)({isFocused:!1,observer:null});Zw(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=Qw(t=>{e?.(t)});return(0,H.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{t.current.isFocused=!1,r.disabled&&n(hT(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}var vT=!1,yT=null,bT=new Set,xT=new Map,ST=!1,CT=!1,wT={Tab:!0,Escape:!0};function TT(e,t){for(let n of bT)n(e,t)}function ET(e){return!(e.metaKey||!dT()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function DT(e){ST=!0,ET(e)&&(yT=`keyboard`,TT(`keyboard`,e))}function OT(e){yT=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&(ST=!0,TT(`pointer`,e))}function kT(e){mT(e)&&(ST=!0,yT=`virtual`)}function AT(e){e.target===window||e.target===document||vT||!e.isTrusted||(!ST&&!CT&&(yT=`virtual`,TT(`virtual`,e)),ST=!1,CT=!1)}function jT(){vT||(ST=!1,CT=!0)}function MT(e){if(typeof window>`u`||xT.get(eT(e)))return;let t=eT(e),n=$w(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ST=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,DT,!0),n.addEventListener(`keyup`,DT,!0),n.addEventListener(`click`,kT,!0),t.addEventListener(`focus`,AT,!0),t.addEventListener(`blur`,jT,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,OT,!0),n.addEventListener(`pointermove`,OT,!0),n.addEventListener(`pointerup`,OT,!0)),t.addEventListener(`beforeunload`,()=>{NT(e)},{once:!0}),xT.set(t,{focus:r})}var NT=(e,t)=>{let n=eT(e),r=$w(e);t&&r.removeEventListener(`DOMContentLoaded`,t),xT.has(n)&&(n.HTMLElement.prototype.focus=xT.get(n).focus,r.removeEventListener(`keydown`,DT,!0),r.removeEventListener(`keyup`,DT,!0),r.removeEventListener(`click`,kT,!0),n.removeEventListener(`focus`,AT,!0),n.removeEventListener(`blur`,jT,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,OT,!0),r.removeEventListener(`pointermove`,OT,!0),r.removeEventListener(`pointerup`,OT,!0)),xT.delete(n))};function PT(e){let t=$w(e),n;return t.readyState===`loading`?(n=()=>{MT(e)},t.addEventListener(`DOMContentLoaded`,n)):MT(e),()=>NT(e,n)}typeof document<`u`&&PT();function FT(){return yT!==`pointer`}var IT=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function LT(e,t,n){let r=$w(n?.target),i=typeof window<`u`?eT(n?.target).HTMLInputElement:HTMLInputElement,a=typeof window<`u`?eT(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<`u`?eT(n?.target).HTMLElement:HTMLElement,s=typeof window<`u`?eT(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!IT.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&t===`keyboard`&&n instanceof s&&!wT[n.key])}function RT(e,t,n){MT(),(0,H.useEffect)(()=>{let t=(t,r)=>{LT(!!n?.isTextInput,t,r)&&e(FT())};return bT.add(t),()=>{bT.delete(t)}},t)}function zT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,H.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=_T(a),s=(0,H.useCallback)(e=>{let t=$w(e.target),r=t?oT(t):oT();e.target===e.currentTarget&&r===sT(e.nativeEvent)&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function BT(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,H.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=pT(),c=(0,H.useCallback)(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=_T(c),u=(0,H.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=$w(e.target),n=oT(t);if(!a.current.isFocusWithin&&n===sT(e.nativeEvent)){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let n=e.currentTarget;o(t,`focus`,e=>{if(a.current.isFocusWithin&&!aT(n,e.target)){let r=new t.defaultView.FocusEvent(`blur`,{relatedTarget:e.target});gT(r,n),c(hT(r))}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}var VT=!1,HT=0;function UT(){VT=!0,setTimeout(()=>{VT=!1},50)}function WT(e){e.pointerType===`touch`&&UT()}function GT(){if(!(typeof document>`u`))return typeof PointerEvent<`u`&&document.addEventListener(`pointerup`,WT),HT++,()=>{HT--,!(HT>0)&&typeof PointerEvent<`u`&&document.removeEventListener(`pointerup`,WT)}}function KT(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,H.useState)(!1),s=(0,H.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,H.useEffect)(GT,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=pT(),{hoverProps:u,triggerHoverEnd:d}=(0,H.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c($w(e.target),`pointerover`,e=>{s.isHovered&&s.target&&!aT(s.target,e.target)&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,!(t===`touch`||!s.isHovered||!i)&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{VT&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,H.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}function qT(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,H.useRef)({isFocused:!1,isFocusVisible:t||FT()}),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,H.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,H.useCallback)(e=>{i.current.isFocused=e,o(e),l()},[l]);RT(e=>{i.current.isFocusVisible=e,l()},[],{isTextInput:n});let{focusProps:d}=zT({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=BT({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var JT=Object.defineProperty,YT=(e,t,n)=>t in e?JT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XT=(e,t,n)=>(YT(e,typeof t==`symbol`?t:t+``,n),n),ZT=new class{constructor(){XT(this,`current`,this.detect()),XT(this,`handoffState`,`pending`),XT(this,`currentId`,0)}set(e){this.current!==e&&(this.handoffState=`pending`,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return 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`}};function QT(e){return ZT.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty(`current`)&&e.current instanceof Node?e.current.ownerDocument:document}function $T(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function eE(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return $T(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=eE();return e(t),this.add(()=>t.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function tE(){let[e]=(0,H.useState)(eE);return(0,H.useEffect)(()=>()=>e.dispose(),[e]),e}var Q=(e,t)=>{ZT.isServer?(0,H.useEffect)(e,t):(0,H.useLayoutEffect)(e,t)};function nE(e){let t=(0,H.useRef)(e);return Q(()=>{t.current=e},[e]),t}var $=function(e){let t=nE(e);return H.useCallback((...e)=>t.current(...e),[t])};function rE(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function iE(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function aE({disabled:e=!1}={}){let t=(0,H.useRef)(null),[n,r]=(0,H.useState)(!1),i=tE(),a=$(()=>{t.current=null,r(!1),i.dispose()}),o=$(e=>{if(i.dispose(),t.current===null){t.current=e.currentTarget,r(!0);{let n=QT(e.currentTarget);i.addEventListener(n,`pointerup`,a,!1),i.addEventListener(n,`pointermove`,e=>{t.current&&r(iE(rE(e),t.current.getBoundingClientRect()))},!1),i.addEventListener(n,`pointercancel`,a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}var oE=(0,H.createContext)(void 0);function sE(){return(0,H.useContext)(oE)}function cE(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}function lE(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lE),r}var uE=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(uE||{}),dE=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(dE||{});function fE(){let e=hE();return(0,H.useCallback)(t=>pE({mergeRefs:e,...t}),[e])}function pE({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=gE;let c=_E(t,e);if(a)return mE(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return mE(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return lE(e?0:1,{0(){return null},1(){return mE({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return mE(c,n,r,o,s)}function mE(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=xE(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t)),c[`aria-labelledby`]&&c[`aria-labelledby`]===c.id&&(c[`aria-labelledby`]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d[`data-headlessui-state`]=n.join(` `);for(let e of n)d[`data-${e}`]=``}}if(a===H.Fragment&&(Object.keys(bE(c)).length>0||Object.keys(bE(d)).length>0))if(!(0,H.isValidElement)(u)||Array.isArray(u)&&u.length>1){if(Object.keys(bE(c)).length>0)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(bE(c)).concat(Object.keys(bE(d))).map(e=>` - ${e}`).join(`
|
|
55
55
|
`),``,`You can apply a few solutions:`,['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',`Render a single element as the child so that we can forward the props onto that element.`].map(e=>` - ${e}`).join(`
|
|
56
56
|
`)].join(`
|