@malloy-publisher/server 0.0.76 → 0.0.78
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/app/assets/RenderedResult-BAZuT25g-etaZB-YF.js +2 -0
- package/dist/app/assets/index-BKC-ikb3.css +1 -0
- package/dist/app/assets/index-BsMlh93-.js +210 -0
- package/dist/app/assets/index-BsXDwHRS.js +671 -0
- package/dist/app/assets/index-DQrKrnRW.js +432 -0
- package/dist/app/assets/index.umd-DaHgfkHn.js +2078 -0
- package/dist/app/index.html +2 -2
- package/dist/server.js +4319 -185
- package/dxt/malloy_bridge.py +354 -0
- package/dxt/manifest.json +22 -0
- package/malloy_mcp.dxt +0 -0
- package/package.json +2 -1
- package/src/mcp/server.ts +3 -0
- package/src/mcp/tools/discovery_tools.ts +258 -0
- package/src/mcp/tools/execute_query_tool.ts +14 -10
- package/src/service/model.ts +11 -0
- package/src/service/package.spec.ts +3 -0
- package/src/service/package.ts +12 -0
- package/dist/app/assets/RenderedResult-DXlUZo0k-lc5JU6CQ.js +0 -1
- package/dist/app/assets/index--hbjs-yl.js +0 -3414
- package/dist/app/assets/index-C127D7lT.css +0 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import{j as c,r as u,R as My,a as Ay,b as Le,c as fn}from"./index-DQrKrnRW.js";import{r as Iy,a as Dy,d as Z}from"./index-BsXDwHRS.js";import{a as Py}from"./index.umd-DaHgfkHn.js";var Ny=Iy(),on=Dy(),Oy=Object.defineProperty,$y=Object.getPrototypeOf,zy=Reflect.get,Wm=e=>{throw TypeError(e)},Fy=(e,t,n)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>Fy(e,typeof t!="symbol"?t+"":t,n),Hc=(e,t,n)=>t.has(e)||Wm("Cannot "+n),nt=(e,t,n)=>(Hc(e,t,"read from private field"),n?n.call(e):t.get(e)),kr=(e,t,n)=>t.has(e)?Wm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qt=(e,t,n,r)=>(Hc(e,t,"write to private field"),t.set(e,n),n),Bd=(e,t,n)=>(Hc(e,t,"access private method"),n),By=(e,t,n)=>zy($y(e),n,t),Sr,sn,nr,Pn,Rr,rr,Er,el,fa,Lo;function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function qd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gi(...e){return t=>{let n=!1;const r=e.map(o=>{const s=qd(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():qd(e[o],null)}}}}function oe(...e){return u.useCallback(gi(...e),e)}function qy(e,t){const n=u.createContext(t),r=s=>{const{children:l,...i}=s,a=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:a,children:l})};r.displayName=e+"Provider";function o(s){const l=u.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ot(e,t=[]){let n=[];function r(s,l){const i=u.createContext(l),a=n.length;n=[...n,l];const d=m=>{var p;const{scope:h,children:g,...y}=m,v=((p=h?.[e])==null?void 0:p[a])||i,w=u.useMemo(()=>y,Object.values(y));return c.jsx(v.Provider,{value:w,children:g})};d.displayName=s+"Provider";function f(m,p){var h;const g=((h=p?.[e])==null?void 0:h[a])||i,y=u.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(l=>u.createContext(l));return function(i){const a=i?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:a}}),[i,a])}};return o.scopeName=e,[r,Wy(o,...t)]}function Wy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((i,{useScope:a,scopeName:d})=>{const m=a(s)[`__scope${d}`];return{...i,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Un=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),s=o.find(Gy);if(s){const l=s.props.children,i=o.map(a=>a===s?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:a);return c.jsx(Ja,{...r,ref:t,children:u.isValidElement(l)?u.cloneElement(l,void 0,i):null})}return c.jsx(Ja,{...r,ref:t,children:n})});Un.displayName="Slot";var Ja=u.forwardRef((e,t)=>{const{children:n,...r}=e;if(u.isValidElement(n)){const o=Uy(n),s=Yy(r,n.props);return n.type!==u.Fragment&&(s.ref=t?gi(t,o):o),u.cloneElement(n,s)}return u.Children.count(n)>1?u.Children.only(null):null});Ja.displayName="SlotClone";var Gm=({children:e})=>c.jsx(c.Fragment,{children:e});function Gy(e){return u.isValidElement(e)&&e.type===Gm}function Yy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{s(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Uy(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Vy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=Vy.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:s,...l}=r,i=s?Un:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(i,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ym(e,t){e&&fn.flushSync(()=>e.dispatchEvent(t))}function Be(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Hy(e,t=globalThis?.document){const n=Be(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zy="DismissableLayer",ec="dismissableLayer.update",Xy="dismissableLayer.pointerDownOutside",Ky="dismissableLayer.focusOutside",Wd,Um=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),so=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:i,...a}=e,d=u.useContext(Um),[f,m]=u.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=u.useState({}),g=oe(t,k=>m(k)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(v),b=f?y.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=w,_=e5(k=>{const E=k.target,T=[...d.branches].some(M=>M.contains(E));!C||T||(o?.(k),l?.(k),k.defaultPrevented||i?.())},p),S=t5(k=>{const E=k.target;[...d.branches].some(M=>M.contains(E))||(s?.(k),l?.(k),k.defaultPrevented||i?.())},p);return Hy(k=>{b===d.layers.size-1&&(r?.(k),!k.defaultPrevented&&i&&(k.preventDefault(),i()))},p),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Wd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Gd(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Wd)}},[f,p,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Gd())},[f,d]),u.useEffect(()=>{const k=()=>h({});return document.addEventListener(ec,k),()=>document.removeEventListener(ec,k)},[]),c.jsx(X.div,{...a,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,S.onFocusCapture),onBlurCapture:O(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,_.onPointerDownCapture)})});so.displayName=Zy;var Qy="DismissableLayerBranch",Jy=u.forwardRef((e,t)=>{const n=u.useContext(Um),r=u.useRef(null),o=oe(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(X.div,{...e,ref:o})});Jy.displayName=Qy;function e5(e,t=globalThis?.document){const n=Be(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let a=function(){Vm(Xy,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function t5(e,t=globalThis?.document){const n=Be(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Vm(Ky,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gd(){const e=new CustomEvent(ec);document.dispatchEvent(e)}function Vm(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,s):o.dispatchEvent(s)}var et=globalThis?.document?u.useLayoutEffect:()=>{},n5=My.useId||(()=>{}),r5=0;function _t(e){const[t,n]=u.useState(n5());return et(()=>{n(r=>r??String(r5++))},[e]),t?`radix-${t}`:""}const o5=["top","right","bottom","left"],Vn=Math.min,ft=Math.max,Ol=Math.round,tl=Math.floor,Zt=e=>({x:e,y:e}),s5={left:"right",right:"left",bottom:"top",top:"bottom"},l5={start:"end",end:"start"};function tc(e,t,n){return ft(e,Vn(t,n))}function wn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function Zc(e){return e==="x"?"y":"x"}function Xc(e){return e==="y"?"height":"width"}function Hn(e){return["top","bottom"].includes(xn(e))?"y":"x"}function Kc(e){return Zc(Hn(e))}function i5(e,t,n){n===void 0&&(n=!1);const r=lo(e),o=Kc(e),s=Xc(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$l(l)),[l,$l(l)]}function a5(e){const t=$l(e);return[nc(e),t,nc(t)]}function nc(e){return e.replace(/start|end/g,t=>l5[t])}function c5(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:l;default:return[]}}function u5(e,t,n,r){const o=lo(e);let s=c5(xn(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(nc)))),s}function $l(e){return e.replace(/left|right|bottom|top/g,t=>s5[t])}function d5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hm(e){return typeof e!="number"?d5(e):{top:e,right:e,bottom:e,left:e}}function zl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Yd(e,t,n){let{reference:r,floating:o}=e;const s=Hn(t),l=Kc(t),i=Xc(l),a=xn(t),d=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(a){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(lo(t)){case"start":h[l]-=p*(n&&d?-1:1);break;case"end":h[l]+=p*(n&&d?-1:1);break}return h}const f5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,i=s.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Yd(d,r,a),p=r,h={},g=0;for(let y=0;y<i.length;y++){const{name:v,fn:w}=i[y],{x:b,y:x,data:C,reset:_}=await w({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:d,platform:l,elements:{reference:e,floating:t}});f=b??f,m=x??m,h={...h,[v]:{...h[v],...C}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(d=_.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:f,y:m}=Yd(d,p,a)),y=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:h}};async function rs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:i,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:h=0}=wn(t,e),g=Hm(h),v=i[p?m==="floating"?"reference":"floating":m],w=zl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:a})),b=m==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=zl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:x,strategy:a}):b);return{top:(w.top-_.top+g.top)/C.y,bottom:(_.bottom-w.bottom+g.bottom)/C.y,left:(w.left-_.left+g.left)/C.x,right:(_.right-w.right+g.right)/C.x}}const m5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:i,middlewareData:a}=t,{element:d,padding:f=0}=wn(e,t)||{};if(d==null)return{};const m=Hm(f),p={x:n,y:r},h=Kc(o),g=Xc(h),y=await l.getDimensions(d),v=h==="y",w=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[h]-p[h]-s.floating[g],_=p[h]-s.reference[h],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let k=S?S[x]:0;(!k||!await(l.isElement==null?void 0:l.isElement(S)))&&(k=i.floating[x]||s.floating[g]);const E=C/2-_/2,T=k/2-y[g]/2-1,M=Vn(m[w],T),P=Vn(m[b],T),F=M,V=k-y[g]-P,q=k/2-y[g]/2+E,te=tc(F,q,V),U=!a.arrow&&lo(o)!=null&&q!==te&&s.reference[g]/2-(q<F?M:P)-y[g]/2<0,K=U?q<F?q-F:q-V:0;return{[h]:p[h]+K,data:{[h]:te,centerOffset:q-te-K,...U&&{alignmentOffset:K}},reset:U}}}),p5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:i,platform:a,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=wn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=xn(o),b=Hn(i),x=xn(i)===i,C=await(a.isRTL==null?void 0:a.isRTL(d.floating)),_=p||(x||!y?[$l(i)]:a5(i)),S=g!=="none";!p&&S&&_.push(...u5(i,y,g,C));const k=[i,..._],E=await rs(t,v),T=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&T.push(E[w]),m){const q=i5(o,l,C);T.push(E[q[0]],E[q[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(q=>q<=0)){var P,F;const q=(((P=s.flip)==null?void 0:P.index)||0)+1,te=k[q];if(te)return{data:{index:q,overflows:M},reset:{placement:te}};let U=(F=M.filter(K=>K.overflows[0]<=0).sort((K,H)=>K.overflows[1]-H.overflows[1])[0])==null?void 0:F.placement;if(!U)switch(h){case"bestFit":{var V;const K=(V=M.filter(H=>{if(S){const N=Hn(H.placement);return N===b||N==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(N=>N>0).reduce((N,ae)=>N+ae,0)]).sort((H,N)=>H[1]-N[1])[0])==null?void 0:V[0];K&&(U=K);break}case"initialPlacement":U=i;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Ud(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vd(e){return o5.some(t=>e[t]>=0)}const h5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wn(e,t);switch(r){case"referenceHidden":{const s=await rs(t,{...o,elementContext:"reference"}),l=Ud(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Vd(l)}}}case"escaped":{const s=await rs(t,{...o,altBoundary:!0}),l=Ud(s,n.floating);return{data:{escapedOffsets:l,escaped:Vd(l)}}}default:return{}}}}};async function g5(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=xn(n),i=lo(n),a=Hn(n)==="y",d=["left","top"].includes(l)?-1:1,f=s&&a?-1:1,m=wn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),a?{x:h*f,y:p*d}:{x:p*d,y:h*f}}const y5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:i}=t,a=await g5(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:l}}}}},v5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...a}=wn(e,t),d={x:n,y:r},f=await rs(t,a),m=Hn(xn(o)),p=Zc(m);let h=d[p],g=d[m];if(s){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",b=h+f[v],x=h-f[w];h=tc(b,h,x)}if(l){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=g+f[v],x=g-f[w];g=tc(b,g,x)}const y=i.fn({...t,[p]:h,[m]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:s,[m]:l}}}}}},b5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:a=!0,crossAxis:d=!0}=wn(e,t),f={x:n,y:r},m=Hn(o),p=Zc(m);let h=f[p],g=f[m];const y=wn(i,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const x=p==="y"?"height":"width",C=s.reference[p]-s.floating[x]+v.mainAxis,_=s.reference[p]+s.reference[x]-v.mainAxis;h<C?h=C:h>_&&(h=_)}if(d){var w,b;const x=p==="y"?"width":"height",C=["top","left"].includes(xn(o)),_=s.reference[m]-s.floating[x]+(C&&((w=l.offset)==null?void 0:w[m])||0)+(C?0:v.crossAxis),S=s.reference[m]+s.reference[x]+(C?0:((b=l.offset)==null?void 0:b[m])||0)-(C?v.crossAxis:0);g<_?g=_:g>S&&(g=S)}return{[p]:h,[m]:g}}}},w5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:i}=t,{apply:a=()=>{},...d}=wn(e,t),f=await rs(t,d),m=xn(o),p=lo(o),h=Hn(o)==="y",{width:g,height:y}=s.floating;let v,w;m==="top"||m==="bottom"?(v=m,w=p===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(w=m,v=p==="end"?"top":"bottom");const b=y-f.top-f.bottom,x=g-f.left-f.right,C=Vn(y-f[v],b),_=Vn(g-f[w],x),S=!t.middlewareData.shift;let k=C,E=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=b),S&&!p){const M=ft(f.left,0),P=ft(f.right,0),F=ft(f.top,0),V=ft(f.bottom,0);h?E=g-2*(M!==0||P!==0?M+P:ft(f.left,f.right)):k=y-2*(F!==0||V!==0?F+V:ft(f.top,f.bottom))}await a({...t,availableWidth:E,availableHeight:k});const T=await l.getDimensions(i.floating);return g!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function io(e){return Zm(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jt(e){var t;return(t=(Zm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zm(e){return yi()?e instanceof Node||e instanceof mt(e).Node:!1}function Mt(e){return yi()?e instanceof Element||e instanceof mt(e).Element:!1}function Xt(e){return yi()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function Hd(e){return!yi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}function xs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function x5(e){return["table","td","th"].includes(io(e))}function vi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Qc(e){const t=Jc(),n=Mt(e)?At(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function C5(e){let t=Zn(e);for(;Xt(t)&&!Zr(t);){if(Qc(t))return t;if(vi(t))return null;t=Zn(t)}return null}function Jc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zr(e){return["html","body","#document"].includes(io(e))}function At(e){return mt(e).getComputedStyle(e)}function bi(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zn(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hd(e)&&e.host||Jt(e);return Hd(t)?t.host:t}function Xm(e){const t=Zn(e);return Zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&xs(t)?t:Xm(t)}function os(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xm(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=mt(o);if(s){const i=rc(l);return t.concat(l,l.visualViewport||[],xs(o)?o:[],i&&n?os(i):[])}return t.concat(o,os(o,[],n))}function rc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Km(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=Ol(n)!==s||Ol(r)!==l;return i&&(n=s,r=l),{width:n,height:r,$:i}}function eu(e){return Mt(e)?e:e.contextElement}function Fr(e){const t=eu(e);if(!Xt(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Km(t);let l=(s?Ol(n.width):n.width)/r,i=(s?Ol(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const _5=Zt(0);function Qm(e){const t=mt(e);return!Jc()||!t.visualViewport?_5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=eu(e);let l=Zt(1);t&&(r?Mt(r)&&(l=Fr(r)):l=Fr(e));const i=k5(s,n,r)?Qm(s):Zt(0);let a=(o.left+i.x)/l.x,d=(o.top+i.y)/l.y,f=o.width/l.x,m=o.height/l.y;if(s){const p=mt(s),h=r&&Mt(r)?mt(r):r;let g=p,y=rc(g);for(;y&&r&&h!==g;){const v=Fr(y),w=y.getBoundingClientRect(),b=At(y),x=w.left+(y.clientLeft+parseFloat(b.paddingLeft))*v.x,C=w.top+(y.clientTop+parseFloat(b.paddingTop))*v.y;a*=v.x,d*=v.y,f*=v.x,m*=v.y,a+=x,d+=C,g=mt(y),y=rc(g)}}return zl({width:f,height:m,x:a,y:d})}function tu(e,t){const n=bi(e).scrollLeft;return t?t.left+n:fr(Jt(e)).left+n}function Jm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:tu(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function S5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=Jt(r),i=t?vi(t.floating):!1;if(r===l||i&&s)return n;let a={scrollLeft:0,scrollTop:0},d=Zt(1);const f=Zt(0),m=Xt(r);if((m||!m&&!s)&&((io(r)!=="body"||xs(l))&&(a=bi(r)),Xt(r))){const h=fr(r);d=Fr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=l&&!m&&!s?Jm(l,a,!0):Zt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-a.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-a.scrollTop*d.y+f.y+p.y}}function R5(e){return Array.from(e.getClientRects())}function E5(e){const t=Jt(e),n=bi(e),r=e.ownerDocument.body,o=ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+tu(e);const i=-n.scrollTop;return At(r).direction==="rtl"&&(l+=ft(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:i}}function j5(e,t){const n=mt(e),r=Jt(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,i=0,a=0;if(o){s=o.width,l=o.height;const d=Jc();(!d||d&&t==="fixed")&&(i=o.offsetLeft,a=o.offsetTop)}return{width:s,height:l,x:i,y:a}}function T5(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Xt(e)?Fr(e):Zt(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,a=o*s.x,d=r*s.y;return{width:l,height:i,x:a,y:d}}function Zd(e,t,n){let r;if(t==="viewport")r=j5(e,n);else if(t==="document")r=E5(Jt(e));else if(Mt(t))r=T5(t,n);else{const o=Qm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zl(r)}function ep(e,t){const n=Zn(e);return n===t||!Mt(n)||Zr(n)?!1:At(n).position==="fixed"||ep(n,t)}function L5(e,t){const n=t.get(e);if(n)return n;let r=os(e,[],!1).filter(i=>Mt(i)&&io(i)!=="body"),o=null;const s=At(e).position==="fixed";let l=s?Zn(e):e;for(;Mt(l)&&!Zr(l);){const i=At(l),a=Qc(l);!a&&i.position==="fixed"&&(o=null),(s?!a&&!o:!a&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xs(l)&&!a&&ep(e,l))?r=r.filter(f=>f!==l):o=i,l=Zn(l)}return t.set(e,r),r}function M5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?vi(t)?[]:L5(t,this._c):[].concat(n),r],i=l[0],a=l.reduce((d,f)=>{const m=Zd(t,f,o);return d.top=ft(m.top,d.top),d.right=Vn(m.right,d.right),d.bottom=Vn(m.bottom,d.bottom),d.left=ft(m.left,d.left),d},Zd(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function A5(e){const{width:t,height:n}=Km(e);return{width:t,height:n}}function I5(e,t,n){const r=Xt(t),o=Jt(t),s=n==="fixed",l=fr(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const a=Zt(0);if(r||!r&&!s)if((io(t)!=="body"||xs(o))&&(i=bi(t)),r){const p=fr(t,!0,s,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else o&&(a.x=tu(o));const d=o&&!r&&!s?Jm(o,i):Zt(0),f=l.left+i.scrollLeft-a.x-d.x,m=l.top+i.scrollTop-a.y-d.y;return{x:f,y:m,width:l.width,height:l.height}}function ma(e){return At(e).position==="static"}function Xd(e,t){if(!Xt(e)||At(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Jt(e)===n&&(n=n.ownerDocument.body),n}function tp(e,t){const n=mt(e);if(vi(e))return n;if(!Xt(e)){let o=Zn(e);for(;o&&!Zr(o);){if(Mt(o)&&!ma(o))return o;o=Zn(o)}return n}let r=Xd(e,t);for(;r&&x5(r)&&ma(r);)r=Xd(r,t);return r&&Zr(r)&&ma(r)&&!Qc(r)?n:r||C5(e)||n}const D5=async function(e){const t=this.getOffsetParent||tp,n=this.getDimensions,r=await n(e.floating);return{reference:I5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function P5(e){return At(e).direction==="rtl"}const N5={convertOffsetParentRelativeRectToViewportRelativeRect:S5,getDocumentElement:Jt,getClippingRect:M5,getOffsetParent:tp,getElementRects:D5,getClientRects:R5,getDimensions:A5,getScale:Fr,isElement:Mt,isRTL:P5};function np(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O5(e,t){let n=null,r;const o=Jt(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function l(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:h}=d;if(i||t(),!p||!h)return;const g=tl(m),y=tl(o.clientWidth-(f+p)),v=tl(o.clientHeight-(m+h)),w=tl(f),x={rootMargin:-g+"px "+-y+"px "+-v+"px "+-w+"px",threshold:ft(0,Vn(1,a))||1};let C=!0;function _(S){const k=S[0].intersectionRatio;if(k!==a){if(!C)return l();k?l(!1,k):r=setTimeout(()=>{l(!1,1e-7)},1e3)}k===1&&!np(d,e.getBoundingClientRect())&&l(),C=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return l(!0),s}function $5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,d=eu(e),f=o||s?[...d?os(d):[],...os(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=d&&i?O5(d,n):null;let p=-1,h=null;l&&(h=new ResizeObserver(w=>{let[b]=w;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),d&&!a&&h.observe(d),h.observe(t));let g,y=a?fr(e):null;a&&v();function v(){const w=fr(e);y&&!np(y,w)&&n(),y=w,g=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),m?.(),(w=h)==null||w.disconnect(),h=null,a&&cancelAnimationFrame(g)}}const z5=y5,F5=v5,B5=p5,q5=w5,W5=h5,Kd=m5,G5=b5,Y5=(e,t,n)=>{const r=new Map,o={platform:N5,...n},s={...o.platform,_c:r};return f5(e,t,{...o,platform:s})};var Cl=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Fl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Fl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Fl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function rp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qd(e,t){const n=rp(e);return Math.round(t*n)/n}function pa(e){const t=u.useRef(e);return Cl(()=>{t.current=e}),t}function U5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:i=!0,whileElementsMounted:a,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=u.useState(r);Fl(p,r)||h(r);const[g,y]=u.useState(null),[v,w]=u.useState(null),b=u.useCallback(H=>{H!==S.current&&(S.current=H,y(H))},[]),x=u.useCallback(H=>{H!==k.current&&(k.current=H,w(H))},[]),C=s||g,_=l||v,S=u.useRef(null),k=u.useRef(null),E=u.useRef(f),T=a!=null,M=pa(a),P=pa(o),F=pa(d),V=u.useCallback(()=>{if(!S.current||!k.current)return;const H={placement:t,strategy:n,middleware:p};P.current&&(H.platform=P.current),Y5(S.current,k.current,H).then(N=>{const ae={...N,isPositioned:F.current!==!1};q.current&&!Fl(E.current,ae)&&(E.current=ae,fn.flushSync(()=>{m(ae)}))})},[p,t,n,P,F]);Cl(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(H=>({...H,isPositioned:!1})))},[d]);const q=u.useRef(!1);Cl(()=>(q.current=!0,()=>{q.current=!1}),[]),Cl(()=>{if(C&&(S.current=C),_&&(k.current=_),C&&_){if(M.current)return M.current(C,_,V);V()}},[C,_,V,M,T]);const te=u.useMemo(()=>({reference:S,floating:k,setReference:b,setFloating:x}),[b,x]),U=u.useMemo(()=>({reference:C,floating:_}),[C,_]),K=u.useMemo(()=>{const H={position:n,left:0,top:0};if(!U.floating)return H;const N=Qd(U.floating,f.x),ae=Qd(U.floating,f.y);return i?{...H,transform:"translate("+N+"px, "+ae+"px)",...rp(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:ae}},[n,i,U.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:V,refs:te,elements:U,floatingStyles:K}),[f,V,te,U,K])}const V5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kd({element:r.current,padding:o}).fn(n):{}:r?Kd({element:r,padding:o}).fn(n):{}}}},H5=(e,t)=>({...z5(e),options:[e,t]}),Z5=(e,t)=>({...F5(e),options:[e,t]}),X5=(e,t)=>({...G5(e),options:[e,t]}),K5=(e,t)=>({...B5(e),options:[e,t]}),Q5=(e,t)=>({...q5(e),options:[e,t]}),J5=(e,t)=>({...W5(e),options:[e,t]}),e3=(e,t)=>({...V5(e),options:[e,t]});var t3="Arrow",op=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(X.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});op.displayName=t3;var n3=op;function r3(e){const[t,n]=u.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,i;if("borderBoxSize"in s){const a=s.borderBoxSize,d=Array.isArray(a)?a[0]:a;l=d.inlineSize,i=d.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nu="Popper",[sp,Qn]=Ot(nu),[o3,lp]=sp(nu),ip=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(o3,{scope:t,anchor:r,onAnchorChange:o,children:n})};ip.displayName=nu;var ap="PopperAnchor",cp=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=lp(ap,n),l=u.useRef(null),i=oe(t,l);return u.useEffect(()=>{s.onAnchorChange(r?.current||l.current)}),r?null:c.jsx(X.div,{...o,ref:i})});cp.displayName=ap;var ru="PopperContent",[s3,l3]=sp(ru),up=u.forwardRef((e,t)=>{var n,r,o,s,l,i;const{__scopePopper:a,side:d="bottom",sideOffset:f=0,align:m="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:C,..._}=e,S=lp(ru,a),[k,E]=u.useState(null),T=oe(t,Pe=>E(Pe)),[M,P]=u.useState(null),F=r3(M),V=F?.width??0,q=F?.height??0,te=d+(m!=="center"?"-"+m:""),U=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},K=Array.isArray(y)?y:[y],H=K.length>0,N={padding:U,boundary:K.filter(a3),altBoundary:H},{refs:ae,floatingStyles:Me,placement:ge,isPositioned:Ee,middlewareData:_e}=U5({strategy:"fixed",placement:te,whileElementsMounted:(...Pe)=>$5(...Pe,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[H5({mainAxis:f+q,alignmentAxis:p}),g&&Z5({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?X5():void 0,...N}),g&&K5({...N}),Q5({...N,apply:({elements:Pe,rects:Ne,availableWidth:ht,availableHeight:gt})=>{const{width:jn,height:Ks}=Ne.reference,Tn=Pe.floating.style;Tn.setProperty("--radix-popper-available-width",`${ht}px`),Tn.setProperty("--radix-popper-available-height",`${gt}px`),Tn.setProperty("--radix-popper-anchor-width",`${jn}px`),Tn.setProperty("--radix-popper-anchor-height",`${Ks}px`)}}),M&&e3({element:M,padding:h}),c3({arrowWidth:V,arrowHeight:q}),b&&J5({strategy:"referenceHidden",...N})]}),[He,ke]=mp(ge),G=Be(C);et(()=>{Ee&&G?.()},[Ee,G]);const se=(n=_e.arrow)==null?void 0:n.x,ce=(r=_e.arrow)==null?void 0:r.y,W=((o=_e.arrow)==null?void 0:o.centerOffset)!==0,[de,le]=u.useState();return et(()=>{k&&le(window.getComputedStyle(k).zIndex)},[k]),c.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...Me,transform:Ee?Me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(s=_e.transformOrigin)==null?void 0:s.x,(l=_e.transformOrigin)==null?void 0:l.y].join(" "),...((i=_e.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(s3,{scope:a,placedSide:He,onArrowChange:P,arrowX:se,arrowY:ce,shouldHideArrow:W,children:c.jsx(X.div,{"data-side":He,"data-align":ke,..._,ref:T,style:{..._.style,animation:Ee?void 0:"none"}})})})});up.displayName=ru;var dp="PopperArrow",i3={top:"bottom",right:"left",bottom:"top",left:"right"},fp=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=l3(dp,r),l=i3[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(n3,{...o,ref:n,style:{...o.style,display:"block"}})})});fp.displayName=dp;function a3(e){return e!==null}var c3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:s,rects:l,middlewareData:i}=t,d=((n=i.arrow)==null?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[p,h]=mp(s),g={start:"0%",center:"50%",end:"100%"}[h],y=(((r=i.arrow)==null?void 0:r.x)??0)+f/2,v=(((o=i.arrow)==null?void 0:o.y)??0)+m/2;let w="",b="";return p==="bottom"?(w=d?g:`${y}px`,b=`${-m}px`):p==="top"?(w=d?g:`${y}px`,b=`${l.floating.height+m}px`):p==="right"?(w=`${-m}px`,b=d?g:`${v}px`):p==="left"&&(w=`${l.floating.width+m}px`,b=d?g:`${v}px`),{data:{x:w,y:b}}}});function mp(e){const[t,n="center"]=e.split("-");return[t,n]}var wi=ip,Cs=cp,xi=up,Ci=fp,u3="Portal",ao=u.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[s,l]=u.useState(!1);et(()=>l(!0),[]);const i=r||s&&((n=globalThis?.document)==null?void 0:n.body);return i?Ay.createPortal(c.jsx(X.div,{...o,ref:t}),i):null});ao.displayName=u3;function d3(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Ve=e=>{const{present:t,children:n}=e,r=f3(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=oe(r.ref,m3(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};Ve.displayName="Presence";function f3(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),s=u.useRef("none"),l=e?"mounted":"unmounted",[i,a]=d3(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=nl(r.current);s.current=i==="mounted"?d:"none"},[i]),et(()=>{const d=r.current,f=o.current;if(f!==e){const p=s.current,h=nl(d);e?a("MOUNT"):h==="none"||d?.display==="none"?a("UNMOUNT"):a(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),et(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=h=>{const y=nl(r.current).includes(h.animationName);if(h.target===t&&y&&(a("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=h=>{h.target===t&&(s.current=nl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function nl(e){return e?.animationName||"none"}function m3(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function Xn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=p3({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,i=Be(n),a=u.useCallback(d=>{if(s){const m=typeof d=="function"?d(e):d;m!==e&&i(m)}else o(d)},[s,e,o,i]);return[l,a]}function p3({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),s=Be(t);return u.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var h3="VisuallyHidden",ou=u.forwardRef((e,t)=>c.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ou.displayName=h3;var g3=ou,[_i,SL]=Ot("Tooltip",[Qn]),ki=Qn(),pp="TooltipProvider",y3=700,oc="tooltip.open",[v3,su]=_i(pp),hp=e=>{const{__scopeTooltip:t,delayDuration:n=y3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[l,i]=u.useState(!0),a=u.useRef(!1),d=u.useRef(0);return u.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),c.jsx(v3,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(d.current),i(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:u.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:s})};hp.displayName=pp;var Si="Tooltip",[b3,_s]=_i(Si),co=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,a=su(Si,e.__scopeTooltip),d=ki(t),[f,m]=u.useState(null),p=_t(),h=u.useRef(0),g=l??a.disableHoverableContent,y=i??a.delayDuration,v=u.useRef(!1),[w=!1,b]=Xn({prop:r,defaultProp:o,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(oc))):a.onClose(),s?.(k)}}),x=u.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),C=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),S=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},y)},[y,b]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(wi,{...d,children:c.jsx(b3,{scope:t,contentId:p,open:w,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{a.isOpenDelayed?S():C()},[a.isOpenDelayed,S,C]),onTriggerLeave:u.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:C,onClose:_,disableHoverableContent:g,children:n})})};co.displayName=Si;var sc="TooltipTrigger",uo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_s(sc,n),s=su(sc,n),l=ki(n),i=u.useRef(null),a=oe(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Cs,{asChild:!0,...l,children:c.jsx(X.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:O(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:O(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:O(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:O(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:O(e.onBlur,o.onClose),onClick:O(e.onClick,o.onClose)})})});uo.displayName=sc;var lu="TooltipPortal",[w3,x3]=_i(lu,{forceMount:void 0}),fo=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=_s(lu,t);return c.jsx(w3,{scope:t,forceMount:n,children:c.jsx(Ve,{present:n||s.open,children:c.jsx(ao,{asChild:!0,container:o,children:r})})})};fo.displayName=lu;var Xr="TooltipContent",mo=u.forwardRef((e,t)=>{const n=x3(Xr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=_s(Xr,e.__scopeTooltip);return c.jsx(Ve,{present:r||l.open,children:l.disableHoverableContent?c.jsx(gp,{side:o,...s,ref:t}):c.jsx(C3,{side:o,...s,ref:t})})}),C3=u.forwardRef((e,t)=>{const n=_s(Xr,e.__scopeTooltip),r=su(Xr,e.__scopeTooltip),o=u.useRef(null),s=oe(t,o),[l,i]=u.useState(null),{trigger:a,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,p=u.useCallback(()=>{i(null),m(!1)},[m]),h=u.useCallback((g,y)=>{const v=g.currentTarget,w={x:g.clientX,y:g.clientY},b=R3(w,v.getBoundingClientRect()),x=E3(w,b),C=j3(y.getBoundingClientRect()),_=L3([...x,...C]);i(_),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(a&&f){const g=v=>h(v,f),y=v=>h(v,a);return a.addEventListener("pointerleave",g),f.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",y)}}},[a,f,h,p]),u.useEffect(()=>{if(l){const g=y=>{const v=y.target,w={x:y.clientX,y:y.clientY},b=a?.contains(v)||f?.contains(v),x=!T3(w,l);b?p():x&&(p(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,f,l,d,p]),c.jsx(gp,{...e,ref:s})}),[_3,k3]=_i(Si,{isInside:!1}),gp=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,a=_s(Xr,n),d=ki(n),{onClose:f}=a;return u.useEffect(()=>(document.addEventListener(oc,f),()=>document.removeEventListener(oc,f)),[f]),u.useEffect(()=>{if(a.trigger){const m=p=>{const h=p.target;h?.contains(a.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[a.trigger,f]),c.jsx(so,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(xi,{"data-state":a.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Gm,{children:r}),c.jsx(_3,{scope:n,isInside:!0,children:c.jsx(g3,{id:a.contentId,role:"tooltip",children:o||r})})]})})});mo.displayName=Xr;var yp="TooltipArrow",S3=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ki(n);return k3(yp,n).isInside?null:c.jsx(Ci,{...o,...r,ref:t})});S3.displayName=yp;function R3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function E3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function j3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function T3(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s].x,a=t[s].y,d=t[l].x,f=t[l].y;a>r!=f>r&&n<(d-i)*(r-a)/(f-a)+i&&(o=!o)}return o}function L3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),M3(t)}function M3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ks=co,Ss=uo,Rs=fo,Es=mo;const he=u.createContext({});function vp(e,t){return u.useMemo(()=>{if(e)return new Z.ASTQuery({query:t,source:e})},[e,t])}const bp=u.createContext({focusMainView:()=>{},isMainViewFocused:!0,focusNestView:()=>{},isNestViewFocused:()=>!1,focusedNestView:null});function A3({rootQuery:e,focusedNestViewPath:t,onFocusedNestViewPathChange:n,children:r}){const o=u.useMemo(()=>{if(t.length===0)return null;if(e){const d=e.definition;if(d instanceof Z.ASTArrowQueryDefinition)return _l(d.view,[...t].reverse())}return null},[e,t]),s=u.useCallback(()=>{n([])},[n]),l=u.useCallback(d=>{n([...d])},[n]),i=u.useCallback(d=>JSON.stringify(d)===JSON.stringify(t),[t]),a=t.length===0;return c.jsx(bp.Provider,{value:{focusMainView:s,isMainViewFocused:a,focusNestView:l,isNestViewFocused:i,focusedNestView:o},children:r})}function js(){return u.useContext(bp)}const _l=(e,t)=>{if(t.length===0)return null;if(e instanceof Z.ASTArrowViewDefinition)return _l(e.view,t);if(e instanceof Z.ASTSegmentViewDefinition){const n=t.pop(),r=e.operations.items.find(o=>o instanceof Z.ASTNestViewOperation&&o.name===n);return r===void 0?(t.push(n),null):t.length===0?r.view:_l(r.view.definition,t)}return e instanceof Z.ASTRefinementViewDefinition?_l(e.refinement,t):null};function RL({source:e,query:t,onQueryChange:n,focusedNestViewPath:r,onFocusedNestViewPathChange:o,children:s,topValues:l,onDrill:i}){const a=vp(e,t);return c.jsx(hp,{children:c.jsx(A3,{rootQuery:a,focusedNestViewPath:r,onFocusedNestViewPathChange:o,children:c.jsx(he.Provider,{value:{source:e,rootQuery:a,setQuery:n,topValues:l,onDrill:i},children:s})})})}var Mo={},Jd;function I3(){if(Jd)return Mo;Jd=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.styleq=void 0;var e=new WeakMap,t="$$css";function n(o){var s,l,i;return o!=null&&(s=o.disableCache===!0,l=o.disableMix===!0,i=o.transform),function(){for(var d=[],f="",m=null,p=s?null:e,h=new Array(arguments.length),g=0;g<arguments.length;g++)h[g]=arguments[g];for(;h.length>0;){var y=h.pop();if(!(y==null||y===!1)){if(Array.isArray(y)){for(var v=0;v<y.length;v++)h.push(y[v]);continue}var w=i!=null?i(y):y;if(w.$$css){var b="";if(p!=null&&p.has(w)){var x=p.get(w);x!=null&&(b=x[0],d.push.apply(d,x[1]),p=x[2])}else{var C=[];for(var _ in w){var S=w[_];_!==t&&(typeof S=="string"||S===null?d.includes(_)||(d.push(_),p!=null&&C.push(_),typeof S=="string"&&(b+=b?" "+S:S)):console.error("styleq: ".concat(_," typeof ").concat(String(S),' is not "string" or "null".')))}if(p!=null){var k=new WeakMap;p.set(w,[b,C,k]),p=k}}b&&(f=f?b+" "+f:b)}else if(l)m==null&&(m={}),m=Object.assign({},w,m);else{var E=null;for(var T in w){var M=w[T];M!==void 0&&(d.includes(T)||(M!=null&&(m==null&&(m={}),E==null&&(E={}),E[T]=M),d.push(T),p=null))}E!=null&&(m=Object.assign(E,m))}}}var P=[f,m];return P}}var r=n();return Mo.styleq=r,r.factory=n,Mo}var wp=I3();const hr=e=>new Error(`'stylex.${e}' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'`),ut=e=>hr(`types.${e}`);function xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,o]=wp.styleq(t),s={};return r!=null&&r!==""&&(s.className=r),o!=null&&Object.keys(o).length>0&&(s.style=o),s}function D3(){const{className:e,style:t}=xp(...arguments),n={};return e!=null&&e!==""&&(n.class=e),t!=null&&Object.keys(t).length>0&&(n.style=Object.keys(t).map(r=>`${r}:${t[r]};`).join("")),n}function P3(e){throw hr("create")}function N3(e){throw hr("defineVars")}const O3=(e,t)=>{throw hr("createTheme")},$3=e=>{throw hr("include")},z3=P3,F3=N3,B3=O3,q3=$3,W3={angle:e=>{throw ut("angle")},color:e=>{throw ut("color")},url:e=>{throw ut("url")},image:e=>{throw ut("image")},integer:e=>{throw ut("integer")},lengthPercentage:e=>{throw ut("lengthPercentage")},length:e=>{throw ut("length")},percentage:e=>{throw ut("percentage")},number:e=>{throw ut("number")},resolution:e=>{throw ut("resolution")},time:e=>{throw ut("time")},transformFunction:e=>{throw ut("transformFunction")},transformList:e=>{throw ut("transformList")}},G3=e=>{throw hr("keyframes")},Y3=function(){throw hr("firstThatWorks")};function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r]=wp.styleq(t);return r}R.props=xp;R.attrs=D3;R.create=z3;R.defineVars=F3;R.createTheme=B3;R.include=q3;R.keyframes=G3;R.firstThatWorks=Y3;R.types=W3;const Cn={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1rs82da",backgroundColor:"mly1jmk7v",maxWidth:"mlyxc7z9f",boxShadow:"mly17fq3gk",zIndex:"mlyhtitgo",$$css:!0},card:{width:"mly1g65f5b",maxHeight:"mly1kbvuzt",zIndex:"mlyhtitgo",$$css:!0}},z={largeBody:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mly1j61zf2",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},emphasized:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mly1xlr1w8",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly1gu5id8",$$css:!0},body:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},link:{fontFamily:"mly1rj5sg5",color:"mlykfrnou",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},supporting:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly12oo3zp",$$css:!0},badge:{fontFamily:"mly1rj5sg5",color:"mly183j0n7",fontWeight:"mly1s688f",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly1gu5id8",$$css:!0}},U3=e=>u.createElement("svg",{width:110,height:110,viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"cahevron_down",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-180.000000) translate(-55.000000, -55.000005) "}))),V3=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"chevron_left",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-90.000000) translate(-55.000000, -55.000005) "}))),H3=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"chevron_right",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-270.000000) translate(-55.000000, -55.000005) "}))),Z3=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24,...e},u.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),u.createElement("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Cp=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"query_clear_hover",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("circle",{className:"circle hoverfill",fill:"transparent",cx:55,cy:55,r:55}),u.createElement("path",{d:"M78.1428571,25 L85,31.8571429 L61.857,55 L85,78.1428571 L78.1428571,85 L55,61.857 L31.8571429,85 L25,78.1428571 L48.142,55 L25,31.8571429 L31.8571429,25 L55,48.143 L78.1428571,25 Z",className:"cross primaryfill",fill:"currentColor"}))),X3=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})),K3=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"query_add",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M75.8285714,28 L82,34.1714286 L61.171,55 L82,75.8285714 L75.8285714,82 L54.999,61.171 L34.1714286,82 L28,75.8285714 L48.828,55 L28,34.1714286 L34.1714286,28 L55,48.829 L75.8285714,28 Z",id:"Combined-Shape-Copy",fill:"currentColor",transform:"translate(55.000000, 55.000000) rotate(-315.000000) translate(-55.000000, -55.000000) ",className:"primaryfill"}))),Q3=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_measure",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M64.4079772,43.4952662 C64.4079772,65.775216 64.4079772,77.6781315 64.4079772,79.2040126 C64.4079772,81.4928343 72.4309475,81.4935567 72.4309475,79.2040126 C72.4309475,77.6776499 72.4309475,65.7747344 72.4309475,43.4952662 L82.1242499,53.5032288 C82.9082803,54.3127101 83.9390395,54.7167092 84.9596343,54.7167092 C85.980229,54.7167092 87.0118722,54.3119686 87.7950187,53.5032288 C89.3623612,51.8850077 89.3623612,49.2552488 87.7950187,47.6371608 L71.2655269,30.5703346 C70.8943747,30.1871342 70.4404886,29.8781937 69.9456129,29.6650532 C69.9247535,29.6546561 69.9046123,29.6546561 69.883753,29.6435167 C69.4298852,29.4519166 68.9350096,29.3457171 68.4192709,29.3457171 C67.9035322,29.3457171 67.4086565,29.4519147 66.9547887,29.6435167 C66.9339294,29.6539139 66.9137882,29.6539139 66.8929288,29.6650532 C66.3980532,29.8781937 65.9441854,30.1863928 65.5730149,30.5703346 L49.0328429,47.6474271 C47.4655004,49.2656482 47.4655004,51.8954071 49.0328429,53.5134951 C50.6001855,55.1205753 53.1472623,55.1205753 54.714476,53.5023554 L64.4079772,43.4952662 Z",id:"Path-Copy-3",fill:"currentColor",className:"primaryfill",fillRule:"nonzero",transform:"translate(68.413931, 55.133308) rotate(-270.000000) translate(-68.413931, -55.133308) "}),u.createElement("rect",{id:"Rectangle-Copy-50",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 39.025784) rotate(-90.000000) translate(-32.019040, -39.025784) ",x:24.0122609,y:34.8667243,width:16.0135574,height:8.31811859}),u.createElement("rect",{id:"Rectangle-Copy-51",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 72.330197) rotate(-90.000000) translate(-32.019040, -72.330197) ",x:24.0122609,y:68.1711376,width:16.0135574,height:8.31811859}),u.createElement("circle",{id:"Oval-Copy-16",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 88.946306) rotate(-180.000000) translate(-32.019040, -88.946306) ",cx:32.0190396,cy:88.9463056,r:9.09652528}),u.createElement("circle",{id:"Oval-Copy-20",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 55.133308) rotate(-90.000000) translate(-32.019040, -55.133308) ",cx:32.0190396,cy:55.1333084,r:9.09652528}),u.createElement("circle",{id:"Oval-Copy-21",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",cx:32.0190396,cy:23.2007668,r:9.09652528}))),J3=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_filter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M87.3843313,20.5 C88.0702245,20.5 88.6794354,20.684137 89.1839151,20.9924545 C89.72968,21.3260038 90.1536978,21.8060023 90.4194477,22.364077 C90.6824778,22.9164401 90.7905536,23.5453405 90.7077209,24.1843828 C90.641307,24.6967561 90.4522801,25.21669 90.1181537,25.7073778 L89.9660074,25.9157747 L65.9667297,54.9330833 L65.9667297,86.0952768 C65.9667297,87.3578277 65.3421199,88.3687734 64.46847,88.9512067 C64.0000984,89.2634544 63.4591929,89.4523731 62.9014864,89.49211 C62.4335638,89.5254497 61.9536386,89.4542406 61.4987219,89.2647425 L61.3053966,89.1762469 L45.2981054,81.501442 C44.7448345,81.2248066 44.1940182,80.794047 43.8075879,80.2144017 C43.516589,79.7779032 43.3168206,79.2579753 43.2760203,78.6543848 L43.268304,78.4241163 L43.268304,54.9330833 L19.2778986,25.9265022 C18.8405281,25.4244753 18.5999563,24.8470099 18.5253334,24.2601464 C18.4451968,23.6299215 18.5577673,22.9877736 18.8297244,22.4166636 C19.0989541,21.8512813 19.5239716,21.3563425 20.06756,21.0111708 C20.5069962,20.7321343 21.0239609,20.5500465 21.6001779,20.5088845 L21.8507024,20.5 L87.3843313,20.5 Z M80.4108174,26.9794004 L28.8312662,26.9794004 L49.2106529,51.6044926 L49.3557497,51.8317181 C49.767411,52.5135117 49.9668805,53.1962297 49.9668805,53.8764024 L49.9668805,53.8764024 L49.9668805,76.3587304 L59.2681532,80.9104171 L59.2681532,53.6572264 L59.2765596,53.4785743 C59.3429907,52.7639199 59.7932531,52.0547544 60.2732157,51.568472 L60.2732157,51.568472 L80.4108174,26.9794004 Z",id:"Shape-Copy-2",stroke:"currentColor",fill:"currentColor",className:"primaryfill primarystroke",fillRule:"nonzero"}))),e2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_group_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M31.7463881,49.3114698 C32.6824928,49.3083801 33.6154932,49.1963884 34.5261904,48.9793527 L45.0010173,67.8024842 L45.0010173,67.8032565 C43.2956473,70.2493007 42.5480527,73.2367133 42.8986175,76.1988173 C43.2492613,79.1601303 44.6742783,81.890304 46.9033203,83.870708 C49.1330544,85.851903 52.0117188,86.9463056 54.9937928,86.9463056 C57.9758669,86.9463056 60.8545313,85.8518634 63.0834745,83.870708 C65.3132086,81.890304 66.7382058,79.1601303 67.0889682,76.1988173 C67.4396121,73.2369111 66.6919779,70.2493007 64.9865684,67.8032565 L75.4613953,48.980125 L75.4613953,48.9793527 C78.5099046,49.699958 81.7183727,49.2180056 84.4200741,47.6338999 C87.1225664,46.0505653 89.1106817,43.4862425 89.9717699,40.4749053 C90.8328581,37.4635681 90.5008399,34.235723 89.0449384,31.4630387 C87.5882658,28.6903544 85.1197206,26.584791 82.151685,25.5847028 C79.1834516,24.5837248 75.9441385,24.7652355 73.1066007,26.0913707 C70.2688652,27.4167347 68.0507969,29.7848559 66.9138836,32.7028673 L43.0841815,32.7028673 C42.0044302,29.9371034 39.9514417,27.6601133 37.310837,26.3015513 C34.6702324,24.9429696 31.623898,24.5961814 28.7454313,25.32606 C25.8669647,26.0559385 23.3534966,27.8122421 21.6791694,30.2652067 C20.0046839,32.7173803 19.284138,35.6972794 19.6532888,38.644554 C20.021708,41.5910378 21.4544362,44.3012413 23.6819162,46.2662229 C25.9086844,48.2303345 28.776474,49.3139413 31.7460915,49.3115686 L31.7463881,49.3114698 Z M54.9987359,80.3146003 C53.5304767,80.3146003 52.1224442,79.7314725 51.0836021,78.6934213 C50.0455509,77.6545989 49.4624231,76.2465862 49.4624231,74.7782874 C49.4624231,73.3099887 50.0455509,71.9019957 51.0836021,70.8639445 C52.1224245,69.8251221 53.5304372,69.2419944 54.9987359,69.2419944 C56.4670347,69.2419944 57.8750277,69.8251221 58.9138698,70.8639445 C59.951921,71.9019957 60.5350488,73.3099887 60.5350488,74.7782874 C60.5350488,76.2465862 59.951921,77.6545792 58.9138698,78.6934213 C57.8750474,79.7314725 56.4670347,80.3146003 54.9987359,80.3146003 Z M78.2510838,31.5953952 C79.7193431,31.5953952 81.1273755,32.1785229 82.1654268,33.2165742 C83.203478,34.2553966 83.7873769,35.6634093 83.7873769,37.131708 C83.7873769,38.6000068 83.203478,40.0079998 82.1654268,41.046051 C81.1273755,42.0848734 79.7193826,42.6680011 78.2510838,42.6680011 C76.7828246,42.6680011 75.3740012,42.0848734 74.33595,41.046051 C73.2978987,40.0079998 72.714771,38.6000068 72.714771,37.131708 C72.714771,35.6634093 73.2978987,34.2554163 74.33595,33.2165742 C75.3740012,32.1785229 76.7827851,31.5953952 78.2510838,31.5953952 Z M43.7166018,39.3459801 L66.2808701,39.3459801 C66.7149337,41.7696815 67.8734779,44.0047541 69.6028318,45.75738 L59.7591401,63.5727121 C56.7137943,62.2774614 53.2720118,62.2774614 50.2258752,63.5727121 L40.3380911,45.75738 C42.0882652,44.0118524 43.2661865,41.7758109 43.7156132,39.3459801 L43.7166018,39.3459801 Z M31.7465858,31.5953952 C33.214845,31.5953952 34.6236684,32.1785229 35.6617196,33.2165742 C36.6997709,34.2553966 37.2828986,35.6634093 37.2828986,37.131708 C37.2828986,38.6000068 36.6997709,40.0079998 35.6617196,41.046051 C34.6236684,42.0848734 33.2148846,42.6680011 31.7465858,42.6680011 C30.2783266,42.6680011 28.8702941,42.0848734 27.8322428,41.046051 C26.7941916,40.0079998 26.2102927,38.6000068 26.2102927,37.131708 C26.2102927,35.6634093 26.7941916,34.2554163 27.8322428,33.2165742 C28.8702941,32.1785229 30.278287,31.5953952 31.7465858,31.5953952 L31.7465858,31.5953952 Z",id:"Shape-Copy-3",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}))),t2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_limit",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-46",className:"primaryfill",fill:"currentColor",x:24,y:23,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-47",className:"primaryfill",fill:"currentColor",x:24,y:39,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-48",className:"primaryfill",fill:"currentColor",x:24,y:55,width:53.5,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-49",className:"primaryfill",fill:"currentColor",x:24,y:71.1904762,width:40,height:7.61904762,rx:3.80952381}),u.createElement("path",{d:"M77.1113683,65.3807638 L87.6203313,83.396129 C87.8986116,83.8731809 87.7374754,84.4854986 87.2604234,84.7637789 C87.1074874,84.8529916 86.933607,84.9 86.7565524,84.9 L65.7386264,84.9 C65.1863417,84.9 64.7386264,84.4522847 64.7386264,83.9 C64.7386264,83.7229454 64.7856348,83.549065 64.8748475,83.396129 L75.3838105,65.3807638 C75.6620908,64.9037119 76.2744085,64.7425757 76.7514604,65.020856 C76.9004641,65.1077747 77.0244495,65.2317602 77.1113683,65.3807638 Z",id:"Triangle-Copy-2",fill:"currentColor",className:"primaryfill",transform:"translate(76.247589, 74.400000) rotate(-90.000000) translate(-76.247589, -74.400000) "}))),n2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_nest",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M27.3181186,27 C29.5272576,27 31.3181186,28.790861 31.3181186,31 L31.318,59.317 L72.9431634,59.317258 L62.9360743,49.6237568 C61.3178543,48.0565431 61.3178543,45.5094664 62.9249345,43.9421238 C64.5430225,42.3747812 67.1727815,42.3747812 68.7910025,43.9421238 L68.7910025,43.9421238 L85.8680951,60.4822957 C86.2520369,60.8534663 86.560236,61.307334 86.7733764,61.8022097 C86.7845158,61.823069 86.7845158,61.8432103 86.7949129,61.8640696 C86.986515,62.3179374 87.0927126,62.812813 87.0927126,63.3285517 C87.0927126,63.8442904 86.9865131,64.3391661 86.7949129,64.7930338 C86.7837736,64.8138932 86.7837736,64.8340344 86.7733764,64.8548938 C86.560236,65.3497694 86.2512954,65.8036556 85.8680951,66.1748077 L85.8680951,66.1748077 L68.8012688,82.7042995 C67.1831809,84.2716421 64.5534219,84.2716421 62.9352009,82.7042995 C62.1264611,81.921153 61.7217204,80.8895099 61.7217204,79.8689151 C61.7217204,78.8483204 62.1257196,77.8175611 62.9352009,77.0335308 L62.9352009,77.0335308 L72.9431634,67.3402284 L27.234417,67.3402284 C25.2840646,67.3402284 23.6511005,66.037955 23.2100653,64.2817501 C23.0737364,63.8793045 23,63.4482633 23,63 L23,31 C23,28.790861 24.790861,27 27,27 L27.3181186,27 Z",id:"Combined-Shape-Copy",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),r2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"insert_order_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M30.5506412,37.7046734 L30.5506412,81.9762916 C30.5506412,84.1931505 32.3445678,85.9877768 34.5621264,85.9877768 C36.7789852,85.9877768 38.5736115,84.1938502 38.5736115,81.9762916 L38.5736115,37.7046734 L48.2669139,47.3979757 C49.0509443,48.1820061 50.0817035,48.5733031 51.1022983,48.5733031 C52.122893,48.5733031 53.1545362,48.1812879 53.9376827,47.3979757 C55.5050252,45.8306331 55.5050252,43.2835564 53.9376827,41.7163427 L37.4081909,25.1861143 C37.0370387,24.8149622 36.5831526,24.515735 36.0882769,24.3092959 C36.0674175,24.2992257 36.0472763,24.2992257 36.026417,24.2884366 C35.5725492,24.1028605 35.0776736,24 34.5619349,24 C34.0461961,24 33.5513205,24.1028586 33.0974527,24.2884366 C33.0765934,24.2985068 33.0564522,24.2985068 33.0355928,24.3092959 C32.5407172,24.515735 32.0868494,24.814244 31.7156789,25.1861143 L15.1755069,41.7262862 C13.6081644,43.2936288 13.6081644,45.8407055 15.1755069,47.4079192 C16.7428495,48.9644712 19.2899263,48.9644712 20.85714,47.3971298 L30.5506412,37.7046734 Z",id:"Path-Copy",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}),u.createElement("path",{d:"M79.9439284,72.2964315 L79.9439284,28.0137648 C79.9439284,25.796906 78.1500018,24.0022797 75.9324432,24.0022797 C73.7155844,24.0022797 71.920958,25.7962062 71.920958,28.0137648 L71.920958,72.2853831 L62.2276557,62.5920808 C60.6603131,61.0247382 58.1233641,61.0247382 56.5460227,62.5920808 C54.9786801,64.1594234 54.9786801,66.7065001 56.5460227,68.2737138 L73.0861946,84.8138857 C73.4573467,85.1850378 73.9112329,85.484265 74.4061086,85.6907041 C74.4269679,85.7007743 74.4471091,85.7007743 74.4679685,85.7115634 C74.9218362,85.8971395 75.4167119,86 75.9324506,86 C76.4481893,86 76.943065,85.8971414 77.3969327,85.7115634 C77.4177921,85.7014932 77.4379333,85.7014932 77.4587926,85.6907041 C77.9536683,85.484265 78.407536,85.185756 78.7787066,84.8138857 L95.3188785,68.2737138 C96.8862211,66.7063712 96.8862211,64.1592945 95.3188785,62.5920808 C93.7515359,61.0355288 91.2044592,61.0355288 89.6372455,62.6028702 L79.9439284,72.2964315 Z",id:"Path-Copy-2",className:"primaryfill",fill:"currentColor",fillRule:"nonzero"}))),o2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_one_to_many"),u.createElement("g",{id:"join_icon_one_to_many",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(12.759300, 12.500000) rotate(-180.000000) translate(-12.759300, -12.500000) translate(4.000000, 3.712487)",fill:"currentColor"},u.createElement("polygon",{id:"Path-Copy-15",fillRule:"nonzero",transform:"translate(6.382256, 8.736227) scale(-1, 1) rotate(180.000000) translate(-6.382256, -8.736227) ",points:"2.80570594 3.41828749 3.48860316 2.68777302 9.95880577 8.73622728 3.48860316 14.7846815 2.80570594 14.0541671 8.494 8.736"}),u.createElement("rect",{id:"Rectangle-Copy-91",transform:"translate(2.000000, 2.000000) scale(-1, 1) translate(-2.000000, -2.000000) ",x:0,y:0,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-92",transform:"translate(2.000000, 8.736227) scale(-1, 1) translate(-2.000000, -8.736227) ",x:0,y:6.73622728,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-86",transform:"translate(15.518600, 8.736227) scale(-1, 1) translate(-15.518600, -8.736227) ",x:13.5186005,y:6.73622728,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-87",transform:"translate(2.000000, 15.575026) scale(-1, 1) translate(-2.000000, -15.575026) ",x:0,y:13.5750258,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-68",fillRule:"nonzero",transform:"translate(8.495445, 8.736227) scale(-1, 1) translate(-8.495445, -8.736227) ",points:"14.9954453 8.23622728 14.9954453 9.23622728 1.99544525 9.23622728 1.99544525 8.23622728"})))),s2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_many_to_one"),u.createElement("g",{id:"join_icon_many_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("polygon",{id:"Path-Copy-14",fill:"currentColor",fillRule:"nonzero",transform:"translate(10.382256, 12.736227) scale(-1, 1) rotate(180.000000) translate(-10.382256, -12.736227) ",points:"6.80570594 7.41828749 7.48860316 6.68777302 13.9588058 12.7362273 7.48860316 18.7846815 6.80570594 18.0541671 12.494 12.736"}),u.createElement("rect",{id:"Rectangle-Copy-90",fill:"currentColor",x:4,y:4,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-84",fill:"currentColor",x:4,y:17.5750258,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),l2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"join_icon_one_to_one"),u.createElement("g",{id:"join_icon_one_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),u.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),u.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),i2=e=>u.createElement("svg",{width:"78px",height:"73px",viewBox:"-5 -10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("title",null,"database_b"),u.createElement("g",{id:"icons",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"database_b",transform:"translate(-0.000189, 0.800000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"Shape-2"},u.createElement("path",{d:"M38.9978747,0 C49.4323909,0 58.8817175,1.35601948 65.8935492,3.63769481 C69.399635,4.77856169 72.3064537,6.14483766 74.4415973,7.78792208 C76.5767408,9.43100649 78,11.4644805 78,13.7176948 L78,59.1428571 C77.5289095,61.1095617 75.9098694,63.0619481 74.4415973,64.2103247 C72.3064537,65.8534091 69.3994651,67.2213799 65.8935492,68.3623052 C58.8808682,70.6440097 49.4317114,72 38.9978747,72 C28.564038,72 19.1123333,70.6439805 12.0988029,68.3623052 C8.59271719,67.2214383 5.68589845,65.8534091 3.55075491,64.2103247 C1.77316722,62.6163312 0.466092472,61.0553571 0.000162359918,59.1428571 L0.000162359918,12.826461 C-0.00497251122,12.4857468 0.111806422,12.1513003 0.334077073,11.8687938 C0.867540225,10.3512127 2.01808874,8.96790097 3.55089079,7.78869643 C5.68603434,6.14561201 8.59302294,4.77924838 12.0989388,3.63846916 C19.1116199,1.35676461 28.562815,0.000774350649 38.9980106,0.000774350649 L38.9978747,0 Z M38.9980026,4.39968547 C29.1795807,4.39968547 20.2971169,5.97898133 14.0341392,8.43960024 C10.9023181,9.66989245 8.43317659,11.1339692 6.85248078,12.602151 C3.94393403,15.3862114 4.29446142,18.3655235 6.85248078,20.7802963 C8.43327627,22.2484263 10.9024843,23.7104505 14.0341392,24.9407772 C20.2982797,27.4014306 29.1795807,28.9827618 38.9980026,28.9827618 C48.8164245,28.9827618 57.7038721,27.4014306 63.968511,24.9407772 C67.1003321,23.710485 69.5714672,22.2484781 71.152163,20.7802963 C74.08729,18.0024452 73.4953805,14.8214996 71.152163,12.602151 C69.5713675,11.1340209 67.100166,9.66992695 63.968511,8.43960024 C57.705035,5.97894683 48.8172551,4.39968547 38.9980026,4.39968547 Z M73.3181233,24.4886668 C71.264963,26.4046321 68.5511168,28.0180283 65.3038377,29.3722628 C58.4452957,32.2325658 49.203832,33.9324103 38.9993316,33.9324103 C28.7948312,33.9324103 19.5508756,32.2325291 12.691503,29.3722628 C9.44422385,28.0179367 6.73170664,26.4046321 4.67921092,24.4886668 L4.67921092,34.5578783 C4.85118531,35.7254798 5.51373193,36.9581006 6.85314528,38.278818 C8.43394077,39.8377628 10.9031488,41.3838137 14.0348037,42.6902452 C20.2989442,45.3031082 29.1802452,46.9886668 38.9986671,46.9886668 C48.817089,46.9886668 57.7045366,45.3030899 63.9691755,42.6902452 C67.1009966,41.3838503 69.5721317,39.8378178 71.1528275,38.278818 C72.4811934,36.9688517 73.1398693,35.7461761 73.3189539,34.5871829 L73.3181233,24.4886668 Z M73.3181233,43.1016944 C71.264963,44.782251 68.5517813,46.1967717 65.3038377,47.3852582 C58.4452957,49.8941247 49.203832,51.3851147 38.9993316,51.3851147 C28.7948312,51.3851147 19.5508756,49.8940926 12.691503,47.3852582 C9.44422385,46.197334 6.73170664,44.7841788 4.67921092,43.1036222 L4.67921092,55.7057886 C4.85118531,56.7299305 5.51373193,57.811103 6.85314528,58.9695481 C8.43394077,60.3369502 10.9031488,61.6911148 14.0348037,62.8370291 C20.2989442,65.1288579 29.1802452,66.6016944 38.9986671,66.6016944 C48.817089,66.6016944 57.7045366,65.1288579 63.9691755,62.8370291 C67.1009966,61.6911469 69.5721317,60.3369984 71.1528275,58.9695481 C72.4811934,57.8205331 73.1398693,56.7480839 73.3189539,55.7314925 L73.3181233,43.1016944 Z",id:"Shape"}))))),ef=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),a2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),tf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-string",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M4.8045,10.45 L5.2245,9.253 L7.1425,9.253 L7.5625,10.45 L8.6055,10.45 L6.7225,5.438 L5.6375,5.438 L3.7615,10.45 L4.8045,10.45 Z M6.8345,8.385 L5.5255,8.385 L5.9735,7.125 L6.1555,6.523 L6.2115,6.523 L6.3935,7.125 L6.8345,8.385 Z M10.2505,10.562 C10.4791667,10.562 10.681,10.5176667 10.856,10.429 C11.031,10.3403333 11.1721667,10.226 11.2795,10.086 L11.2795,10.086 L11.3355,10.086 L11.3355,10.45 L12.2385,10.45 L12.2385,8.252 C12.2385,7.76666667 12.0961667,7.398 11.8115,7.146 C11.5268333,6.894 11.1115,6.768 10.5655,6.768 C10.2575,6.768 9.97283333,6.82866667 9.7115,6.95 C9.45016667,7.07133333 9.23316667,7.244 9.0605,7.468 L9.0605,7.468 L9.6485,7.93 C9.75116667,7.804 9.88066667,7.7025 10.037,7.6255 C10.1933333,7.5485 10.3555,7.51 10.5235,7.51 C10.7708333,7.51 10.968,7.57066667 11.115,7.692 C11.262,7.81333333 11.3355,7.972 11.3355,8.168 L11.3355,8.168 L11.3355,8.322 C11.0741667,8.21466667 10.7591667,8.161 10.3905,8.161 C10.1245,8.161 9.88183333,8.21 9.6625,8.308 C9.44316667,8.406 9.2705,8.546 9.1445,8.728 C9.0185,8.91 8.9555,9.12 8.9555,9.358 C8.9555,9.71733333 9.07683333,10.0078333 9.3195,10.2295 C9.56216667,10.4511667 9.8725,10.562 10.2505,10.562 Z M10.4675,9.848 C10.2761667,9.848 10.1291667,9.8025 10.0265,9.7115 C9.92383333,9.6205 9.8725,9.50266667 9.8725,9.358 C9.8725,9.00333333 10.1105,8.826 10.5865,8.826 C10.8478333,8.826 11.0975,8.882 11.3355,8.994 C11.3355,9.22266667 11.2573333,9.42216667 11.101,9.5925 C10.9446667,9.76283333 10.7335,9.848 10.4675,9.848 Z",id:"Aa-Copy",fill:"currentColor",fillRule:"nonzero"}))),c2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m2.5 2c-.27614 0-.5.22386-.5.5v10c0 .2761.22386.5.5.5h2c.27614 0 .5-.2239.5-.5s-.22386-.5-.5-.5h-1.5v-9h1.5c.27614 0 .5-.22386.5-.5s-.22386-.5-.5-.5zm8 0c-.2761 0-.5.22386-.5.5s.2239.5.5.5h1.5v9h-1.5c-.2761 0-.5.2239-.5.5s.2239.5.5.5h2c.2761 0 .5-.2239.5-.5v-10c0-.27614-.2239-.5-.5-.5zm-4.5 5h-1v1h1zm1 0h1v1h-1zm3 0h-1v1h1z",fill:"currentColor",fillRule:"evenodd"})),u2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-on-off",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy",transform:"translate(4.295444, 4.604157)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M1.61912392,3.08712961 L5.78998715,3.08712961 C6.6842046,3.08712961 7.40911107,2.39605211 7.40911107,1.54356481 C7.40911107,0.691077503 6.6842046,0 5.78998715,0 L1.61912392,0 C0.724906472,0 0,0.691077503 0,1.54356481 C0,2.39605211 0.724906472,3.08712961 1.61912392,3.08712961 Z M1.61912392,0.617425922 L5.78998715,0.617425922 C6.32651762,0.617425922 6.7614615,1.03207242 6.7614615,1.54356481 C6.7614615,2.05505719 6.32651762,2.46970369 5.78998715,2.46970369 L1.61912392,2.46970369 C1.08259345,2.46970369 0.647649569,2.05505719 0.647649569,1.54356481 C0.647649569,1.03207242 1.08259345,0.617425922 1.61912392,0.617425922 Z",id:"Shape-Copy-20"}),u.createElement("path",{d:"M1.83745135,2.13685198 C2.08762004,2.13888594 2.31428875,1.98975367 2.4114368,1.75920941 C2.50858486,1.52866515 2.45700749,1.2622842 2.28082919,1.08466199 C2.10465088,0.907039785 1.83869956,0.853289683 1.60736972,0.948552441 C1.37603988,1.0438152 1.22505383,1.26925874 1.22505383,1.51943543 C1.22505383,1.85847446 1.49842318,2.13409557 1.83745135,2.13685198 L1.83745135,2.13685198 Z",id:"Path-Copy-14"}),u.createElement("path",{d:"M5.78998714,3.70455553 L1.6191239,3.70455553 C0.724906454,3.70455553 0,4.39563305 0,5.24812034 C0,6.10060763 0.724906454,6.79168514 1.6191239,6.79168514 L5.78998714,6.79168514 C6.68420459,6.79168514 7.40911107,6.10060764 7.40911107,5.24812034 C7.40911107,4.39563304 6.68420459,3.70455553 5.78998714,3.70455553 L5.78998714,3.70455553 Z M5.78998714,6.17425922 L1.6191239,6.17425922 C1.08259342,6.17425922 0.647649538,5.75961272 0.647649538,5.24812034 C0.647649538,4.73662796 1.08259342,4.32198146 1.6191239,4.32198146 L5.78998714,4.32198146 C6.32651761,4.32198146 6.7614615,4.73662796 6.7614615,5.24812034 C6.7614615,5.75961272 6.32651761,6.17425922 5.78998714,6.17425922 L5.78998714,6.17425922 Z",id:"Shape-Copy-21"}),u.createElement("path",{d:"M5.54392378,4.67774545 C5.2937551,4.6757115 5.06708639,4.82484377 4.96993833,5.05538803 C4.87279028,5.28593228 4.92436765,5.55231324 5.10054595,5.72993544 C5.27672426,5.90755765 5.54267558,5.96130775 5.77400542,5.86604499 C6.00533526,5.77078224 6.15632131,5.5453387 6.15632131,5.295162 C6.15632131,4.95612297 5.88295196,4.68050187 5.54392378,4.67774545 Z",id:"Path-Copy-15"})))),d2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-date",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-22",transform:"translate(4.753763, 4.094719)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M5.84322609,0.649247344 L5.51860242,0.649247344 L5.51860242,0 L4.86935508,0 L4.86935508,0.649247344 L1.62311836,0.649247344 L1.62311836,0 L0.973871015,0 L0.973871015,0.649247344 L0.649247344,0.649247344 C0.292161305,0.649247344 0,0.941408648 0,1.29849469 L0,6.49247344 C0,6.84955947 0.292161305,7.14172078 0.649247344,7.14172078 L5.84322609,7.14172078 C6.20031213,7.14172078 6.49247344,6.84955947 6.49247344,6.49247344 L6.49247344,1.29849469 C6.49247344,0.941408648 6.20031213,0.649247344 5.84322609,0.649247344 Z M5.84322609,6.49247344 L0.649247344,6.49247344 L0.649247344,2.2723657 L5.84322609,2.2723657 L5.84322609,6.49247344 Z",id:"Shape"})))),f2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"},u.createElement("path",{d:"m3 3.5c0-.82843.67157-1.5 1.5-1.5h1c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1c-.27614 0-.5.22386-.5.5v2.88197c0 .43292-.18638.83753-.49993 1.11803.31355.2805.49993.68511.49993 1.11803v2.88197c0 .2761.22386.5.5.5h1c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.82843 0-1.5-.6716-1.5-1.5v-2.88197c0-.18938-.107-.36251-.27639-.44721l-.44722-.22361c-.16939-.08469-.27639-.25782-.27639-.44721s.107-.36252.27639-.44721l.44722-.22361c.16939-.0847.27639-.25783.27639-.44721z"}),u.createElement("path",{d:"m12 3.5c0-.82843-.6716-1.5-1.5-1.5h-1c-.27614 0-.5.22386-.5.5s.22386.5.5.5h1c.2761 0 .5.22386.5.5v2.88197c0 .43292.1864.83753.4999 1.11803-.3135.2805-.4999.68511-.4999 1.11803v2.88197c0 .2761-.2239.5-.5.5h-1c-.27614 0-.5.2239-.5.5s.22386.5.5.5h1c.8284 0 1.5-.6716 1.5-1.5v-2.88197c0-.18938.107-.36251.2764-.44721l.4472-.22361c.1694-.08469.2764-.25782.2764-.44721s-.107-.36252-.2764-.44721l-.4472-.22361c-.1694-.0847-.2764-.25783-.2764-.44721z"}))),m2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),p2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),h2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),g2=e=>u.createElement("svg",{fill:"none",height:110,viewBox:"1 1 12.5 12.5",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m2 5.5c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1.5v1h1.5c.27614 0 .5.22386.5.5v2c0 .27614-.22386.5-.5.5h-2c-.27614 0-.5-.22386-.5-.5s.22386-.5.5-.5h1.5v-1h-1.5c-.27614 0-.5-.22386-.5-.5zm4 0c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5v4.5h.5c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.27614 0-.5-.2239-.5-.5v-.5h-1.5c-.27614 0-.5-.22386-.5-.5zm2 3.5h-1v-3h1zm2.5-4c.2761 0 .5.22386.5.5v3.5h1.5c.2761 0 .5.22386.5.5s-.2239.5-.5.5h-2c-.2761 0-.5-.22386-.5-.5v-4c0-.27614.2239-.5.5-.5z",fill:"currentColor",fillRule:"evenodd"})),y2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{fill:"currentColor"},u.createElement("path",{d:"m4.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),u.createElement("path",{d:"m8.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),u.createElement("path",{d:"m11.5 8.5c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1z"}))),v2=e=>u.createElement("svg",{fill:"none",height:110,viewBox:"3 3 9 9",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{clipRule:"evenodd",d:"m4.74513 11.5809 6.48017-3.64512c.3398-.19115.3398-.68043 0-.87158l-6.48017-3.64507c-.3333-.18749-.74513.05337-.74513.43578v7.29019c0 .3824.41183.6232.74513.4358zm.25487-6.87106v5.58026l4.96027-2.79011z",fill:"currentColor",fillRule:"evenodd"})),b2=e=>u.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),u.createElement("circle",{cx:8,cy:8,r:4,fill:"#FFFFFF"})),w2=e=>u.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),u.createElement("circle",{cx:8,cy:8,r:7,fill:"#FFFFFF"})),x2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"})),C2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),_2=e=>u.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{clipRule:"evenodd",fill:"#151515",fillRule:"evenodd"},u.createElement("path",{d:"m10 7.50001c0 1.38072-1.11928 2.49999-2.49999 2.49999s-2.5-1.11927-2.5-2.49999c0-1.38071 1.11929-2.5 2.5-2.5s2.49999 1.11929 2.49999 2.5zm-.99999 0c0 .82843-.67157 1.5-1.5 1.5-.82842 0-1.5-.67157-1.5-1.5 0-.82842.67158-1.5 1.5-1.5.82843 0 1.5.67158 1.5 1.5z"}),u.createElement("path",{d:"m8.92908 3.05724c-.34403-1.52302-2.5141-1.52302-2.85813 0-.07078.31333-.43034.46227-.70195.29076-1.3202-.83367-2.85467.7008-2.021 2.021.17151.27161.02257.63117-.29076.70195-1.52302.34403-1.52302 2.5141 0 2.85813.31333.07077.46227.43034.29076.70195-.83367 1.32017.7008 2.85467 2.021 2.02097.27161-.1715.63117-.0225.70195.2908.34403 1.523 2.5141 1.523 2.85813 0 .07077-.3133.43034-.4623.70195-.2908 1.32017.8337 2.85467-.7008 2.02097-2.02097-.1715-.27161-.0225-.63118.2908-.70195 1.523-.34403 1.523-2.5141 0-2.85813-.3133-.07078-.4623-.43034-.2908-.70195.8337-1.3202-.7008-2.85467-2.02097-2.021-.27161.17151-.63118.02257-.70195-.29076zm-1.8827.22034c.1092-.48347.79806-.48347.90727 0 .22296.98707 1.35568 1.45625 2.21135.91595.419-.26464.9061.22246.6415.64154-.5403.85562-.0711 1.98834.916 2.21131.4834.1092.4834.79806 0 .90727-.9871.22296-1.4563 1.35568-.916 2.21135.2646.419-.2225.9061-.6415.6415-.85567-.5403-1.98839-.0711-2.21135.916-.10921.4834-.79807.4834-.90727 0-.22297-.9871-1.35569-1.4563-2.21131-.916-.41908.2646-.90618-.2225-.64154-.6415.5403-.85567.07112-1.98839-.91595-2.21135-.48347-.10921-.48347-.79807 0-.90727.98707-.22297 1.45625-1.35569.91595-2.21131-.26464-.41908.22246-.90618.64154-.64154.85562.5403 1.98834.07112 2.21131-.91595z"}))),k2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),S2=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},u.createElement("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240ZM330-120 120-330v-300l210-210h300l210 210v300L630-120H330Zm34-80h232l164-164v-232L596-760H364L200-596v232l164 164Zm116-280Z"})),R2=e=>u.createElement("svg",{height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("g",{fill:"none",stroke:"currentColor"},u.createElement("path",{d:"m17.08 11.15c.01.16.02.32.02.49 0 3.89-3.16 7.05-7.05 7.05-3.89-.01-7.05-3.16-7.05-7.06 0-3.89 3.16-7.05 7.05-7.05.85 0 1.66.15 2.41.42",strokeWidth:1.1}),u.createElement("path",{d:"m9.9 2 2.89 2.89-3 3.01"}))),E2=e=>u.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"none",...e},u.createElement("path",{fill:"currentColor",stroke:"none",d:"m20 24h-16c-2.2 0-4-1.8-4-4v-16c0-2.2 1.8-4 4-4h16c2.2 0 4 1.8 4 4v16c0 2.2-1.8 4-4 4zm-16-22c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-16c0-1.1-.9-2-2-2z"}),u.createElement("path",{fill:"currentColor",d:"m8 24c-.6 0-1-.4-1-1v-22c0-.6.4-1 1-1s1 .4 1 1v22c0 .6-.4 1-1 1z"}),u.createElement("path",{fill:"currentColor",d:"m14 13c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l3-3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-3 3c-.2.2-.4.3-.7.3z"}),u.createElement("path",{fill:"currentColor",d:"m17 16c-.3 0-.5-.1-.7-.3l-3-3c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l3 3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3z"})),j2=e=>u.createElement("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{d:"m11 8h10m-10 0c0 1.65685-1.34315 3-3 3s-3-1.34315-3-3m6 0c0-1.65685-1.34315-3-3-3s-3 1.34315-3 3m0 0h-2m10 8h-10m10 0c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-6 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3m0 0h2",stroke:"currentColor",strokeWidth:1.5})),nf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_bar_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-3",transform:"translate(20.000000, 24.000000)",fill:"currentColor"},u.createElement("g",{id:"Group-2",transform:"translate(34.500000, 31.000000) rotate(-270.000000) translate(-34.500000, -31.000000) translate(3.500000, -3.500000)"},u.createElement("path",{d:"M-26.056314,30.056314 L34.943686,30.056314 C37.152825,30.056314 38.943686,31.847175 38.943686,34.056314 L38.943686,34.943686 C38.943686,37.152825 37.152825,38.943686 34.943686,38.943686 L-26.056314,38.943686 C-28.265453,38.943686 -30.056314,37.152825 -30.056314,34.943686 L-30.056314,34.056314 C-30.056314,31.847175 -28.265453,30.056314 -26.056314,30.056314 Z",id:"Rectangle-Copy-59",transform:"translate(4.443686, 34.500000) rotate(-90.000000) translate(-4.443686, -34.500000) "}),u.createElement("path",{d:"M-0.491247385,37.8466366 L44.9281075,37.8466366 C47.1372465,37.8466366 48.9281075,39.6374976 48.9281075,41.8466366 L48.9281075,42.7340086 C48.9281075,44.9431476 47.1372465,46.7340086 44.9281075,46.7340086 L-0.491247385,46.7340086 C-2.70038638,46.7340086 -4.49124739,44.9431476 -4.49124739,42.7340086 L-4.49124739,41.8466366 C-4.49124739,39.6374976 -2.70038638,37.8466366 -0.491247385,37.8466366 Z",id:"Rectangle-Copy-62",transform:"translate(22.218430, 42.290323) rotate(-90.000000) translate(-22.218430, -42.290323) "}),u.createElement("path",{d:"M23.3837854,43.9469253 L56.6025627,43.9469253 C58.8117017,43.9469253 60.6025627,45.7377863 60.6025627,47.9469253 L60.6025627,48.8342973 C60.6025627,51.0434363 58.8117017,52.8342973 56.6025627,52.8342973 L23.3837854,52.8342973 C21.1746464,52.8342973 19.3837854,51.0434363 19.3837854,48.8342973 L19.3837854,47.9469253 C19.3837854,45.7377863 21.1746464,43.9469253 23.3837854,43.9469253 Z",id:"Rectangle-Copy-66",transform:"translate(39.993174, 48.390611) rotate(-90.000000) translate(-39.993174, -48.390611) "}),u.createElement("path",{d:"M46.7286345,49.7286345 L68.8072017,49.7286345 C71.0163407,49.7286345 72.8072017,51.5194955 72.8072017,53.7286345 L72.8072017,54.1927983 C72.8072017,56.4019373 71.0163407,58.1927983 68.8072017,58.1927983 L46.7286345,58.1927983 C44.5194955,58.1927983 42.7286345,56.4019373 42.7286345,54.1927983 L42.7286345,53.7286345 C42.7286345,51.5194955 44.5194955,49.7286345 46.7286345,49.7286345 Z",id:"Rectangle-Copy-67",transform:"translate(57.767918, 53.960716) rotate(-90.000000) translate(-57.767918, -53.960716) "}))))),T2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_boolean",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"noun_switch_3350414-2",transform:"translate(20.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"noun_switch_3350414"},u.createElement("path",{d:"M15.2972028,30.8 L54.7027972,30.8 C63.151209,30.8 70,23.9051851 70,15.4 C70,6.89481485 63.151209,0 54.7027972,0 L15.2972028,0 C6.84879098,0 0,6.89481485 0,15.4 C0,23.9051851 6.84879098,30.8 15.2972028,30.8 Z M15.2972028,6.16 L54.7027972,6.16 C59.7718443,6.16 63.8811189,10.2968889 63.8811189,15.4 C63.8811189,20.5031111 59.7718443,24.64 54.7027972,24.64 L15.2972028,24.64 C10.2281557,24.64 6.11888112,20.5031111 6.11888112,15.4 C6.11888112,10.2968889 10.2281557,6.16 15.2972028,6.16 Z",id:"Shape"}),u.createElement("path",{d:"M19.6340542,21.9997804 C22.2930484,22.0215224 24.7022661,20.4273668 25.7348338,17.9629544 C26.7674016,15.4985421 26.2191958,12.6510518 24.3466309,10.7523518 C22.474066,8.85365189 19.6473211,8.27908795 17.1885612,9.29740315 C14.7298014,10.3157183 13.125,12.7256064 13.125,15.3998806 C13.125,19.0240523 16.0305897,21.9703156 19.6340542,21.9997804 L19.6340542,21.9997804 Z",id:"Path"}),u.createElement("path",{d:"M54.7027971,35.2 L15.2972025,35.2 C6.84879081,35.2 0,42.094815 0,50.6 C0,59.105185 6.84879081,66 15.2972025,66 L54.7027971,66 C63.151209,66 70,59.1051851 70,50.6 C70,42.0948149 63.151209,35.2 54.7027971,35.2 L54.7027971,35.2 Z M54.7027971,59.84 L15.2972025,59.84 C10.2281554,59.84 6.11888082,55.7031111 6.11888082,50.6 C6.11888082,45.4968889 10.2281554,41.36 15.2972025,41.36 L54.7027971,41.36 C59.7718442,41.36 63.8811189,45.4968889 63.8811189,50.6 C63.8811189,55.7031111 59.7718442,59.84 54.7027971,59.84 L54.7027971,59.84 Z",id:"Shape"}),u.createElement("path",{d:"M50.3659458,44.0002196 C47.7069516,43.9784776 45.2977339,45.5726332 44.2651662,48.0370456 C43.2325984,50.5014579 43.7808042,53.3489482 45.6533691,55.2476482 C47.525934,57.1463481 50.3526789,57.720912 52.8114388,56.7025969 C55.2701986,55.6842817 56.875,53.2743936 56.875,50.6001194 C56.875,46.9759477 53.9694103,44.0296844 50.3659458,44.0002196 Z",id:"Path"}))))),L2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_column_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(23.500000, 19.500000)",fill:"currentColor"},u.createElement("path",{d:"M-26.5,30.5 L35.5,30.5 C37.709139,30.5 39.5,32.290861 39.5,34.5 L39.5,35.5 C39.5,37.709139 37.709139,39.5 35.5,39.5 L-26.5,39.5 C-28.709139,39.5 -30.5,37.709139 -30.5,35.5 L-30.5,34.5 C-30.5,32.290861 -28.709139,30.5 -26.5,30.5 Z",id:"Rectangle-Copy-59",transform:"translate(4.500000, 35.000000) rotate(-90.000000) translate(-4.500000, -35.000000) "}),u.createElement("path",{d:"M-0.5,38.5 L45.5,38.5 C47.709139,38.5 49.5,40.290861 49.5,42.5 L49.5,43.5 C49.5,45.709139 47.709139,47.5 45.5,47.5 L-0.5,47.5 C-2.709139,47.5 -4.5,45.709139 -4.5,43.5 L-4.5,42.5 C-4.5,40.290861 -2.709139,38.5 -0.5,38.5 Z",id:"Rectangle-Copy-62",transform:"translate(22.500000, 43.000000) rotate(-90.000000) translate(-22.500000, -43.000000) "}),u.createElement("path",{d:"M23.5,45.5 L57.5,45.5 C59.709139,45.5 61.5,47.290861 61.5,49.5 L61.5,50.5 C61.5,52.709139 59.709139,54.5 57.5,54.5 L23.5,54.5 C21.290861,54.5 19.5,52.709139 19.5,50.5 L19.5,49.5 C19.5,47.290861 21.290861,45.5 23.5,45.5 Z",id:"Rectangle-Copy-66",transform:"translate(40.500000, 50.000000) rotate(-90.000000) translate(-40.500000, -50.000000) "}),u.createElement("path",{d:"M47.5,50.5 L70.5,50.5 C72.709139,50.5 74.5,52.290861 74.5,54.5 L74.5,55.5 C74.5,57.709139 72.709139,59.5 70.5,59.5 L47.5,59.5 C45.290861,59.5 43.5,57.709139 43.5,55.5 L43.5,54.5 C43.5,52.290861 45.290861,50.5 47.5,50.5 Z",id:"Rectangle-Copy-67",transform:"translate(59.000000, 55.000000) rotate(-90.000000) translate(-59.000000, -55.000000) "})))),M2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_currency",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(19.000000, 19.000000)"},u.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:36,cy:36,r:32.5}),u.createElement("path",{d:"M35.7525,20.06 C38.5425,20.06 40.7775,20.7425 42.4575,22.1075 C44.1375,23.4725 45.2775,25.01 45.8775,26.72 L41.4225,28.61 C41.1225,27.53 40.4925,26.6 39.5325,25.82 C38.5725,25.04 37.3275,24.65 35.7975,24.65 C34.3275,24.65 33.0825,25.04 32.0625,25.82 C31.0425,26.6 30.5325,27.59 30.5325,28.79 C30.5325,29.9 30.99,30.8225 31.905,31.5575 C32.759,32.2435 34.0507333,32.8968333 35.7802,33.5175 L38.2275,34.37 C40.9875,35.33 43.1175,36.575 44.6175,38.105 C46.1175,39.635 46.8675,41.675 46.8675,44.225 C46.8675,46.325 46.335,48.0875 45.27,49.5125 C44.205,50.9375 42.84,51.995 41.175,52.685 C39.51,53.375 37.8075,53.72 36.0675,53.72 C33.3975,53.72 30.9975,52.94 28.8675,51.38 C26.7375,49.82 25.2525,47.63 24.4125,44.81 L29.0925,42.92 C29.5725,44.72 30.4275,46.19 31.6575,47.33 C32.8875,48.47 34.3725,49.04 36.1125,49.04 C37.7325,49.04 39.105,48.62 40.23,47.78 C41.355,46.94 41.9175,45.785 41.9175,44.315 C41.9175,42.965 41.4225,41.8475 40.4325,40.9625 C39.4975,40.1266667 37.9202778,39.3109028 35.7008333,38.5152083 L33.2775,37.655 C31.0875,36.875 29.265,35.7875 27.81,34.3925 C26.355,32.9975 25.6275,31.145 25.6275,28.835 C25.6275,27.245 26.055,25.775 26.91,24.425 C27.765,23.075 28.965,22.01 30.51,21.23 C32.055,20.45 33.8025,20.06 35.7525,20.06 Z",id:"Path",fill:"currentColor",fillRule:"nonzero"}),u.createElement("line",{x1:36,y1:14,x2:36,y2:21,id:"Line-Copy-4",stroke:"currentColor",strokeWidth:5}),u.createElement("line",{x1:36,y1:52,x2:36,y2:59,id:"Line-Copy-5",stroke:"currentColor",strokeWidth:5})),u.createElement("g",{id:"S",transform:"translate(43.412500, 37.060000)"}))),A2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_dashboard",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"dashboard_black_24dp",transform:"translate(13.000000, 13.000000)"},u.createElement("path",{d:"M5,0 L80,0 C82.7614237,-5.07265313e-16 85,2.23857625 85,5 L85,80 C85,82.7614237 82.7614237,85 80,85 L5,85 C2.23857625,85 3.38176876e-16,82.7614237 0,80 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),u.createElement("path",{d:"M67,18 L67,25 L53,25 L53,18 L67,18 M32,18 L32,39 L18,39 L18,18 L32,18 M67,46 L67,67 L53,67 L53,46 L67,46 M32,60 L32,67 L18,67 L18,60 L32,60 M69,11 L51,11 C48.2385763,11 46,13.2385763 46,16 L46,27 C46,29.7614237 48.2385763,32 51,32 L69,32 C71.7614237,32 74,29.7614237 74,27 L74,16 C74,13.2385763 71.7614237,11 69,11 Z M34,11 L16,11 C13.2385763,11 11,13.2385763 11,16 L11,41 C11,43.7614237 13.2385763,46 16,46 L34,46 C36.7614237,46 39,43.7614237 39,41 L39,16 C39,13.2385763 36.7614237,11 34,11 Z M69,39 L51,39 C48.2385763,39 46,41.2385763 46,44 L46,69 C46,71.7614237 48.2385763,74 51,74 L69,74 C71.7614237,74 74,71.7614237 74,69 L74,44 C74,41.2385763 71.7614237,39 69,39 Z M34,53 L16,53 C13.2385763,53 11,55.2385763 11,58 L11,69 C11,71.7614237 13.2385763,74 16,74 L34,74 C36.7614237,74 39,71.7614237 39,69 L39,58 C39,55.2385763 36.7614237,53 34,53 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),I2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_image",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M81.4444444,28.5555556 L81.4444444,81.4444444 L28.5555556,81.4444444 L28.5555556,28.5555556 L81.4444444,28.5555556 M81.4444444,21 L28.5555556,21 C24.4,21 21,24.4 21,28.5555556 L21,81.4444444 C21,85.6 24.4,89 28.5555556,89 L81.4444444,89 C85.6,89 89,85.6 89,81.4444444 L89,28.5555556 C89,24.4 85.6,21 81.4444444,21 Z M63.0844444,54.4711111 L51.7511111,69.0911111 L43.6666667,59.3066667 L32.3333333,73.8888889 L77.6666667,73.8888889 L63.0844444,54.4711111 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),D2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_json",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"{;}",transform:"translate(24.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M17.0296296,66 C13.2765432,66 10.3209877,64.871179 8.16296296,62.6135371 C6.00493827,60.3558952 4.92592593,57.3296943 4.92592593,53.5349345 L4.92592593,41.6462882 C4.92592593,39.9170306 4.45679012,38.5840611 3.51851852,37.6473799 C2.58024691,36.7106987 1.40740741,36.2423581 0,36.2423581 L0,29.7576419 C1.40740741,29.7576419 2.58024691,29.2893013 3.51851852,28.3526201 C4.45679012,27.4159389 4.92592593,26.0829694 4.92592593,24.3537118 L4.92592593,12.4650655 C4.92592593,8.67030568 6.00493827,5.6441048 8.16296296,3.38646288 C10.3209877,1.12882096 13.2765432,0 17.0296296,0 L19,0 L19,6.41266376 L17.7333333,6.41266376 C16.091358,6.41266376 14.7425926,6.98908297 13.687037,8.1419214 C12.6314815,9.29475983 12.1037037,10.8318777 12.1037037,12.7532751 L12.1037037,24.3537118 C12.1037037,26.7074236 11.7166667,28.5687773 10.9425926,29.9377729 C10.1685185,31.3067686 8.93703704,32.2554585 7.24814815,32.7838428 L7.24814815,33.2161572 C8.93703704,33.7445415 10.1685185,34.6812227 10.9425926,36.0262009 C11.7166667,37.371179 12.1037037,39.2445415 12.1037037,41.6462882 L12.1037037,53.2467249 C12.1037037,55.1681223 12.6314815,56.7052402 13.687037,57.8580786 C14.7425926,59.010917 16.091358,59.5873362 17.7333333,59.5873362 L19,59.5873362 L19,66 L17.0296296,66 Z",id:"Path"}),u.createElement("path",{d:"M44,59.5873362 L45.4074074,59.5873362 C47.0493827,59.5873362 48.3864198,59.010917 49.4185185,57.8580786 C50.4506173,56.7052402 50.9666667,55.1681223 50.9666667,53.2467249 L50.9666667,41.6462882 C50.9666667,39.2445415 51.3537037,37.371179 52.1277778,36.0262009 C52.9018519,34.6812227 54.1333333,33.7445415 55.8222222,33.2161572 L55.8222222,32.7838428 C54.1333333,32.2554585 52.9018519,31.3067686 52.1277778,29.9377729 C51.3537037,28.5687773 50.9666667,26.7074236 50.9666667,24.3537118 L50.9666667,12.7532751 C50.9666667,10.8318777 50.4506173,9.29475983 49.4185185,8.1419214 C48.3864198,6.98908297 47.0493827,6.41266376 45.4074074,6.41266376 L44,6.41266376 L44,0 L46.0407407,0 C49.7938272,0 52.7493827,1.12882096 54.9074074,3.38646288 C57.0654321,5.6441048 58.1444444,8.67030568 58.1444444,12.4650655 L58.1444444,24.3537118 C58.1444444,26.0829694 58.6018519,27.4159389 59.5166667,28.3526201 C60.4314815,29.2893013 61.5925926,29.7576419 63,29.7576419 L63,36.2423581 C61.5925926,36.2423581 60.4314815,36.7106987 59.5166667,37.6473799 C58.6018519,38.5840611 58.1444444,39.9170306 58.1444444,41.6462882 L58.1444444,53.5349345 C58.1444444,57.3296943 57.0654321,60.3558952 54.9074074,62.6135371 C52.7493827,64.871179 49.7938272,66 46.0407407,66 L44,66 L44,59.5873362 Z",id:"Path"})))),rl=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_line",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M88.1848681,33.1583406 C89.7542734,31.6035859 92.2869054,31.6154626 93.8416601,33.1848679 C95.3445896,34.7019597 95.3835892,37.1191334 93.9668812,38.6829968 L93.8151328,38.84166 L66.2578818,66.14166 C64.8378618,67.5484238 62.6084032,67.6843587 61.0319068,66.4919462 L60.8595019,66.3539866 L45.2420004,53.1430003 L21.844917,76.8176775 C20.3437446,78.336508 17.927116,78.4009733 16.3484126,77.0008213 L16.1881594,76.850753 C14.6693289,75.3495806 14.6048635,72.932952 16.0050156,71.3542486 L16.1550839,71.1939954 L42.1550839,44.8881592 C43.5729843,43.4535802 45.8262314,43.3057778 47.4155704,44.5116324 L47.583248,44.646014 L63.2290004,57.8810003 L88.1848681,33.1583406 Z",id:"Path-10",fill:"currentColor",fillRule:"nonzero"}))),rf=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_link",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"link_black_24dp",transform:"translate(5.000000, 5.000000)"},u.createElement("path",{d:"M5,0 L96,0 C98.7614237,-5.07265313e-16 101,2.23857625 101,5 L101,96 C101,98.7614237 98.7614237,101 96,101 L5,101 C2.23857625,101 3.38176876e-16,98.7614237 0,96 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),u.createElement("path",{d:"M71,30 L58.4,30 C56.0804041,30 54.2,31.8804041 54.2,34.2 C54.2,36.5195959 56.0804041,38.4 58.4,38.4 L71,38.4 L71,38.4 C77.93,38.4 83.6,44.07 83.6,51 C83.6,57.93 77.93,63.6 71,63.6 L58.4,63.6 C56.0804041,63.6 54.2,65.4804041 54.2,67.8 C54.2,70.1195959 56.0804041,72 58.4,72 L71,72 L71,72 C82.592,72 92,62.592 92,51 C92,39.408 82.592,30 71,30 Z M41.6,63.6 L29,63.6 L29,63.6 C22.07,63.6 16.4,57.93 16.4,51 C16.4,44.07 22.07,38.4 29,38.4 L41.6,38.4 C43.9195959,38.4 45.8,36.5195959 45.8,34.2 C45.8,31.8804041 43.9195959,30 41.6,30 L29,30 L29,30 C17.408,30 8,39.408 8,51 C8,62.592 17.408,72 29,72 L41.6,72 C43.9195959,72 45.8,70.1195959 45.8,67.8 C45.8,65.4804041 43.9195959,63.6 41.6,63.6 Z M37.4,46.8 L62.6,46.8 C64.9195959,46.8 66.8,48.6804041 66.8,51 C66.8,53.3195959 64.9195959,55.2 62.6,55.2 L37.4,55.2 C35.0804041,55.2 33.2,53.3195959 33.2,51 C33.2,48.6804041 35.0804041,46.8 37.4,46.8 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),P2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_list",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:24.1587742,y:27,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:24.1587742,y:43,width:61.9377906,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:24.1587742,y:59,width:62,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:24.1587742,y:75.1904762,width:62,height:7.61904762,rx:3.80952381}))),N2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_list_detail",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:22.1587742,y:27,width:15.983946,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-59",fill:"currentColor",x:44.1587742,y:27,width:43.9558514,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:22.1587742,y:43,width:15.983946,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-62",fill:"currentColor",x:44.1587742,y:43,width:43.9558514,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:22.1587742,y:59,width:16,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-66",fill:"currentColor",x:44.1587742,y:59,width:44,height:8,rx:4}),u.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:22.1587742,y:75.1904762,width:16,height:7.61904762,rx:3.80952381}),u.createElement("rect",{id:"Rectangle-Copy-67",fill:"currentColor",x:44.1587742,y:75.1904762,width:44,height:7.61904762,rx:3.80952381}))),O2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_points",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-36",transform:"translate(30.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M25,0 C11.1785714,0 0,11.268 0,25.2 C0,44.1 25,72 25,72 C25,72 50,44.1 50,25.2 C50,11.268 38.8214286,0 25,0 Z M7.14285714,25.2 C7.14285714,15.264 15.1428571,7.2 25,7.2 C34.8571429,7.2 42.8571429,15.264 42.8571429,25.2 C42.8571429,35.568 32.5714286,51.084 25,60.768 C17.5714286,51.156 7.14285714,35.46 7.14285714,25.2 Z",id:"Shape"}),u.createElement("path",{d:"M25,34 C29.97052,34 34,29.97052 34,25 C34,20.029444 29.97052,16 25,16 C20.02948,16 16,20.029444 16,25 C16,29.97052 20.02948,34 25,34 Z",id:"Path"})))),$2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_segment",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-36",transform:"translate(11.000000, 27.000000)",fillRule:"nonzero"},u.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),u.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),u.createElement("g",{id:"Group-Copy-37",transform:"translate(62.000000, 27.000000)",fillRule:"nonzero"},u.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),u.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),u.createElement("line",{x1:28.5,y1:81.5,x2:79.5,y2:81.5,id:"Line-3",stroke:"currentColor",strokeWidth:5,strokeLinecap:"round",strokeDasharray:"5,10"}))),z2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_map_shape",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"noun-world-4667432-2",transform:"translate(19.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("g",{id:"noun-world-4667432"},u.createElement("path",{d:"M36,5 C18.8798665,5 5,18.8793071 5,36 C5,53.1206929 18.8793071,67 36,67 C53.1206929,67 67,53.1206929 67,36 C67,18.8793071 53.1206929,5 36,5 Z M0,36 C0,16.1177143 16.1177143,0 36,0 C55.8822857,0 72,16.1177143 72,36 C72,55.8822857 55.8822857,72 36,72 C16.1177143,72 0,55.8822857 0,36 Z",id:"Shape"}),u.createElement("path",{d:"M37.2848685,1.50131372 C37.8999474,1.48477633 38.4631152,1.71654937 38.8767996,2.10376364 C39.2928262,2.49317029 39.5578301,3.03960333 39.57434,3.65023916 L39.57434,3.65023916 L40.0344656,20.7428771 C40.0487121,21.2893502 39.8586306,21.8212062 39.4992535,22.2375953 L39.4992535,22.2375953 L32.1172188,30.7832284 C31.7924232,31.1592888 31.3490374,31.4169308 30.8586892,31.5134813 L30.8586892,31.5134813 L24.6865498,32.7324332 L28.0628423,42.7359018 C28.4533111,43.8925701 28.4513039,45.0197005 28.1633304,46.0321806 C27.8503264,47.132665 27.1975708,48.0987342 26.3338575,48.8190181 C25.4716664,49.5380326 24.3999821,50.0114808 23.2508211,50.1317463 C22.1949716,50.2422462 21.0728206,50.0558305 19.9867908,49.4837618 L19.9867908,49.4837618 L1.68382097,39.8433672 C1.13885361,39.5565384 0.764084629,39.078393 0.597525292,38.5380041 C0.430427538,37.9958684 0.472619244,37.3906551 0.763987861,36.8508084 C1.05393693,36.3139129 1.53648052,35.9433066 2.08313472,35.7791188 C2.62798313,35.6154734 3.2361363,35.657153 3.77860632,35.9426925 L3.77860632,35.9426925 L22.0816454,45.5831236 C22.3171919,45.7071442 22.5603781,45.7498863 22.7897862,45.7258621 C23.0398735,45.6996723 23.2725259,45.5956093 23.4599703,45.4392842 C23.6458558,45.2842591 23.7880139,45.0772117 23.8554593,44.8399997 C23.9169381,44.6237728 23.9147045,44.383346 23.8314444,44.1367864 L23.8314444,44.1367864 L19.6527943,31.7569079 C19.4493668,31.1542234 19.517516,30.4944328 19.8403231,29.9450638 C20.1614725,29.3985413 20.7046793,29.014044 21.3323155,28.8900909 L21.3323155,28.8900909 L29.2286003,27.3302661 L35.5513871,20.0108413 L35.1144494,3.7686887 C35.0979491,3.15801867 35.3331708,2.59836837 35.7276711,2.18746751 C36.1199426,1.77888802 36.6699139,1.51752889 37.2848685,1.50131372 Z",id:"Path",stroke:"currentColor"}),u.createElement("path",{d:"M42.2538467,56.3169014 C42.834665,56.3169014 43.3919278,56.5473051 43.8025756,56.957964 L43.8025756,56.957964 L50.5634819,63.7190531 C50.990585,64.1465338 51.2042254,64.7070592 51.2042254,65.267637 C51.2042254,65.8282064 50.9905908,66.3887389 50.5631792,66.8165562 C50.1353619,67.244019 49.5748515,67.4577465 49.0143336,67.4577465 C48.453827,67.4577465 47.893307,67.2440267 47.4652769,66.8163886 L47.4652769,66.8163886 L41.3467145,60.697095 L29.639469,60.697095 L23.5207389,66.8165562 C23.0929158,67.2440249 22.5323953,67.4577465 21.9719658,67.4577465 C21.4114352,67.4577465 20.8509999,67.2439558 20.4235838,66.8165562 C19.995665,66.388992 19.7816901,65.8283383 19.7816901,65.2676696 C19.7816901,64.7070094 19.9956592,64.1463486 20.4234173,63.7189168 L20.4234173,63.7189168 L27.1839229,56.9576493 C27.5952192,56.5470739 28.1516855,56.3169014 28.7323368,56.3169014 L28.7323368,56.3169014 Z",id:"Path",stroke:"currentColor"}),u.createElement("path",{d:"M63.9378166,21.2379048 C64.4225216,20.8714311 65.0086399,20.7379975 65.5642349,20.8181856 C66.1191803,20.8982799 66.6440521,21.191578 67.006552,21.6798365 C67.3682973,22.1662502 67.5006358,22.75458 67.4216695,23.3126471 C67.3426278,23.8712474 67.0519787,24.3991735 66.5692317,24.7645164 L66.5692317,24.7645164 L53.5947929,34.5837331 L50.8571888,42.8725775 L63.4236834,55.5534973 C63.8498746,55.9835692 64.0634024,56.5474048 64.0634024,57.111468 C64.0634024,57.6755228 63.8498803,58.2393656 63.4235328,58.6696236 C62.9952729,59.1014133 62.434079,59.3169014 61.8731786,59.3169014 C61.3121772,59.3169014 60.7510686,59.1013441 60.3230649,58.6694716 L60.3230649,58.6694716 L46.8022881,45.0255804 C46.5094233,44.730049 46.31189,44.3642735 46.2203738,43.9732706 C46.1289585,43.5826987 46.1433461,43.1669732 46.2741073,42.7711741 L46.2741073,42.7711741 L49.6544877,32.5388634 C49.7943202,32.1133276 50.0607882,31.7409505 50.416846,31.4711161 L50.416846,31.4711161 Z",id:"Path",stroke:"currentColor"}))))),of=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group",transform:"translate(20.000000, 20.000000)",fill:"currentColor"},u.createElement("path",{d:"M-10.5,30.5 L51.5,30.5 C53.709139,30.5 55.5,32.290861 55.5,34.5 L55.5,35.5 C55.5,37.709139 53.709139,39.5 51.5,39.5 L-10.5,39.5 C-12.709139,39.5 -14.5,37.709139 -14.5,35.5 L-14.5,34.5 C-14.5,32.290861 -12.709139,30.5 -10.5,30.5 Z",id:"Rectangle-Copy-60",transform:"translate(20.500000, 35.000000) rotate(-90.000000) translate(-20.500000, -35.000000) "}),u.createElement("path",{d:"M19.5,30.5 L81.5,30.5 C83.709139,30.5 85.5,32.290861 85.5,34.5 L85.5,35.5 C85.5,37.709139 83.709139,39.5 81.5,39.5 L19.5,39.5 C17.290861,39.5 15.5,37.709139 15.5,35.5 L15.5,34.5 C15.5,32.290861 17.290861,30.5 19.5,30.5 Z",id:"Rectangle-Copy-61",transform:"translate(50.500000, 35.000000) rotate(-90.000000) translate(-50.500000, -35.000000) "}),u.createElement("path",{d:"M4,14 L66,14 C68.209139,14 70,15.790861 70,18 L70,19 C70,21.209139 68.209139,23 66,23 L4,23 C1.790861,23 2.705415e-16,21.209139 0,19 L0,18 C-2.705415e-16,15.790861 1.790861,14 4,14 Z",id:"Rectangle-Copy-63",transform:"translate(35.000000, 18.500000) rotate(-360.000000) translate(-35.000000, -18.500000) "}),u.createElement("path",{d:"M4,44 L66,44 C68.209139,44 70,45.790861 70,48 L70,49 C70,51.209139 68.209139,53 66,53 L4,53 C1.790861,53 2.705415e-16,51.209139 0,49 L0,48 C-2.705415e-16,45.790861 1.790861,44 4,44 Z",id:"Rectangle-Copy-62",transform:"translate(35.000000, 48.500000) rotate(-360.000000) translate(-35.000000, -48.500000) "})))),F2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_percent",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"%-copy-5",transform:"translate(19.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M16.1194226,31.5251397 C19.1010499,31.5251397 21.8186789,30.8184358 24.2723097,29.4050279 C26.7259405,27.9916201 28.6671041,26.0712291 30.0958005,23.6438547 C31.5244969,21.2164804 32.2388451,18.5893855 32.2388451,15.7625698 C32.2388451,12.9357542 31.5244969,10.3086592 30.0958005,7.88128492 C28.6671041,5.45391061 26.7259405,3.53351955 24.2723097,2.12011173 C21.8186789,0.706703911 19.1010499,0 16.1194226,0 C13.1377953,0 10.4201662,0.706703911 7.96653543,2.12011173 C5.51290464,3.53351955 3.57174103,5.45391061 2.14304462,7.88128492 C0.714348206,10.3086592 0,12.9357542 0,15.7625698 C0,18.5893855 0.714348206,21.2164804 2.14304462,23.6438547 C3.57174103,26.0712291 5.51290464,27.9916201 7.96653543,29.4050279 C10.4201662,30.8184358 13.1377953,31.5251397 16.1194226,31.5251397 Z M19.9645575,62.4787112 L57.1929452,7.56550735 C58.3200259,5.90302296 57.8859954,3.64163362 56.223511,2.5145529 C56.2107419,2.50589603 56.1979177,2.49732049 56.1850394,2.48882682 C54.4804105,1.3645685 52.1887314,1.81914062 51.0422905,3.50893047 L13.7228276,58.5157377 C12.6107181,60.1549252 13.0379992,62.3852921 14.6771866,63.4974016 C14.7072768,63.5178164 14.7376757,63.5377723 14.7683727,63.5572626 C16.507245,64.6613129 18.8087263,64.1836036 19.9645575,62.4787112 Z M16.1194226,24.150838 C13.8832021,24.150838 12.0041557,23.3519553 10.4822835,21.7541899 C8.9604112,20.1564246 8.19947507,18.1592179 8.19947507,15.7625698 C8.19947507,13.3044693 8.9604112,11.2918994 10.4822835,9.72486034 C12.0041557,8.15782123 13.8832021,7.37430168 16.1194226,7.37430168 C18.4177603,7.37430168 20.3278653,8.15782123 21.8497375,9.72486034 C23.3716098,11.2918994 24.1325459,13.3044693 24.1325459,15.7625698 C24.1325459,18.2206704 23.3716098,20.2332402 21.8497375,21.8002793 C20.3278653,23.3673184 18.4177603,24.150838 16.1194226,24.150838 Z M54.8805774,66 C57.8622047,66 60.5798338,65.2932961 63.0334646,63.8798883 C65.4870954,62.4664804 67.428259,60.5460894 68.8569554,58.1187151 C70.2856518,55.6913408 71,53.0642458 71,50.2374302 C71,47.4106145 70.2856518,44.7835196 68.8569554,42.3561453 C67.428259,39.9287709 65.4870954,38.0083799 63.0334646,36.5949721 C60.5798338,35.1815642 57.8622047,34.4748603 54.8805774,34.4748603 C51.8989501,34.4748603 49.1813211,35.1815642 46.7276903,36.5949721 C44.2740595,38.0083799 42.3328959,39.9287709 40.9041995,42.3561453 C39.4755031,44.7835196 38.7611549,47.4106145 38.7611549,50.2374302 C38.7611549,53.0642458 39.4755031,55.6913408 40.9041995,58.1187151 C42.3328959,60.5460894 44.2740595,62.4664804 46.7276903,63.8798883 C49.1813211,65.2932961 51.8989501,66 54.8805774,66 Z M54.8805774,58.6256983 C52.644357,58.6256983 50.7653106,57.8268156 49.2434383,56.2290503 C47.7215661,54.6312849 46.9606299,52.6340782 46.9606299,50.2374302 C46.9606299,47.7793296 47.7215661,45.7667598 49.2434383,44.1997207 C50.7653106,42.6326816 52.644357,41.849162 54.8805774,41.849162 C57.1789151,41.849162 59.0890201,42.6326816 60.6108924,44.1997207 C62.1327647,45.7667598 62.8937008,47.7793296 62.8937008,50.2374302 C62.8937008,52.6340782 62.1172353,54.6312849 60.5643045,56.2290503 C59.0113736,57.8268156 57.1167979,58.6256983 54.8805774,58.6256983 Z",id:"%-copy-2"})))),B2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_scatter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M29.1340462,83.93 C36.5885775,83.93 42.6340462,77.8857969 42.6340462,70.43 C42.6340462,62.9742031 36.5885775,56.93 29.1340462,56.93 C21.679515,56.93 15.6340462,62.9742031 15.6340462,70.43 C15.6340462,77.8857969 21.679515,83.93 29.1340462,83.93 Z",id:"Path-Copy-3",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}),u.createElement("path",{d:"M68.2840462,92.63 C73.6709212,92.63 78.0340462,88.264925 78.0340462,82.88 C78.0340462,77.495075 73.6709212,73.13 68.2840462,73.13 C62.8971712,73.13 58.5340462,77.495075 58.5340462,82.88 C58.5340462,88.264925 62.8971712,92.63 68.2840462,92.63 Z",id:"Path-Copy-2",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero",transform:"translate(68.284046, 82.880000) rotate(-360.000000) translate(-68.284046, -82.880000) "}),u.createElement("path",{d:"M67.8242963,57.43 C78.8701296,57.43 87.8242963,48.4758333 87.8242963,37.43 C87.8242963,26.3842917 78.8701296,17.43 67.8242963,17.43 C56.7784629,17.43 47.8242963,26.3842917 47.8242963,37.43 C47.8242963,48.4758333 56.7784629,57.43 67.8242963,57.43 Z",id:"Path-Copy",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}))),q2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 110 110",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_sparkline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},u.createElement("polyline",{id:"Path-11",stroke:"#9aa0a6",strokeWidth:6,points:"10 54.8274509 25.9215088 61.0844803 40.1501567 54.8274509 53.3907166 68.7215958 69.5925598 42 83.3327332 64.4487228 100.431152 57.8274509"}))),W2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_table",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M81.0526316,23 L28.9473684,23 C25.1263158,23 22,26.1662162 22,30.036036 L22,79.2882883 C22,83.1581081 25.1263158,86.3243243 28.9473684,86.3243243 L81.0526316,86.3243243 C84.8736842,86.3243243 88,83.1581081 88,79.2882883 L88,30.036036 C88,26.1662162 84.8736842,23 81.0526316,23 Z M80.8648649,30.1351351 L80.8648649,40.8378378 L28.2432432,40.8378378 L28.2432432,30.1351351 L80.8648649,30.1351351 Z M63.9189189,79.1891892 L46.0810811,79.1891892 L46.0810811,47.972973 L63.9189189,47.972973 L63.9189189,79.1891892 Z M28.2432432,47.972973 L38.9459459,47.972973 L38.9459459,79.1891892 L28.2432432,79.1891892 L28.2432432,47.972973 Z M71.0540541,79.1891892 L71.0540541,47.972973 L81.7567568,47.972973 L81.7567568,79.1891892 L71.0540541,79.1891892 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),G2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_text",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("rect",{id:"Rectangle-Copy",stroke:"currentColor",strokeWidth:6,x:15.5,y:35,width:79,height:40,rx:5}),u.createElement("g",{id:"abc",transform:"translate(33.090000, 44.134000)",fill:"currentColor",fillRule:"nonzero"},u.createElement("path",{d:"M4.81,19.032 C3.406,19.032 2.25333333,18.6203333 1.352,17.797 C0.450666667,16.9736667 0,15.8946667 0,14.56 C0,13.676 0.234,12.896 0.702,12.22 C1.17,11.544 1.81133333,11.024 2.626,10.66 C3.44066667,10.296 4.342,10.114 5.33,10.114 C6.69933333,10.114 7.86933333,10.3133333 8.84,10.712 L8.84,10.14 C8.84,9.412 8.567,8.82266667 8.021,8.372 C7.475,7.92133333 6.74266667,7.696 5.824,7.696 C5.2,7.696 4.59766667,7.839 4.017,8.125 C3.43633333,8.411 2.95533333,8.788 2.574,9.256 L0.39,7.54 C1.03133333,6.708 1.83733333,6.06666667 2.808,5.616 C3.77866667,5.16533333 4.836,4.94 5.98,4.94 C8.008,4.94 9.55066667,5.408 10.608,6.344 C11.6653333,7.28 12.194,8.64933333 12.194,10.452 L12.194,18.616 L8.84,18.616 L8.84,17.264 L8.632,17.264 C8.23333333,17.784 7.709,18.2086667 7.059,18.538 C6.409,18.8673333 5.65933333,19.032 4.81,19.032 Z M5.616,16.38 C6.604,16.38 7.38833333,16.0636667 7.969,15.431 C8.54966667,14.7983333 8.84,14.0573333 8.84,13.208 C7.956,12.792 7.02866667,12.584 6.058,12.584 C4.29,12.584 3.406,13.2426667 3.406,14.56 C3.406,15.0973333 3.59666667,15.535 3.978,15.873 C4.35933333,16.211 4.90533333,16.38 5.616,16.38 Z",id:"Shape"}),u.createElement("path",{d:"M22.724,19.032 C21.8226667,19.032 21.021,18.8413333 20.319,18.46 C19.617,18.0786667 19.0926667,17.602 18.746,17.03 L18.538,17.03 L18.538,18.616 L15.34,18.616 L15.34,0 L18.746,0 L18.746,5.096 L18.538,6.968 L18.746,6.968 C19.11,6.396 19.6386667,5.915 20.332,5.525 C21.0253333,5.135 21.8226667,4.94 22.724,4.94 C23.92,4.94 25.0076667,5.239 25.987,5.837 C26.9663333,6.435 27.7333333,7.27133333 28.288,8.346 C28.8426667,9.42066667 29.12,10.634 29.12,11.986 C29.12,13.3553333 28.8426667,14.573 28.288,15.639 C27.7333333,16.705 26.9663333,17.537 25.987,18.135 C25.0076667,18.733 23.92,19.032 22.724,19.032 Z M22.126,15.886 C22.7673333,15.886 23.3653333,15.7213333 23.92,15.392 C24.4746667,15.0626667 24.9166667,14.6033333 25.246,14.014 C25.5753333,13.4246667 25.74,12.7486667 25.74,11.986 C25.74,11.2233333 25.5753333,10.5473333 25.246,9.958 C24.9166667,9.36866667 24.4746667,8.91366667 23.92,8.593 C23.3653333,8.27233333 22.7673333,8.112 22.126,8.112 C21.502,8.112 20.9126667,8.27233333 20.358,8.593 C19.8033333,8.91366667 19.3613333,9.36866667 19.032,9.958 C18.7026667,10.5473333 18.538,11.2233333 18.538,11.986 C18.538,12.7486667 18.7026667,13.4246667 19.032,14.014 C19.3613333,14.6033333 19.8033333,15.0626667 20.358,15.392 C20.9126667,15.7213333 21.502,15.886 22.126,15.886 Z",id:"Shape"}),u.createElement("path",{d:"M37.986,19.032 C36.6513333,19.032 35.4553333,18.733 34.398,18.135 C33.3406667,17.537 32.513,16.7006667 31.915,15.626 C31.317,14.5513333 31.018,13.338 31.018,11.986 C31.018,10.634 31.317,9.425 31.915,8.359 C32.513,7.293 33.3406667,6.45666667 34.398,5.85 C35.4553333,5.24333333 36.6513333,4.94 37.986,4.94 C39.4593333,4.94 40.7246667,5.25633333 41.782,5.889 C42.8393333,6.52166667 43.602,7.41866667 44.07,8.58 L40.95,9.88 C40.3953333,8.70133333 39.4073333,8.112 37.986,8.112 C36.946,8.112 36.0923333,8.46733333 35.425,9.178 C34.7576667,9.88866667 34.424,10.8246667 34.424,11.986 C34.424,13.1646667 34.7576667,14.1093333 35.425,14.82 C36.0923333,15.5306667 36.946,15.886 37.986,15.886 C39.4246667,15.886 40.4646667,15.262 41.106,14.014 L44.2,15.366 C43.628,16.5273333 42.8133333,17.4286667 41.756,18.07 C40.6986667,18.7113333 39.442,19.032 37.986,19.032 Z",id:"Path"})))),Y2=e=>u.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},u.createElement("g",{id:"viz_time",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"Group-Copy-19",transform:"translate(51.307692, 36.538462)",fill:"currentColor",fillRule:"nonzero"},u.createElement("polygon",{id:"Path",points:"5.30769231 0 0 0 0 21.7906683 18.5769231 33.2307692 21.2307692 28.7636822 5.30769231 19.0668348"})),u.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:55,cy:55,r:32.5}))),U2=e=>u.createElement("svg",{height:56,viewBox:"0 0 56 56",width:56,xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{fill:"currentColor",d:"m23.957 41.7695c3.8906 0 7.5234-1.2656 10.4766-3.375l11.1093 11.1094c.5156.5156 1.1953.7735 1.8985.7735 1.5234 0 2.625-1.1719 2.625-2.6719 0-.7032-.2342-1.3594-.7502-1.875l-11.0389-11.0626c2.3203-3.0468 3.7031-6.8203 3.7031-10.9218 0-9.9141-8.1094-18.0235-18.0234-18.0235-9.9375 0-18.0234 8.1094-18.0234 18.0235 0 9.914 8.0859 18.0234 18.0234 18.0234zm0-3.8906c-7.7578 0-14.1328-6.3984-14.1328-14.1328s6.375-14.1328 14.1328-14.1328c7.7344 0 14.1328 6.3984 14.1328 14.1328s-6.3984 14.1328-14.1328 14.1328z"})),V2={chevronDown:U3,chevronLeft:V3,chevronRight:H3,clear:Cp,meatballs:y2,play:v2,copy:X3,checkmark:Z3,radioChecked:b2,radioUnchecked:w2,warning:x2,check_circle:C2,gear:_2,info:k2,error:S2,refresh:R2,sidebarCollapse:E2,filterSliders:j2,aggregate:Q3,dimension:tf,filter:J3,groupBy:e2,insert:K3,limit:t2,orderBy:r2,measure:ef,nest:n2,array:c2,boolean:u2,database:i2,date:d2,json:f2,number:m2,query:p2,search:U2,sql_native:g2,string:tf,view:a2,view_filled:h2,many_to_one:o2,one_to_many:s2,one_to_one:l2,viz_bar_chart:nf,viz_bar:nf,viz_boolean:T2,viz_bytes:of,viz_cartesian_chart:rl,viz_column_chart:L2,viz_currency:M2,viz_dashboard:A2,viz_image:I2,viz_json:D2,viz_line_chart:rl,viz_line:rl,viz_link:rf,viz_list:P2,viz_list_detail:N2,viz_point_map:O2,viz_segment_map:$2,viz_shape_map:z2,viz_number:of,viz_percent:F2,viz_scatter_chart:B2,viz_single_value:ef,viz_sparkline:q2,viz_table:W2,viz_text:G2,viz_time:Y2,viz_url:rf,viz_vega:rl};function re({name:e,color:t="primary",customStyle:n}){const r=V2[e];return r?c.jsx(r,{...R.props(H2.main,Z2[t],n),"data-testid":`icon-${t}-${e}`}):null}const H2={main:{display:"mly1rg5ohu",width:"mly1kky2od",height:"mlylup9mm",overflow:"mly1rea2x4",overflowX:null,overflowY:null,$$css:!0}},Z2={primary:{color:"mly1p68tcb",$$css:!0},secondary:{color:"mly1r0d382",$$css:!0},disabled:{color:"mly16un6j3",$$css:!0},primaryOnMedia:{color:"mly1kiansi",$$css:!0},gray:{color:"mlyann5r3",$$css:!0},purple:{color:"mly1ywypuw",$$css:!0},green:{color:"mly1evcnq1",$$css:!0},cyan:{color:"mly1h091fy",$$css:!0},info:{color:"mly1tw9ct1",$$css:!0},warning:{color:"mly7neac5",$$css:!0},positive:{color:"mly1l99qkd",$$css:!0},negative:{color:"mly109d434",$$css:!0}},X2="gray";function Fn({label:e,color:t=X2,icon:n,customStyle:r}){return c.jsxs("div",{...R.props(sf.main,K2[t],r),children:[n&&c.jsx(re,{color:t,name:n}),c.jsx("div",{"data-testid":"badge-label",...R.props(z.badge,sf.label),children:e})]})}const sf={main:{display:"mly3nfvp2",height:"mly1qx5ct2",minWidth:"mlyt4ypqs",padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",gap:"mly1jnr06f",rowGap:null,columnGap:null,flexShrink:"mly2lah0s",borderRadius:"mly10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlysu8s4a",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0},label:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textAlign:"mly2b8uid",leadingTrim:"mly11e9jwx",textEdge:"mly1vqy1sf",textOverflow:"mlylyipyv",color:"mly1ard1hs",$$css:!0}},K2={gray:{"--mly10mhzaa":"mly1rve117","--mly1ojyoay":"mlybcavtu",$$css:!0},purple:{"--mly10mhzaa":"mlyihc5ie","--mly1ojyoay":"mlywis56f",$$css:!0},green:{"--mly10mhzaa":"mly10cf5cp","--mly1ojyoay":"mlyy280wj",$$css:!0},cyan:{"--mly10mhzaa":"mlykvi9ht","--mly1ojyoay":"mly1eg6ybj",$$css:!0}},Q2="horizontal";function Br({orientation:e=Q2,customStyle:t}){return c.jsx("div",{...R.props(J2.main,ev[e],t)})}const J2={main:{background:"mly1xnbgy5",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}},ev={horizontal:{height:"mlyjm9jq1",width:"mlyh8yej3",$$css:!0},vertical:{height:"mlypyat2d",width:"mly1i1rx1s",$$css:!0}};function tv({children:e}){return c.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:u.Children.map(e,t=>t)})}var nv=u.createContext(void 0);function Ts(e){const t=u.useContext(nv);return e||t||"ltr"}function lc(e,[t,n]){return Math.min(n,Math.max(t,e))}function rv(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var iu="ScrollArea",[_p,EL]=Ot(iu),[ov,St]=_p(iu),kp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...l}=e,[i,a]=u.useState(null),[d,f]=u.useState(null),[m,p]=u.useState(null),[h,g]=u.useState(null),[y,v]=u.useState(null),[w,b]=u.useState(0),[x,C]=u.useState(0),[_,S]=u.useState(!1),[k,E]=u.useState(!1),T=oe(t,P=>a(P)),M=Ts(o);return c.jsx(ov,{scope:n,type:r,dir:M,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:m,onContentChange:p,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:S,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:b,onCornerHeightChange:C,children:c.jsx(X.div,{dir:M,...l,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});kp.displayName=iu;var Sp="ScrollAreaViewport",Rp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,l=St(Sp,n),i=u.useRef(null),a=oe(t,i,l.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(X.div,{"data-radix-scroll-area-viewport":"",...s,ref:a,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Rp.displayName=Sp;var en="ScrollAreaScrollbar",Ep=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(en,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=o,i=e.orientation==="horizontal";return u.useEffect(()=>(i?s(!0):l(!0),()=>{i?s(!1):l(!1)}),[i,s,l]),o.type==="hover"?c.jsx(sv,{...r,ref:t,forceMount:n}):o.type==="scroll"?c.jsx(lv,{...r,ref:t,forceMount:n}):o.type==="auto"?c.jsx(jp,{...r,ref:t,forceMount:n}):o.type==="always"?c.jsx(au,{...r,ref:t}):null});Ep.displayName=en;var sv=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(en,e.__scopeScrollArea),[s,l]=u.useState(!1);return u.useEffect(()=>{const i=o.scrollArea;let a=0;if(i){const d=()=>{window.clearTimeout(a),l(!0)},f=()=>{a=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(Ve,{present:n||s,children:c.jsx(jp,{"data-state":s?"visible":"hidden",...r,ref:t})})}),lv=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(en,e.__scopeScrollArea),s=e.orientation==="horizontal",l=Ei(()=>a("SCROLL_END"),100),[i,a]=rv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,a]),u.useEffect(()=>{const d=o.viewport,f=s?"scrollLeft":"scrollTop";if(d){let m=d[f];const p=()=>{const h=d[f];m!==h&&(a("SCROLL"),l()),m=h};return d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[o.viewport,s,a,l]),c.jsx(Ve,{present:n||i!=="hidden",children:c.jsx(au,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:O(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:O(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),jp=u.forwardRef((e,t)=>{const n=St(en,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,l]=u.useState(!1),i=e.orientation==="horizontal",a=Ei(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;l(i?d:f)}},10);return Kr(n.viewport,a),Kr(n.content,a),c.jsx(Ve,{present:r||s,children:c.jsx(au,{"data-state":s?"visible":"hidden",...o,ref:t})})}),au=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=St(en,e.__scopeScrollArea),s=u.useRef(null),l=u.useRef(0),[i,a]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Ip(i.viewport,i.content),f={...r,sizes:i,onSizesChange:a,hasThumb:d>0&&d<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:p=>l.current=p};function m(p,h){return fv(p,l.current,i,h)}return n==="horizontal"?c.jsx(iv,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollLeft,h=lf(p,i,o.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=m(p,o.dir))}}):n==="vertical"?c.jsx(av,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollTop,h=lf(p,i);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=m(p))}}):null}),iv=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=St(en,e.__scopeScrollArea),[l,i]=u.useState(),a=u.useRef(null),d=oe(t,a,s.onScrollbarXChange);return u.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),c.jsx(Lp,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ri(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,m)=>{if(s.viewport){const p=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),Pp(p,m)&&f.preventDefault()}},onResize:()=>{a.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:ql(l.paddingLeft),paddingEnd:ql(l.paddingRight)}})}})}),av=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=St(en,e.__scopeScrollArea),[l,i]=u.useState(),a=u.useRef(null),d=oe(t,a,s.onScrollbarYChange);return u.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),c.jsx(Lp,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ri(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,m)=>{if(s.viewport){const p=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),Pp(p,m)&&f.preventDefault()}},onResize:()=>{a.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:ql(l.paddingTop),paddingEnd:ql(l.paddingBottom)}})}})}),[cv,Tp]=_p(en),Lp=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:d,onWheelScroll:f,onResize:m,...p}=e,h=St(en,n),[g,y]=u.useState(null),v=oe(t,T=>y(T)),w=u.useRef(null),b=u.useRef(""),x=h.viewport,C=r.content-r.viewport,_=Be(f),S=Be(a),k=Ei(m,10);function E(T){if(w.current){const M=T.clientX-w.current.left,P=T.clientY-w.current.top;d({x:M,y:P})}}return u.useEffect(()=>{const T=M=>{const P=M.target;g?.contains(P)&&_(M,C)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,g,C,_]),u.useEffect(S,[r,S]),Kr(g,k),Kr(h.content,k),c.jsx(cv,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:Be(s),onThumbPointerUp:Be(l),onThumbPositionChange:S,onThumbPointerDown:Be(i),children:c.jsx(X.div,{...p,ref:v,style:{position:"absolute",...p.style},onPointerDown:O(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),w.current=g.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(T))}),onPointerMove:O(e.onPointerMove,E),onPointerUp:O(e.onPointerUp,T=>{const M=T.target;M.hasPointerCapture(T.pointerId)&&M.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),w.current=null})})})}),Bl="ScrollAreaThumb",Mp=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tp(Bl,e.__scopeScrollArea);return c.jsx(Ve,{present:n||o.hasThumb,children:c.jsx(uv,{ref:t,...r})})}),uv=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=St(Bl,n),l=Tp(Bl,n),{onThumbPositionChange:i}=l,a=oe(t,m=>l.onThumbChange(m)),d=u.useRef(void 0),f=Ei(()=>{d.current&&(d.current(),d.current=void 0)},100);return u.useEffect(()=>{const m=s.viewport;if(m){const p=()=>{if(f(),!d.current){const h=mv(m,i);d.current=h,i()}};return i(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[s.viewport,f,i]),c.jsx(X.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:O(e.onPointerDownCapture,m=>{const h=m.target.getBoundingClientRect(),g=m.clientX-h.left,y=m.clientY-h.top;l.onThumbPointerDown({x:g,y})}),onPointerUp:O(e.onPointerUp,l.onThumbPointerUp)})});Mp.displayName=Bl;var cu="ScrollAreaCorner",Ap=u.forwardRef((e,t)=>{const n=St(cu,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?c.jsx(dv,{...e,ref:t}):null});Ap.displayName=cu;var dv=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=St(cu,n),[s,l]=u.useState(0),[i,a]=u.useState(0),d=!!(s&&i);return Kr(o.scrollbarX,()=>{var f;const m=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(m),a(m)}),Kr(o.scrollbarY,()=>{var f;const m=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(m),l(m)}),d?c.jsx(X.div,{...r,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ql(e){return e?parseInt(e,10):0}function Ip(e,t){const n=e/t;return isNaN(n)?0:n}function Ri(e){const t=Ip(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function fv(e,t,n,r="ltr"){const o=Ri(n),s=o/2,l=t||s,i=o-l,a=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,m=r==="ltr"?[0,f]:[f*-1,0];return Dp([a,d],m)(e)}function lf(e,t,n="ltr"){const r=Ri(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,l=t.content-t.viewport,i=s-r,a=n==="ltr"?[0,l]:[l*-1,0],d=lc(e,a);return Dp([0,l],[0,i])(d)}function Dp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Pp(e,t){return e>0&&e<t}var mv=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,i=n.top!==s.top;(l||i)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ei(e,t){const n=Be(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Kr(e,t){const n=Be(t);et(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var pv=kp,hv=Rp,af=Ep,cf=Mp,gv=Ap;function Ls({children:e}){return c.jsxs(pv,{className:"mlyh8yej3 mly5yr21d mlyb3r6kr mly1bo1i26 mly1fzkygm mlynu5hmx mly1u5txqc",children:[c.jsx(hv,{className:"mlyh8yej3 mly5yr21d mly1pjcqnp",children:u.Children.map(e,t=>t)}),c.jsx(af,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlyehqz9p mly1xc55vz",orientation:"vertical",children:c.jsx(cf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),c.jsx(af,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlydt5ytf mlyztvwtv mlydk7pt",orientation:"horizontal",children:c.jsx(cf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),c.jsx(gv,{className:"mly3j5mvw mly1d3ksz1 mly14znju7"})]})}const yv="default",vv="default";function Ce({variant:e=yv,size:t=vv,icon:n,label:r,tooltip:o,isDisabled:s=!1,customStyle:l,...i}){const a=c.jsxs("button",{...R.props(ha.main,bv[e],wv[t],l),type:"button",disabled:s,...i,children:[c.jsxs("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly167g77z",children:[n&&c.jsx(re,{name:n,customStyle:ha.icon}),r&&c.jsx("div",{...R.props(e==="primary"?z.emphasized:z.body,ha.label),children:r})]}),s&&c.jsx("div",{className:"mly10l6tqk mlyu96u03 mly3m8u43 mlyzy8d55 mly47corl mlyur7f20 mlyh8yej3 mly5yr21d"})]});return o?c.jsxs(co,{delayDuration:300,children:[c.jsx(uo,{asChild:!0,children:a}),c.jsx(fo,{children:c.jsx(mo,{sideOffset:8,...R.props(z.body,Cn.default),children:o})})]}):a}const ha={main:{display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",position:"mly1n2onr6",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,cursor:"mly1ypdohk mly1s07b3s",flexShrink:"mly2lah0s",userSelect:"mly87ps6o",$$css:!0},icon:{color:"mlyuk6yi3",$$css:!0},label:{color:"mlyaerthn",whiteSpace:"mlyuxw1ft",$$css:!0}},bv={default:{background:"mlygqa5hp mly1uceoyp mly1cncicd",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},flat:{background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},primary:{background:"mlyhcrij8 mly1vdl2d1 mly1u4cpcs",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mly1n5rdk7 mly1dsjhx","--mly1hpdckv":"mly3mt86g mly13vk70h",$$css:!0}},wv={default:{height:"mlyc9qbxq",padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{height:"mly1fgtraw",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},Gn={main:{display:"mlywz0xwf",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",justifyContent:"mlyl56j7k",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,cursor:"mly1ypdohk",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,background:"mly1np9qvj mly1uceoyp",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mly1n2onr6",$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},label:{color:"mly1xre2ib",textOverflow:"mlylyipyv",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,whiteSpace:"mlyuxw1ft",$$css:!0}},uu={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}},du={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},po="default",fu="default";function $e({label:e,icon:t,color:n=po,size:r=fu,onClick:o,onHover:s,asButtonTrigger:l=!1,tooltip:i,tooltipProps:a,customStyle:d,dragProps:f,...m}){const p=o!==void 0||l,h=c.jsxs("div",{...R.props(Gn.main,uu[n],du[r],!p&&xv.nonInteractive,d),...f?.attributes,...f?.listeners,children:[t&&c.jsx(re,{name:t,customStyle:Gn.icon}),p&&c.jsx("button",{className:"mlyh8yej3 mly5yr21d mly10l6tqk mly13vifvy mlyu96u03 mly1md70p1 mlyng3xce mly1ypdohk",...o&&{onClick:o},...s&&{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},...m}),e&&c.jsx("div",{...R.props(z.body,Gn.label),children:e})]});return i?c.jsxs(ks,{delayDuration:300,children:[c.jsx(Ss,{asChild:!0,children:h}),c.jsx(Rs,{children:c.jsx(Es,{...a,...R.props(typeof i=="string"?Cn.default:Cn.card),children:i})})]}):h}const xv={nonInteractive:{cursor:"mlyt0e3qv",background:"mly1np9qvj",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Ms({children:e,color:t=po,customStyle:n}){const r=u.Children.count(e);return c.jsx("div",{...R.props(Bo.main,n),children:u.Children.map(e,(o,s)=>u.cloneElement(o,{customStyle:{...o.props.customStyle,...Cv(s,r)},color:_v(o,t)}))})}const Cv=(e,t)=>t===1?Bo.onlyChild:e===0?Bo.firstChild:e===t-1?Bo.lastChild:Bo.innerChild,_v=(e,t)=>{const n=e.props.color;return n===void 0?t:n},Bo={main:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",gap:"mly12mrbbr",rowGap:null,columnGap:null,$$css:!0},firstChild:{borderRadius:"mlytah5vv",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},innerChild:{borderRadius:null,borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},lastChild:{borderRadius:"mly19ctu66",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},onlyChild:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function ji({errorMessage:e}){return c.jsxs(co,{delayDuration:0,children:[c.jsx(uo,{asChild:!0,children:c.jsx("div",{className:"mlygd8bvy mly1fgtraw mly78zum5 mly6s0dn4 mlyl56j7k",children:c.jsx(re,{name:"warning",customStyle:kv.errorIcon})})}),c.jsx(fo,{children:c.jsx(mo,{children:c.jsx("div",{...R.props(z.body,Cn.default),children:e})})})]})}const kv={errorIcon:{color:"mly1e2nbdu",$$css:!0}};function ic({value:e,onChange:t,onRemove:n,icon:r,color:o=po,size:s=fu,customStyle:l,type:i,errorMessage:a}){const[d,f]=u.useState(!1),m=u.useRef(null),p=u.useRef(null),h=({target:v})=>{t(i==="number"?parseFloat(v.value||"0"):v.value)},g=()=>{f(!0)},y=v=>{var w;p.current==null||v.relatedTarget!==p.current?f(!1):(w=m.current)==null||w.focus()};return c.jsxs("div",{className:"mly78zum5 mly6s0dn4",children:[c.jsxs("div",{...R.props(Gn.main,uu[o],du[s],d&&Ao.focused,!!a&&Ao.hasError,l),children:[r&&c.jsx(re,{name:r,customStyle:Ao.icon}),c.jsxs("span",{className:"mlywz0xwf",children:[c.jsx("span",{...R.props(z.body,Ao.placeholder),style:{whiteSpaceCollapse:"preserve"},children:e}),c.jsx("input",{...R.props(Ao.input,z.body),ref:m,pattern:i==="number"?"^-?[0-9.]*$":void 0,value:e,onChange:h,onFocus:g,onBlur:y,size:1})]}),n&&d&&c.jsx("button",{className:"mly3nfvp2 mlyc342km mly1md70p1 mly1717udv mly1ypdohk",ref:p,onClick:n,tabIndex:0,children:c.jsx(re,{name:"clear"})})]}),a&&c.jsx(ji,{errorMessage:a})]})}const Ao={focused:{background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mlyn8fsvk",$$css:!0},hasError:{border:"mly1dc9p4k",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},placeholder:{background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,color:"mly19co3pv",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0},input:{color:"mly1xre2ib",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0}};function mu(e){const t=e+"CollectionProvider",[n,r]=Ot(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:g,children:y}=h,v=Le.useRef(null),w=Le.useRef(new Map).current;return c.jsx(o,{scope:g,itemMap:w,collectionRef:v,children:y})};l.displayName=t;const i=e+"CollectionSlot",a=Le.forwardRef((h,g)=>{const{scope:y,children:v}=h,w=s(i,y),b=oe(g,w.collectionRef);return c.jsx(Un,{ref:b,children:v})});a.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Le.forwardRef((h,g)=>{const{scope:y,children:v,...w}=h,b=Le.useRef(null),x=oe(g,b),C=s(d,y);return Le.useEffect(()=>(C.itemMap.set(b,{ref:b,...w}),()=>void C.itemMap.delete(b))),c.jsx(Un,{[f]:"",ref:x,children:v})});m.displayName=d;function p(h){const g=s(e+"CollectionConsumer",h);return Le.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((C,_)=>w.indexOf(C.ref.current)-w.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:l,Slot:a,ItemSlot:m},p,r]}var ga=0;function Ti(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??uf()),document.body.insertAdjacentElement("beforeend",e[1]??uf()),ga++,()=>{ga===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ga--}},[])}function uf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ya="focusScope.autoFocusOnMount",va="focusScope.autoFocusOnUnmount",df={bubbles:!1,cancelable:!0},Sv="FocusScope",As=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[i,a]=u.useState(null),d=Be(o),f=Be(s),m=u.useRef(null),p=oe(t,y=>a(y)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let y=function(x){if(h.paused||!i)return;const C=x.target;i.contains(C)?m.current=C:On(m.current,{select:!0})},v=function(x){if(h.paused||!i)return;const C=x.relatedTarget;C!==null&&(i.contains(C)||On(m.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&On(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const b=new MutationObserver(w);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),b.disconnect()}}},[r,i,h.paused]),u.useEffect(()=>{if(i){mf.add(h);const y=document.activeElement;if(!i.contains(y)){const w=new CustomEvent(ya,df);i.addEventListener(ya,d),i.dispatchEvent(w),w.defaultPrevented||(Rv(Mv(Np(i)),{select:!0}),document.activeElement===y&&On(i))}return()=>{i.removeEventListener(ya,d),setTimeout(()=>{const w=new CustomEvent(va,df);i.addEventListener(va,f),i.dispatchEvent(w),w.defaultPrevented||On(y??document.body,{select:!0}),i.removeEventListener(va,f),mf.remove(h)},0)}}},[i,d,f,h]);const g=u.useCallback(y=>{if(!n&&!r||h.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,w=document.activeElement;if(v&&w){const b=y.currentTarget,[x,C]=Ev(b);x&&C?!y.shiftKey&&w===C?(y.preventDefault(),n&&On(x,{select:!0})):y.shiftKey&&w===x&&(y.preventDefault(),n&&On(C,{select:!0})):w===b&&y.preventDefault()}},[n,r,h.paused]);return c.jsx(X.div,{tabIndex:-1,...l,ref:p,onKeyDown:g})});As.displayName=Sv;function Rv(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(On(r,{select:t}),document.activeElement!==n)return}function Ev(e){const t=Np(e),n=ff(t,e),r=ff(t.reverse(),e);return[n,r]}function Np(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ff(e,t){for(const n of e)if(!jv(n,{upTo:t}))return n}function jv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Tv(e){return e instanceof HTMLInputElement&&"select"in e}function On(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Tv(e)&&t&&e.select()}}var mf=Lv();function Lv(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pf(e,t),e.unshift(t)},remove(t){var n;e=pf(e,t),(n=e[0])==null||n.resume()}}}function pf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Mv(e){return e.filter(t=>t.tagName!=="A")}function Av(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Iv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jr=new WeakMap,ol=new WeakMap,sl={},ba=0,Op=function(e){return e&&(e.host||Op(e.parentNode))},Dv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Op(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Pv=function(e,t,n,r){var o=Dv(t,Array.isArray(e)?e:[e]);sl[n]||(sl[n]=new WeakMap);var s=sl[n],l=[],i=new Set,a=new Set(o),d=function(m){!m||i.has(m)||(i.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||a.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var h=p.getAttribute(r),g=h!==null&&h!=="false",y=(jr.get(p)||0)+1,v=(s.get(p)||0)+1;jr.set(p,y),s.set(p,v),l.push(p),y===1&&g&&ol.set(p,!0),v===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return f(t),i.clear(),ba++,function(){l.forEach(function(m){var p=jr.get(m)-1,h=s.get(m)-1;jr.set(m,p),s.set(m,h),p||(ol.has(m)||m.removeAttribute(r),ol.delete(m)),h||m.removeAttribute(n)}),ba--,ba||(jr=new WeakMap,jr=new WeakMap,ol=new WeakMap,sl={})}},Li=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Iv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Pv(r,o,n,"aria-hidden")):function(){return null}},Ut=function(){return Ut=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ut.apply(this,arguments)};function $p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Nv(e,t,n){for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var kl="right-scroll-bar-position",Sl="width-before-scroll-bar",Ov="with-scroll-bars-hidden",$v="--removed-body-scroll-bar-size";function wa(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zv(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Fv=typeof window<"u"?u.useLayoutEffect:u.useEffect,hf=new WeakMap;function Bv(e,t){var n=zv(null,function(r){return e.forEach(function(o){return wa(o,r)})});return Fv(function(){var r=hf.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(i){s.has(i)||wa(i,null)}),s.forEach(function(i){o.has(i)||wa(i,l)})}hf.set(n,e)},[e]),n}function qv(e){return e}function Wv(e,t){t===void 0&&(t=qv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(s),l=n}var a=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(a)};d(),n={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),n}}}};return o}function Gv(e){e===void 0&&(e={});var t=Wv(null);return t.options=Ut({async:!0,ssr:!1},e),t}var zp=function(e){var t=e.sideCar,n=$p(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,Ut({},n))};zp.isSideCarExport=!0;function Yv(e,t){return e.useMedium(t),zp}var Fp=Gv(),xa=function(){},Mi=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:xa,onWheelCapture:xa,onTouchMoveCapture:xa}),o=r[0],s=r[1],l=e.forwardProps,i=e.children,a=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,b=e.gapMode,x=$p(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=Bv([n,t]),S=Ut(Ut({},x),o);return u.createElement(u.Fragment,null,f&&u.createElement(C,{sideCar:Fp,removeScrollBar:d,shards:m,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:b}),l?u.cloneElement(u.Children.only(i),Ut(Ut({},S),{ref:_})):u.createElement(w,Ut({},S,{className:a,ref:_}),i))});Mi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mi.classNames={fullWidth:Sl,zeroRight:kl};var Uv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uv();return t&&e.setAttribute("nonce",t),e}function Hv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Vv())&&(Hv(t,n),Zv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kv=function(){var e=Xv();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bp=function(){var e=Kv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qv={left:0,top:0,right:0,gap:0},Ca=function(e){return parseInt(e||"",10)||0},Jv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ca(n),Ca(r),Ca(o)]},e4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qv;var t=Jv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t4=Bp(),qr="data-scroll-locked",n4=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(Ov,` {
|
|
3
|
+
overflow: hidden `).concat(r,`;
|
|
4
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(qr,`] {
|
|
7
|
+
overflow: hidden `).concat(r,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
+
padding-left: `.concat(o,`px;
|
|
11
|
+
padding-top: `).concat(s,`px;
|
|
12
|
+
padding-right: `).concat(l,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(kl,` {
|
|
20
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(Sl,` {
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(kl," .").concat(kl,` {
|
|
28
|
+
right: 0 `).concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(Sl," .").concat(Sl,` {
|
|
32
|
+
margin-right: 0 `).concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(qr,`] {
|
|
36
|
+
`).concat($v,": ").concat(i,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},gf=function(){var e=parseInt(document.body.getAttribute(qr)||"0",10);return isFinite(e)?e:0},r4=function(){u.useEffect(function(){return document.body.setAttribute(qr,(gf()+1).toString()),function(){var e=gf()-1;e<=0?document.body.removeAttribute(qr):document.body.setAttribute(qr,e.toString())}},[])},o4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;r4();var s=u.useMemo(function(){return e4(o)},[o]);return u.createElement(t4,{styles:n4(s,!t,o,n?"":"!important")})},ac=!1;if(typeof window<"u")try{var ll=Object.defineProperty({},"passive",{get:function(){return ac=!0,!0}});window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{ac=!1}var Tr=ac?{passive:!1}:!1,s4=function(e){return e.tagName==="TEXTAREA"},qp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!s4(e)&&n[t]==="visible")},l4=function(e){return qp(e,"overflowY")},i4=function(e){return qp(e,"overflowX")},yf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wp(e,r);if(o){var s=Gp(e,r),l=s[1],i=s[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},a4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},c4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wp=function(e,t){return e==="v"?l4(t):i4(t)},Gp=function(e,t){return e==="v"?a4(t):c4(t)},u4=function(e,t){return e==="h"&&t==="rtl"?-1:1},d4=function(e,t,n,r,o){var s=u4(e,window.getComputedStyle(t).direction),l=s*r,i=n.target,a=t.contains(i),d=!1,f=l>0,m=0,p=0;do{var h=Gp(e,i),g=h[0],y=h[1],v=h[2],w=y-v-s*g;(g||w)&&Wp(e,i)&&(m+=w,p+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!a&&i!==document.body||a&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(d=!0),d},il=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vf=function(e){return[e.deltaX,e.deltaY]},bf=function(e){return e&&"current"in e?e.current:e},f4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},m4=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},p4=0,Lr=[];function h4(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(p4++)[0],s=u.useState(Bp)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Nv([e.lockRef.current],(e.shards||[]).map(bf)).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var w=il(y),b=n.current,x="deltaX"in y?y.deltaX:b[0]-w[0],C="deltaY"in y?y.deltaY:b[1]-w[1],_,S=y.target,k=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in y&&k==="h"&&S.type==="range")return!1;var E=yf(k,S);if(!E)return!0;if(E?_=k:(_=k==="v"?"h":"v",E=yf(k,S)),!E)return!1;if(!r.current&&"changedTouches"in y&&(x||C)&&(r.current=_),!_)return!0;var T=r.current||_;return d4(T,v,y,T==="h"?x:C)},[]),a=u.useCallback(function(y){var v=y;if(!(!Lr.length||Lr[Lr.length-1]!==s)){var w="deltaY"in v?vf(v):il(v),b=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&f4(_.delta,w)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(l.current.shards||[]).map(bf).filter(Boolean).filter(function(_){return _.contains(v.target)}),C=x.length>0?i(v,x[0]):!l.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(y,v,w,b){var x={name:y,delta:v,target:w,should:b,shadowParent:g4(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),f=u.useCallback(function(y){n.current=il(y),r.current=void 0},[]),m=u.useCallback(function(y){d(y.type,vf(y),y.target,i(y,e.lockRef.current))},[]),p=u.useCallback(function(y){d(y.type,il(y),y.target,i(y,e.lockRef.current))},[]);u.useEffect(function(){return Lr.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",a,Tr),document.addEventListener("touchmove",a,Tr),document.addEventListener("touchstart",f,Tr),function(){Lr=Lr.filter(function(y){return y!==s}),document.removeEventListener("wheel",a,Tr),document.removeEventListener("touchmove",a,Tr),document.removeEventListener("touchstart",f,Tr)}},[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:m4(o)}):null,h?u.createElement(o4,{gapMode:e.gapMode}):null)}function g4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y4=Yv(Fp,h4);var Is=u.forwardRef(function(e,t){return u.createElement(Mi,Ut({},e,{ref:t,sideCar:y4}))});Is.classNames=Mi.classNames;var v4=[" ","Enter","ArrowUp","ArrowDown"],b4=[" ","Enter"],Ds="Select",[Ai,Ii,w4]=mu(Ds),[ho,jL]=Ot(Ds,[w4,Qn]),Di=Qn(),[x4,Jn]=ho(Ds),[C4,_4]=ho(Ds),Yp=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:l,defaultValue:i,onValueChange:a,dir:d,name:f,autoComplete:m,disabled:p,required:h,form:g}=e,y=Di(t),[v,w]=u.useState(null),[b,x]=u.useState(null),[C,_]=u.useState(!1),S=Ts(d),[k=!1,E]=Xn({prop:r,defaultProp:o,onChange:s}),[T,M]=Xn({prop:l,defaultProp:i,onChange:a}),P=u.useRef(null),F=v?g||!!v.closest("form"):!0,[V,q]=u.useState(new Set),te=Array.from(V).map(U=>U.props.value).join(";");return c.jsx(wi,{...y,children:c.jsxs(x4,{required:h,scope:t,trigger:v,onTriggerChange:w,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:_t(),value:T,onValueChange:M,open:k,onOpenChange:E,dir:S,triggerPointerDownPosRef:P,disabled:p,children:[c.jsx(Ai.Provider,{scope:t,children:c.jsx(C4,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(U=>{q(K=>new Set(K).add(U))},[]),onNativeOptionRemove:u.useCallback(U=>{q(K=>{const H=new Set(K);return H.delete(U),H})},[]),children:n})}),F?c.jsxs(dh,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:m,value:T,onChange:U=>M(U.target.value),disabled:p,form:g,children:[T===void 0?c.jsx("option",{value:""}):null,Array.from(V)]},te):null]})})};Yp.displayName=Ds;var Up="SelectTrigger",Vp=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Di(n),l=Jn(Up,n),i=l.disabled||r,a=oe(t,l.onTriggerChange),d=Ii(n),f=u.useRef("touch"),[m,p,h]=fh(y=>{const v=d().filter(x=>!x.disabled),w=v.find(x=>x.value===l.value),b=mh(v,y,w);b!==void 0&&l.onValueChange(b.value)}),g=y=>{i||(l.onOpenChange(!0),h()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return c.jsx(Cs,{asChild:!0,...s,children:c.jsx(X.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":uh(l.value)?"":void 0,...o,ref:a,onClick:O(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&g(y)}),onPointerDown:O(o.onPointerDown,y=>{f.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(g(y),y.preventDefault())}),onKeyDown:O(o.onKeyDown,y=>{const v=m.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(v&&y.key===" ")&&v4.includes(y.key)&&(g(),y.preventDefault())})})})});Vp.displayName=Up;var Hp="SelectValue",Zp=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:l="",...i}=e,a=Jn(Hp,n),{onValueNodeHasChildrenChange:d}=a,f=s!==void 0,m=oe(t,a.onValueNodeChange);return et(()=>{d(f)},[d,f]),c.jsx(X.span,{...i,ref:m,style:{pointerEvents:"none"},children:uh(a.value)?c.jsx(c.Fragment,{children:l}):s})});Zp.displayName=Hp;var k4="SelectIcon",S4=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(X.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});S4.displayName=k4;var R4="SelectPortal",Xp=e=>c.jsx(ao,{asChild:!0,...e});Xp.displayName=R4;var mr="SelectContent",Kp=u.forwardRef((e,t)=>{const n=Jn(mr,e.__scopeSelect),[r,o]=u.useState();if(et(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?fn.createPortal(c.jsx(Qp,{scope:e.__scopeSelect,children:c.jsx(Ai.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(Jp,{...e,ref:t})});Kp.displayName=mr;var jt=10,[Qp,er]=ho(mr),E4="SelectContentImpl",Jp=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:l,side:i,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v,...w}=e,b=Jn(mr,n),[x,C]=u.useState(null),[_,S]=u.useState(null),k=oe(t,G=>C(G)),[E,T]=u.useState(null),[M,P]=u.useState(null),F=Ii(n),[V,q]=u.useState(!1),te=u.useRef(!1);u.useEffect(()=>{if(x)return Li(x)},[x]),Ti();const U=u.useCallback(G=>{const[se,...ce]=F().map(le=>le.ref.current),[W]=ce.slice(-1),de=document.activeElement;for(const le of G)if(le===de||(le?.scrollIntoView({block:"nearest"}),le===se&&_&&(_.scrollTop=0),le===W&&_&&(_.scrollTop=_.scrollHeight),le?.focus(),document.activeElement!==de))return},[F,_]),K=u.useCallback(()=>U([E,x]),[U,E,x]);u.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:H,triggerPointerDownPosRef:N}=b;u.useEffect(()=>{if(x){let G={x:0,y:0};const se=W=>{var de,le;G={x:Math.abs(Math.round(W.pageX)-(((de=N.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(W.pageY)-(((le=N.current)==null?void 0:le.y)??0))}},ce=W=>{G.x<=10&&G.y<=10?W.preventDefault():x.contains(W.target)||H(!1),document.removeEventListener("pointermove",se),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",ce,{capture:!0})}}},[x,H,N]),u.useEffect(()=>{const G=()=>H(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[H]);const[ae,Me]=fh(G=>{const se=F().filter(de=>!de.disabled),ce=se.find(de=>de.ref.current===document.activeElement),W=mh(se,G,ce);W&&setTimeout(()=>W.ref.current.focus())}),ge=u.useCallback((G,se,ce)=>{const W=!te.current&&!ce;(b.value!==void 0&&b.value===se||W)&&(T(G),W&&(te.current=!0))},[b.value]),Ee=u.useCallback(()=>x?.focus(),[x]),_e=u.useCallback((G,se,ce)=>{const W=!te.current&&!ce;(b.value!==void 0&&b.value===se||W)&&P(G)},[b.value]),He=r==="popper"?cc:eh,ke=He===cc?{side:i,sideOffset:a,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v}:{};return c.jsx(Qp,{scope:n,content:x,viewport:_,onViewportChange:S,itemRefCallback:ge,selectedItem:E,onItemLeave:Ee,itemTextRefCallback:_e,focusSelectedItem:K,selectedItemText:M,position:r,isPositioned:V,searchRef:ae,children:c.jsx(Is,{as:Un,allowPinchZoom:!0,children:c.jsx(As,{asChild:!0,trapped:b.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:O(o,G=>{var se;(se=b.trigger)==null||se.focus({preventScroll:!0}),G.preventDefault()}),children:c.jsx(so,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:c.jsx(He,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:G=>G.preventDefault(),...w,...ke,onPlaced:()=>q(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:O(w.onKeyDown,G=>{const se=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!se&&G.key.length===1&&Me(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let W=F().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(G.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const de=G.target,le=W.indexOf(de);W=W.slice(le+1)}setTimeout(()=>U(W)),G.preventDefault()}})})})})})})});Jp.displayName=E4;var j4="SelectItemAlignedPosition",eh=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Jn(mr,n),l=er(mr,n),[i,a]=u.useState(null),[d,f]=u.useState(null),m=oe(t,k=>f(k)),p=Ii(n),h=u.useRef(!1),g=u.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:w,focusSelectedItem:b}=l,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&y&&v&&w){const k=s.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),M=w.getBoundingClientRect();if(s.dir!=="rtl"){const de=M.left-E.left,le=T.left-de,Pe=k.left-le,Ne=k.width+Pe,ht=Math.max(Ne,E.width),gt=window.innerWidth-jt,jn=lc(le,[jt,Math.max(jt,gt-ht)]);i.style.minWidth=Ne+"px",i.style.left=jn+"px"}else{const de=E.right-M.right,le=window.innerWidth-T.right-de,Pe=window.innerWidth-k.right-le,Ne=k.width+Pe,ht=Math.max(Ne,E.width),gt=window.innerWidth-jt,jn=lc(le,[jt,Math.max(jt,gt-ht)]);i.style.minWidth=Ne+"px",i.style.right=jn+"px"}const P=p(),F=window.innerHeight-jt*2,V=y.scrollHeight,q=window.getComputedStyle(d),te=parseInt(q.borderTopWidth,10),U=parseInt(q.paddingTop,10),K=parseInt(q.borderBottomWidth,10),H=parseInt(q.paddingBottom,10),N=te+U+V+H+K,ae=Math.min(v.offsetHeight*5,N),Me=window.getComputedStyle(y),ge=parseInt(Me.paddingTop,10),Ee=parseInt(Me.paddingBottom,10),_e=k.top+k.height/2-jt,He=F-_e,ke=v.offsetHeight/2,G=v.offsetTop+ke,se=te+U+G,ce=N-se;if(se<=_e){const de=P.length>0&&v===P[P.length-1].ref.current;i.style.bottom="0px";const le=d.clientHeight-y.offsetTop-y.offsetHeight,Pe=Math.max(He,ke+(de?Ee:0)+le+K),Ne=se+Pe;i.style.height=Ne+"px"}else{const de=P.length>0&&v===P[0].ref.current;i.style.top="0px";const Pe=Math.max(_e,te+y.offsetTop+(de?ge:0)+ke)+ce;i.style.height=Pe+"px",y.scrollTop=se-_e+y.offsetTop}i.style.margin=`${jt}px 0`,i.style.minHeight=ae+"px",i.style.maxHeight=F+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[p,s.trigger,s.valueNode,i,d,y,v,w,s.dir,r]);et(()=>x(),[x]);const[C,_]=u.useState();et(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const S=u.useCallback(k=>{k&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]);return c.jsx(L4,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:c.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:c.jsx(X.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eh.displayName=j4;var T4="SelectPopperPosition",cc=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=jt,...s}=e,l=Di(n);return c.jsx(xi,{...l,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});cc.displayName=T4;var[L4,pu]=ho(mr,{}),uc="SelectViewport",th=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=er(uc,n),l=pu(uc,n),i=oe(t,s.onViewportChange),a=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Ai.Slot,{scope:n,children:c.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:O(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=l;if(p?.current&&m){const h=Math.abs(a.current-f.scrollTop);if(h>0){const g=window.innerHeight-jt*2,y=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),w=Math.max(y,v);if(w<g){const b=w+h,x=Math.min(g,b),C=b-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});th.displayName=uc;var nh="SelectGroup",[M4,A4]=ho(nh),rh=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_t();return c.jsx(M4,{scope:n,id:o,children:c.jsx(X.div,{role:"group","aria-labelledby":o,...r,ref:t})})});rh.displayName=nh;var oh="SelectLabel",I4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=A4(oh,n);return c.jsx(X.div,{id:o.id,...r,ref:t})});I4.displayName=oh;var Wl="SelectItem",[D4,sh]=ho(Wl),lh=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...l}=e,i=Jn(Wl,n),a=er(Wl,n),d=i.value===r,[f,m]=u.useState(s??""),[p,h]=u.useState(!1),g=oe(t,b=>{var x;return(x=a.itemRefCallback)==null?void 0:x.call(a,b,r,o)}),y=_t(),v=u.useRef("touch"),w=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(D4,{scope:n,value:r,disabled:o,textId:y,isSelected:d,onItemTextChange:u.useCallback(b=>{m(x=>x||(b?.textContent??"").trim())},[]),children:c.jsx(Ai.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:c.jsx(X.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:g,onFocus:O(l.onFocus,()=>h(!0)),onBlur:O(l.onBlur,()=>h(!1)),onClick:O(l.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:O(l.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:O(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:O(l.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=a.onItemLeave)==null||x.call(a):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(l.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=a.onItemLeave)==null||x.call(a))}),onKeyDown:O(l.onKeyDown,b=>{var x;((x=a.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(b4.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})})})})});lh.displayName=Wl;var qo="SelectItemText",ih=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,l=Jn(qo,n),i=er(qo,n),a=sh(qo,n),d=_4(qo,n),[f,m]=u.useState(null),p=oe(t,w=>m(w),a.onItemTextChange,w=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,w,a.value,a.disabled)}),h=f?.textContent,g=u.useMemo(()=>c.jsx("option",{value:a.value,disabled:a.disabled,children:h},a.value),[a.disabled,a.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=d;return et(()=>(y(g),()=>v(g)),[y,v,g]),c.jsxs(c.Fragment,{children:[c.jsx(X.span,{id:a.textId,...s,ref:p}),a.isSelected&&l.valueNode&&!l.valueNodeHasChildren?fn.createPortal(s.children,l.valueNode):null]})});ih.displayName=qo;var ah="SelectItemIndicator",P4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return sh(ah,n).isSelected?c.jsx(X.span,{"aria-hidden":!0,...r,ref:t}):null});P4.displayName=ah;var dc="SelectScrollUpButton",N4=u.forwardRef((e,t)=>{const n=er(dc,e.__scopeSelect),r=pu(dc,e.__scopeSelect),[o,s]=u.useState(!1),l=oe(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=a.scrollTop>0;s(d)};const a=n.viewport;return i(),a.addEventListener("scroll",i),()=>a.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(ch,{...e,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:a}=n;i&&a&&(i.scrollTop=i.scrollTop-a.offsetHeight)}}):null});N4.displayName=dc;var fc="SelectScrollDownButton",O4=u.forwardRef((e,t)=>{const n=er(fc,e.__scopeSelect),r=pu(fc,e.__scopeSelect),[o,s]=u.useState(!1),l=oe(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<d;s(f)};const a=n.viewport;return i(),a.addEventListener("scroll",i),()=>a.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(ch,{...e,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:a}=n;i&&a&&(i.scrollTop=i.scrollTop+a.offsetHeight)}}):null});O4.displayName=fc;var ch=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=er("SelectScrollButton",n),l=u.useRef(null),i=Ii(n),a=u.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return u.useEffect(()=>()=>a(),[a]),et(()=>{var d;const f=i().find(m=>m.ref.current===document.activeElement);(d=f?.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),c.jsx(X.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:O(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:O(o.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:O(o.onPointerLeave,()=>{a()})})}),$4="SelectSeparator",z4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(X.div,{"aria-hidden":!0,...r,ref:t})});z4.displayName=$4;var mc="SelectArrow",F4=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Di(n),s=Jn(mc,n),l=er(mc,n);return s.open&&l.position==="popper"?c.jsx(Ci,{...o,...r,ref:t}):null});F4.displayName=mc;function uh(e){return e===""||e===void 0}var dh=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),s=oe(t,o),l=Av(n);return u.useEffect(()=>{const i=o.current,a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(l!==n&&f){const m=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(m)}},[l,n]),c.jsx(ou,{asChild:!0,children:c.jsx("select",{...r,ref:s,defaultValue:n})})});dh.displayName="BubbleSelect";function fh(e){const t=Be(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(l=>{const i=n.current+l;t(i),function a(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(i)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function mh(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=B4(e,Math.max(s,0));o.length===1&&(l=l.filter(d=>d!==n));const a=l.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function B4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var q4=Yp,W4=Vp,G4=Zp,Y4=Xp,U4=Kp,V4=th,H4=rh,Z4=lh,X4=ih;const K4="default";function Pi({value:e,placeholder:t,size:n=K4,icon:r,onChange:o,onKeyDown:s,hasClear:l=!1,customStyle:i}){const[a,d]=u.useState(!1),f=u.useRef(null),m=g=>{o(g.target.value)},p=()=>{d(!0)},h=g=>{f.current==null||g.relatedTarget!==f.current?d(!1):g.target.focus()};return c.jsxs("div",{...R.props(Io.main,a&&Io.focused,Q4[n],i),children:[r&&c.jsx(re,{name:r,color:"secondary"}),c.jsx("input",{...R.props(z.body,Io.input),value:e,placeholder:t,onChange:m,onFocus:p,onBlur:h,onKeyDown:s}),l&&c.jsx("button",{...R.props(z.supporting,Io.actionButton,e===""&&Io.hidden),ref:f,onClick:()=>o(""),tabIndex:0,children:"Clear"})]})}const Io={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mly520xni",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyk1e6ed",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},focused:{borderColor:"mly1y5yj0f",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyg48p7p",$$css:!0},input:{flexGrow:"mly1iyjqo2",height:"mly1qx5ct2",minWidth:"mlygc0pbm",padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,"::placeholder_color":"mly1njml60",$$css:!0},actionButton:{display:"mly3nfvp2",borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,marginLeft:"mly1iog12x",marginInlineStart:null,marginInlineEnd:null,cursor:"mly1ypdohk",color:"mlykfrnou",$$css:!0},hidden:{visibility:"mlylshs6z",$$css:!0}},Q4={default:{padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function Ni({value:e,onChange:t,icon:n,color:r=po,size:o=fu,items:s,isSearchable:l=!1,customStyle:i}){var a;const[d,f]=u.useState(""),m=u.useMemo(()=>d?s.filter(g=>g.label.toLowerCase().includes(d.toLowerCase())):s,[s,d]),p=g=>{t(g)},h=(a=s.find(g=>g.value===e))==null?void 0:a.label;return c.jsxs(q4,{value:e,onValueChange:p,required:!0,children:[c.jsxs(W4,{...R.props(Gn.main,Yo.selectTrigger,uu[r],du[o],z.body,Gn.label,i),children:[n&&c.jsx(re,{name:n,customStyle:Gn.icon}),c.jsx(G4,{asChild:!0,children:c.jsx("div",{className:"mlyb3r6kr mlylyipyv",children:h})})]}),c.jsx(Y4,{children:c.jsx(U4,{side:"bottom",position:"popper",sideOffset:4,children:c.jsxs(V4,{className:"mly4pepcl mlyotlr4g mly17fq3gk",children:[l&&c.jsx(Pi,{value:d,onChange:g=>f(g),placeholder:"Search",size:"compact",icon:"search",hasClear:!0,customStyle:Yo.searchInput,onKeyDown:g=>{["ArrowUp","ArrowDown"].includes(g.key)||setTimeout(()=>{g.target.focus()},10)}}),c.jsx(Ls,{children:c.jsx(H4,{className:"mly78zum5 mlydt5ytf mlyuyqlj2 mlyfawy5m mly195vfkc",children:m.map(g=>c.jsx(J4,{value:g.value,selectedValue:e,children:g.label},g.value))})})]})})})]})}function J4({children:e,value:t,selectedValue:n,...r}){return c.jsxs(Z4,{...R.props(z.body,Yo.selectItem),value:t,...r,children:[t===n?c.jsx(re,{name:"radioChecked",customStyle:Yo.radioChecked}):c.jsx(re,{name:"radioUnchecked",customStyle:Yo.radioUnchecked}),c.jsx(X4,{children:e})]})}const Yo={selectTrigger:{whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},selectItem:{display:"mly78zum5",alignItems:"mly6s0dn4",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,cursor:"mly1ypdohk",outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,":is([data-highlighted])_background":"mly1bw6wve",":is([data-highlighted])_backgroundAttachment":null,":is([data-highlighted])_backgroundClip":null,":is([data-highlighted])_backgroundColor":null,":is([data-highlighted])_backgroundImage":null,":is([data-highlighted])_backgroundOrigin":null,":is([data-highlighted])_backgroundPosition":null,":is([data-highlighted])_backgroundPositionX":null,":is([data-highlighted])_backgroundPositionY":null,":is([data-highlighted])_backgroundRepeat":null,":is([data-highlighted])_backgroundSize":null,':is([data-state="checked"])_background':"mlyamyxth mlyejs3c0",':is([data-state="checked"])_backgroundAttachment':null,':is([data-state="checked"])_backgroundClip':null,':is([data-state="checked"])_backgroundColor':null,':is([data-state="checked"])_backgroundImage':null,':is([data-state="checked"])_backgroundOrigin':null,':is([data-state="checked"])_backgroundPosition':null,':is([data-state="checked"])_backgroundPositionX':null,':is([data-state="checked"])_backgroundPositionY':null,':is([data-state="checked"])_backgroundRepeat':null,':is([data-state="checked"])_backgroundSize':null,$$css:!0},radioChecked:{color:"mlykfrnou",$$css:!0},radioUnchecked:{color:"mlyj5j7qc",$$css:!0},searchInput:{borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function e6({header:e,children:t,customStyle:n}){return c.jsxs("div",{...R.props(t6.container,n),children:[c.jsx("div",{className:"mly1717udv",children:e}),c.jsx("div",{className:"mly1y1aw1k mly1iyjqo2 mly78zum5",children:t})]})}const t6={container:{display:"mly78zum5",flexDirection:"mlydt5ytf",background:"mly17eh757",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderStyle:"mly1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderColor:"mly17v018m",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,flexShrink:"mly2lah0s",$$css:!0}};function hu({title:e,children:t,icon:n,defaultOpen:r=!0,controls:o,collapsedControls:s,isFocused:l=!1}){const[i,a]=u.useState(r);return c.jsxs("div",{...{0:{className:"mlygbc89k mly1sxf85j mly1717udv"},1:{className:"mly1sxf85j mly1717udv mlybwr872"}}[!!l<<0],children:[c.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly52fmzj mlylqzeqv mlyfawy5m mly167g77z mly6s0dn4",children:[c.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly167g77z",children:[n&&c.jsx(re,{name:n,customStyle:n6.icon}),c.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv mlyehqz9p mly1ghz6dp mly117nqv4",children:e})]}),c.jsxs("div",{className:"mly78zum5",children:[i?c.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:o}):c.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:s}),c.jsx(Ce,{variant:"flat",size:"compact",onClick:()=>a(!i),icon:i?"chevronDown":"chevronRight",tooltip:i?"Collapse":"Expand"})]})]}),c.jsx("div",{...{0:{className:"mly1l4tkcb"},1:{className:"mly1l4tkcb mly1s85apg"}}[!i<<0],children:t})]})}const n6={icon:{$$css:!0}};function r6({label:e,sublabel:t,children:n,isInitiallyExpanded:r=!1}){const[o,s]=u.useState(r),l=()=>{s(i=>!i)};return c.jsxs("div",{children:[c.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mlyur7f20 mly1ypdohk mly1haqvef",onClick:l,children:[o?c.jsx(re,{name:"chevronDown",color:"secondary"}):c.jsx(re,{name:"chevronRight",color:"secondary"}),c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlyb3r6kr",children:[c.jsx("span",{...R.props(z.body,wf.label),children:e}),t&&c.jsx("span",{...R.props(z.supporting,wf.sublabel),children:t})]})]}),o&&c.jsx("div",{className:"mly78zum5 mlydt5ytf mly92jh8x mly1jnr06f",children:u.Children.map(n,i=>i)})]})}const wf={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},o6={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},s6={single:"1em",double:"2em"},l6=({lineSpacing:e})=>({line(t){const n=[...Array.isArray(t.properties.style)?t.properties.style:typeof t.properties.style=="string"?[t.properties.style]:[]];n.push(`line-height: ${s6[e]};`),t.properties.style=n}}),i6=({showLineNumbers:e})=>{if(e)return{line(t,n){const r={type:"element",tagName:"span",children:[{type:"text",value:`${n}`}],properties:{style:["color: rgba(115, 138, 148, 0.4);","margin-right: 35px;","width: 1px;","display: inline-block;","user-select: none"]}};t.children.unshift(r)}}},a6=[l6,i6];function c6(e){return a6.map(t=>t(e)).filter(t=>t!==void 0)}let Qe=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function u6(e){return gu(e)}function gu(e){return Array.isArray(e)?d6(e):e instanceof RegExp?e:typeof e=="object"?f6(e):e}function d6(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=gu(e[n]);return t}function f6(e){let t={};for(let n in e)t[n]=gu(e[n]);return t}function ph(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function hh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?hh(e.substring(0,e.length-1)):e.substr(~t+1)}var _a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,al=class{static hasCaptures(e){return e===null?!1:(_a.lastIndex=0,_a.test(e))}static replaceCaptures(e,t,n){return e.replace(_a,(r,o,s,l)=>{let i=n[parseInt(o||s,10)];if(i){let a=t.substring(i.start,i.end);for(;a[0]===".";)a=a.substring(1);switch(l){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function gh(e,t){return e<t?-1:e>t?1:0}function yh(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let s=gh(e[o],t[o]);if(s!==0)return s}return 0}return n-r}function xf(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vh(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var bh=class{constructor(e){j(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Gl=class{constructor(e,t,n){j(this,"_cachedMatchRoot",new bh(r=>this._root.match(r))),this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(h6(e),t)}static createFromParsedTheme(e,t){return y6(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(o=>m6(e.parent,o.parentScopes));return r?new wh(r.fontStyle,r.foreground,r.background):null}},ka=class Rl{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Rl(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Rl(n,t[r]);return n}push(t){return new Rl(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function m6(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!p6(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function p6(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var wh=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function h6(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,s=t.length;o<s;o++){let l=t[o];if(!l.settings)continue;let i;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),i=m.split(",")}else Array.isArray(l.scope)?i=l.scope:i=[""];let a=-1;if(typeof l.settings.fontStyle=="string"){a=0;let m=l.settings.fontStyle.split(" ");for(let p=0,h=m.length;p<h;p++)switch(m[p]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let d=null;typeof l.settings.foreground=="string"&&xf(l.settings.foreground)&&(d=l.settings.foreground);let f=null;typeof l.settings.background=="string"&&xf(l.settings.background)&&(f=l.settings.background);for(let m=0,p=i.length;m<p;m++){let g=i[m].trim().split(" "),y=g[g.length-1],v=null;g.length>1&&(v=g.slice(0,g.length-1),v.reverse()),n[r++]=new g6(y,v,o,a,d,f)}}return n}var g6=class{constructor(e,t,n,r,o,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=s}},mn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(mn||{});function y6(e,t){e.sort((a,d)=>{let f=gh(a.scope,d.scope);return f!==0||(f=yh(a.parentScopes,d.parentScopes),f!==0)?f:a.index-d.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let a=e.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(o=a.background)}let s=new v6(t),l=new wh(n,s.getId(r),s.getId(o)),i=new w6(new pc(0,null,-1,0,0),[]);for(let a=0,d=e.length;a<d;a++){let f=e[a];i.insert(0,f.scope,f.parentScopes,f.fontStyle,s.getId(f.foreground),s.getId(f.background))}return new Gl(s,l,i)}var v6=class{constructor(e){if(j(this,"_isFrozen"),j(this,"_lastColorId"),j(this,"_id2color"),j(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},b6=Object.freeze([]),pc=class xh{constructor(t,n,r,o,s){j(this,"scopeDepth"),j(this,"parentScopes"),j(this,"fontStyle"),j(this,"foreground"),j(this,"background"),this.scopeDepth=t,this.parentScopes=n||b6,this.fontStyle=r,this.foreground=o,this.background=s}clone(){return new xh(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},w6=class hc{constructor(t,n=[],r={}){j(this,"_rulesWithParentScopes"),this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const s=n.parentScopes[o].length-t.parentScopes[r].length;if(s!==0)return s;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,s;if(r===-1?(o=t,s=""):(o=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(hc._cmpBySpecificity),n}insert(t,n,r,o,s,l){if(n===""){this._doInsertHere(t,r,o,s,l);return}let i=n.indexOf("."),a,d;i===-1?(a=n,d=""):(a=n.substring(0,i),d=n.substring(i+1));let f;this._children.hasOwnProperty(a)?f=this._children[a]:(f=new hc(this._mainRule.clone(),pc.cloneArr(this._rulesWithParentScopes)),this._children[a]=f),f.insert(t+1,d,r,o,s,l)}_doInsertHere(t,n,r,o,s){if(n===null){this._mainRule.acceptOverwrite(t,r,o,s);return}for(let l=0,i=this._rulesWithParentScopes.length;l<i;l++){let a=this._rulesWithParentScopes[l];if(yh(a.parentScopes,n)===0){a.acceptOverwrite(t,r,o,s);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new pc(t,n,r,o,s))}},Qr=class vt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=vt.getLanguageId(t),r=vt.getTokenType(t),o=vt.getFontStyle(t),s=vt.getForeground(t),l=vt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:s,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,s,l,i){let a=vt.getLanguageId(t),d=vt.getTokenType(t),f=vt.containsBalancedBrackets(t)?1:0,m=vt.getFontStyle(t),p=vt.getForeground(t),h=vt.getBackground(t);return n!==0&&(a=n),r!==8&&(d=r),o!==null&&(f=o?1:0),s!==-1&&(m=s),l!==0&&(p=l),i!==0&&(h=i),(a<<0|d<<8|f<<10|m<<11|p<<15|h<<24)>>>0}};function Yl(e,t){const n=[],r=x6(e);let o=r.next();for(;o!==null;){let a=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let d=l();if(n.push({matcher:d,priority:a}),o!==",")break;o=r.next()}return n;function s(){if(o==="-"){o=r.next();const a=s();return d=>!!a&&!a(d)}if(o==="("){o=r.next();const a=i();return o===")"&&(o=r.next()),a}if(Cf(o)){const a=[];do a.push(o),o=r.next();while(Cf(o));return d=>t(a,d)}return null}function l(){const a=[];let d=s();for(;d;)a.push(d),d=s();return f=>a.every(m=>m(f))}function i(){const a=[];let d=l();for(;d&&(a.push(d),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");d=l()}return f=>a.some(m=>m(f))}}function Cf(e){return!!e&&!!e.match(/[\w\.:]+/)}function x6(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Ch(e){typeof e.dispose=="function"&&e.dispose()}var ss=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},C6=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_6=class{constructor(){j(this,"_references",[]),j(this,"_seenReferenceKeys",new Set),j(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},k6=class{constructor(e,t){j(this,"seenFullScopeRequests",new Set),j(this,"seenPartialScopeRequests",new Set),j(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ss(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new _6;for(const n of e)S6(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof ss){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function S6(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof ss?El({baseGrammar:s,selfGrammar:o},r):gc(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const l=n.injections(e.scopeName);if(l)for(const i of l)r.add(new ss(i))}function gc(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ul([r],t,n)}}function El(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ul(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ul(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ul(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?ph({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ul(r.patterns,{...t,repository:o},n);const s=r.include;if(!s)continue;const l=_h(s);switch(l.kind){case 0:El({...t,selfGrammar:t.baseGrammar},n);break;case 1:El(t,n);break;case 2:gc(l.ruleName,{...t,repository:o},n);break;case 3:case 4:const i=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){const a={baseGrammar:t.baseGrammar,selfGrammar:i,repository:o};l.kind===4?gc(l.ruleName,a,n):El(a,n)}else l.kind===4?n.add(new C6(l.scopeName,l.ruleName)):n.add(new ss(l.scopeName));break}}}var R6=class{constructor(){j(this,"kind",0)}},E6=class{constructor(){j(this,"kind",1)}},j6=class{constructor(e){j(this,"kind",2),this.ruleName=e}},T6=class{constructor(e){j(this,"kind",3),this.scopeName=e}},L6=class{constructor(e,t){j(this,"kind",4),this.scopeName=e,this.ruleName=t}};function _h(e){if(e==="$base")return new R6;if(e==="$self")return new E6;const t=e.indexOf("#");if(t===-1)return new T6(e);if(t===0)return new j6(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new L6(n,r)}}var M6=/\\(\d+)/,_f=/\\(\d+)/g,A6=-1,kh=-2;var Ps=class{constructor(e,t,n,r){j(this,"$location"),j(this,"id"),j(this,"_nameIsCapturing"),j(this,"_name"),j(this,"_contentNameIsCapturing"),j(this,"_contentName"),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=al.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=al.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${hh(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:al.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:al.replaceCaptures(this._contentName,e,t)}},I6=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,r),j(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},D6=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,null),j(this,"_match"),j(this,"captures"),j(this,"_cachedCompiledPatterns"),this._match=new ls(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new is,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kf=class extends Ps{constructor(e,t,n,r,o){super(e,t,n,r),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new is,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yc=class extends Ps{constructor(e,t,n,r,o,s,l,i,a,d){super(e,t,n,r),j(this,"_begin"),j(this,"beginCaptures"),j(this,"_end"),j(this,"endHasBackReferences"),j(this,"endCaptures"),j(this,"applyEndPatternLast"),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),this._begin=new ls(o,this.id),this.beginCaptures=s,this._end=new ls(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=a||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new is;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Vl=class extends Ps{constructor(e,t,n,r,o,s,l,i,a){super(e,t,n,r),j(this,"_begin"),j(this,"beginCaptures"),j(this,"whileCaptures"),j(this,"_while"),j(this,"whileHasBackReferences"),j(this,"hasMissingPatterns"),j(this,"patterns"),j(this,"_cachedCompiledPatterns"),j(this,"_cachedCompiledWhilePatterns"),this._begin=new ls(o,this.id),this.beginCaptures=s,this.whileCaptures=i,this._while=new ls(l,kh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new is;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new is,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Sh=class Xe{static createCaptureRule(t,n,r,o,s){return t.registerRule(l=>new I6(n,l,r,o,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new D6(t.$vscodeTextmateLocation,t.id,t.name,t.match,Xe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=ph({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new kf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Xe._compilePatterns(s,n,r))}return t.while?new Vl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Xe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Xe._compileCaptures(t.whileCaptures||t.captures,n,r),Xe._compilePatterns(t.patterns,n,r)):new yc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Xe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Xe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Xe._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const i=parseInt(l,10);i>s&&(s=i)}for(let l=0;l<=s;l++)o[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const i=parseInt(l,10);let a=0;t[l].patterns&&(a=Xe.getCompiledRuleId(t[l],n,r)),o[i]=Xe.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,a)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let s=0,l=t.length;s<l;s++){const i=t[s];let a=-1;if(i.include){const d=_h(i.include);switch(d.kind){case 0:case 1:a=Xe.getCompiledRuleId(r[i.include],n,r);break;case 2:let f=r[d.ruleName];f&&(a=Xe.getCompiledRuleId(f,n,r));break;case 3:case 4:const m=d.scopeName,p=d.kind===4?d.ruleName:null,h=n.getExternalGrammar(m,r);if(h)if(p){let g=h.repository[p];g&&(a=Xe.getCompiledRuleId(g,n,h.repository))}else a=Xe.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else a=Xe.getCompiledRuleId(i,n,r);if(a!==-1){const d=n.getRule(a);let f=!1;if((d instanceof kf||d instanceof yc||d instanceof Vl)&&d.hasMissingPatterns&&d.patterns.length===0&&(f=!0),f)continue;o.push(a)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},ls=class Rh{constructor(t,n){if(j(this,"source"),j(this,"ruleId"),j(this,"hasAnchor"),j(this,"hasBackReferences"),j(this,"_anchorCache"),t&&typeof t=="string"){const r=t.length;let o=0,s=[],l=!1;for(let i=0;i<r;i++)if(t.charAt(i)==="\\"&&i+1<r){const d=t.charAt(i+1);d==="z"?(s.push(t.substring(o,i)),s.push("$(?!\\n)(?<!\\n)"),o=i+2):(d==="A"||d==="G")&&(l=!0),i++}this.hasAnchor=l,o===0?this.source=t:(s.push(t.substring(o,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=M6.test(this.source):this.hasBackReferences=!1}clone(){return new Rh(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return _f.lastIndex=0,this.source.replace(_f,(o,s)=>vh(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],s,l,i,a;for(s=0,l=this.source.length;s<l;s++)i=this.source.charAt(s),t[s]=i,n[s]=i,r[s]=i,o[s]=i,i==="\\"&&s+1<l&&(a=this.source.charAt(s+1),a==="A"?(t[s+1]="",n[s+1]="",r[s+1]="A",o[s+1]="A"):a==="G"?(t[s+1]="",n[s+1]="G",r[s+1]="",o[s+1]="G"):(t[s+1]=a,n[s+1]=a,r[s+1]=a,o[s+1]=a),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},is=class{constructor(){j(this,"_items"),j(this,"_hasAnchors"),j(this,"_cached"),j(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Sf(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new Sf(e,r,this._items.map(o=>o.ruleId))}},Sf=class{constructor(e,t,n){j(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
42
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Sa=class{constructor(e,t){this.languageId=e,this.tokenType=t}},P6=(Sr=class{constructor(e,t){j(this,"_defaultAttributes"),j(this,"_embeddedLanguagesMatcher"),j(this,"_getBasicScopeAttributes",new bh(n=>{const r=this._scopeToLanguage(n),o=this._toStandardTokenType(n);return new Sa(r,o)})),this._defaultAttributes=new Sa(e,8),this._embeddedLanguagesMatcher=new N6(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Sr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Sr.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},j(Sr,"_NULL_SCOPE_METADATA",new Sa(0,0)),j(Sr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Sr),N6=class{constructor(e){if(j(this,"values"),j(this,"scopesRegExp"),e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>vh(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Rf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Eh(e,t,n,r,o,s,l,i){const a=t.content.length;let d=!1,f=-1;if(l){const h=O6(e,t,n,r,o,s);o=h.stack,r=h.linePos,n=h.isFirstLine,f=h.anchorPosition}const m=Date.now();for(;!d;){if(i!==0&&Date.now()-m>i)return new Rf(o,!0);p()}return new Rf(o,!1);function p(){const h=$6(e,t,n,r,o,f);if(!h){s.produce(o,a),d=!0;return}const g=h.captureIndices,y=h.matchedRuleId,v=g&&g.length>0?g[0].end>r:!1;if(y===A6){const w=o.getRule(e);s.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),Wo(e,t,n,o,s,w.endCaptures,g),s.produce(o,g[0].end);const b=o;if(o=o.parent,f=b.getAnchorPos(),!v&&b.getEnterPos()===r){o=b,s.produce(o,a),d=!0;return}}else{const w=e.getRule(y);s.produce(o,g[0].start);const b=o,x=w.getName(t.content,g),C=o.contentNameScopesList.pushAttributed(x,e);if(o=o.push(y,r,f,g[0].end===a,null,C,C),w instanceof yc){const _=w;Wo(e,t,n,o,s,_.beginCaptures,g),s.produce(o,g[0].end),f=g[0].end;const S=_.getContentName(t.content,g),k=C.pushAttributed(S,e);if(o=o.withContentNameScopesList(k),_.endHasBackReferences&&(o=o.withEndRule(_.getEndWithResolvedBackReferences(t.content,g))),!v&&b.hasSameRuleAs(o)){o=o.pop(),s.produce(o,a),d=!0;return}}else if(w instanceof Vl){const _=w;Wo(e,t,n,o,s,_.beginCaptures,g),s.produce(o,g[0].end),f=g[0].end;const S=_.getContentName(t.content,g),k=C.pushAttributed(S,e);if(o=o.withContentNameScopesList(k),_.whileHasBackReferences&&(o=o.withEndRule(_.getWhileWithResolvedBackReferences(t.content,g))),!v&&b.hasSameRuleAs(o)){o=o.pop(),s.produce(o,a),d=!0;return}}else if(Wo(e,t,n,o,s,w.captures,g),s.produce(o,g[0].end),o=o.pop(),!v){o=o.safePop(),s.produce(o,a),d=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function O6(e,t,n,r,o,s){let l=o.beginRuleCapturedEOL?0:-1;const i=[];for(let a=o;a;a=a.pop()){const d=a.getRule(e);d instanceof Vl&&i.push({rule:d,stack:a})}for(let a=i.pop();a;a=i.pop()){const{ruleScanner:d,findOptions:f}=B6(a.rule,e,a.stack.endRule,n,r===l),m=d.findNextMatchSync(t,r,f);if(m){if(m.ruleId!==kh){o=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(a.stack,m.captureIndices[0].start),Wo(e,t,n,a.stack,s,a.rule.whileCaptures,m.captureIndices),s.produce(a.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{o=a.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}function $6(e,t,n,r,o,s){const l=z6(e,t,n,r,o,s),i=e.getInjections();if(i.length===0)return l;const a=F6(i,e,t,n,r,o,s);if(!a)return l;if(!l)return a;const d=l.captureIndices[0].start,f=a.captureIndices[0].start;return f<d||a.priorityMatch&&f===d?a:l}function z6(e,t,n,r,o,s){const l=o.getRule(e),{ruleScanner:i,findOptions:a}=jh(l,e,o.endRule,n,r===s),d=i.findNextMatchSync(t,r,a);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function F6(e,t,n,r,o,s,l){let i=Number.MAX_VALUE,a=null,d,f=0;const m=s.contentNameScopesList.getScopeNames();for(let p=0,h=e.length;p<h;p++){const g=e[p];if(!g.matcher(m))continue;const y=t.getRule(g.ruleId),{ruleScanner:v,findOptions:w}=jh(y,t,null,r,o===l),b=v.findNextMatchSync(n,o,w);if(!b)continue;const x=b.captureIndices[0].start;if(!(x>=i)&&(i=x,a=b.captureIndices,d=b.ruleId,f=g.priority,i===o))break}return a?{priorityMatch:f===-1,captureIndices:a,matchedRuleId:d}:null}function jh(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function B6(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function Wo(e,t,n,r,o,s,l){if(s.length===0)return;const i=t.content,a=Math.min(s.length,l.length),d=[],f=l[0].end;for(let m=0;m<a;m++){const p=s[m];if(p===null)continue;const h=l[m];if(h.length===0)continue;if(h.start>f)break;for(;d.length>0&&d[d.length-1].endPos<=h.start;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?o.produceFromScopes(d[d.length-1].scopes,h.start):o.produce(r,h.start),p.retokenizeCapturedWithRuleId){const y=p.getName(i,l),v=r.contentNameScopesList.pushAttributed(y,e),w=p.getContentName(i,l),b=v.pushAttributed(w,e),x=r.push(p.retokenizeCapturedWithRuleId,h.start,-1,!1,null,v,b),C=e.createOnigString(i.substring(0,h.end));Eh(e,C,n&&h.start===0,h.start,x,o,!1,0),Ch(C);continue}const g=p.getName(i,l);if(g!==null){const v=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);d.push(new q6(v,h.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var q6=class{constructor(e,t){j(this,"scopes"),j(this,"endPos"),this.scopes=e,this.endPos=t}};function W6(e,t,n,r,o,s,l,i){return new Y6(e,t,n,r,o,s,l,i)}function Ef(e,t,n,r,o){const s=Yl(t,Hl),l=Sh.getCompiledRuleId(n,r,o.repository);for(const i of s)e.push({debugSelector:t,matcher:i.matcher,ruleId:l,grammar:o,priority:i.priority})}function Hl(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(G6(t[o],r))return n=o+1,!0;return!1})}function G6(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Y6=class{constructor(e,t,n,r,o,s,l,i){if(j(this,"_rootId"),j(this,"_lastRuleId"),j(this,"_ruleId2desc"),j(this,"_includedGrammars"),j(this,"_grammarRepository"),j(this,"_grammar"),j(this,"_injections"),j(this,"_basicScopeAttributesProvider"),j(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=i,this._basicScopeAttributesProvider=new P6(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=jf(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const a of Object.keys(o)){const d=Yl(a,Hl);for(const f of d)this._tokenTypeMatchers.push({matcher:f.matcher,type:o[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let l in o)Ef(t,l,o[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const i=this.getExternalGrammar(l);if(i){const a=i.injectionSelector;a&&Ef(t,a,i,this,i)}})}return t.sort((o,s)=>o.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=jf(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Sh.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===vc.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),m=Qr.set(0,d.languageId,d.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),p=this.getRule(this._rootId).getName(null,null);let h;p?h=Uo.createRootAndLookUpScopeName(p,m,this):h=Uo.createRoot("unknown",m),t=new vc(null,this._rootId,-1,-1,!1,null,h,h)}else o=!1,t.reset();e=e+`
|
|
43
|
+
`;const s=this.createOnigString(e),l=s.content.length,i=new V6(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Eh(this,s,o,0,t,i,!0,r);return Ch(s),{lineLength:l,lineTokens:i,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function jf(e,t){return e=u6(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Uo=class Yt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const s of n)o=ka.push(o,s.scopeNames),r=new Yt(r,o,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Yt(null,new ka(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),s=new ka(null,t),l=r.themeProvider.themeMatch(s),i=Yt.mergeAttributes(n,o,l);return new Yt(null,s,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Yt.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,s=0,l=0;return r!==null&&(o=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Qr.set(t,n.languageId,n.tokenType,null,o,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Yt._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const s of r)o=Yt._pushAttributed(o,s,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),i=Yt.mergeAttributes(t.tokenAttributes,o,l);return new Yt(t,s,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var n;const r=[];let o=this;for(;o&&o!==t;)r.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(((n=o.parent)==null?void 0:n.scopePath)??null)}),o=o.parent;return o===t?r.reverse():void 0}},vc=(sn=class{constructor(e,t,n,r,o,s,l,i){j(this,"_stackElementBrand"),j(this,"_enterPos"),j(this,"_anchorPos"),j(this,"depth"),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=i,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return e===null?!1:sn._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Uo.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){sn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,s,l){return new sn(this,e,t,n,r,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(r=this.contentNameScopesList)==null?void 0:r.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new sn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=Uo.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new sn(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,Uo.fromExtension(n,t.contentNameScopesList))}},j(sn,"NULL",new sn(null,0,0,0,!1,null,null,null)),sn),U6=class{constructor(e,t){j(this,"balancedBracketScopes"),j(this,"unbalancedBracketScopes"),j(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Yl(n,Hl).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Yl(n,Hl).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},V6=class{constructor(e,t,n,r){j(this,"_emitBinaryTokens"),j(this,"_lineText"),j(this,"_tokens"),j(this,"_binaryTokens"),j(this,"_lastTokenEndIndex"),j(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,s=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(l)&&(o=Qr.set(o,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(l))}if(s&&(o=Qr.set(o,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},H6=class{constructor(e,t){j(this,"_grammars",new Map),j(this,"_rawGrammars",new Map),j(this,"_injectionGrammars",new Map),j(this,"_theme"),this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,W6(e,s,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},Z6=class{constructor(t){j(this,"_options"),j(this,"_syncRegistry"),j(this,"_ensureGrammarCache"),this._options=t,this._syncRegistry=new H6(Gl.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Gl.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new U6(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,s){const l=new k6(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(i=>this._loadSingleGrammar(i.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,o,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,s)}},bc=vc.NULL;const X6=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ns{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ns.prototype.normal={};Ns.prototype.property={};Ns.prototype.space=void 0;function Th(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ns(n,r,t)}function wc(e){return e.toLowerCase()}class st{constructor(t,n){this.attribute=n,this.property=t}}st.prototype.attribute="";st.prototype.booleanish=!1;st.prototype.boolean=!1;st.prototype.commaOrSpaceSeparated=!1;st.prototype.commaSeparated=!1;st.prototype.defined=!1;st.prototype.mustUseProperty=!1;st.prototype.number=!1;st.prototype.overloadedBoolean=!1;st.prototype.property="";st.prototype.spaceSeparated=!1;st.prototype.space=void 0;let K6=0;const J=gr(),Oe=gr(),Lh=gr(),D=gr(),we=gr(),Wr=gr(),dt=gr();function gr(){return 2**++K6}const xc=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:Oe,commaOrSpaceSeparated:dt,commaSeparated:Wr,number:D,overloadedBoolean:Lh,spaceSeparated:we},Symbol.toStringTag,{value:"Module"})),Ra=Object.keys(xc);class yu extends st{constructor(t,n,r,o){let s=-1;if(super(t,n),Tf(this,"space",o),typeof r=="number")for(;++s<Ra.length;){const l=Ra[s];Tf(this,Ra[s],(r&xc[l])===xc[l])}}}yu.prototype.defined=!0;function Tf(e,t,n){n&&(e[t]=n)}function go(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const s=new yu(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[wc(r)]=r,n[wc(s.attribute)]=r}return new Ns(t,n,e.space)}const Mh=go({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:we,ariaCurrent:null,ariaDescribedBy:we,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:we,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:we,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:we,ariaLevel:D,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:we,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:we,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Oe,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ah(e,t){return t in e?e[t]:t}function Ih(e,t){return Ah(e,t.toLowerCase())}const Q6=go({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wr,acceptCharset:we,accessKey:we,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:we,autoFocus:J,autoPlay:J,blocking:we,capture:null,charSet:null,checked:J,cite:null,className:we,cols:D,colSpan:null,content:null,contentEditable:Oe,controls:J,controlsList:we,coords:D|Wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:Lh,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:we,height:D,hidden:J,high:D,href:null,hrefLang:null,htmlFor:we,httpEquiv:we,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:we,itemRef:we,itemScope:J,itemType:we,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:D,pattern:null,ping:we,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:we,required:J,reversed:J,rows:D,rowSpan:D,sandbox:we,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:Oe,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:we,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:Ih}),J6=go({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dt,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:we,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wr,g2:Wr,glyphName:Wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:dt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:we,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dt,rev:dt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dt,requiredFeatures:dt,requiredFonts:dt,requiredFormats:dt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:dt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dt,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ah}),Dh=go({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ph=go({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ih}),Nh=go({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),eb=/[A-Z]/g,Lf=/-[a-z]/g,tb=/^data[-\w.:]+$/i;function nb(e,t){const n=wc(t);let r=t,o=st;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&tb.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Lf,ob);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Lf.test(s)){let l=s.replace(eb,rb);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=yu}return new o(r,t)}function rb(e){return"-"+e.toLowerCase()}function ob(e){return e.charAt(1).toUpperCase()}const sb=Th([Mh,Q6,Dh,Ph,Nh],"html"),Oh=Th([Mh,J6,Dh,Ph,Nh],"svg"),Mf={}.hasOwnProperty;function lb(e,t){const n=t||{};function r(o,...s){let l=r.invalid;const i=r.handlers;if(o&&Mf.call(o,e)){const a=String(o[e]);l=Mf.call(i,a)?i[a]:r.unknown}if(l)return l.call(this,o,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ib=/["&'<>`]/g,ab=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cb=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ub=/[|\\{}()[\]^$+*?.]/g,Af=new WeakMap;function db(e,t){if(e=e.replace(t.subset?fb(t.subset):ib,r),t.subset||t.escapeOnly)return e;return e.replace(ab,n).replace(cb,r);function n(o,s,l){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(o,s,l){return t.format(o.charCodeAt(0),l.charCodeAt(s+1),t)}}function fb(e){let t=Af.get(e);return t||(t=mb(e),Af.set(e,t)),t}function mb(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(ub,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const pb=/[\dA-Fa-f]/;function hb(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!pb.test(String.fromCharCode(t))?r:r+";"}const gb=/\d/;function yb(e,t,n){const r="&#"+String(e);return n&&t&&!gb.test(String.fromCharCode(t))?r:r+";"}const vb=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ea={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},bb=["cent","copy","divide","gt","lt","not","para","times"],$h={}.hasOwnProperty,Cc={};let cl;for(cl in Ea)$h.call(Ea,cl)&&(Cc[Ea[cl]]=cl);const wb=/[^\dA-Za-z]/;function xb(e,t,n,r){const o=String.fromCharCode(e);if($h.call(Cc,o)){const s=Cc[o],l="&"+s;return n&&vb.includes(s)&&!bb.includes(s)&&(!r||t&&t!==61&&wb.test(String.fromCharCode(t)))?l:l+";"}return""}function Cb(e,t,n){let r=hb(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=xb(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const s=yb(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Gr(e,t){return db(e,Object.assign({format:Cb},t))}const _b=/^>|^->|<!--|-->|--!>|<!-$/g,kb=[">"],Sb=["<",">"];function Rb(e,t,n,r){return r.settings.bogusComments?"<?"+Gr(e.value,Object.assign({},r.settings.characterReferences,{subset:kb}))+">":"<!--"+e.value.replace(_b,o)+"-->";function o(s){return Gr(s,Object.assign({},r.settings.characterReferences,{subset:Sb}))}}function Eb(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function If(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function jb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Tb(e){return e.join(" ").trim()}const Lb=/[ \t\n\f\r]/g;function vu(e){return typeof e=="object"?e.type==="text"?Df(e.value):!1:Df(e)}function Df(e){return e.replace(Lb,"")===""}const We=Fh(1),zh=Fh(-1),Mb=[];function Fh(e){return t;function t(n,r,o){const s=n?n.children:Mb;let l=(r||0)+e,i=s[l];if(!o)for(;i&&vu(i);)l+=e,i=s[l];return i}}const Ab={}.hasOwnProperty;function Bh(e){return t;function t(n,r,o){return Ab.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const bu=Bh({body:Db,caption:ja,colgroup:ja,dd:$b,dt:Ob,head:ja,html:Ib,li:Nb,optgroup:zb,option:Fb,p:Pb,rp:Pf,rt:Pf,tbody:qb,td:Nf,tfoot:Wb,th:Nf,thead:Bb,tr:Gb});function ja(e,t,n){const r=We(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&vu(r.value.charAt(0)))}function Ib(e,t,n){const r=We(n,t);return!r||r.type!=="comment"}function Db(e,t,n){const r=We(n,t);return!r||r.type!=="comment"}function Pb(e,t,n){const r=We(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Nb(e,t,n){const r=We(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Ob(e,t,n){const r=We(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function $b(e,t,n){const r=We(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Pf(e,t,n){const r=We(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function zb(e,t,n){const r=We(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Fb(e,t,n){const r=We(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Bb(e,t,n){const r=We(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function qb(e,t,n){const r=We(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Wb(e,t,n){return!We(n,t)}function Gb(e,t,n){const r=We(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Nf(e,t,n){const r=We(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Yb=Bh({body:Hb,colgroup:Zb,head:Vb,html:Ub,tbody:Xb});function Ub(e){const t=We(e,-1);return!t||t.type!=="comment"}function Vb(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Hb(e){const t=We(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vu(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Zb(e,t,n){const r=zh(n,t),o=We(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&bu(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Xb(e,t,n){const r=zh(n,t),o=We(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&bu(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const ul={name:[[`
|
|
44
|
+
\f\r &/=>`.split(""),`
|
|
45
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
46
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
47
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
48
|
+
\f\r &>`.split(""),`\0
|
|
49
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
50
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
51
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Kb(e,t,n,r){const o=r.schema,s=o.space==="svg"?!1:r.settings.omitOptionalTags;let l=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const i=[];let a;o.space==="html"&&e.tagName==="svg"&&(r.schema=Oh);const d=Qb(r,e.properties),f=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,f&&(l=!1),(d||!s||!Yb(e,t,n))&&(i.push("<",e.tagName,d?" "+d:""),l&&(o.space==="svg"||r.settings.closeSelfClosing)&&(a=d.charAt(d.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(f),!l&&(!s||!bu(e,t,n))&&i.push("</"+e.tagName+">"),i.join("")}function Qb(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const s=Jb(e,o,t[o]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function Jb(e,t,n){const r=nb(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,i;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=Gr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ul.name[o][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?jb:Tb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?a:(e.settings.preferUnquoted&&(i=Gr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ul.unquoted[o][s]}))),i!==n&&(e.settings.quoteSmart&&If(n,l)>If(n,e.alternative)&&(l=e.alternative),i=l+Gr(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?ul.single:ul.double)[o][s],attribute:!0}))+l),a+(i&&"="+i))}const e7=["<","&"];function qh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Gr(e.value,Object.assign({},r.settings.characterReferences,{subset:e7}))}function t7(e,t,n,r){return r.settings.allowDangerousHtml?e.value:qh(e,t,n,r)}function n7(e,t,n,r){return r.all(e)}const r7=lb("type",{invalid:o7,unknown:s7,handlers:{comment:Rb,doctype:Eb,element:Kb,raw:t7,root:n7,text:qh}});function o7(e){throw new Error("Expected node, not `"+e+"`")}function s7(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const l7={},i7={},a7=[];function c7(e,t){const n=t||l7,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:u7,all:d7,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||X6,characterReferences:n.characterReferences||i7,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Oh:sb,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function u7(e,t,n){return r7(e,t,n,this)}function d7(e){const t=[],n=e&&e.children||a7;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Zl(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[o]=s:o===r&&Object.assign(n,s);return n}function ar(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function f7(e){return Array.isArray(e)?e:[e]}async function Wh(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function wu(e){return!e||["plaintext","txt","text","plain"].includes(e)}function m7(e){return e==="ansi"||wu(e)}function xu(e){return e==="none"}function p7(e){return xu(e)}function Gh(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function Oi(e,t=!1){var n;const r=e.split(/(\r?\n)/g);let o=0;const s=[];for(let l=0;l<r.length;l+=2){const i=t?r[l]+(r[l+1]||""):r[l];s.push([i,o]),o+=r[l].length,o+=((n=r[l+1])==null?void 0:n.length)||0}return s}function h7(e){const t=Oi(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=o,l=0;for(const i of t){if(s<i.length)break;s-=i.length,l++}return{line:l,character:s}}function r(o,s){let l=0;for(let i=0;i<o;i++)l+=t[i].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function g7(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function y7(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const s=n.filter(l=>o.offset<l&&l<o.offset+o.content.length).map(l=>l-o.offset).sort((l,i)=>l-i);return s.length?g7(o,s):o})):e}function v7(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(a=>Yh(e.variants[a])),l=new Set(s.flatMap(a=>Object.keys(a))),i={};return s.forEach((a,d)=>{for(const f of l){const m=a[f]||"inherit";if(d===0&&r)i[f]=m;else{const p=f==="color"?"":f==="background-color"?"-bg":`-${f}`,h=n+t[d]+(f==="color"?"":p);i[h]=m}}}),o.htmlStyle=i,o}function Yh(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&mn.Italic&&(t["font-style"]="italic"),e.fontStyle&mn.Bold&&(t["font-weight"]="bold"),e.fontStyle&mn.Underline&&(t["text-decoration"]="underline")),t}function b7(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Uh=new WeakMap;function $i(e,t){Uh.set(e,t)}function as(e){return Uh.get(e)}class yo{constructor(...t){if(j(this,"_stacks",{}),j(this,"lang"),t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new yo(Object.fromEntries(f7(n).map(r=>[r,bc])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return w7(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function w7(e){const t=[],n=new Set;function r(o){var s;if(n.has(o))return;n.add(o);const l=(s=o?.nameScopesList)==null?void 0:s.scopeName;l&&t.push(l),o.parent&&r(o.parent)}return r(e),t}function x7(e,t){if(!(e instanceof yo))throw new Qe("Invalid grammar state");return e.getInternalStack(t)}function C7(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new Qe(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...o.indexToPos(l),offset:l}}else{const i=o.lines[l.line];if(i===void 0)throw new Qe(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${o.lines.length}`);if(l.character<0||l.character>i.length)throw new Qe(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${i.length}`);return{...l,offset:o.posToIndex(l.line,l.character)}}};const o=h7(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));_7(s),e.set(n.meta,{decorations:s,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var r;if(!((r=this.options.decorations)!=null&&r.length))return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return y7(n,s)},code(n){var r;if(!((r=this.options.decorations)!=null&&r.length))return;const o=t(this),s=Array.from(n.children).filter(m=>m.type==="element"&&m.tagName==="span");if(s.length!==o.converter.lines.length)throw new Qe(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function l(m,p,h,g){const y=s[m];let v="",w=-1,b=-1;if(p===0&&(w=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=y.children.length),w===-1||b===-1)for(let C=0;C<y.children.length;C++)v+=Vh(y.children[C]),w===-1&&v.length===p&&(w=C+1),b===-1&&v.length===h&&(b=C+1);if(w===-1)throw new Qe(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(b===-1)throw new Qe(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const x=y.children.slice(w,b);if(!g.alwaysWrap&&x.length===y.children.length)a(y,g,"line");else if(!g.alwaysWrap&&x.length===1&&x[0].type==="element")a(x[0],g,"token");else{const C={type:"element",tagName:"span",properties:{},children:x};a(C,g,"wrapper"),y.children.splice(w,x.length,C)}}function i(m,p){s[m]=a(s[m],p,"line")}function a(m,p,h){var g;const y=p.properties||{},v=p.transform||(w=>w);return m.tagName=p.tagName||"span",m.properties={...m.properties,...y,class:m.properties.class},(g=p.properties)!=null&&g.class&&Gh(m,p.properties.class),m=v(m,h)||m,m}const d=[],f=o.decorations.sort((m,p)=>p.start.offset-m.start.offset||m.end.offset-p.end.offset);for(const m of f){const{start:p,end:h}=m;if(p.line===h.line)l(p.line,p.character,h.character,m);else if(p.line<h.line){l(p.line,p.character,Number.POSITIVE_INFINITY,m);for(let g=p.line+1;g<h.line;g++)d.unshift(()=>i(g,m));l(h.line,0,h.character,m)}}d.forEach(m=>m())}}}function _7(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Qe(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],s=n.start.offset<=o.start.offset&&o.start.offset<n.end.offset,l=n.start.offset<o.end.offset&&o.end.offset<=n.end.offset,i=o.start.offset<=n.start.offset&&n.start.offset<o.end.offset,a=o.start.offset<n.end.offset&&n.end.offset<=o.end.offset;if(s||l||i||a){if(s&&l||i&&a)continue;throw new Qe(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function Vh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Vh).join(""):""}const k7=[C7()];function Xl(e){return[...e.transformers||[],...k7]}var cr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ta={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function S7(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Of(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function R7(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Ta[r]&&t.push({type:"setDecoration",value:Ta[r]});else if(r<=29){const o=Ta[r-20];o&&(t.push({type:"resetDecoration",value:o}),o==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:cr[r-30]}});else if(r===38){const o=Of(e);o&&t.push({type:"setForegroundColor",value:o})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:cr[r-40]}});else if(r===48){const o=Of(e);o&&t.push({type:"setBackgroundColor",value:o})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:cr[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:cr[r-100+8]}})}return t}function E7(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let s=0;do{const l=S7(r,s),i=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(i.length>0&&o.push({value:i,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const a=R7(l.sequence);for(const d of a)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of a)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}s=l.position}while(s<r.length);return o}}}var j7={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function T7(e=j7){function t(i){return e[i]}function n(i){return`#${i.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let d=0;d<cr.length;d++)r.push(t(cr[d]));let i=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let f=0;f<6;f++)for(let m=0;m<6;m++)r.push(n([i[d],i[f],i[m]]));let a=8;for(let d=0;d<24;d++,a+=10)r.push(n([a,a,a]));return r}function s(i){return o()[i]}function l(i){switch(i.type){case"named":return t(i.name);case"rgb":return n(i.rgb);case"table":return s(i.index)}}return{value:l}}function L7(e,t,n){const r=Zl(e,n),o=Oi(t),s=T7(Object.fromEntries(cr.map(i=>{var a;return[i,(a=e.colors)==null?void 0:a[`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`]]}))),l=E7();return o.map(i=>l.parse(i[0]).map(a=>{let d,f;a.decorations.has("reverse")?(d=a.background?s.value(a.background):e.bg,f=a.foreground?s.value(a.foreground):e.fg):(d=a.foreground?s.value(a.foreground):e.fg,f=a.background?s.value(a.background):void 0),d=ar(d,r),f=ar(f,r),a.decorations.has("dim")&&(d=M7(d));let m=mn.None;return a.decorations.has("bold")&&(m|=mn.Bold),a.decorations.has("italic")&&(m|=mn.Italic),a.decorations.has("underline")&&(m|=mn.Underline),{content:a.value,offset:i[1],color:d,bgColor:f,fontStyle:m}}))}function M7(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Cu(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(wu(r)||xu(o))return Oi(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:s,colorMap:l}=e.setTheme(o);if(r==="ansi")return L7(s,t,n);const i=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==i.name)throw new Qe(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Qe(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return I7(t,i,s,l,n)}function A7(...e){if(e.length===2)return as(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:s=t.getLoadedThemes()[0]}=r;if(wu(o)||xu(s))throw new Qe("Plain language does not have grammar state");if(o==="ansi")throw new Qe("ANSI language does not have grammar state");const{theme:l,colorMap:i}=t.setTheme(s),a=t.getLanguage(o);return new yo(Kl(n,a,l,i,r).stateStack,a.name,l.name)}function I7(e,t,n,r,o){const s=Kl(e,t,n,r,o),l=new yo(Kl(e,t,n,r,o).stateStack,t.name,n.name);return $i(s.tokens,l),s.tokens}function Kl(e,t,n,r,o){const s=Zl(n,o),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:i=500}=o,a=Oi(e);let d=o.grammarState?x7(o.grammarState,n.name)??bc:o.grammarContextCode!=null?Kl(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:bc,f=[];const m=[];for(let p=0,h=a.length;p<h;p++){const[g,y]=a[p];if(g===""){f=[],m.push([]);continue}if(l>0&&g.length>=l){f=[],m.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,w,b;o.includeExplanation&&(v=t.tokenizeLine(g,d,i),w=v.tokens,b=0);const x=t.tokenizeLine2(g,d,i),C=x.tokens.length/2;for(let _=0;_<C;_++){const S=x.tokens[2*_],k=_+1<C?x.tokens[2*_+2]:g.length;if(S===k)continue;const E=x.tokens[2*_+1],T=ar(r[Qr.getForeground(E)],s),M=Qr.getFontStyle(E),P={content:g.substring(S,k),offset:y+S,color:T,fontStyle:M};if(o.includeExplanation){const F=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let te;switch(typeof q.scope){case"string":te=q.scope.split(/,/).map(U=>U.trim());break;case"object":te=q.scope;break;default:continue}F.push({settings:q,selectors:te.map(U=>U.split(/ /))})}P.explanation=[];let V=0;for(;S+V<k;){const q=w[b],te=g.substring(q.startIndex,q.endIndex);V+=te.length,P.explanation.push({content:te,scopes:o.includeExplanation==="scopeName"?D7(q.scopes):P7(F,q.scopes)}),b+=1}}f.push(P)}m.push(f),f=[],d=x.ruleStack}return{tokens:m,stateStack:d}}function D7(e){return e.map(t=>({scopeName:t}))}function P7(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];n[r]={scopeName:s,themeMatches:O7(e,s,t.slice(0,r))}}return n}function $f(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function N7(e,t,n){if(!$f(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)$f(e[r],n[o])&&(r-=1),o-=1;return r===-1}function O7(e,t,n){const r=[];for(const{selectors:o,settings:s}of e)for(const l of o)if(N7(l,t,n)){r.push(s);break}return r}function Hh(e,t,n){const r=Object.entries(n.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),o=r.map(a=>{const d=Cu(e,t,{...n,theme:a.theme}),f=as(d),m=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:d,state:f,theme:m}}),s=$7(...o.map(a=>a.tokens)),l=s[0].map((a,d)=>a.map((f,m)=>{const p={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=f.explanation),s.forEach((h,g)=>{const{content:y,explanation:v,offset:w,...b}=h[d][m];p.variants[r[g].color]=b}),p})),i=o[0].state?new yo(Object.fromEntries(o.map(a=>{var d;return[a.theme,(d=a.state)==null?void 0:d.getInternalStack(a.theme)]})),o[0].state.lang):void 0;return i&&$i(l,i),l}function $7(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(a=>a[r]),s=t.map(()=>[]);t.forEach((a,d)=>a.push(s[d]));const l=o.map(()=>0),i=o.map(a=>a[0]);for(;i.every(a=>a);){const a=Math.min(...i.map(d=>d.content.length));for(let d=0;d<n;d++){const f=i[d];f.content.length===a?(s[d].push(f),l[d]+=1,i[d]=o[d][l[d]]):(s[d].push({...f,content:f.content.slice(0,a)}),i[d]={...f,content:f.content.slice(a),offset:f.offset+a})}}}return t}function Ql(e,t,n){let r,o,s,l,i,a;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:f="--shiki-"}=n,m=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,w)=>v.color===d?-1:w.color===d?1:0);if(m.length===0)throw new Qe("`themes` option must not be empty");const p=Hh(e,t,n);if(a=as(p),d&&!m.find(v=>v.color===d))throw new Qe(`\`themes\` option must contain the defaultColor key \`${d}\``);const h=m.map(v=>e.getTheme(v.theme)),g=m.map(v=>v.color);s=p.map(v=>v.map(w=>v7(w,g,f,d))),a&&$i(s,a);const y=m.map(v=>Zl(v.theme,n));o=m.map((v,w)=>(w===0&&d?"":`${f+v.color}:`)+(ar(h[w].fg,y[w])||"inherit")).join(";"),r=m.map((v,w)=>(w===0&&d?"":`${f+v.color}-bg:`)+(ar(h[w].bg,y[w])||"inherit")).join(";"),l=`shiki-themes ${h.map(v=>v.name).join(" ")}`,i=d?void 0:[o,r].join(";")}else if("theme"in n){const d=Zl(n.theme,n);s=Cu(e,t,n);const f=e.getTheme(n.theme);r=ar(f.bg,d),o=ar(f.fg,d),l=f.name,a=as(s)}else throw new Qe("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:o,bg:r,themeName:l,rootStyle:i,grammarState:a}}function Jl(e,t,n,r={meta:{},options:n,codeToHast:(o,s)=>Jl(e,o,s),codeToTokens:(o,s)=>Ql(e,o,s)}){var o,s;let l=t;for(const y of Xl(n))l=((o=y.preprocess)==null?void 0:o.call(r,l,n))||l;let{tokens:i,fg:a,bg:d,themeName:f,rootStyle:m,grammarState:p}=Ql(e,l,n);const{mergeWhitespaces:h=!0}=n;h===!0?i=F7(i):h==="never"&&(i=B7(i));const g={...r,get source(){return l}};for(const y of Xl(n))i=((s=y.tokens)==null?void 0:s.call(g,i))||i;return z7(i,{...n,fg:a,bg:d,themeName:f,rootStyle:m},g,p)}function z7(e,t,n,r=as(e)){var o,s,l;const i=Xl(t),a=[],d={type:"root",children:[]},{structure:f="classic",tabindex:m="0"}=t;let p={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...m!==!1&&m!=null?{tabindex:m.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([w])=>!w.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:a};const g=[],y={...n,structure:f,addClassToHast:Gh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return d},get pre(){return p},get code(){return h},get lines(){return g}};if(e.forEach((w,b)=>{var x,C;b&&(f==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&a.push({type:"text",value:`
|
|
52
|
+
`}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},S=0;for(const k of w){let E={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const T=b7(k.htmlStyle||Yh(k));T&&(E.properties.style=T);for(const M of i)E=((x=M?.span)==null?void 0:x.call(y,E,b+1,S,_,k))||E;f==="inline"?d.children.push(E):f==="classic"&&_.children.push(E),S+=k.content.length}if(f==="classic"){for(const k of i)_=((C=k?.line)==null?void 0:C.call(y,_,b+1))||_;g.push(_),a.push(_)}}),f==="classic"){for(const w of i)h=((o=w?.code)==null?void 0:o.call(y,h))||h;p.children.push(h);for(const w of i)p=((s=w?.pre)==null?void 0:s.call(y,p))||p;d.children.push(p)}let v=d;for(const w of i)v=((l=w?.root)==null?void 0:l.call(y,v))||v;return r&&$i(v,r),v}function F7(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((s,l)=>{const a=!(s.fontStyle&&s.fontStyle&mn.Underline);a&&s.content.match(/^\s+$/)&&t[l+1]?(o||(o=s.offset),r+=s.content):r?(a?n.push({...s,offset:o,content:r+s.content}):n.push({content:r,offset:o},s),o=0,r=""):n.push(s)}),n})}function B7(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,s,l]=r;if(!o&&!l)return n;const i=[{...n,offset:n.offset+o.length,content:s}];return o&&i.unshift({content:o,offset:n.offset}),l&&i.push({content:l,offset:n.offset+o.length+s.length}),i}))}const q7=c7;function W7(e,t,n){var r;const o={meta:{},options:n,codeToHast:(l,i)=>Jl(e,l,i),codeToTokens:(l,i)=>Ql(e,l,i)};let s=q7(Jl(e,t,n,o));for(const l of Xl(n))s=((r=l.postprocess)==null?void 0:r.call(o,s,n))||s;return s}const zf={light:"#333333",dark:"#bbbbbb"},Ff={light:"#fffffe",dark:"#1e1e1e"},Bf="__shiki_resolved";function _u(e){var t,n,r,o,s;if(e?.[Bf])return e;const l={...e};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:i,fg:a}=l;if(!i||!a){const p=l.settings?l.settings.find(h=>!h.name&&!h.scope):void 0;(t=p?.settings)!=null&&t.foreground&&(a=p.settings.foreground),(n=p?.settings)!=null&&n.background&&(i=p.settings.background),!a&&((r=l?.colors)!=null&&r["editor.foreground"])&&(a=l.colors["editor.foreground"]),!i&&((o=l?.colors)!=null&&o["editor.background"])&&(i=l.colors["editor.background"]),a||(a=l.type==="light"?zf.light:zf.dark),i||(i=l.type==="light"?Ff.light:Ff.dark),l.fg=a,l.bg=i}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let d=0;const f=new Map;function m(p){var h;if(f.has(p))return f.get(p);d+=1;const g=`#${d.toString(16).padStart(8,"0").toLowerCase()}`;return(h=l.colorReplacements)!=null&&h[`#${g}`]?m(p):(f.set(p,g),g)}l.settings=l.settings.map(p=>{var h,g;const y=((h=p.settings)==null?void 0:h.foreground)&&!p.settings.foreground.startsWith("#"),v=((g=p.settings)==null?void 0:g.background)&&!p.settings.background.startsWith("#");if(!y&&!v)return p;const w={...p,settings:{...p.settings}};if(y){const b=m(p.settings.foreground);l.colorReplacements[b]=p.settings.foreground,w.settings.foreground=b}if(v){const b=m(p.settings.background);l.colorReplacements[b]=p.settings.background,w.settings.background=b}return w});for(const p of Object.keys(l.colors||{}))if((p==="editor.foreground"||p==="editor.background"||p.startsWith("terminal.ansi"))&&!((s=l.colors[p])!=null&&s.startsWith("#"))){const h=m(l.colors[p]);l.colorReplacements[h]=l.colors[p],l.colors[p]=h}return Object.defineProperty(l,Bf,{enumerable:!1,writable:!1,value:!0}),l}async function Zh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!m7(t)).map(async t=>await Wh(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Xh(e){return(await Promise.all(e.map(async n=>p7(n)?null:_u(await Wh(n))))).filter(n=>!!n)}let G7=3;function Y7(e,t=3){t>G7||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Nr extends Error{constructor(t){super(t),this.name="ShikiError"}}class U7 extends Z6{constructor(t,n,r,o={}){super(t),j(this,"_resolvedThemes",new Map),j(this,"_resolvedGrammars",new Map),j(this,"_langMap",new Map),j(this,"_langGraph",new Map),j(this,"_textmateThemeCache",new WeakMap),j(this,"_loadedThemesCache",null),j(this,"_loadedLanguagesCache",null),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=_u(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Gl.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Nr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){var n,r,o,s;if(this.getGrammar(t.name))return;const l=new Set([...this._langMap.values()].filter(d=>{var f;return(f=d.embeddedLangsLazy)==null?void 0:f.includes(t.name)}));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,l.size)for(const d of l)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(r=(n=this._syncRegistry)==null?void 0:n._injectionGrammars)==null||r.delete(d.scopeName),(s=(o=this._syncRegistry)==null?void 0:o._grammars)==null||s.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,s])=>!s);if(r.length){const o=n.filter(([s,l])=>{var i;return l&&((i=l.embeddedLangs)==null?void 0:i.some(a=>r.map(([d])=>d).includes(a)))}).filter(s=>!r.includes(s));throw new Nr(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of n)this._resolver.addLanguage(s);for(const[o,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class V7{constructor(t,n){j(this,"_langs",new Map),j(this,"_scopeToLang",new Map),j(this,"_injections",new Map),j(this,"_onigLib"),this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const s=n.slice(0,o).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Do=0;function H7(e){Do+=1,e.warnings!==!1&&Do>=10&&Do%10===0&&console.warn(`[Shiki] ${Do} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Nr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_u),o=new V7(e.engine,n),s=new U7(o,r,n,e.langAlias);let l;function i(b){v();const x=s.getGrammar(typeof b=="string"?b:b.name);if(!x)throw new Nr(`Language \`${b}\` not found, you may need to load it first`);return x}function a(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const x=s.getTheme(b);if(!x)throw new Nr(`Theme \`${b}\` not found, you may need to load it first`);return x}function d(b){v();const x=a(b);l!==b&&(s.setTheme(x),l=b);const C=s.getColorMap();return{theme:x,colorMap:C}}function f(){return v(),s.getLoadedThemes()}function m(){return v(),s.getLoadedLanguages()}function p(...b){v(),s.loadLanguages(b.flat(1))}async function h(...b){return p(await Zh(b))}function g(...b){v();for(const x of b.flat(1))s.loadTheme(x)}async function y(...b){return v(),g(await Xh(b))}function v(){if(t)throw new Nr("Shiki instance has been disposed")}function w(){t||(t=!0,s.dispose(),Do-=1)}return{setTheme:d,getTheme:a,getLanguage:i,getLoadedThemes:f,getLoadedLanguages:m,loadLanguage:h,loadLanguageSync:p,loadTheme:y,loadThemeSync:g,dispose:w,[Symbol.dispose]:w}}async function Z7(e){e.engine||Y7("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Xh(e.themes||[]),Zh(e.langs||[]),e.engine]);return H7({...e,themes:t,langs:n,engine:r})}async function X7(e){const t=await Z7(e);return{getLastGrammarState:(...n)=>A7(t,...n),codeToTokensBase:(n,r)=>Cu(t,n,r),codeToTokensWithThemes:(n,r)=>Hh(t,n,r),codeToTokens:(n,r)=>Ql(t,n,r),codeToHast:(n,r)=>Jl(t,n,r),codeToHtml:(n,r)=>W7(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const K7=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#dddddd","activityBarBadge.background":"#007ACC","checkbox.border":"#919191","diffEditor.unchangedRegionBackground":"#f8f8f8","editor.background":"#FFFFFF","editor.foreground":"#000000","editor.inactiveSelectionBackground":"#E5EBF1","editor.selectionHighlightBackground":"#ADD6FF80","editorIndentGuide.activeBackground1":"#939393","editorIndentGuide.background1":"#D3D3D3","editorSuggestWidget.background":"#F3F3F3","input.placeholderForeground":"#767676","list.activeSelectionIconForeground":"#FFF","list.focusAndSelectionOutline":"#90C2F9","list.hoverBackground":"#E8E8E8","menu.border":"#D4D4D4","notebook.cellBorderColor":"#E8E8E8","notebook.selectedCellBackground":"#c8ddf150","ports.iconRunningProcessForeground":"#369432","searchEditor.textInputBorder":"#CECECE","settings.numberInputBorder":"#CECECE","settings.textInputBorder":"#CECECE","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#61616130","sideBarTitle.foreground":"#6F6F6F","statusBarItem.errorBackground":"#c72e0f","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#61616130","tab.selectedBackground":"#ffffffa5","tab.selectedForeground":"#333333b3","terminal.inactiveSelectionBackground":"#E5EBF1","widget.border":"#d4d4d4"},"displayName":"Light Plus","name":"light-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#795E26","newOperator":"#AF00DB","numberLiteral":"#098658","stringLiteral":"#a31515"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#000000ff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#008000"}},{"scope":"constant.language","settings":{"foreground":"#0000ff"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#098658"}},{"scope":"constant.regexp","settings":{"foreground":"#811f3f"}},{"scope":"entity.name.tag","settings":{"foreground":"#800000"}},{"scope":"entity.name.selector","settings":{"foreground":"#800000"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#e50000"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#800000"}},{"scope":"invalid","settings":{"foreground":"#cd3131"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#000080"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#800000"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#098658"}},{"scope":"markup.deleted","settings":{"foreground":"#a31515"}},{"scope":"markup.changed","settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],"settings":{"foreground":"#0451a5"}},{"scope":"markup.inline.raw","settings":{"foreground":"#800000"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#800000"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#0000ff"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#a31515"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#098658"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#0451a5"}},{"scope":"storage","settings":{"foreground":"#0000ff"}},{"scope":"storage.type","settings":{"foreground":"#0000ff"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#0000ff"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#a31515"}},{"scope":["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],"settings":{"foreground":"#0000ff"}},{"scope":"string.regexp","settings":{"foreground":"#811f3f"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#0000ff"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#000000"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#e50000"}},{"scope":["support.type.property-name.json"],"settings":{"foreground":"#0451a5"}},{"scope":"keyword","settings":{"foreground":"#0000ff"}},{"scope":"keyword.control","settings":{"foreground":"#0000ff"}},{"scope":"keyword.operator","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#0000ff"}},{"scope":"keyword.other.unit","settings":{"foreground":"#098658"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#800000"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#0451a5"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#098658"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#000000"}},{"scope":"variable.language","settings":{"foreground":"#0000ff"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#795E26"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#267f99"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#267f99"}},{"scope":["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#AF00DB"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#001080"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#0070C1"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#001080"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#811f3f"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#EE0000"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#0000ff"}},{"scope":"constant.character.escape","settings":{"foreground":"#EE0000"}},{"scope":"entity.name.label","settings":{"foreground":"#000000"}}],"type":"light"}')),Q7=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),J7=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^\\\\]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\'\\"`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\sdelete(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+.*?\\\\s+(is)\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[\\\\-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdev|stdevp|var|varp)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b(bit_count|get_bit|left_shift|right_shift|set_bit)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime|datetime2|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|session|sessions|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablock|tablockx|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|to|top|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|value|values|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|window|windows|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[ \\\\t]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[ \\\\t]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^`\\\\\\\\]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),e8=[J7],t8=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+\\\\-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),n8=[t8],Ye=String.raw,ku=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function r8(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ht(e,t){if(!e)throw new Error(t??"Value expected");return e}const B={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",EscapedNumber:"EscapedNumber"},De={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},Su={flags:"flags",keep:"keep"},Ke={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Ar={greedy:"greedy",lazy:"lazy",possessive:"possessive"},qf=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),Kh=Ye`\[\^?`,Qh=`c.? | C(?:-.?)?|${Ye`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ye`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ye`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ye`o\{[^\}]*\}?`}|${Ye`\d{1,3}`}`,Jh=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,dl=new RegExp(Ye`
|
|
53
|
+
\\ (?:
|
|
54
|
+
${Qh}
|
|
55
|
+
| [gk]<[^>]*>?
|
|
56
|
+
| [gk]'[^']*'?
|
|
57
|
+
| .
|
|
58
|
+
)
|
|
59
|
+
| \( (?:
|
|
60
|
+
\? (?:
|
|
61
|
+
[:=!>({]
|
|
62
|
+
| <[=!]
|
|
63
|
+
| <[^>]*>
|
|
64
|
+
| '[^']*'
|
|
65
|
+
| ~\|?
|
|
66
|
+
| #(?:[^)\\]|\\.?)*
|
|
67
|
+
| [^:)]*[:)]
|
|
68
|
+
)?
|
|
69
|
+
| \*
|
|
70
|
+
)?
|
|
71
|
+
| ${Jh.source}
|
|
72
|
+
| ${Kh}
|
|
73
|
+
| .
|
|
74
|
+
`.replace(/\s+/g,""),"gsu"),La=new RegExp(Ye`
|
|
75
|
+
\\ (?:
|
|
76
|
+
${Qh}
|
|
77
|
+
| .
|
|
78
|
+
)
|
|
79
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
80
|
+
| ${Kh}
|
|
81
|
+
| &&
|
|
82
|
+
| .
|
|
83
|
+
`.replace(/\s+/g,""),"gsu");function o8(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=m8(n.flags),o=[r.extended],s={captureGroup:n.rules.captureGroup,getCurrentModX:()=>o.at(-1),numOpenGroups:0,popModX(){o.pop()},pushModX(m){o.push(m)},replaceCurrentModX(m){o[o.length-1]=m},singleline:n.rules.singleline};let l=[],i;for(dl.lastIndex=0;i=dl.exec(e);){const m=s8(s,e,i[0],dl.lastIndex);m.tokens?l.push(...m.tokens):m.token&&l.push(m.token),m.lastIndex!==void 0&&(dl.lastIndex=m.lastIndex)}const a=[];let d=0;l.forEach(m=>{m.type===B.GroupOpen&&(m.kind===Ke.capturing?m.number=++d:m.raw==="("&&a.push(m))}),d||a.forEach((m,p)=>{m.kind=Ke.capturing,m.number=p+1});const f=d||a.length;return l=l.map(m=>m.type===B.EscapedNumber?h8(m,f):m).flat(),{tokens:l,flags:r}}function s8(e,t,n,r){const[o,s]=n;if(o==="["){const l=l8(t,n,r);return{tokens:l.tokens,lastIndex:l.lastIndex}}if(o==="\\"){if("AbBGyYzZ".includes(s))return{token:ne(B.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ne(B.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ne(B.Backreference,n)}}if(s==="K")return{token:ne(B.Directive,n,{kind:Su.keep})};if(s==="N"||s==="R")return{token:ne(B.CharacterSet,n,{kind:De.newline,negate:s==="N"})};if(s==="O")return{token:ne(B.CharacterSet,n,{kind:De.any})};if(s==="X")return{token:ne(B.CharacterSet,n,{kind:De.grapheme})};const l=eg(n,{inCharClass:!1});return Array.isArray(l)?{tokens:l}:{token:l}}if(o==="("){if(n==="(*")throw new Error(`Unsupported named callout "${n}"`);if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:c8(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:ne(B.GroupOpen,n,{kind:Ke.group})};if(n==="(?>")return{token:ne(B.GroupOpen,n,{kind:Ke.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:ne(B.GroupOpen,n,{kind:n[2]==="<"?Ke.lookbehind:Ke.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const l=ne(B.GroupOpen,n,{kind:Ke.capturing});return n!=="("&&(l.name=n.slice(3,-1)),{token:l}}if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:ne(B.GroupOpen,n,{kind:Ke.absent_repeater})}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:ne(B.GroupClose,n)}}if(n==="#"&&e.getCurrentModX()){const l=t.indexOf(`
|
|
84
|
+
`,r);return{lastIndex:l===-1?t.length:l}}if(/^\s$/.test(n)&&e.getCurrentModX()){const l=/\s+/y;return l.lastIndex=r,{lastIndex:l.exec(t)?l.lastIndex:r}}if(n===".")return{token:ne(B.CharacterSet,n,{kind:De.dot})};if(n==="^"||n==="$"){const l=e.singleline?{"^":Ye`\A`,$:Ye`\Z`}[n]:n;return{token:ne(B.Assertion,n,{kind:l})}}return n==="|"?{token:ne(B.Alternator,n)}:Jh.test(n)?{token:u8(n)}:(tg(n),{token:ne(B.Character,n,{value:n.codePointAt(0)})})}function l8(e,t,n){const r=[ne(B.CharacterClassOpen,t,{negate:t[1]==="^"})];let o=1,s;for(La.lastIndex=n;s=La.exec(e);){const l=s[0];if(l[0]==="["&&l[1]!==":")o++,r.push(ne(B.CharacterClassOpen,l,{negate:l[1]==="^"}));else if(l==="]"){if(r.at(-1).type===B.CharacterClassOpen)r.push(ne(B.Character,l,{value:93}));else if(o--,r.push(ne(B.CharacterClassClose,l)),!o)break}else{const i=i8(l);Array.isArray(i)?r.push(...i):r.push(i)}}return{tokens:r,lastIndex:La.lastIndex||e.length}}function i8(e){if(e[0]==="\\")return eg(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ku.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ne(B.CharacterSet,e,{kind:De.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ne(B.CharacterClassHyphen,e):e==="&&"?ne(B.CharacterClassIntersector,e):(tg(e),ne(B.Character,e,{value:e.codePointAt(0)}))}function eg(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return a8(e);if("dDhHsSwW".includes(n))return d8(e);if(e.startsWith(Ye`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return f8(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(l=>parseInt(l,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),s=new TextEncoder;return[...o].map(l=>{const i=[...s.encode(l)].map(a=>`\\x${a.toString(16)}`).join("");return ne(B.Character,i,{value:l.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ne(B.Character,e,{value:p8(e)});if(qf.has(n))return ne(B.Character,e,{value:qf.get(n)});if(/\d/.test(n))return ne(B.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(Ye`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ne(B.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function ne(e,t,n){return{type:e,raw:t,...n}}function a8(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return ne(B.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function c8(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const o=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),s=Wf(n),l=Wf(r),i={};if(s&&(i.enable=s),l&&(i.disable=l),e.endsWith(")"))return t.replaceCurrentModX(o),ne(B.Directive,e,{kind:Su.flags,flags:i});if(e.endsWith(":")){t.pushModX(o),t.numOpenGroups++;const a=ne(B.GroupOpen,e,{kind:Ke.group});return(s||l)&&(a.flags=i),a}throw new Error(`Unexpected flag modifier "${e}"`)}function u8(e){const t={};if(e[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(e).groups,o=1e5;if(+n>o||+r>o)throw new Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=r===void 0?+n:r===""?1/0:+r,t.kind=e.endsWith("?")?Ar.lazy:Ar.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?Ar.possessive:e[1]==="?"?Ar.lazy:Ar.greedy;return ne(B.Quantifier,e,t)}function d8(e){const t=e[1].toLowerCase();return ne(B.CharacterSet,e,{kind:{d:De.digit,h:De.hex,s:De.space,w:De.word}[t],negate:e[1]!==t})}function f8(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,o=t==="P"&&!n||t==="p"&&!!n;return ne(B.CharacterSet,e,{kind:De.property,value:r,negate:o})}function Wf(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function m8(e){if(!/^[imxDPSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1};for(const n of e)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;return t}function p8(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function h8(e,t){const{raw:n,inCharClass:r}=e,o=n.slice(1);if(!r&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=t))return[ne(B.Backreference,n)];const s=[],l=o.match(/^[0-7]+|\d/g);for(let i=0;i<l.length;i++){const a=l[i];let d;if(i===0&&a!=="8"&&a!=="9"){if(d=parseInt(a,8),d>127)throw new Error(Ye`Octal encoded byte above 177 unsupported "${n}"`)}else d=a.codePointAt(0);s.push(ne(B.Character,(i===0?"\\":"")+a,{value:d}))}return s}function tg(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const A={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",LookaroundAssertion:"LookaroundAssertion",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",Recursion:"Recursion"},ng={repeater:"repeater"},ve={grapheme_boundary:"grapheme_boundary",line_end:"line_end",line_start:"line_start",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},dn={union:"union",intersection:"intersection"},Te=De,Vo=Su,_c=Ar,Bn={lookahead:"lookahead",lookbehind:"lookbehind"};function rg(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=o8(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),o={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],token:null,tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s};function s(p,h){const g=r.tokens[o.current];switch(o.parent=p,o.token=g,o.current++,g.type){case B.Alternator:return kn();case B.Assertion:return k8(g);case B.Backreference:return g8(o);case B.Character:return Ru(g.value,{useLastValid:!!h.isCheckingRangeEnd});case B.CharacterClassHyphen:return y8(o,h);case B.CharacterClassOpen:return v8(o,h);case B.CharacterSet:return b8(o);case B.Directive:return E8(Ht(Vo[g.kind],`Unexpected directive kind "${g.kind}"`),{flags:g.flags});case B.GroupOpen:return w8(o,h);case B.Quantifier:return x8(o);case B.Subroutine:return C8(o);default:throw new Error(`Unexpected token type "${g.type}"`)}}const l=M8(T8(),j8(r.flags));let i=l.pattern.alternatives[0];for(;o.current<r.tokens.length;){const p=s(i,{});p.type===A.Alternative?(l.pattern.alternatives.push(p),i=p):i.elements.push(p)}const{capturingGroups:a,hasNumberedRef:d,namedGroupsByName:f,subroutines:m}=o;if(d&&f.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:p}of m)if(typeof p=="number"){if(p>a.length)throw new Error("Subroutine uses a group number that's not defined")}else if(f.has(p)){if(f.get(p).length>1)throw new Error(Ye`Subroutine uses a duplicate group name "\g<${p}>"`)}else throw new Error(Ye`Subroutine uses a group name that's not defined "\g<${p}>"`);return l}function g8(e){const{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),o=(s,l=!1)=>{const i=e.capturingGroups.length;let a=!1;if(s>i)if(e.skipBackrefValidation)a=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,kc(l?i+1-s:s,{orphan:a})};if(n){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(s)return o(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return kc(r)}return o(+r)}function y8(e,t){const{parent:n,tokens:r,walk:o}=e,s=n.elements.at(-1),l=r[e.current];if(!t.isCheckingRangeEnd&&s&&s.type!==A.CharacterClass&&s.type!==A.CharacterClassRange&&l&&l.type!==B.CharacterClassOpen&&l.type!==B.CharacterClassClose&&l.type!==B.CharacterClassIntersector){const i=o(n,{...t,isCheckingRangeEnd:!0});if(s.type===A.Character&&i.type===A.Character)return n.elements.pop(),R8(s,i);throw new Error("Invalid character class range")}return Ru(45)}function v8(e,t){const{token:n,tokens:r,walk:o}=e,s=r[e.current],l=[jl()];let i=Gf(s);for(;i.type!==B.CharacterClassClose;){if(i.type===B.CharacterClassIntersector)l.push(jl()),e.current++;else{const d=l.at(-1);d.elements.push(o(d,t))}i=Gf(r[e.current],s)}const a=jl({negate:n.negate});return l.length===1?a.elements=l[0].elements:(a.kind=dn.intersection,a.elements=l.map(d=>d.elements.length===1?d.elements[0]:d)),e.current++,a}function b8({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:o,negate:s,value:l}=e;if(o===De.property){const i=zi(l);if(ku.has(i)&&!r?.has(i))o=De.posix,l=i;else return Ir(l,{negate:s,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return o===De.posix?L8(l,{negate:s}):Sc(o,{negate:s})}function w8(e,t){const{token:n,tokens:r,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:l,walk:i}=e;let a=S8(n);const d=a.type===A.AbsentFunction,f=a.kind===Bn.lookbehind,m=f&&a.negate;if(a.type===A.CapturingGroup&&(o.push(a),a.name&&r8(s,a.name,[]).push(a)),d&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let p=Yf(r[e.current]);for(;p.type!==B.GroupClose;){if(p.type===B.Alternator)a.alternatives.push(kn()),e.current++;else{const h=a.alternatives.at(-1),g=i(h,{...t,isInAbsentFunction:t.isInAbsentFunction||d,isInLookbehind:t.isInLookbehind||f,isInNegLookbehind:t.isInNegLookbehind||m});if(h.elements.push(g),(f||t.isInLookbehind)&&!l){const y="Lookbehind includes a pattern not allowed by Oniguruma";if(m||t.isInNegLookbehind){if(g.kind===Bn.lookahead||g.type===A.CapturingGroup)throw new Error(y)}else if(g.kind===Bn.lookahead||g.kind===Bn.lookbehind&&g.negate)throw new Error(y)}}p=Yf(r[e.current])}return e.current++,a}function x8({token:e,parent:t}){const{min:n,max:r,kind:o}=e,s=t.elements.at(-1);if(!s||s.type===A.Assertion||s.type===A.Directive||s.type===A.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const l=lg(s,n,r,Ht(_c[o],`Unexpected quantifier kind "${o}"`));return t.elements.pop(),l}function C8(e){const{token:t,capturingGroups:n,subroutines:r}=e;let o=t.raw.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(s){const i=+s.groups.num,a=n.length;if(e.hasNumberedRef=!0,o={"":i,"+":a+i,"-":a+1-i}[s.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);const l=A8(o);return r.push(l),l}function _8(e){return{type:A.AbsentFunction,kind:e,alternatives:[kn()]}}function kn(){return{type:A.Alternative,elements:[]}}function og(e,t){const n={type:A.Assertion,kind:e};return(e===ve.word_boundary||e===ve.grapheme_boundary)&&(n.negate=!!t?.negate),n}function k8({kind:e}){return og(Ht({"^":ve.line_start,$:ve.line_end,"\\A":ve.string_start,"\\b":ve.word_boundary,"\\B":ve.word_boundary,"\\G":ve.search_start,"\\y":ve.grapheme_boundary,"\\Y":ve.grapheme_boundary,"\\z":ve.string_end,"\\Z":ve.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===Ye`\B`||e===Ye`\Y`})}function kc(e,t){const n=!!t?.orphan;return{type:A.Backreference,ref:e,...n&&{orphan:n}}}function S8({flags:e,kind:t,name:n,negate:r,number:o}){switch(t){case Ke.absent_repeater:return _8(ng.repeater);case Ke.atomic:return Tt({atomic:!0});case Ke.capturing:return sg(o,n);case Ke.group:return Tt({flags:e});case Ke.lookahead:case Ke.lookbehind:return Ho({behind:t===Ke.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function sg(e,t){const n=t!==void 0;if(n&&!I8(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:A.CapturingGroup,number:e,...n&&{name:t},alternatives:[kn()]}}function Ru(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:A.Character,value:e}}function jl(e){const t={kind:dn.union,negate:!1,...e};return{type:A.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function R8(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:A.CharacterClassRange,min:e,max:t}}function Sc(e,t){const n=!!t?.negate,r={type:A.CharacterSet,kind:Ht(Te[e],`Unexpected character set kind "${e}"`)};return(e===De.digit||e===De.hex||e===De.newline||e===De.space||e===De.word)&&(r.negate=n),(e===De.grapheme||e===De.newline&&!n)&&(r.variableLength=!0),r}function E8(e,t){const n={type:A.Directive,kind:e};return e===Vo.flags&&(n.flags=t.flags),n}function j8(e){return{type:A.Flags,...e}}function Tt(e){const t=e?.atomic,n=e?.flags;return{type:A.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[kn()]}}function Ho(e){const t={behind:!1,negate:!1,...e};return{type:A.LookaroundAssertion,kind:t.behind?Bn.lookbehind:Bn.lookahead,negate:t.negate,alternatives:[kn()]}}function T8(){return{type:A.Pattern,alternatives:[kn()]}}function L8(e,t){const n=!!t?.negate;if(!ku.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:A.CharacterSet,kind:Te.posix,value:e,negate:n}}function lg(e,t,n,r=_c.greedy){const o={type:A.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...o,min:n,max:t,kind:_c.possessive}:o}function M8(e,t){return{type:A.Regex,pattern:e,flags:t}}function A8(e){return{type:A.Subroutine,ref:e}}function Ir(e,t){var n;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let o=(n=r.unicodePropertyMap)==null?void 0:n.get(zi(e));if(!o){if(r.normalizeUnknownPropertyNames)o=D8(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(Ye`Invalid Unicode property "\p{${e}}"`)}return{type:A.CharacterSet,kind:Te.property,value:o??e,negate:r.negate}}function I8(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function D8(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function zi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Gf(e,t){return Ht(e,`${t?.value===93?"Empty":"Unclosed"} character class`)}function Yf(e){return Ht(e,"Unclosed group")}const Eu=String.raw,Uf=Eu`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,Vf=Eu`\u{E0061}-\u{E007A}`,P8=()=>new RegExp(Eu`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${Vf}]{2}[\u{E0030}-\u{E0039}${Vf}]{1,3}\u{E007F}|${Uf}(?:\u200D${Uf})*`,"gu");function Zo(e,t,n=null){function r(s,l){for(let i=0;i<s.length;i++){const a=o(s[i],l,i,s);i=Math.max(-1,i+a)}}function o(s,l=null,i=null,a=null){var d,f;const m="Container expected";let p=0,h=!1;const g={node:s,parent:l,key:i,container:a,root:e,remove(){Ht(a,m).splice(Math.max(0,i+p),1),p--,h=!0},removeAllNextSiblings(){return Ht(a,m).splice(i+1)},removeAllPrevSiblings(){const x=i+p;return p-=x,Ht(a,m).splice(0,Math.max(0,x))},replaceWith(x,C={}){const _=!!C.traverse;a?a[Math.max(0,i+p)]=x:l[i]=x,_&&o(x,l,i,a),h=!0},replaceWithMultiple(x,C={}){const _=!!C.traverse;if(Ht(a,m).splice(Math.max(0,i+p),1,...x),p+=x.length-1,_){let S=0;for(let k=0;k<x.length;k++)S+=o(x[k],l,i+k+S,a)}h=!0},skip(){h=!0}},y=t["*"],v=t[s.type],w=typeof y=="function"?y:y?.enter,b=typeof v=="function"?v:v?.enter;if(w?.(g,n),b?.(g,n),!h)switch(s.type){case A.Regex:o(s.pattern,s,"pattern"),o(s.flags,s,"flags");break;case A.Alternative:case A.CharacterClass:r(s.elements,s);break;case A.Assertion:case A.Backreference:case A.Character:case A.CharacterSet:case A.Directive:case A.Flags:case A.Recursion:case A.Subroutine:break;case A.AbsentFunction:case A.CapturingGroup:case A.Group:case A.Pattern:r(s.alternatives,s);break;case A.CharacterClassRange:o(s.min,s,"min"),o(s.max,s,"max");break;case A.LookaroundAssertion:r(s.alternatives,s);break;case A.Quantifier:o(s.element,s,"element");break;default:throw new Error(`Unexpected node type "${s.type}"`)}return(d=y?.exit)==null||d.call(y,g,n),(f=v?.exit)==null||f.call(v,g,n),p}o(e)}const N8=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function O8(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function $8(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const Ct=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ju(e,t,n,r){const o=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let l=0,i="";for(const a of e.matchAll(o)){const{0:d,groups:{$skip:f}}=a;if(!f&&(!r||r===Ct.DEFAULT==!l)){n instanceof Function?i+=n(a,{context:l?Ct.CHAR_CLASS:Ct.DEFAULT,negated:s[s.length-1]}):i+=n;continue}d[0]==="["?(l++,s.push(d[1]==="^")):d==="]"&&l&&(l--,s.pop()),i+=d}return i}function ig(e,t,n,r){ju(e,t,n,r)}function z8(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const o=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=n;let s=0,l;for(;l=o.exec(e);){const{0:i,groups:{$skip:a}}=l;if(!a&&(!r||r===Ct.DEFAULT==!s))return l;i==="["?s++:i==="]"&&s&&s--,o.lastIndex==l.index&&o.lastIndex++}return null}function fl(e,t,n){return!!z8(e,t,0,n)}function F8(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,o=0,s=1,l;for(;l=n.exec(e);){const[i]=l;if(i==="[")o++;else if(o)i==="]"&&o--;else if(i==="(")s++;else if(i===")"&&(s--,!s)){r=l.index;break}}return e.slice(t,r)}const Hf=new RegExp(String.raw`(?<noncapturingStart>${N8})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function B8(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const o="(?>",s="(?:(?=(",l=[0],i=[];let a=0,d=0,f=NaN,m;do{m=!1;let p=0,h=0,g=!1,y;for(Hf.lastIndex=Number.isNaN(f)?0:f+s.length;y=Hf.exec(e);){const{0:v,index:w,groups:{capturingStart:b,noncapturingStart:x}}=y;if(v==="[")p++;else if(p)v==="]"&&p--;else if(v===o&&!g)f=w,g=!0;else if(g&&x)h++;else if(b)g?h++:(a++,l.push(a+d));else if(v===")"&&g){if(!h){d++;const C=a+d;if(e=`${e.slice(0,f)}${s}${e.slice(f+o.length,w)}))<$$${C}>)${e.slice(w+1)}`,m=!0,i.push(C),O8(n,C),r.size){const _=new Map;r.forEach((S,k)=>{_.set(k>=C?k+1:k,S.map(E=>E>=C?E+1:E))}),r=_}break}h--}}}while(m);return n.push(...i),e=ju(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:h,wrappedBackrefNum:g}})=>{if(h){const y=+h;if(y>l.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${l[y]}`}return`\\${g}`},Ct.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const ag=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ma=new RegExp(String.raw`
|
|
85
|
+
\\(?: \d+
|
|
86
|
+
| c[A-Za-z]
|
|
87
|
+
| [gk]<[^>]+>
|
|
88
|
+
| [pPu]\{[^\}]+\}
|
|
89
|
+
| u[A-Fa-f\d]{4}
|
|
90
|
+
| x[A-Fa-f\d]{2}
|
|
91
|
+
)
|
|
92
|
+
| \((?: \? (?: [:=!>]
|
|
93
|
+
| <(?:[=!]|[^>]+>)
|
|
94
|
+
| [A-Za-z\-]+:
|
|
95
|
+
| \(DEFINE\)
|
|
96
|
+
))?
|
|
97
|
+
| (?<qBase>${ag})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
98
|
+
| \\?.
|
|
99
|
+
`.replace(/\s+/g,""),"gsu");function q8(e){if(!new RegExp(`${ag}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,o="",s=0,l;for(Ma.lastIndex=0;l=Ma.exec(e);){const{0:i,index:a,groups:{qBase:d,qMod:f,invalidQ:m}}=l;if(i==="[")s||(r=a),s++;else if(i==="]")s?s--:r=null;else if(!s)if(f==="+"&&o&&!o.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${i}"`);let p=-1;if(/^\{\d+\}$/.test(d))e=$8(e,a+d.length,f,"");else{if(o===")"||o==="]"){const h=o===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${o}"`);e=`${e.slice(0,h)}(?>${e.slice(h,a)}${d})${e.slice(a+i.length)}`}else e=`${e.slice(0,a-o.length)}(?>${o}${d})${e.slice(a+i.length)}`;p+=4}Ma.lastIndex+=p}else i[0]==="("?t.push(a):i===")"&&(n=t.length?t.pop():null);o=i}return{pattern:e}}const xt=String.raw,W8=xt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Rc=xt`\(\?R=(?<rDepth>[^\)]+)\)|${W8}`,Fi=xt`\(\?<(?![=!])(?<captureName>[^>]+)>`,cg=xt`${Fi}|(?<unnamed>\()(?!\?)`,or=new RegExp(xt`${Fi}|${Rc}|\(\?|\\?.`,"gsu"),Aa="Cannot use multiple overlapping recursions";function G8(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let o=t?.captureTransfers??new Map;if(!new RegExp(Rc,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:n};if(r==="plugin"&&fl(e,xt`\(\?\(DEFINE\)`,Ct.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],l=fl(e,xt`\\[1-9]`,Ct.DEFAULT),i=new Map,a=[];let d=!1,f=0,m=0,p;for(or.lastIndex=0;p=or.exec(e);){const{0:h,groups:{captureName:g,rDepth:y,gRNameOrNum:v,gRDepth:w}}=p;if(h==="[")f++;else if(f)h==="]"&&f--;else if(y){if(Zf(y),d)throw new Error(Aa);if(l)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const b=e.slice(0,p.index),x=e.slice(or.lastIndex);if(fl(x,Rc,Ct.DEFAULT))throw new Error(Aa);const C=+y-1;e=Xf(b,x,C,!1,n,s,m),o=Qf(o,b,C,s.length,0,m);break}else if(v){Zf(w);let b=!1;for(const F of a)if(F.name===v||F.num===+v){if(b=!0,F.hasRecursedWithin)throw new Error(Aa);break}if(!b)throw new Error(xt`Recursive \g cannot be used outside the referenced group "${r==="external"?v:xt`\g<${v}&R=${w}>`}"`);const x=i.get(v),C=F8(e,x);if(l&&fl(C,xt`${Fi}|\((?!\?)`,Ct.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const _=e.slice(x,p.index),S=C.slice(_.length+h.length),k=s.length,E=+w-1,T=Xf(_,S,E,!0,n,s,m);o=Qf(o,_,E,s.length-k,k,m);const M=e.slice(0,x),P=e.slice(x+C.length);e=`${M}${T}${P}`,or.lastIndex+=T.length-h.length-_.length-S.length,a.forEach(F=>F.hasRecursedWithin=!0),d=!0}else if(g)m++,i.set(String(m),or.lastIndex),i.set(g,or.lastIndex),a.push({num:m,name:g});else if(h[0]==="("){const b=h==="(";b&&(m++,i.set(String(m),or.lastIndex)),a.push(b?{num:m}:{})}else h===")"&&a.pop()}return n.push(...s),{pattern:e,captureTransfers:o,hiddenCaptures:n}}function Zf(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Xf(e,t,n,r,o,s,l){const i=new Set;r&&ig(e+t,Fi,({groups:{captureName:d}})=>{i.add(d)},Ct.DEFAULT);const a=[n,r?i:null,o,s,l];return`${e}${Kf(`(?:${e}`,"forward",...a)}(?:)${Kf(`${t})`,"backward",...a)}${t}`}function Kf(e,t,n,r,o,s,l){const a=f=>t==="forward"?f+2:n-f+2-1;let d="";for(let f=0;f<n;f++){const m=a(f);d+=ju(e,xt`${cg}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:h,unnamed:g,backref:y}})=>{if(y&&r&&!r.has(y))return p;const v=`_$${m}`;if(g||h){const w=l+s.length+1;return s.push(w),Y8(o,w),g?p:`(?<${h}${v}>`}return xt`\k<${y}${v}>`},Ct.DEFAULT)}return d}function Y8(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Qf(e,t,n,r,o,s){if(e.size&&r){let l=0;ig(t,cg,()=>l++,Ct.DEFAULT);const i=s-l+o,a=new Map;return e.forEach((d,f)=>{const m=(r-l*n)/n,p=l*n,h=f>i+l?f+r:f,g=[];for(const y of d)if(y<=i)g.push(y);else if(y>i+l+m)g.push(y+r);else if(y<=i+l)for(let v=0;v<=n;v++)g.push(y+l*v);else for(let v=0;v<=n;v++)g.push(y+p+m*v);a.set(h,g)}),a}return e}var ze=String.fromCodePoint,Q=String.raw,Jr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Jr.literalHyphenIncorrectlyCreatesRange=(()=>{if(!Jr.unicodeSets)return!1;try{new RegExp(Q`[\d\-a]`,"v")}catch{return!0}return!1})();function ei(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function cs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ec(e,t){return Jf[e]>=Jf[t]}function U8(e,t){if(!e)throw new Error("Value expected");return e}var Jf={ES2025:2025,ES2024:2024,ES2018:2018},V8={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ug(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!V8[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Jr.flagGroups?"ES2025":Jr.unicodeSets?"ES2024":"ES2018"),t}var H8="[ -\r ]",ln=Q`[\p{L}\p{M}\p{N}\p{Pc}]`,Z8=new Set([ze(304),ze(305)]);function dg(e){if(Z8.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),o=Q8.get(n),s=X8.get(n),l=K8.get(n);return[...r].length===1&&t.add(r),l&&t.add(l),o&&t.add(o),t.add(n),s&&t.add(s),[...t]}var Tu=new Map(`C Other
|
|
100
|
+
Cc Control cntrl
|
|
101
|
+
Cf Format
|
|
102
|
+
Cn Unassigned
|
|
103
|
+
Co Private_Use
|
|
104
|
+
Cs Surrogate
|
|
105
|
+
L Letter
|
|
106
|
+
LC Cased_Letter
|
|
107
|
+
Ll Lowercase_Letter
|
|
108
|
+
Lm Modifier_Letter
|
|
109
|
+
Lo Other_Letter
|
|
110
|
+
Lt Titlecase_Letter
|
|
111
|
+
Lu Uppercase_Letter
|
|
112
|
+
M Mark Combining_Mark
|
|
113
|
+
Mc Spacing_Mark
|
|
114
|
+
Me Enclosing_Mark
|
|
115
|
+
Mn Nonspacing_Mark
|
|
116
|
+
N Number
|
|
117
|
+
Nd Decimal_Number digit
|
|
118
|
+
Nl Letter_Number
|
|
119
|
+
No Other_Number
|
|
120
|
+
P Punctuation punct
|
|
121
|
+
Pc Connector_Punctuation
|
|
122
|
+
Pd Dash_Punctuation
|
|
123
|
+
Pe Close_Punctuation
|
|
124
|
+
Pf Final_Punctuation
|
|
125
|
+
Pi Initial_Punctuation
|
|
126
|
+
Po Other_Punctuation
|
|
127
|
+
Ps Open_Punctuation
|
|
128
|
+
S Symbol
|
|
129
|
+
Sc Currency_Symbol
|
|
130
|
+
Sk Modifier_Symbol
|
|
131
|
+
Sm Math_Symbol
|
|
132
|
+
So Other_Symbol
|
|
133
|
+
Z Separator
|
|
134
|
+
Zl Line_Separator
|
|
135
|
+
Zp Paragraph_Separator
|
|
136
|
+
Zs Space_Separator
|
|
137
|
+
ASCII
|
|
138
|
+
ASCII_Hex_Digit AHex
|
|
139
|
+
Alphabetic Alpha
|
|
140
|
+
Any
|
|
141
|
+
Assigned
|
|
142
|
+
Bidi_Control Bidi_C
|
|
143
|
+
Bidi_Mirrored Bidi_M
|
|
144
|
+
Case_Ignorable CI
|
|
145
|
+
Cased
|
|
146
|
+
Changes_When_Casefolded CWCF
|
|
147
|
+
Changes_When_Casemapped CWCM
|
|
148
|
+
Changes_When_Lowercased CWL
|
|
149
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
150
|
+
Changes_When_Titlecased CWT
|
|
151
|
+
Changes_When_Uppercased CWU
|
|
152
|
+
Dash
|
|
153
|
+
Default_Ignorable_Code_Point DI
|
|
154
|
+
Deprecated Dep
|
|
155
|
+
Diacritic Dia
|
|
156
|
+
Emoji
|
|
157
|
+
Emoji_Component EComp
|
|
158
|
+
Emoji_Modifier EMod
|
|
159
|
+
Emoji_Modifier_Base EBase
|
|
160
|
+
Emoji_Presentation EPres
|
|
161
|
+
Extended_Pictographic ExtPict
|
|
162
|
+
Extender Ext
|
|
163
|
+
Grapheme_Base Gr_Base
|
|
164
|
+
Grapheme_Extend Gr_Ext
|
|
165
|
+
Hex_Digit Hex
|
|
166
|
+
IDS_Binary_Operator IDSB
|
|
167
|
+
IDS_Trinary_Operator IDST
|
|
168
|
+
ID_Continue IDC
|
|
169
|
+
ID_Start IDS
|
|
170
|
+
Ideographic Ideo
|
|
171
|
+
Join_Control Join_C
|
|
172
|
+
Logical_Order_Exception LOE
|
|
173
|
+
Lowercase Lower
|
|
174
|
+
Math
|
|
175
|
+
Noncharacter_Code_Point NChar
|
|
176
|
+
Pattern_Syntax Pat_Syn
|
|
177
|
+
Pattern_White_Space Pat_WS
|
|
178
|
+
Quotation_Mark QMark
|
|
179
|
+
Radical
|
|
180
|
+
Regional_Indicator RI
|
|
181
|
+
Sentence_Terminal STerm
|
|
182
|
+
Soft_Dotted SD
|
|
183
|
+
Terminal_Punctuation Term
|
|
184
|
+
Unified_Ideograph UIdeo
|
|
185
|
+
Uppercase Upper
|
|
186
|
+
Variation_Selector VS
|
|
187
|
+
White_Space space
|
|
188
|
+
XID_Continue XIDC
|
|
189
|
+
XID_Start XIDS`.split(/\s/).map(e=>[zi(e),e])),X8=new Map([["s",ze(383)],[ze(383),"s"]]),K8=new Map([[ze(223),ze(7838)],[ze(107),ze(8490)],[ze(229),ze(8491)],[ze(969),ze(8486)]]),Q8=new Map([$n(453),$n(456),$n(459),$n(498),...Ia(8072,8079),...Ia(8088,8095),...Ia(8104,8111),$n(8124),$n(8140),$n(8188)]),J8=new Map([["alnum",Q`[\p{Alpha}\p{Nd}]`],["alpha",Q`\p{Alpha}`],["ascii",Q`\p{ASCII}`],["blank",Q`[\p{Zs}\t]`],["cntrl",Q`\p{Cc}`],["digit",Q`\p{Nd}`],["graph",Q`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Q`\p{Lower}`],["print",Q`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Q`[\p{P}\p{S}]`],["space",Q`\p{space}`],["upper",Q`\p{Upper}`],["word",Q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Q`\p{AHex}`]]);function ew(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function $n(e){const t=ze(e);return[t.toLowerCase(),t]}function Ia(e,t){return ew(e,t).map(n=>$n(n))}var fg=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function tw(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};mg(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ec(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Zo(e,nw,r);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Zo(e,rw,s);const l={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return Zo(e,ow,l),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var nw={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:o}=e;if(r===ng.repeater){const s=cn(Tt(),[eo(Ho({negate:!0}),o),Ir("Any")]),l=lg(s,0,1/0);s.parent=l,n(ye(cn(Tt(),[l]),t),{traverse:!0})}else throw new Error(`Unexpected absent function kind "${r}"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const o=e.elements.filter(s=>s.kind===Vo.flags);for(let s=n+1;s<t.alternatives.length;s++){const l=t.alternatives[s];cs(r,l,[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=hg(t.get(e));if(r){const o=ye(cn(Tt({flags:r}),e.elements),e);e.elements=[o]}}}},Assertion({node:e,parent:t,key:n,container:r,root:o,remove:s,replaceWith:l},i){const{kind:a,negate:d}=e,{asciiWordBoundaries:f,avoidSubclass:m,supportedGNodes:p,wordIsAscii:h}=i;if(a===ve.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${d?"Y":"y"}"`);if(a===ve.line_end)l(ye(Wt(Q`(?=\z|\n)`),t));else if(a===ve.line_start)l(ye(Wt(Q`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(a===ve.search_start)if(p.has(e))o.flags.sticky=!0,s();else{const g=r[n-1];if(g&&uw(g))l(ye(cn(Ho({negate:!0})),t));else{if(m)throw new Error(Q`Uses "\G" in a way that requires a subclass`);l(ye(og(ve.string_start),t)),i.strategy="clip_search"}}else if(!(a===ve.string_end||a===ve.string_start))if(a===ve.string_end_newline)l(ye(Wt(Q`(?=\n?\z)`),t));else if(a===ve.word_boundary){if(!h&&!f){const g=`(?:(?<=${ln})(?!${ln})|(?<!${ln})(?=${ln}))`,y=`(?:(?<=${ln})(?=${ln})|(?<!${ln})(?!${ln}))`;l(ye(Wt(d?y:g),t))}}else throw new Error(`Unexpected assertion kind "${a}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Pa(n)&&(n=Da(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Pa(r)&&(r=Da(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===dn.intersection&&n(ye(eo(jl(),[e]),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:o,digitIsAscii:s,spaceIsAscii:l,wordIsAscii:i}){const{kind:a,negate:d,value:f}=e;if(s&&(a===Te.digit||f==="digit")){n(ye(Sc(Te.digit,{negate:d}),t));return}if(l&&(a===Te.space||f==="space")){n(ye(Na(Wt(H8),d),t));return}if(i&&(a===Te.word||f==="word")){n(ye(Sc(Te.word,{negate:d}),t));return}if(a===Te.any)n(ye(Ir("Any"),t));else if(a===Te.digit)n(ye(Ir("Nd",{negate:d}),t));else if(a!==Te.dot)if(a===Te.grapheme){if(r==="strict")throw new Error(Q`Use of "\X" requires non-strict accuracy`);const m=o?Q`\p{RGI_Emoji}`:P8().source.replace(/\\u\{/g,"\\x{");n(ye(Wt(Q`(?>\r\n|${m}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(a===Te.hex)n(ye(Ir("AHex",{negate:d}),t));else if(a===Te.newline)n(ye(Wt(d?`[^
|
|
190
|
+
]`:`(?>\r
|
|
191
|
+
?|[
|
|
192
|
+
\v\f
\u2028\u2029])`),t));else if(a===Te.posix)if(!o&&(f==="graph"||f==="print")){if(r==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[f];d&&(m=`\0-${ze(m.codePointAt(0)-1)}${ze(m.codePointAt(2)+1)}-`),n(ye(Wt(`[${m}]`),t))}else n(ye(Na(Wt(J8.get(f)),d),t));else if(a===Te.property)Tu.has(zi(f))||(e.key="sc");else if(a===Te.space)n(ye(Ir("space",{negate:d}),t));else if(a===Te.word)n(ye(Na(Wt(ln),d),t));else throw new Error(`Unexpected character set kind "${a}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:o,removeAllPrevSiblings:s,removeAllNextSiblings:l}){const{kind:i,flags:a}=e;if(i===Vo.flags)!a.enable&&!a.disable?r():o(ye(cn(Tt({flags:a}),l()),t),{traverse:!0});else if(i===Vo.keep){const d=n.pattern.alternatives[0].elements[0],m=bg(n.pattern,p=>p.type===A.Group)&&d.alternatives.length===1?d:n.pattern;if(t.parent!==m||m.alternatives.length>1)throw new Error(Q`Uses "\K" in a way that's unsupported`);o(ye(cn(Ho({behind:!0}),s()),t))}else throw new Error(`Unexpected directive kind "${i}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n===Bn.lookbehind&&(t.passedLookbehind=!0)},Pattern:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,o=!1;for(const s of e.alternatives)if(s.elements.length===1&&s.elements[0].kind===ve.search_start)s.elements.pop();else{const l=yg(s.elements);l?(r=!0,Array.isArray(l)?n.push(...l):n.push(l)):o=!0}r&&!o&&n.forEach(s=>t.add(s))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(Q`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:e}){if(e.element.type===A.Quantifier){const t=ye(cn(Tt(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Pa(n)&&(n=Da(n,t),e.ref=n)}},rw={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:o}=e;r||n.set(e,[...t.get(o).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:o,groupsByName:s,multiplexCapturesToLeftByRef:l,openRefs:i,reffedNodesByReferencer:a}){const d=o.get(e);if(d&&i.has(e.number)){const m=ye(em(e.number),t);a.set(m,i.get(e.number)),n(m);return}i.set(e.number,e),l.set(e.number,[]),e.name&&cs(l,e.name,[]);const f=l.get(e.name??e.number);for(let m=0;m<f.length;m++){const p=f[m];if(d===p.node||d&&d===p.origin||e===p.origin){f.splice(m,1);break}}if(l.get(e.number).push({node:e,origin:d}),e.name&&l.get(e.name).push({node:e,origin:d}),e.name){const m=cs(s,e.name,new Map);let p=!1;if(d)p=!0;else for(const h of m.values())if(!h.hasDuplicateNameToRemove){p=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ei(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion({node:e,parent:t},{reffedNodesByReferencer:n}){const{ref:r}=e;let o=t;for(;(o=o.parent)&&!(o.type===A.CapturingGroup&&(o.name===r||o.number===r)););n.set(e,o)},Subroutine({node:e,parent:t,replaceWith:n},r){const{ref:o}=e,s=r.subroutineRefMap.get(o),l=o===0,i=l?em(0):pg(s,r.groupOriginByCopy,null);let a=i;if(!l){const d=hg(iw(s,m=>m.type===A.Group&&!!m.flags)),f=d?ei(r.globalFlags,d):r.globalFlags;sw(f,r.currentFlags)||(a=cn(Tt({flags:aw(f)}),[i]))}n(ye(a,t),{traverse:!l})}},ow={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const s=r.reffedNodesByReferencer.get(e).filter(l=>lw(l,e));if(!s.length)n(ye(cn(Ho({negate:!0})),t));else if(s.length>1){const l=s.map(i=>eo(kn(),[kc(i.number)]));n(ye(eo(Tt(),l),t))}else e.ref=s[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const o=sg();e.pattern.alternatives.at(-1).elements.push(o)}}}};function mg(e){Zo(e,{"*"({node:t,parent:n}){t.parent=n}})}function eo(e,t){return t.forEach(n=>n.parent=e),e[Lu(e)]=t,e}function sw(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function lw(e,t){let n=t;do{if(n.type===A.Pattern)return!1;if(n.type===A.Alternative)continue;if(n===e)return!1;const r=gg(n.parent);for(const o of r){if(o===n)break;if(o===e||vg(o,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function pg(e,t,n,r){const o=Array.isArray(e)?[]:{};for(const[s,l]of Object.entries(e))s==="parent"?o.parent=Array.isArray(n)?r:n:l&&typeof l=="object"?o[s]=pg(l,t,o,n):(s==="type"&&l===A.CapturingGroup&&t.set(o,t.get(e)??e),o[s]=l);return o}function em(e){return{type:A.Recursion,ref:e}}function iw(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Da(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Lu(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function hg(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(o=>{var s,l;(s=r.enable)!=null&&s[o]&&(delete n.disable[o],n.enable[o]=!0),(l=r.disable)!=null&&l[o]&&(n.disable[o]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function aw({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function gg(e){if(!e)throw new Error("Node expected");if(e.type===A.Quantifier)return[e.element];const t=Lu(e);return t&&e[t]}function yg(e){const t=e.find(n=>n.kind===ve.search_start||dw(n,{negate:!1})||!cw(n));if(!t)return null;if(t.kind===ve.search_start)return t;if(t.type===A.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===A.CapturingGroup||t.type===A.Group){const n=[];for(const r of t.alternatives){const o=yg(r.elements);if(!o)return null;Array.isArray(o)?n.push(...o):n.push(o)}return n}return null}function vg(e,t){const n=gg(e)??[];for(const r of n)if(r===t||vg(r,t))return!0;return!1}function bg({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function cw({type:e}){return e===A.Assertion||e===A.Directive||e===A.LookaroundAssertion}function uw(e){const t=[A.Character,A.CharacterClass,A.CharacterSet];return t.includes(e.type)||e.type===A.Quantifier&&e.min&&t.includes(e.element.type)}function dw(e,t){const n={negate:null,...t};return e.type===A.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&bg(e,r=>r.kind===ve.search_start)}function Pa(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Wt(e,t){const n=rg(e,{...t,unicodePropertyMap:Tu});mg(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?eo(Tt(),r):r[0].elements[0]}function cn(e,t){const n=Lu(e);return e[n][0].parent=e,t&&eo(e[n][0],t),e}function Na(e,t){return e.negate=t,e}function ye(e,t){return e.parent=t,e}function fw(e,t){const n=ug(t),r=Ec(n.target,"ES2024"),o=Ec(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let l=null,i=null;if(!o){const h=[e.flags.ignoreCase];Zo(e,mw,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(g){h.push(g)},setHasCasedChar(){h.at(-1)?l=!0:i=!0}})}const a={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||l)&&!i)};let d=null;const f={accuracy:n.accuracy,appliedGlobalFlags:a,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!o&&l&&i),useFlagMods:o,useFlagV:r,verbose:n.verbose};function m(h){switch(f.lastNode=d,d=h,h.type){case A.Regex:return{pattern:m(h.pattern),flags:m(h.flags),options:{...h.options}};case A.Alternative:return h.elements.map(m).join("");case A.Assertion:return vw(h);case A.Backreference:return bw(h,f);case A.CapturingGroup:return ww(h,f,m);case A.Character:return xw(h,f);case A.CharacterClass:return Cw(h,f,m);case A.CharacterClassRange:return _w(h,f);case A.CharacterSet:return kw(h,f);case A.Flags:return Sw(h,f);case A.Group:return Rw(h,f,m);case A.LookaroundAssertion:return Ew(h,f,m);case A.Pattern:return h.alternatives.map(m).join("|");case A.Quantifier:return m(h.element)+Mw(h);case A.Recursion:return jw(h,f);default:throw new Error(`Unexpected node type "${h.type}"`)}}const p=m(e);return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],f.captureMap.forEach((h,g)=>{h.hidden&&p._hiddenCaptures.push(g),h.transferTo&&cs(p._captureTransfers,h.transferTo,[]).push(g)}),p}var mw={"*":{enter({node:e},t){if(nm(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ei({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){nm(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Mu(ze(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),wg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===Te.property&&fg.has(e.value)&&t.setHasCasedChar()}},pw=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),hw=new Set(["-","\\","]","^","["]),gw=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),tm=new Map([[9,Q`\t`],[10,Q`\n`],[11,Q`\v`],[12,Q`\f`],[13,Q`\r`],[8232,Q`\u2028`],[8233,Q`\u2029`],[65279,Q`\uFEFF`]]),yw=new RegExp("^\\p{Cased}$","u");function Mu(e){return yw.test(e)}function vw({kind:e,negate:t}){if(e===ve.string_end)return"$";if(e===ve.string_start)return"^";if(e===ve.word_boundary)return t?Q`\B`:Q`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function bw({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function ww(e,t,n){const{name:r,number:o,alternatives:s}=e,l={ignoreCase:t.currentFlags.ignoreCase},i=t.originMap.get(e);return i&&(l.hidden=!0,o>i.number&&(l.transferTo=i.number)),t.captureMap.set(o,l),`(${r?`?<${r}>`:""}${s.map(n).join("|")})`}function xw({value:e},t){const n=ze(e),r=Dr(e,{escDigit:t.lastNode.type===A.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Mu(n)){const o=dg(n);return t.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return n}function Cw(e,t,n){const{kind:r,negate:o,parent:s}=e;let{elements:l}=e;if(r===dn.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Jr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&l.some(rm)&&(l=l.filter(d=>!rm(d)),l.push(Ru(45)));const i=()=>`[${o?"^":""}${l.map(n).join(r===dn.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!o){const f=l.filter(m=>m.type===A.CharacterClass&&m.kind===dn.union&&m.negate);if(f.length){const m=Tt(),p=m.alternatives[0];return m.parent=s,p.parent=m,l=l.filter(h=>!f.includes(h)),e.elements=l,l.length?(e.parent=p,p.elements.push(e)):m.alternatives.pop(),f.forEach(h=>{const g=kn();g.parent=m,h.parent=g,g.elements.push(h),m.alternatives.push(g)}),n(m)}}t.inCharClass=!0;const d=i();return t.inCharClass=!1,d}const a=l[0];if(r===dn.union&&!o&&a&&((!t.useFlagV||!t.verbose)&&s.kind===dn.union&&!(Jr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&s.kind===dn.intersection&&l.length===1&&a.type!==A.CharacterClassRange))return l.map(n).join("");if(!t.useFlagV&&s.type===A.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return i()}function _w(e,t){const n=e.min.value,r=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=Dr(n,o),l=Dr(r,o),i=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const a=wg(e);Tw(a).forEach(f=>{i.add(Array.isArray(f)?`${Dr(f[0],o)}-${Dr(f[1],o)}`:Dr(f,o))})}return`${s}-${l}${[...i].join("")}`}function kw({kind:e,negate:t,value:n,key:r},o){if(e===Te.dot)return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":Q`[^\n]`;if(e===Te.digit)return t?Q`\D`:Q`\d`;if(e===Te.property){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&fg.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Q`\P`:Q`\p`}{${r?`${r}=`:""}${n}}`}if(e===Te.word)return t?Q`\W`:Q`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function Sw(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function Rw({atomic:e,flags:t,parent:n,alternatives:r},o,s){const l=o.currentFlags;t&&(o.currentFlags=ei(l,t));const i=r.map(s).join("|"),a=!o.verbose&&r.length===1&&n.type!==A.Quantifier&&!e&&(!o.useFlagMods||!t)?i:`(?${Lw(e,t,o.useFlagMods)}${i})`;return o.currentFlags=l,a}function Ew({kind:e,negate:t,alternatives:n},r,o){return`(?${`${e===Bn.lookahead?"":"<"}${t?"!":"="}`}${n.map(o).join("|")})`}function jw({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:Q`\g<${e}&R=${n}>`}function wg(e,t){const n=!!t?.firstOnly,r=e.min.value,o=e.max.value,s=[];if(r<65&&(o===65535||o>=131071)||r===65536&&o>=131071)return s;for(let l=r;l<=o;l++){const i=ze(l);if(!Mu(i))continue;const a=dg(i).filter(d=>{const f=d.codePointAt(0);return f<r||f>o});if(a.length&&(s.push(...a),n))break}return s}function Dr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(tm.has(e))return tm.get(e);if(e<32||e>126&&e<160||e>262143||t&&Aw(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const o=n?r?gw:hw:pw,s=ze(e);return(o.has(s)?"\\":"")+s}function Tw(e){const t=e.map(o=>o.codePointAt(0)).sort((o,s)=>o-s),n=[];let r=null;for(let o=0;o<t.length;o++)t[o+1]===t[o]+1?r??(r=t[o]):r===null?n.push(t[o]):(n.push([r,t[o]]),r=null);return n}function Lw(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:o,disable:s}=t;r=(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${r}:`}function Mw({min:e,max:t,kind:n}){let r;return!e&&t===1?r="?":!e&&t===1/0?r="*":e===1&&t===1/0?r="+":e===t?r=`{${e}}`:r=`{${e},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[n]}function nm({type:e}){return e===A.Group||e===A.CapturingGroup||e===A.LookaroundAssertion}function Aw(e){return e>47&&e<58}function rm({type:e,value:t}){return e===A.Character&&t===45}var Iw=(Lo=class extends RegExp{constructor(e,t,n){var r=(...s)=>(super(...s),kr(this,el),kr(this,nr,new Map),kr(this,Pn,null),kr(this,Rr),kr(this,rr,null),kr(this,Er,null),j(this,"rawOptions",{}),this);const o=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const s=e;r(s,t),qt(this,Rr,s.source),s instanceof Lo&&(qt(this,nr,nt(s,nr)),qt(this,rr,nt(s,rr)),qt(this,Er,nt(s,Er)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...n};r(o?"":e,t),qt(this,Rr,e),qt(this,nr,Pw(s.hiddenCaptures,s.transfers)),qt(this,Er,s.strategy),this.rawOptions=n??{}}o||qt(this,Pn,this)}get source(){return nt(this,Rr)||"(?:)"}exec(e){if(!nt(this,Pn)){const{lazyCompile:r,...o}=this.rawOptions;qt(this,Pn,new Lo(nt(this,Rr),this.flags,o))}const t=this.global||this.sticky,n=this.lastIndex;if(nt(this,Er)==="clip_search"&&t&&n){this.lastIndex=0;const r=Bd(this,el,fa).call(this,e.slice(n));return r&&(Dw(r,n,e,this.hasIndices),this.lastIndex+=n),r}return Bd(this,el,fa).call(this,e)}},nr=new WeakMap,Pn=new WeakMap,Rr=new WeakMap,rr=new WeakMap,Er=new WeakMap,el=new WeakSet,fa=function(e){nt(this,Pn).lastIndex=this.lastIndex;const t=By(Lo.prototype,this,"exec").call(nt(this,Pn),e);if(this.lastIndex=nt(this,Pn).lastIndex,!t||!nt(this,nr).size)return t;const n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);const o=[0];for(let s=1;s<n.length;s++){const{hidden:l,transferTo:i}=nt(this,nr).get(s)??{};if(l?o.push(null):(o.push(t.length),t.push(n[s]),this.hasIndices&&t.indices.push(r[s])),i&&n[s]!==void 0){const a=U8(o[i]);if(t[a]=n[s],this.hasIndices&&(t.indices[a]=r[s]),t.groups){nt(this,rr)||qt(this,rr,Nw(this.source));const d=nt(this,rr).get(i);d&&(t.groups[d]=n[s],this.hasIndices&&(t.indices.groups[d]=r[s]))}}}return t},Lo);function Dw(e,t,n,r){if(e.index+=t,e.input=n,r){const o=e.indices;for(let l=0;l<o.length;l++){const i=o[l];i&&(o[l]=[i[0]+t,i[1]+t])}const s=o.groups;s&&Object.keys(s).forEach(l=>{const i=s[l];i&&(s[l]=[i[0]+t,i[1]+t])})}}function Pw(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,o]of t)for(const s of o)cs(n,s,{}).transferTo=r;return n}function Nw(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,o=0,s;for(;s=t.exec(e);){const{0:l,groups:{capture:i,name:a}}=s;l==="["?r++:r?l==="]"&&r--:i&&(o++,a&&n.set(o,a))}return n}function Ow(e,t){const n=$w(e,t);return n.options?new Iw(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function $w(e,t){const n=ug(t),r=rg(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Tu}),o=tw(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),s=fw(o,n),l=G8(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),i=q8(l.pattern),a=B8(i.pattern,{captureTransfers:l.captureTransfers,hiddenCaptures:l.hiddenCaptures}),d={pattern:a.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const f=a.hiddenCaptures.sort((g,y)=>g-y),m=Array.from(a.captureTransfers),p=o._strategy,h=d.pattern.length>=n.lazyCompileLength;(f.length||m.length||p||h)&&(d.options={...f.length&&{hiddenCaptures:f},...m.length&&{transfers:m},...p&&{strategy:p},...h&&{lazyCompile:h}})}return d}const om=4294967295;class zw{constructor(t,n={}){j(this,"regexps"),this.patterns=t,this.options=n;const{forgiving:r=!1,cache:o,regexConstructor:s}=n;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(l=>{if(typeof l!="string")return l;const i=o?.get(l);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{const a=s(l);return o?.set(l,a),a}catch(a){if(o?.set(l,a),r)return null;throw a}})}findNextMatchSync(t,n,r){const o=typeof t=="string"?t:t.content,s=[];function l(i,a,d=0){return{index:i,captureIndices:a.indices.map(f=>f==null?{start:om,end:om,length:0}:{start:f[0]+d,end:f[1]+d,length:f[1]-f[0]})}}for(let i=0;i<this.regexps.length;i++){const a=this.regexps[i];if(a)try{a.lastIndex=n;const d=a.exec(o);if(!d)continue;if(d.index===n)return l(i,d,0);s.push([i,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(s.length){const i=Math.min(...s.map(a=>a[1].index));for(const[a,d,f]of s)if(d.index===i)return l(a,d,f)}return null}}function Fw(e,t){return Ow(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Bw(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>Fw(n,{target:t.target})),{createScanner(n){return new zw(n,t)},createString(n){return{content:n}}}}let ml;function xg(){return ml||(ml=X7({themes:[K7,Q7],langs:[e8,n8,{name:"malloy",embeddedLangs:["sql"],...o6}],engine:Bw()}),ml)}xg();async function qw(e,t,n,{showLineNumbers:r,lineSpacing:o}){const l=(await xg()).codeToHtml(e,{lang:t,theme:n,transformers:c6({showLineNumbers:r,lineSpacing:o})}),i=document.createElement("div");return i.innerHTML=l,i}function Ww({element:e,className:t,style:n}){const r=u.useRef(null);return u.useEffect(()=>{const o=r.current;o&&o.replaceChildren(e)},[e]),c.jsx("div",{ref:r,className:t,style:n})}function jc({code:e,language:t,theme:n,lineNumbers:r,spacing:o}){const[s,l]=u.useState();return u.useEffect(()=>{let i=!1;return(async()=>{const d=await qw(e,t,n??"light-plus",{showLineNumbers:r??!0,lineSpacing:o??"double"});i||l(d)})(),()=>{i=!0}},[e,t,r,o,n]),c.jsx(Ls,{children:s&&c.jsx(Ww,{element:s})})}const sm={large:{border:3,diameter:18},medium:{border:3,diameter:14},small:{border:3,diameter:10}},Gw=.75,lm=1.5,Yw="rgba(0, 0, 0, 0.1)",Uw="rgba(0, 100, 224, 1)";function Cg({size:e,customStyle:t}){const n=u.useRef(null);u.useEffect(()=>{const l=n.current;if(l!=null){const i=l.getContext("2d");if(!i)return;const{border:a,diameter:d}=sm[e],f=window.devicePixelRatio||1,m=d/2*f,p=a*f,h=(m+p)*2;l.height=l.width=h,l.style.width=l.style.height=h/f+"px",i.lineCap="round",i.lineWidth=p;const g=h/2;i.beginPath(),i.arc(g,g,m,0,2*Math.PI),i.strokeStyle=Yw,i.stroke(),i.beginPath(),i.arc(g,g,m,lm*Math.PI,(lm+Gw)%2*Math.PI),i.strokeStyle=Uw,i.stroke()}},[e]);const{border:r,diameter:o}=sm[e],s=o+r*2;return c.jsx("div",{...R.props(Vw.root,t),children:c.jsx("span",{"aria-valuetext":"Loading",className:"mly1rg5ohu mlyb3r6kr mlyxymvpz",role:"progressbar",style:{height:s,width:s},children:c.jsx("canvas",{className:"mlylp1x4z mly1lliihq mly7v9bd0 mlya4qsjk mly8jsasv mly1esw782 mly1so62im",ref:n})})})}const Vw={root:{alignItems:"mly6s0dn4",display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",$$css:!0}};function Oa({value:e,setValue:t,placeholder:n,label:r,autoFocus:o,width:s}){const[l,i]=u.useState(e.toString());return u.useEffect(()=>{i(e.toString())},[e]),c.jsxs("div",{children:[r&&c.jsx("label",{children:r}),c.jsx("input",{type:"number",placeholder:n,value:l,style:{width:s||"auto"},onChange:a=>{const d=a.target.value;i(d);const f=parseFloat(d);Number.isNaN(f)||t(f)},autoFocus:o,className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})]})}//! moment.js
|
|
193
|
+
//! version : 2.30.1
|
|
194
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
195
|
+
//! license : MIT
|
|
196
|
+
//! momentjs.com
|
|
197
|
+
var _g;function L(){return _g.apply(null,arguments)}function Hw(e){_g=e}function It(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function dr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function fe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Au(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(fe(e,t))return!1;return!0}function rt(e){return e===void 0}function _n(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Os(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function kg(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function qn(e,t){for(var n in t)fe(t,n)&&(e[n]=t[n]);return fe(t,"toString")&&(e.toString=t.toString),fe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function tn(e,t,n,r){return Vg(e,t,n,r,!0).utc()}function Zw(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ee(e){return e._pf==null&&(e._pf=Zw()),e._pf}var Tc;Array.prototype.some?Tc=Array.prototype.some:Tc=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Iu(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=ee(e),n=Tc.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Bi(e){var t=tn(NaN);return e!=null?qn(ee(t),e):ee(t).userInvalidated=!0,t}var im=L.momentProperties=[],$a=!1;function Du(e,t){var n,r,o,s=im.length;if(rt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),rt(t._i)||(e._i=t._i),rt(t._f)||(e._f=t._f),rt(t._l)||(e._l=t._l),rt(t._strict)||(e._strict=t._strict),rt(t._tzm)||(e._tzm=t._tzm),rt(t._isUTC)||(e._isUTC=t._isUTC),rt(t._offset)||(e._offset=t._offset),rt(t._pf)||(e._pf=ee(t)),rt(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)r=im[n],o=t[r],rt(o)||(e[r]=o);return e}function $s(e){Du(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),$a===!1&&($a=!0,L.updateOffset(this),$a=!1)}function Dt(e){return e instanceof $s||e!=null&&e._isAMomentObject!=null}function Sg(e){L.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Rt(e,t){var n=!0;return qn(function(){if(L.deprecationHandler!=null&&L.deprecationHandler(null,e),n){var r=[],o,s,l,i=arguments.length;for(s=0;s<i;s++){if(o="",typeof arguments[s]=="object"){o+=`
|
|
198
|
+
[`+s+"] ";for(l in arguments[0])fe(arguments[0],l)&&(o+=l+": "+arguments[0][l]+", ");o=o.slice(0,-2)}else o=arguments[s];r.push(o)}Sg(e+`
|
|
199
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
200
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var am={};function Rg(e,t){L.deprecationHandler!=null&&L.deprecationHandler(e,t),am[e]||(Sg(t),am[e]=!0)}L.suppressDeprecationWarnings=!1;L.deprecationHandler=null;function nn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Xw(e){var t,n;for(n in e)fe(e,n)&&(t=e[n],nn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Lc(e,t){var n=qn({},e),r;for(r in t)fe(t,r)&&(dr(e[r])&&dr(t[r])?(n[r]={},qn(n[r],e[r]),qn(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)fe(e,r)&&!fe(t,r)&&dr(e[r])&&(n[r]=qn({},n[r]));return n}function Pu(e){e!=null&&this.set(e)}var Mc;Object.keys?Mc=Object.keys:Mc=function(e){var t,n=[];for(t in e)fe(e,t)&&n.push(t);return n};var Kw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return nn(r)?r.call(t,n):r}function Kt(e,t,n){var r=""+Math.abs(e),o=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var Nu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,za={},Yr={};function Y(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Yr[e]=o),t&&(Yr[t[0]]=function(){return Kt(o.apply(this,arguments),t[1],t[2])}),n&&(Yr[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Jw(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function e9(e){var t=e.match(Nu),n,r;for(n=0,r=t.length;n<r;n++)Yr[t[n]]?t[n]=Yr[t[n]]:t[n]=Jw(t[n]);return function(o){var s="",l;for(l=0;l<r;l++)s+=nn(t[l])?t[l].call(o,e):t[l];return s}}function Tl(e,t){return e.isValid()?(t=Eg(t,e.localeData()),za[t]=za[t]||e9(t),za[t](e)):e.localeData().invalidDate()}function Eg(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(pl.lastIndex=0;n>=0&&pl.test(e);)e=e.replace(pl,r),pl.lastIndex=0,n-=1;return e}var t9={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function n9(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Nu).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var r9="Invalid date";function o9(){return this._invalidDate}var s9="%d",l9=/\d{1,2}/;function i9(e){return this._ordinal.replace("%d",e)}var a9={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c9(e,t,n,r){var o=this._relativeTime[n];return nn(o)?o(e,t,n,r):o.replace(/%d/i,e)}function u9(e,t){var n=this._relativeTime[e>0?"future":"past"];return nn(n)?n(t):n.replace(/%s/i,t)}var cm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Et(e){return typeof e=="string"?cm[e]||cm[e.toLowerCase()]:void 0}function Ou(e){var t={},n,r;for(r in e)fe(e,r)&&(n=Et(r),n&&(t[n]=e[r]));return t}var d9={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function f9(e){var t=[],n;for(n in e)fe(e,n)&&t.push({unit:n,priority:d9[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var jg=/\d/,pt=/\d\d/,Tg=/\d{3}/,$u=/\d{4}/,qi=/[+-]?\d{6}/,Re=/\d\d?/,Lg=/\d\d\d\d?/,Mg=/\d\d\d\d\d\d?/,Wi=/\d{1,3}/,zu=/\d{1,4}/,Gi=/[+-]?\d{1,6}/,vo=/\d+/,Yi=/[+-]?\d+/,m9=/Z|[+-]\d\d:?\d\d/gi,Ui=/Z|[+-]\d\d(?::?\d\d)?/gi,p9=/[+-]?\d+(\.\d{1,3})?/,zs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bo=/^[1-9]\d?/,Fu=/^([1-9]\d|\d)/,ti;ti={};function $(e,t,n){ti[e]=nn(t)?t:function(r,o){return r&&n?n:t}}function h9(e,t){return fe(ti,e)?ti[e](t._strict,t._locale):new RegExp(g9(e))}function g9(e){return gn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,s){return n||r||o||s}))}function gn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ie(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=wt(t)),n}var Ac={};function be(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),_n(t)&&(r=function(s,l){l[t]=ie(s)}),o=e.length,n=0;n<o;n++)Ac[e[n]]=r}function Fs(e,t){be(e,function(n,r,o,s){o._w=o._w||{},t(n,o._w,o,s)})}function y9(e,t,n){t!=null&&fe(Ac,e)&&Ac[e](t,n._a,n,e)}function Vi(e){return e%4===0&&e%100!==0||e%400===0}var Je=0,pn=1,Vt=2,qe=3,Lt=4,hn=5,ur=6,v9=7,b9=8;Y("Y",0,0,function(){var e=this.year();return e<=9999?Kt(e,4):"+"+e});Y(0,["YY",2],0,function(){return this.year()%100});Y(0,["YYYY",4],0,"year");Y(0,["YYYYY",5],0,"year");Y(0,["YYYYYY",6,!0],0,"year");$("Y",Yi);$("YY",Re,pt);$("YYYY",zu,$u);$("YYYYY",Gi,qi);$("YYYYYY",Gi,qi);be(["YYYYY","YYYYYY"],Je);be("YYYY",function(e,t){t[Je]=e.length===2?L.parseTwoDigitYear(e):ie(e)});be("YY",function(e,t){t[Je]=L.parseTwoDigitYear(e)});be("Y",function(e,t){t[Je]=parseInt(e,10)});function Xo(e){return Vi(e)?366:365}L.parseTwoDigitYear=function(e){return ie(e)+(ie(e)>68?1900:2e3)};var Ag=wo("FullYear",!0);function w9(){return Vi(this.year())}function wo(e,t){return function(n){return n!=null?(Ig(this,e,n),L.updateOffset(this,t),this):us(this,e)}}function us(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ig(e,t,n){var r,o,s,l,i;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,l=e.month(),i=e.date(),i=i===29&&l===1&&!Vi(s)?28:i,o?r.setUTCFullYear(s,l,i):r.setFullYear(s,l,i)}}function x9(e){return e=Et(e),nn(this[e])?this[e]():this}function C9(e,t){if(typeof e=="object"){e=Ou(e);var n=f9(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=Et(e),nn(this[e]))return this[e](t);return this}function _9(e,t){return(e%t+t)%t}var Ie;Array.prototype.indexOf?Ie=Array.prototype.indexOf:Ie=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Bu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=_9(t,12);return e+=(t-n)/12,n===1?Vi(e)?29:28:31-n%7%2}Y("M",["MM",2],"Mo",function(){return this.month()+1});Y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Y("MMMM",0,0,function(e){return this.localeData().months(this,e)});$("M",Re,bo);$("MM",Re,pt);$("MMM",function(e,t){return t.monthsShortRegex(e)});$("MMMM",function(e,t){return t.monthsRegex(e)});be(["M","MM"],function(e,t){t[pn]=ie(e)-1});be(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[pn]=o:ee(n).invalidMonth=e});var k9="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pg=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,S9=zs,R9=zs;function E9(e,t){return e?It(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pg).test(t)?"format":"standalone"][e.month()]:It(this._months)?this._months:this._months.standalone}function j9(e,t){return e?It(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pg.test(t)?"format":"standalone"][e.month()]:It(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function T9(e,t,n){var r,o,s,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=tn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(o=Ie.call(this._shortMonthsParse,l),o!==-1?o:null):(o=Ie.call(this._longMonthsParse,l),o!==-1?o:null):t==="MMM"?(o=Ie.call(this._shortMonthsParse,l),o!==-1?o:(o=Ie.call(this._longMonthsParse,l),o!==-1?o:null)):(o=Ie.call(this._longMonthsParse,l),o!==-1?o:(o=Ie.call(this._shortMonthsParse,l),o!==-1?o:null))}function L9(e,t,n){var r,o,s;if(this._monthsParseExact)return T9.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=tn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Ng(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ie(t);else if(t=e.localeData().monthsParse(t),!_n(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,Bu(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Og(e){return e!=null?(Ng(this,e),L.updateOffset(this,!0),this):us(this,"Month")}function M9(){return Bu(this.year(),this.month())}function A9(e){return this._monthsParseExact?(fe(this,"_monthsRegex")||$g.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(fe(this,"_monthsShortRegex")||(this._monthsShortRegex=S9),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function I9(e){return this._monthsParseExact?(fe(this,"_monthsRegex")||$g.call(this),e?this._monthsStrictRegex:this._monthsRegex):(fe(this,"_monthsRegex")||(this._monthsRegex=R9),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $g(){function e(a,d){return d.length-a.length}var t=[],n=[],r=[],o,s,l,i;for(o=0;o<12;o++)s=tn([2e3,o]),l=gn(this.monthsShort(s,"")),i=gn(this.months(s,"")),t.push(l),n.push(i),r.push(i),r.push(l);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function D9(e,t,n,r,o,s,l){var i;return e<100&&e>=0?(i=new Date(e+400,t,n,r,o,s,l),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,n,r,o,s,l),i}function ds(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ni(e,t,n){var r=7+t-n,o=(7+ds(e,0,r).getUTCDay()-t)%7;return-o+r-1}function zg(e,t,n,r,o){var s=(7+n-r)%7,l=ni(e,r,o),i=1+7*(t-1)+s+l,a,d;return i<=0?(a=e-1,d=Xo(a)+i):i>Xo(e)?(a=e+1,d=i-Xo(e)):(a=e,d=i),{year:a,dayOfYear:d}}function fs(e,t,n){var r=ni(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,s,l;return o<1?(l=e.year()-1,s=o+yn(l,t,n)):o>yn(e.year(),t,n)?(s=o-yn(e.year(),t,n),l=e.year()+1):(l=e.year(),s=o),{week:s,year:l}}function yn(e,t,n){var r=ni(e,t,n),o=ni(e+1,t,n);return(Xo(e)-r+o)/7}Y("w",["ww",2],"wo","week");Y("W",["WW",2],"Wo","isoWeek");$("w",Re,bo);$("ww",Re,pt);$("W",Re,bo);$("WW",Re,pt);Fs(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ie(e)});function P9(e){return fs(e,this._week.dow,this._week.doy).week}var N9={dow:0,doy:6};function O9(){return this._week.dow}function $9(){return this._week.doy}function z9(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function F9(e){var t=fs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Y("d",0,"do","day");Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Y("e",0,0,"weekday");Y("E",0,0,"isoWeekday");$("d",Re);$("e",Re);$("E",Re);$("dd",function(e,t){return t.weekdaysMinRegex(e)});$("ddd",function(e,t){return t.weekdaysShortRegex(e)});$("dddd",function(e,t){return t.weekdaysRegex(e)});Fs(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:ee(n).invalidWeekday=e});Fs(["d","e","E"],function(e,t,n,r){t[r]=ie(e)});function B9(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function q9(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function qu(e,t){return e.slice(t,7).concat(e.slice(0,t))}var W9="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),G9="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Y9=zs,U9=zs,V9=zs;function H9(e,t){var n=It(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?qu(n,this._week.dow):e?n[e.day()]:n}function Z9(e){return e===!0?qu(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function X9(e){return e===!0?qu(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function K9(e,t,n){var r,o,s,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=tn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(o=Ie.call(this._weekdaysParse,l),o!==-1?o:null):t==="ddd"?(o=Ie.call(this._shortWeekdaysParse,l),o!==-1?o:null):(o=Ie.call(this._minWeekdaysParse,l),o!==-1?o:null):t==="dddd"?(o=Ie.call(this._weekdaysParse,l),o!==-1||(o=Ie.call(this._shortWeekdaysParse,l),o!==-1)?o:(o=Ie.call(this._minWeekdaysParse,l),o!==-1?o:null)):t==="ddd"?(o=Ie.call(this._shortWeekdaysParse,l),o!==-1||(o=Ie.call(this._weekdaysParse,l),o!==-1)?o:(o=Ie.call(this._minWeekdaysParse,l),o!==-1?o:null)):(o=Ie.call(this._minWeekdaysParse,l),o!==-1||(o=Ie.call(this._weekdaysParse,l),o!==-1)?o:(o=Ie.call(this._shortWeekdaysParse,l),o!==-1?o:null))}function Q9(e,t,n){var r,o,s;if(this._weekdaysParseExact)return K9.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=tn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function J9(e){if(!this.isValid())return e!=null?this:NaN;var t=us(this,"Day");return e!=null?(e=B9(e,this.localeData()),this.add(e-t,"d")):t}function ex(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function tx(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=q9(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function nx(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Wu.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(fe(this,"_weekdaysRegex")||(this._weekdaysRegex=Y9),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function rx(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Wu.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(fe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=U9),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ox(e){return this._weekdaysParseExact?(fe(this,"_weekdaysRegex")||Wu.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(fe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=V9),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wu(){function e(f,m){return m.length-f.length}var t=[],n=[],r=[],o=[],s,l,i,a,d;for(s=0;s<7;s++)l=tn([2e3,1]).day(s),i=gn(this.weekdaysMin(l,"")),a=gn(this.weekdaysShort(l,"")),d=gn(this.weekdays(l,"")),t.push(i),n.push(a),r.push(d),o.push(i),o.push(a),o.push(d);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gu(){return this.hours()%12||12}function sx(){return this.hours()||24}Y("H",["HH",2],0,"hour");Y("h",["hh",2],0,Gu);Y("k",["kk",2],0,sx);Y("hmm",0,0,function(){return""+Gu.apply(this)+Kt(this.minutes(),2)});Y("hmmss",0,0,function(){return""+Gu.apply(this)+Kt(this.minutes(),2)+Kt(this.seconds(),2)});Y("Hmm",0,0,function(){return""+this.hours()+Kt(this.minutes(),2)});Y("Hmmss",0,0,function(){return""+this.hours()+Kt(this.minutes(),2)+Kt(this.seconds(),2)});function Bg(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bg("a",!0);Bg("A",!1);function qg(e,t){return t._meridiemParse}$("a",qg);$("A",qg);$("H",Re,Fu);$("h",Re,bo);$("k",Re,bo);$("HH",Re,pt);$("hh",Re,pt);$("kk",Re,pt);$("hmm",Lg);$("hmmss",Mg);$("Hmm",Lg);$("Hmmss",Mg);be(["H","HH"],qe);be(["k","kk"],function(e,t,n){var r=ie(e);t[qe]=r===24?0:r});be(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});be(["h","hh"],function(e,t,n){t[qe]=ie(e),ee(n).bigHour=!0});be("hmm",function(e,t,n){var r=e.length-2;t[qe]=ie(e.substr(0,r)),t[Lt]=ie(e.substr(r)),ee(n).bigHour=!0});be("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[qe]=ie(e.substr(0,r)),t[Lt]=ie(e.substr(r,2)),t[hn]=ie(e.substr(o)),ee(n).bigHour=!0});be("Hmm",function(e,t,n){var r=e.length-2;t[qe]=ie(e.substr(0,r)),t[Lt]=ie(e.substr(r))});be("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[qe]=ie(e.substr(0,r)),t[Lt]=ie(e.substr(r,2)),t[hn]=ie(e.substr(o))});function lx(e){return(e+"").toLowerCase().charAt(0)==="p"}var ix=/[ap]\.?m?\.?/i,ax=wo("Hours",!0);function cx(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Wg={calendar:Kw,longDateFormat:t9,invalidDate:r9,ordinal:s9,dayOfMonthOrdinalParse:l9,relativeTime:a9,months:k9,monthsShort:Dg,week:N9,weekdays:W9,weekdaysMin:G9,weekdaysShort:Fg,meridiemParse:ix},je={},Po={},ms;function ux(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function um(e){return e&&e.toLowerCase().replace("_","-")}function dx(e){for(var t=0,n,r,o,s;t<e.length;){for(s=um(e[t]).split("-"),n=s.length,r=um(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=Hi(s.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&ux(s,r)>=n-1)break;n--}t++}return ms}function fx(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Hi(e){var t=null,n;if(je[e]===void 0&&typeof module<"u"&&module&&module.exports&&fx(e))try{t=ms._abbr,n=require,n("./locale/"+e),Yn(t)}catch{je[e]=null}return je[e]}function Yn(e,t){var n;return e&&(rt(t)?n=Sn(e):n=Yu(e,t),n?ms=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ms._abbr}function Yu(e,t){if(t!==null){var n,r=Wg;if(t.abbr=e,je[e]!=null)Rg("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=je[e]._config;else if(t.parentLocale!=null)if(je[t.parentLocale]!=null)r=je[t.parentLocale]._config;else if(n=Hi(t.parentLocale),n!=null)r=n._config;else return Po[t.parentLocale]||(Po[t.parentLocale]=[]),Po[t.parentLocale].push({name:e,config:t}),null;return je[e]=new Pu(Lc(r,t)),Po[e]&&Po[e].forEach(function(o){Yu(o.name,o.config)}),Yn(e),je[e]}else return delete je[e],null}function mx(e,t){if(t!=null){var n,r,o=Wg;je[e]!=null&&je[e].parentLocale!=null?je[e].set(Lc(je[e]._config,t)):(r=Hi(e),r!=null&&(o=r._config),t=Lc(o,t),r==null&&(t.abbr=e),n=new Pu(t),n.parentLocale=je[e],je[e]=n),Yn(e)}else je[e]!=null&&(je[e].parentLocale!=null?(je[e]=je[e].parentLocale,e===Yn()&&Yn(e)):je[e]!=null&&delete je[e]);return je[e]}function Sn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ms;if(!It(e)){if(t=Hi(e),t)return t;e=[e]}return dx(e)}function px(){return Mc(je)}function Uu(e){var t,n=e._a;return n&&ee(e).overflow===-2&&(t=n[pn]<0||n[pn]>11?pn:n[Vt]<1||n[Vt]>Bu(n[Je],n[pn])?Vt:n[qe]<0||n[qe]>24||n[qe]===24&&(n[Lt]!==0||n[hn]!==0||n[ur]!==0)?qe:n[Lt]<0||n[Lt]>59?Lt:n[hn]<0||n[hn]>59?hn:n[ur]<0||n[ur]>999?ur:-1,ee(e)._overflowDayOfYear&&(t<Je||t>Vt)&&(t=Vt),ee(e)._overflowWeeks&&t===-1&&(t=v9),ee(e)._overflowWeekday&&t===-1&&(t=b9),ee(e).overflow=t),e}var hx=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gx=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yx=/Z|[+-]\d\d(?::?\d\d)?/,hl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Fa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vx=/^\/?Date\((-?\d+)/i,bx=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wx={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Gg(e){var t,n,r=e._i,o=hx.exec(r)||gx.exec(r),s,l,i,a,d=hl.length,f=Fa.length;if(o){for(ee(e).iso=!0,t=0,n=d;t<n;t++)if(hl[t][1].exec(o[1])){l=hl[t][0],s=hl[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(o[3]){for(t=0,n=f;t<n;t++)if(Fa[t][1].exec(o[3])){i=(o[2]||" ")+Fa[t][0];break}if(i==null){e._isValid=!1;return}}if(!s&&i!=null){e._isValid=!1;return}if(o[4])if(yx.exec(o[4]))a="Z";else{e._isValid=!1;return}e._f=l+(i||"")+(a||""),Hu(e)}else e._isValid=!1}function xx(e,t,n,r,o,s){var l=[Cx(e),Dg.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return s&&l.push(parseInt(s,10)),l}function Cx(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _x(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kx(e,t,n){if(e){var r=Fg.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return ee(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Sx(e,t,n){if(e)return wx[e];if(t)return 0;var r=parseInt(n,10),o=r%100,s=(r-o)/100;return s*60+o}function Yg(e){var t=bx.exec(_x(e._i)),n;if(t){if(n=xx(t[4],t[3],t[2],t[5],t[6],t[7]),!kx(t[1],n,e))return;e._a=n,e._tzm=Sx(t[8],t[9],t[10]),e._d=ds.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ee(e).rfc2822=!0}else e._isValid=!1}function Rx(e){var t=vx.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Gg(e),e._isValid===!1)delete e._isValid;else return;if(Yg(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:L.createFromInputFallback(e)}L.createFromInputFallback=Rt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Pr(e,t,n){return e??t??n}function Ex(e){var t=new Date(L.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vu(e){var t,n,r=[],o,s,l;if(!e._d){for(o=Ex(e),e._w&&e._a[Vt]==null&&e._a[pn]==null&&jx(e),e._dayOfYear!=null&&(l=Pr(e._a[Je],o[Je]),(e._dayOfYear>Xo(l)||e._dayOfYear===0)&&(ee(e)._overflowDayOfYear=!0),n=ds(l,0,e._dayOfYear),e._a[pn]=n.getUTCMonth(),e._a[Vt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[qe]===24&&e._a[Lt]===0&&e._a[hn]===0&&e._a[ur]===0&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?ds:D9).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(ee(e).weekdayMismatch=!0)}}function jx(e){var t,n,r,o,s,l,i,a,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,l=4,n=Pr(t.GG,e._a[Je],fs(Se(),1,4).year),r=Pr(t.W,1),o=Pr(t.E,1),(o<1||o>7)&&(a=!0)):(s=e._locale._week.dow,l=e._locale._week.doy,d=fs(Se(),s,l),n=Pr(t.gg,e._a[Je],d.year),r=Pr(t.w,d.week),t.d!=null?(o=t.d,(o<0||o>6)&&(a=!0)):t.e!=null?(o=t.e+s,(t.e<0||t.e>6)&&(a=!0)):o=s),r<1||r>yn(n,s,l)?ee(e)._overflowWeeks=!0:a!=null?ee(e)._overflowWeekday=!0:(i=zg(n,r,o,s,l),e._a[Je]=i.year,e._dayOfYear=i.dayOfYear)}L.ISO_8601=function(){};L.RFC_2822=function(){};function Hu(e){if(e._f===L.ISO_8601){Gg(e);return}if(e._f===L.RFC_2822){Yg(e);return}e._a=[],ee(e).empty=!0;var t=""+e._i,n,r,o,s,l,i=t.length,a=0,d,f;for(o=Eg(e._f,e._locale).match(Nu)||[],f=o.length,n=0;n<f;n++)s=o[n],r=(t.match(h9(s,e))||[])[0],r&&(l=t.substr(0,t.indexOf(r)),l.length>0&&ee(e).unusedInput.push(l),t=t.slice(t.indexOf(r)+r.length),a+=r.length),Yr[s]?(r?ee(e).empty=!1:ee(e).unusedTokens.push(s),y9(s,r,e)):e._strict&&!r&&ee(e).unusedTokens.push(s);ee(e).charsLeftOver=i-a,t.length>0&&ee(e).unusedInput.push(t),e._a[qe]<=12&&ee(e).bigHour===!0&&e._a[qe]>0&&(ee(e).bigHour=void 0),ee(e).parsedDateParts=e._a.slice(0),ee(e).meridiem=e._meridiem,e._a[qe]=Tx(e._locale,e._a[qe],e._meridiem),d=ee(e).era,d!==null&&(e._a[Je]=e._locale.erasConvertYear(d,e._a[Je])),Vu(e),Uu(e)}function Tx(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Lx(e){var t,n,r,o,s,l,i=!1,a=e._f.length;if(a===0){ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<a;o++)s=0,l=!1,t=Du({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],Hu(t),Iu(t)&&(l=!0),s+=ee(t).charsLeftOver,s+=ee(t).unusedTokens.length*10,ee(t).score=s,i?s<r&&(r=s,n=t):(r==null||s<r||l)&&(r=s,n=t,l&&(i=!0));qn(e,n||t)}function Mx(e){if(!e._d){var t=Ou(e._i),n=t.day===void 0?t.date:t.day;e._a=kg([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Vu(e)}}function Ax(e){var t=new $s(Uu(Ug(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ug(e){var t=e._i,n=e._f;return e._locale=e._locale||Sn(e._l),t===null||n===void 0&&t===""?Bi({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Dt(t)?new $s(Uu(t)):(Os(t)?e._d=t:It(n)?Lx(e):n?Hu(e):Ix(e),Iu(e)||(e._d=null),e))}function Ix(e){var t=e._i;rt(t)?e._d=new Date(L.now()):Os(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Rx(e):It(t)?(e._a=kg(t.slice(0),function(n){return parseInt(n,10)}),Vu(e)):dr(t)?Mx(e):_n(t)?e._d=new Date(t):L.createFromInputFallback(e)}function Vg(e,t,n,r,o){var s={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(dr(e)&&Au(e)||It(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Ax(s)}function Se(e,t,n,r){return Vg(e,t,n,r,!1)}var Dx=Rt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Se.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Bi()}),Px=Rt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Se.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Bi()});function Hg(e,t){var n,r;if(t.length===1&&It(t[0])&&(t=t[0]),!t.length)return Se();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Nx(){var e=[].slice.call(arguments,0);return Hg("isBefore",e)}function Ox(){var e=[].slice.call(arguments,0);return Hg("isAfter",e)}var $x=function(){return Date.now?Date.now():+new Date},No=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zx(e){var t,n=!1,r,o=No.length;for(t in e)if(fe(e,t)&&!(Ie.call(No,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[No[r]]){if(n)return!1;parseFloat(e[No[r]])!==ie(e[No[r]])&&(n=!0)}return!0}function Fx(){return this._isValid}function Bx(){return $t(NaN)}function Zi(e){var t=Ou(e),n=t.year||0,r=t.quarter||0,o=t.month||0,s=t.week||t.isoWeek||0,l=t.day||0,i=t.hour||0,a=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=zx(t),this._milliseconds=+f+d*1e3+a*6e4+i*1e3*60*60,this._days=+l+s*7,this._months=+o+r*3+n*12,this._data={},this._locale=Sn(),this._bubble()}function Ll(e){return e instanceof Zi}function Ic(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function qx(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0,l;for(l=0;l<r;l++)ie(e[l])!==ie(t[l])&&s++;return s+o}function Zg(e,t){Y(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Kt(~~(n/60),2)+t+Kt(~~n%60,2)})}Zg("Z",":");Zg("ZZ","");$("Z",Ui);$("ZZ",Ui);be(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Zu(Ui,e)});var Wx=/([\+\-]|\d\d)/gi;function Zu(e,t){var n=(t||"").match(e),r,o,s;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(Wx)||["-",0,0],s=+(o[1]*60)+ie(o[2]),s===0?0:o[0]==="+"?s:-s)}function Xu(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Dt(e)||Os(e)?e.valueOf():Se(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),L.updateOffset(n,!1),n):Se(e).local()}function Dc(e){return-Math.round(e._d.getTimezoneOffset())}L.updateOffset=function(){};function Gx(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Zu(Ui,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Dc(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Qg(this,$t(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,L.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Dc(this)}function Yx(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ux(e){return this.utcOffset(0,e)}function Vx(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dc(this),"m")),this}function Hx(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Zu(m9,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Zx(e){return this.isValid()?(e=e?Se(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Xx(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kx(){if(!rt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Du(e,this),e=Ug(e),e._a?(t=e._isUTC?tn(e._a):Se(e._a),this._isDSTShifted=this.isValid()&&qx(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Qx(){return this.isValid()?!this._isUTC:!1}function Jx(){return this.isValid()?this._isUTC:!1}function Xg(){return this.isValid()?this._isUTC&&this._offset===0:!1}var eC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $t(e,t){var n=e,r=null,o,s,l;return Ll(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:_n(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=eC.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ie(r[Vt])*o,h:ie(r[qe])*o,m:ie(r[Lt])*o,s:ie(r[hn])*o,ms:ie(Ic(r[ur]*1e3))*o}):(r=tC.exec(e))?(o=r[1]==="-"?-1:1,n={y:sr(r[2],o),M:sr(r[3],o),w:sr(r[4],o),d:sr(r[5],o),h:sr(r[6],o),m:sr(r[7],o),s:sr(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(l=nC(Se(n.from),Se(n.to)),n={},n.ms=l.milliseconds,n.M=l.months),s=new Zi(n),Ll(e)&&fe(e,"_locale")&&(s._locale=e._locale),Ll(e)&&fe(e,"_isValid")&&(s._isValid=e._isValid),s}$t.fn=Zi.prototype;$t.invalid=Bx;function sr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function dm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nC(e,t){var n;return e.isValid()&&t.isValid()?(t=Xu(t,e),e.isBefore(t)?n=dm(e,t):(n=dm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Kg(e,t){return function(n,r){var o,s;return r!==null&&!isNaN(+r)&&(Rg(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),o=$t(n,r),Qg(this,o,e),this}}function Qg(e,t,n,r){var o=t._milliseconds,s=Ic(t._days),l=Ic(t._months);e.isValid()&&(r=r??!0,l&&Ng(e,us(e,"Month")+l*n),s&&Ig(e,"Date",us(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&L.updateOffset(e,s||l))}var rC=Kg(1,"add"),oC=Kg(-1,"subtract");function Jg(e){return typeof e=="string"||e instanceof String}function sC(e){return Dt(e)||Os(e)||Jg(e)||_n(e)||iC(e)||lC(e)||e===null||e===void 0}function lC(e){var t=dr(e)&&!Au(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,l=r.length;for(o=0;o<l;o+=1)s=r[o],n=n||fe(e,s);return t&&n}function iC(e){var t=It(e),n=!1;return t&&(n=e.filter(function(r){return!_n(r)&&Jg(e)}).length===0),t&&n}function aC(e){var t=dr(e)&&!Au(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,s;for(o=0;o<r.length;o+=1)s=r[o],n=n||fe(e,s);return t&&n}function cC(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function uC(e,t){arguments.length===1&&(arguments[0]?sC(arguments[0])?(e=arguments[0],t=void 0):aC(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Se(),r=Xu(n,this).startOf("day"),o=L.calendarFormat(this,r)||"sameElse",s=t&&(nn(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Se(n)))}function dC(){return new $s(this)}function fC(e,t){var n=Dt(e)?e:Se(e);return this.isValid()&&n.isValid()?(t=Et(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function mC(e,t){var n=Dt(e)?e:Se(e);return this.isValid()&&n.isValid()?(t=Et(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function pC(e,t,n,r){var o=Dt(e)?e:Se(e),s=Dt(t)?t:Se(t);return this.isValid()&&o.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function hC(e,t){var n=Dt(e)?e:Se(e),r;return this.isValid()&&n.isValid()?(t=Et(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function gC(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function yC(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function vC(e,t,n){var r,o,s;if(!this.isValid())return NaN;if(r=Xu(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=Et(t),t){case"year":s=Ml(this,r)/12;break;case"month":s=Ml(this,r);break;case"quarter":s=Ml(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-o)/864e5;break;case"week":s=(this-r-o)/6048e5;break;default:s=this-r}return n?s:wt(s)}function Ml(e,t){if(e.date()<t.date())return-Ml(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,s;return t-r<0?(o=e.clone().add(n-1,"months"),s=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),s=(t-r)/(o-r)),-(n+s)||0}L.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";L.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function bC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wC(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Tl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Tl(n,"Z")):Tl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+o+s)}function CC(e){e||(e=this.isUtc()?L.defaultFormatUtc:L.defaultFormat);var t=Tl(this,e);return this.localeData().postformat(t)}function _C(e,t){return this.isValid()&&(Dt(e)&&e.isValid()||Se(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kC(e){return this.from(Se(),e)}function SC(e,t){return this.isValid()&&(Dt(e)&&e.isValid()||Se(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function RC(e){return this.to(Se(),e)}function e1(e){var t;return e===void 0?this._locale._abbr:(t=Sn(e),t!=null&&(this._locale=t),this)}var t1=Rt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function n1(){return this._locale}var ri=1e3,Ur=60*ri,oi=60*Ur,r1=(365*400+97)*24*oi;function Vr(e,t){return(e%t+t)%t}function o1(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-r1:new Date(e,t,n).valueOf()}function s1(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-r1:Date.UTC(e,t,n)}function EC(e){var t,n;if(e=Et(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?s1:o1,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Vr(t+(this._isUTC?0:this.utcOffset()*Ur),oi);break;case"minute":t=this._d.valueOf(),t-=Vr(t,Ur);break;case"second":t=this._d.valueOf(),t-=Vr(t,ri);break}return this._d.setTime(t),L.updateOffset(this,!0),this}function jC(e){var t,n;if(e=Et(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?s1:o1,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=oi-Vr(t+(this._isUTC?0:this.utcOffset()*Ur),oi)-1;break;case"minute":t=this._d.valueOf(),t+=Ur-Vr(t,Ur)-1;break;case"second":t=this._d.valueOf(),t+=ri-Vr(t,ri)-1;break}return this._d.setTime(t),L.updateOffset(this,!0),this}function TC(){return this._d.valueOf()-(this._offset||0)*6e4}function LC(){return Math.floor(this.valueOf()/1e3)}function MC(){return new Date(this.valueOf())}function AC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function IC(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function DC(){return this.isValid()?this.toISOString():null}function PC(){return Iu(this)}function NC(){return qn({},ee(this))}function OC(){return ee(this).overflow}function $C(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Y("N",0,0,"eraAbbr");Y("NN",0,0,"eraAbbr");Y("NNN",0,0,"eraAbbr");Y("NNNN",0,0,"eraName");Y("NNNNN",0,0,"eraNarrow");Y("y",["y",1],"yo","eraYear");Y("y",["yy",2],0,"eraYear");Y("y",["yyy",3],0,"eraYear");Y("y",["yyyy",4],0,"eraYear");$("N",Ku);$("NN",Ku);$("NNN",Ku);$("NNNN",ZC);$("NNNNN",XC);be(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?ee(n).era=o:ee(n).invalidEra=e});$("y",vo);$("yy",vo);$("yyy",vo);$("yyyy",vo);$("yo",KC);be(["y","yy","yyy","yyyy"],Je);be(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Je]=n._locale.eraYearOrdinalParse(e,o):t[Je]=parseInt(e,10)});function zC(e,t){var n,r,o,s=this._eras||Sn("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":o=L(s[n].since).startOf("day"),s[n].since=o.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=L(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf();break}}return s}function FC(e,t,n){var r,o,s=this.eras(),l,i,a;for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(l=s[r].name.toUpperCase(),i=s[r].abbr.toUpperCase(),a=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return s[r];break;case"NNNN":if(l===e)return s[r];break;case"NNNNN":if(a===e)return s[r];break}else if([l,i,a].indexOf(e)>=0)return s[r]}function BC(e,t){var n=e.since<=e.until?1:-1;return t===void 0?L(e.since).year():L(e.since).year()+(t-e.offset)*n}function qC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function WC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function GC(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function YC(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-L(o[e].since).year())*n+o[e].offset;return this.year()}function UC(e){return fe(this,"_erasNameRegex")||Qu.call(this),e?this._erasNameRegex:this._erasRegex}function VC(e){return fe(this,"_erasAbbrRegex")||Qu.call(this),e?this._erasAbbrRegex:this._erasRegex}function HC(e){return fe(this,"_erasNarrowRegex")||Qu.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ku(e,t){return t.erasAbbrRegex(e)}function ZC(e,t){return t.erasNameRegex(e)}function XC(e,t){return t.erasNarrowRegex(e)}function KC(e,t){return t._eraYearOrdinalRegex||vo}function Qu(){var e=[],t=[],n=[],r=[],o,s,l,i,a,d=this.eras();for(o=0,s=d.length;o<s;++o)l=gn(d[o].name),i=gn(d[o].abbr),a=gn(d[o].narrow),t.push(l),e.push(i),n.push(a),r.push(l),r.push(i),r.push(a);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Y(0,["gg",2],0,function(){return this.weekYear()%100});Y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xi(e,t){Y(0,[e,e.length],0,t)}Xi("gggg","weekYear");Xi("ggggg","weekYear");Xi("GGGG","isoWeekYear");Xi("GGGGG","isoWeekYear");$("G",Yi);$("g",Yi);$("GG",Re,pt);$("gg",Re,pt);$("GGGG",zu,$u);$("gggg",zu,$u);$("GGGGG",Gi,qi);$("ggggg",Gi,qi);Fs(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ie(e)});Fs(["gg","GG"],function(e,t,n,r){t[r]=L.parseTwoDigitYear(e)});function QC(e){return l1.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function JC(e){return l1.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function e_(){return yn(this.year(),1,4)}function t_(){return yn(this.isoWeekYear(),1,4)}function n_(){var e=this.localeData()._week;return yn(this.year(),e.dow,e.doy)}function r_(){var e=this.localeData()._week;return yn(this.weekYear(),e.dow,e.doy)}function l1(e,t,n,r,o){var s;return e==null?fs(this,r,o).year:(s=yn(e,r,o),t>s&&(t=s),o_.call(this,e,t,n,r,o))}function o_(e,t,n,r,o){var s=zg(e,t,n,r,o),l=ds(s.year,0,s.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}Y("Q",0,"Qo","quarter");$("Q",jg);be("Q",function(e,t){t[pn]=(ie(e)-1)*3});function s_(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Y("D",["DD",2],"Do","date");$("D",Re,bo);$("DD",Re,pt);$("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});be(["D","DD"],Vt);be("Do",function(e,t){t[Vt]=ie(e.match(Re)[0])});var i1=wo("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear");$("DDD",Wi);$("DDDD",Tg);be(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ie(e)});function l_(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Y("m",["mm",2],0,"minute");$("m",Re,Fu);$("mm",Re,pt);be(["m","mm"],Lt);var i_=wo("Minutes",!1);Y("s",["ss",2],0,"second");$("s",Re,Fu);$("ss",Re,pt);be(["s","ss"],hn);var a_=wo("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)});Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Y(0,["SSS",3],0,"millisecond");Y(0,["SSSS",4],0,function(){return this.millisecond()*10});Y(0,["SSSSS",5],0,function(){return this.millisecond()*100});Y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$("S",Wi,jg);$("SS",Wi,pt);$("SSS",Wi,Tg);var Wn,a1;for(Wn="SSSS";Wn.length<=9;Wn+="S")$(Wn,vo);function c_(e,t){t[ur]=ie(("0."+e)*1e3)}for(Wn="S";Wn.length<=9;Wn+="S")be(Wn,c_);a1=wo("Milliseconds",!1);Y("z",0,0,"zoneAbbr");Y("zz",0,0,"zoneName");function u_(){return this._isUTC?"UTC":""}function d_(){return this._isUTC?"Coordinated Universal Time":""}var I=$s.prototype;I.add=rC;I.calendar=uC;I.clone=dC;I.diff=vC;I.endOf=jC;I.format=CC;I.from=_C;I.fromNow=kC;I.to=SC;I.toNow=RC;I.get=x9;I.invalidAt=OC;I.isAfter=fC;I.isBefore=mC;I.isBetween=pC;I.isSame=hC;I.isSameOrAfter=gC;I.isSameOrBefore=yC;I.isValid=PC;I.lang=t1;I.locale=e1;I.localeData=n1;I.max=Px;I.min=Dx;I.parsingFlags=NC;I.set=C9;I.startOf=EC;I.subtract=oC;I.toArray=AC;I.toObject=IC;I.toDate=MC;I.toISOString=wC;I.inspect=xC;typeof Symbol<"u"&&Symbol.for!=null&&(I[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});I.toJSON=DC;I.toString=bC;I.unix=LC;I.valueOf=TC;I.creationData=$C;I.eraName=qC;I.eraNarrow=WC;I.eraAbbr=GC;I.eraYear=YC;I.year=Ag;I.isLeapYear=w9;I.weekYear=QC;I.isoWeekYear=JC;I.quarter=I.quarters=s_;I.month=Og;I.daysInMonth=M9;I.week=I.weeks=z9;I.isoWeek=I.isoWeeks=F9;I.weeksInYear=n_;I.weeksInWeekYear=r_;I.isoWeeksInYear=e_;I.isoWeeksInISOWeekYear=t_;I.date=i1;I.day=I.days=J9;I.weekday=ex;I.isoWeekday=tx;I.dayOfYear=l_;I.hour=I.hours=ax;I.minute=I.minutes=i_;I.second=I.seconds=a_;I.millisecond=I.milliseconds=a1;I.utcOffset=Gx;I.utc=Ux;I.local=Vx;I.parseZone=Hx;I.hasAlignedHourOffset=Zx;I.isDST=Xx;I.isLocal=Qx;I.isUtcOffset=Jx;I.isUtc=Xg;I.isUTC=Xg;I.zoneAbbr=u_;I.zoneName=d_;I.dates=Rt("dates accessor is deprecated. Use date instead.",i1);I.months=Rt("months accessor is deprecated. Use month instead",Og);I.years=Rt("years accessor is deprecated. Use year instead",Ag);I.zone=Rt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Yx);I.isDSTShifted=Rt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kx);function f_(e){return Se(e*1e3)}function m_(){return Se.apply(null,arguments).parseZone()}function c1(e){return e}var me=Pu.prototype;me.calendar=Qw;me.longDateFormat=n9;me.invalidDate=o9;me.ordinal=i9;me.preparse=c1;me.postformat=c1;me.relativeTime=c9;me.pastFuture=u9;me.set=Xw;me.eras=zC;me.erasParse=FC;me.erasConvertYear=BC;me.erasAbbrRegex=VC;me.erasNameRegex=UC;me.erasNarrowRegex=HC;me.months=E9;me.monthsShort=j9;me.monthsParse=L9;me.monthsRegex=I9;me.monthsShortRegex=A9;me.week=P9;me.firstDayOfYear=$9;me.firstDayOfWeek=O9;me.weekdays=H9;me.weekdaysMin=X9;me.weekdaysShort=Z9;me.weekdaysParse=Q9;me.weekdaysRegex=nx;me.weekdaysShortRegex=rx;me.weekdaysMinRegex=ox;me.isPM=lx;me.meridiem=cx;function si(e,t,n,r){var o=Sn(),s=tn().set(r,t);return o[n](s,e)}function u1(e,t,n){if(_n(e)&&(t=e,e=void 0),e=e||"",t!=null)return si(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=si(e,r,n,"month");return o}function Ju(e,t,n,r){typeof e=="boolean"?(_n(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,_n(t)&&(n=t,t=void 0),t=t||"");var o=Sn(),s=e?o._week.dow:0,l,i=[];if(n!=null)return si(t,(n+s)%7,r,"day");for(l=0;l<7;l++)i[l]=si(t,(l+s)%7,r,"day");return i}function p_(e,t){return u1(e,t,"months")}function h_(e,t){return u1(e,t,"monthsShort")}function g_(e,t,n){return Ju(e,t,n,"weekdays")}function y_(e,t,n){return Ju(e,t,n,"weekdaysShort")}function v_(e,t,n){return Ju(e,t,n,"weekdaysMin")}Yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ie(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});L.lang=Rt("moment.lang is deprecated. Use moment.locale instead.",Yn);L.langData=Rt("moment.langData is deprecated. Use moment.localeData instead.",Sn);var an=Math.abs;function b_(){var e=this._data;return this._milliseconds=an(this._milliseconds),this._days=an(this._days),this._months=an(this._months),e.milliseconds=an(e.milliseconds),e.seconds=an(e.seconds),e.minutes=an(e.minutes),e.hours=an(e.hours),e.months=an(e.months),e.years=an(e.years),this}function d1(e,t,n,r){var o=$t(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function w_(e,t){return d1(this,e,t,1)}function x_(e,t){return d1(this,e,t,-1)}function fm(e){return e<0?Math.floor(e):Math.ceil(e)}function C_(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,s,l,i,a;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=fm(Pc(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=wt(e/1e3),r.seconds=o%60,s=wt(o/60),r.minutes=s%60,l=wt(s/60),r.hours=l%24,t+=wt(l/24),a=wt(f1(t)),n+=a,t-=fm(Pc(a)),i=wt(n/12),n%=12,r.days=t,r.months=n,r.years=i,this}function f1(e){return e*4800/146097}function Pc(e){return e*146097/4800}function __(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Et(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+f1(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pc(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Rn(e){return function(){return this.as(e)}}var m1=Rn("ms"),k_=Rn("s"),S_=Rn("m"),R_=Rn("h"),E_=Rn("d"),j_=Rn("w"),T_=Rn("M"),L_=Rn("Q"),M_=Rn("y"),A_=m1;function I_(){return $t(this)}function D_(e){return e=Et(e),this.isValid()?this[e+"s"]():NaN}function yr(e){return function(){return this.isValid()?this._data[e]:NaN}}var P_=yr("milliseconds"),N_=yr("seconds"),O_=yr("minutes"),$_=yr("hours"),z_=yr("days"),F_=yr("months"),B_=yr("years");function q_(){return wt(this.days()/7)}var un=Math.round,Or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function W_(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function G_(e,t,n,r){var o=$t(e).abs(),s=un(o.as("s")),l=un(o.as("m")),i=un(o.as("h")),a=un(o.as("d")),d=un(o.as("M")),f=un(o.as("w")),m=un(o.as("y")),p=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||l<=1&&["m"]||l<n.m&&["mm",l]||i<=1&&["h"]||i<n.h&&["hh",i]||a<=1&&["d"]||a<n.d&&["dd",a];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||d<=1&&["M"]||d<n.M&&["MM",d]||m<=1&&["y"]||["yy",m],p[2]=t,p[3]=+e>0,p[4]=r,W_.apply(null,p)}function Y_(e){return e===void 0?un:typeof e=="function"?(un=e,!0):!1}function U_(e,t){return Or[e]===void 0?!1:t===void 0?Or[e]:(Or[e]=t,e==="s"&&(Or.ss=t-1),!0)}function V_(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Or,o,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Or,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),s=G_(this,!n,r,o),n&&(s=o.pastFuture(+this,s)),o.postformat(s)}var Ba=Math.abs;function Mr(e){return(e>0)-(e<0)||+e}function Ki(){if(!this.isValid())return this.localeData().invalidDate();var e=Ba(this._milliseconds)/1e3,t=Ba(this._days),n=Ba(this._months),r,o,s,l,i=this.asSeconds(),a,d,f,m;return i?(r=wt(e/60),o=wt(r/60),e%=60,r%=60,s=wt(n/12),n%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",a=i<0?"-":"",d=Mr(this._months)!==Mr(i)?"-":"",f=Mr(this._days)!==Mr(i)?"-":"",m=Mr(this._milliseconds)!==Mr(i)?"-":"",a+"P"+(s?d+s+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(o||r||e?"T":"")+(o?m+o+"H":"")+(r?m+r+"M":"")+(e?m+l+"S":"")):"P0D"}var ue=Zi.prototype;ue.isValid=Fx;ue.abs=b_;ue.add=w_;ue.subtract=x_;ue.as=__;ue.asMilliseconds=m1;ue.asSeconds=k_;ue.asMinutes=S_;ue.asHours=R_;ue.asDays=E_;ue.asWeeks=j_;ue.asMonths=T_;ue.asQuarters=L_;ue.asYears=M_;ue.valueOf=A_;ue._bubble=C_;ue.clone=I_;ue.get=D_;ue.milliseconds=P_;ue.seconds=N_;ue.minutes=O_;ue.hours=$_;ue.days=z_;ue.weeks=q_;ue.months=F_;ue.years=B_;ue.humanize=V_;ue.toISOString=Ki;ue.toString=Ki;ue.toJSON=Ki;ue.locale=e1;ue.localeData=n1;ue.toIsoString=Rt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ki);ue.lang=t1;Y("X",0,0,"unix");Y("x",0,0,"valueOf");$("x",Yi);$("X",p9);be("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});be("x",function(e,t,n){n._d=new Date(ie(e))});//! moment.js
|
|
201
|
+
L.version="2.30.1";Hw(Se);L.fn=I;L.min=Nx;L.max=Ox;L.now=$x;L.utc=tn;L.unix=f_;L.months=p_;L.isDate=Os;L.locale=Yn;L.invalid=Bi;L.duration=$t;L.isMoment=Dt;L.weekdays=g_;L.parseZone=m_;L.localeData=Sn;L.isDuration=Ll;L.monthsShort=h_;L.weekdaysMin=v_;L.defineLocale=Yu;L.updateLocale=mx;L.locales=px;L.weekdaysShort=y_;L.normalizeUnits=Et;L.relativeTimeRounding=Y_;L.relativeTimeThreshold=U_;L.calendarFormat=cC;L.prototype=I;L.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var ed="Popover",[p1,ML]=Ot(ed,[Qn]),Bs=Qn(),[H_,tr]=p1(ed),h1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,i=Bs(t),a=u.useRef(null),[d,f]=u.useState(!1),[m=!1,p]=Xn({prop:r,defaultProp:o,onChange:s});return c.jsx(wi,{...i,children:c.jsx(H_,{scope:t,contentId:_t(),triggerRef:a,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:l,children:n})})};h1.displayName=ed;var g1="PopoverAnchor",y1=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tr(g1,n),s=Bs(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(l(),()=>i()),[l,i]),c.jsx(Cs,{...s,...r,ref:t})});y1.displayName=g1;var v1="PopoverTrigger",td=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tr(v1,n),s=Bs(n),l=oe(t,o.triggerRef),i=c.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":C1(o.open),...r,ref:l,onClick:O(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Cs,{asChild:!0,...s,children:i})});td.displayName=v1;var nd="PopoverPortal",[Z_,X_]=p1(nd,{forceMount:void 0}),b1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=tr(nd,t);return c.jsx(Z_,{scope:t,forceMount:n,children:c.jsx(Ve,{present:n||s.open,children:c.jsx(ao,{asChild:!0,container:o,children:r})})})};b1.displayName=nd;var to="PopoverContent",rd=u.forwardRef((e,t)=>{const n=X_(to,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=tr(to,e.__scopePopover);return c.jsx(Ve,{present:r||s.open,children:s.modal?c.jsx(K_,{...o,ref:t}):c.jsx(Q_,{...o,ref:t})})});rd.displayName=to;var K_=u.forwardRef((e,t)=>{const n=tr(to,e.__scopePopover),r=u.useRef(null),o=oe(t,r),s=u.useRef(!1);return u.useEffect(()=>{const l=r.current;if(l)return Li(l)},[]),c.jsx(Is,{as:Un,allowPinchZoom:!0,children:c.jsx(w1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0,d=i.button===2||a;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:O(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Q_=u.forwardRef((e,t)=>{const n=tr(to,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(w1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,i;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((i=n.triggerRef.current)==null?void 0:i.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),w1=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,...m}=e,p=tr(to,n),h=Bs(n);return Ti(),c.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(so,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(xi,{"data-state":C1(p.open),role:"dialog",id:p.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),x1="PopoverClose",J_=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tr(x1,n);return c.jsx(X.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});J_.displayName=x1;var ek="PopoverArrow",tk=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Bs(n);return c.jsx(Ci,{...o,...r,ref:t})});tk.displayName=ek;function C1(e){return e?"open":"closed"}var xo=h1,_1=y1,qs=td,Co=b1,Ws=rd;const nk={wrapper:{position:"mly1n2onr6",$$css:!0}},rk=e=>{const[t,n]=e.split("-");return{side:t,align:n||"center"}},ok=({open:e,setOpen:t,children:n,width:r=350,maxHeight:o,placement:s="right-start",referenceDiv:l,zIndex:i=10,xOffset:a=0,yOffset:d=10,disabled:f=!1,customStyle:m})=>{const p=u.useRef(null),{side:h,align:g}=rk(s),y=()=>h==="top"||h==="bottom"?d:a,v=()=>h==="top"||h==="bottom"?a:d;return c.jsx("div",{...R.props(nk.wrapper,m),ref:p,children:c.jsxs(xo,{open:e&&!f,onOpenChange:t,children:[c.jsx(_1,{asChild:!0,children:c.jsx("div",{ref:l||p})}),e&&!f&&c.jsx(Co,{children:c.jsx(Ws,{className:"mly15q0wj1 mly12oqio5 mly1a3rnpv mly12azwz9 mly64z8l9",side:h,align:g,sideOffset:y(),alignOffset:v(),style:{width:typeof r=="string"?r:`${r}px`,zIndex:i,...o?{maxHeight:`${o}px`}:{}},avoidCollisions:!0,children:n})})]})})},Al={wrapper:{position:"mly1n2onr6",$$css:!0},checkIcon:{verticalAlign:"mly1n8ftqi",width:"mlyw4jnvo",minWidth:"mlyt4ypqs",opacity:"mly1vqud6w",visibility:"mlylshs6z",color:"mly1pc1dlx",$$css:!0},checkIconSelected:{visibility:"mlynpuxes",$$css:!0},selectListDiv:{fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",textTransform:"mly6mezaz",fontWeight:"mly1fcty0u",width:"mlyh8yej3",padding:"mly1b4vry6",maxHeight:"mly1phlbz0",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0}},En=({autoFocus:e,value:t,onChange:n,options:r,placeholder:o="Select",disabled:s=!1,valueEqual:l=(d,f)=>d===f,width:i=200,customStyle:a})=>{var d;const[f,m]=u.useState(!1),[p,h]=u.useState(!1),[g,y]=u.useState(!1),v=t!==void 0&&((d=r.find(b=>l(b.value,t)))==null?void 0:d.label)||o,w=b=>{n?.(b),m(!1)};return c.jsxs("div",{...R.props(Al.wrapper,a),children:[c.jsxs("button",{type:"button",autoFocus:e,...{0:{className:"mlyjbqb8w mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3"},4:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti"},2:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},6:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},1:{className:"mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyt0e3qv mly1jjku57"},5:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti mlyt0e3qv mly1jjku57"},3:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"},7:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"}}[!!p<<2|!!g<<1|!!s<<0],onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>y(!0),onBlur:()=>y(!1),onClick:b=>{b.preventDefault(),b.stopPropagation(),s||m(!0)},disabled:s,children:[v,c.jsx(re,{name:"chevronDown"})]}),c.jsx(ok,{open:f,setOpen:m,placement:"bottom-start",width:i,maxHeight:500,children:c.jsx(sk,{options:r,value:t,valueEqual:l,onChange:w})})]})};function sk({options:e,value:t,onChange:n,valueEqual:r=(s,l)=>s===l,customStyle:o}){const[s,l]=u.useState(null);return c.jsx(Ls,{children:c.jsx("div",{...R.props(Al.selectListDiv,o),children:e.reduce((i,a,d)=>{const f=t!==void 0&&r(t,a.value);return a.divider&&i.push(u.createElement("div",{className:"mly77krkw mlyh8yej3 mlynfbntj",key:"divider"+d})),i.push(c.jsxs("label",{...{0:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4"},1:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly6wxqrg"}}[(s===d)<<0],onMouseEnter:()=>l(d),onMouseLeave:()=>l(null),onClick:()=>n(a.value),children:[c.jsx("input",{className:"mlynalus7 mlyqtp20y",type:"radio",defaultChecked:f}),c.jsx(re,{name:"checkmark",customStyle:{...Al.checkIcon,...f?Al.checkIconSelected:void 0}}),c.jsx("span",{className:"mlyet2fuk mlyb3r6kr mlylyipyv mly1fc57z9",children:a.label})]},d)),i},[])})})}const no={second:"YYYY-MM-DD HH:mm:ss",minute:"YYYY-MM-DD HH:mm",hour:"YYYY-MM-DD HH:00",day:"YYYY-MM-DD",week:"YYYY-MM-DD-[WK]",month:"YYYY-MM",quarter:"YYYY-[Q]Q",year:"YYYY"},Nc={second:/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/,minute:/\d\d\d\d-\d\d-\d\d \d\d:\d\d/,hour:/\d\d\d\d-\d\d-\d\d \d\d:00/,day:/\d\d\d\d-\d\d-\d\d/,week:/\d\d\d\d-\d\d-\d\d-WK/,month:/\d\d\d\d-\d\d/,quarter:/\d\d\d\d-Q\d/,year:/\d\d\d\d/},li=({value:e,setValue:t,placeholder:n,autoFocus:r,units:o,onFocus:s,onBlur:l,isActive:i,customStyle:a,forwardRef:d})=>{const f=no[o],[m,p]=u.useState(L.utc(e).format(f));return u.useEffect(()=>{p(L.utc(e).format(f))},[e,f]),c.jsx("input",{...R.props(a,i?lk.active:null),type:"text",placeholder:n||f,value:m,onFocus:s,onBlur:l,onChange:h=>{const g=h.target.value;p(g);const y=Nc[o];if(g.match(y)){const v=L.utc(g,f);v.isValid()&&t(v.toDate())}},autoFocus:r,ref:d})};function gl(e,t){if(e.moment==="literal"){const{literal:n}=e;for(const r in Nc){const o=r;if(n.match(Nc[o]))return o}}return t?"second":"day"}const lk={active:{backgroundColor:"mly1vzefiq",$$css:!0}};function ik(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}const mm=Object.keys(no);function od({value:e,setValue:t,units:n,maxLevel:r,customStyle:o,forwardRef:s}){const[l,i]=u.useState(e),a=ck(l),[d,f]=u.useState(n),m=Math.floor(L.utc(l).year()/10)*10;u.useEffect(()=>{const C=mm.findIndex(S=>S===n);mm.findIndex(S=>S===d)<C&&f(n)},[n,d]),u.useEffect(()=>{i(e)},[e]);const p=C=>{const _=L.utc(l).year(C).toDate();i(_),t(_)},h=C=>{const _=()=>p(m+C);return C===-1||C===10?c.jsx("div",{onClick:_,className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly358b0h",children:m+C}):c.jsx("div",{onClick:_,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[(L.utc(l).year()===m+C)<<0],children:m+C})},g=C=>{const _=L.utc(l).month(C).toDate();i(_),t(_)},y=C=>{i(C),t(C)},v=C=>{i(C),t(C)},w=C=>{const _=L.utc(l).quarter(C+1).toDate();i(_),t(_)},b=C=>{const _=()=>g(C),S=L.utc(l).month()===C&&L.utc(l).year()===L.utc(e).year();return c.jsx("div",{onClick:_,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!S<<0],children:ik(C)})},x=C=>{const _=()=>w(C),S=L.utc(l).quarter()-1===C&&L.utc(l).year()===L.utc(e).year();return c.jsxs("div",{onClick:_,...{0:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!S<<0],children:["Q",C+1]})};return c.jsxs("div",{...R.props(ak.outer,o),ref:s,children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly1nejdyq mlyu06os2",children:[c.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:c.jsx(Ce,{variant:"default",size:"compact",icon:"chevronLeft",onClick:()=>{d==="day"||d==="week"?i(L.utc(l).subtract(1,"month").toDate()):d==="month"||d==="quarter"?i(L.utc(l).subtract(1,"year").toDate()):d==="year"?i(L.utc(l).subtract(10,"years").toDate()):y(L.utc(l).subtract(1,"days").toDate())}})}),c.jsxs("div",{className:"mly1sxf85j mlyfawy5m mly123j3cw mly1iyjqo2 mly2b8uid mly1ypdohk mly6mezaz mly1fcty0u mlyjg9ulk",onClick:()=>{f(d==="day"||d==="week"?"month":d==="month"||d==="quarter"?"year":d==="hour"||d==="minute"||d==="second"?"day":r)},children:[(d==="day"||d==="week")&&L.utc(l).format("MMMM YYYY"),(d==="month"||d==="quarter")&&L.utc(l).format("YYYY"),d==="year"&&c.jsxs(c.Fragment,{children:[m,"-",m+9]}),(d==="hour"||d==="minute"||d==="second")&&c.jsx(c.Fragment,{children:L.utc(l).format("MMMM D, YYYY")})]}),c.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:c.jsx(Ce,{variant:"default",size:"compact",icon:"chevronRight",onClick:()=>{d==="day"||d==="week"?i(L.utc(l).add(1,"month").toDate()):d==="month"||d==="quarter"?i(L.utc(l).add(1,"year").toDate()):d==="year"?i(L.utc(l).add(10,"years").toDate()):y(L.utc(l).add(1,"days").toDate())}})})]}),d==="day"&&c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),a.map((C,_)=>c.jsx("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:C.map(S=>c.jsx("div",{onClick:()=>{y(S.date)},...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly358b0h"},2:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly1v5ugh9"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"},3:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[!!S.isCurrentMonth<<1|(e.getTime()===S.date.valueOf())<<0],children:S.number},S.number))},_))]}),d==="month"&&c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(0),b(1),b(2)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(3),b(4),b(5)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(6),b(7),b(8)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[b(9),b(10),b(11)]})]}),d==="year"&&c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(-1),h(0),h(1)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(2),h(3),h(4)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(5),h(6),h(7)]}),c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(8),h(9),h(10)]})]}),d==="quarter"&&c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[x(0),x(1),x(2),x(3)]}),d==="week"&&c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),c.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),a.map((C,_)=>c.jsx("div",{onClick:()=>{v(C[0].date)},...{0:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w"},1:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[(e.getTime()===C[0].date.valueOf())<<0],children:C.map(S=>c.jsx("div",{...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly358b0h"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly1v5ugh9"}}[!!S.isCurrentMonth<<0],children:S.number},S.number))},_))]}),(d==="hour"||d==="minute"||d==="second")&&c.jsx("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlylo07zb",children:c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly87ps6o mly1l1ennw mly883omv",children:[c.jsx(Oa,{label:"Hours",value:parseInt(L.utc(l).format("hh")),setValue:C=>{const _=L.utc(l).hour()>=12?"PM":"AM",S=parseInt(L.utc(`${C} ${_}`,["hh A"]).format("H"));t(L.utc(l).hour(S).toDate())},width:"40px"}),(n==="minute"||n==="second")&&c.jsx(Oa,{label:"Minutes",value:L.utc(l).minutes(),setValue:C=>{t(L.utc(l).minute(C).toDate())},width:"40px"}),n==="second"&&c.jsx(Oa,{label:"Seconds",value:L.utc(l).seconds(),setValue:C=>{t(L.utc(l).second(C).toDate())},width:"40px"}),c.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"column"},children:c.jsx(En,{value:L.utc(l).hour()>=12?"PM":"AM",onChange:C=>{const _=parseInt(L.utc(l).format("h")),S=parseInt(L.utc(`${_} ${C}`,["hh A"]).format("H"));t(L.utc(l).hour(S).toDate())},options:[{value:"AM",label:"AM"},{value:"PM",label:"PM"}]})})]})})]})}const ak={outer:{userSelect:"mly87ps6o",fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",$$css:!0}};function ck(e){const t=L.utc(e).date(1),n=t.day(),r=t.daysInMonth(),o=t.clone().subtract(1,"day").daysInMonth(),s=[];for(let l=0;l<6;l++){const i=[];for(let a=0;a<7;a++)if(l===0&&a<n){const d=n-a;i.push({number:o-d+1,date:t.clone().subtract(d,"days").toDate(),isCurrentMonth:!1})}else{const d=l*7+a-n;d<r?i.push({number:d+1,date:t.clone().add(d,"days").toDate(),isCurrentMonth:!0}):i.push({number:d-r+1,date:t.clone().add(d,"days").toDate(),isCurrentMonth:!1})}s.push(i)}return s}function uk({width:e,minWidth:t,onWidthChange:n}){const r=o=>{const s=e,l=o.clientX,i=()=>{document.body.removeEventListener("mousemove",a),document.body.removeEventListener("mouseup",i),document.body.style.cursor="initial",document.body.style.userSelect="initial"},a=d=>{const f=s+(d.clientX-l);n(Math.max(f,t))};document.body.addEventListener("mousemove",a),document.body.addEventListener("mouseup",i),document.body.style.cursor="ew-resize",document.body.style.userSelect="none"};return c.jsx("div",{className:"mly7eptgl mly1ftt334 mly5yr21d mly1vjfegm mly10l6tqk mly13vifvy mly1bkpikb",onMouseDown:o=>r(o)})}function Oc({title:e,description:t,variant:n="info",children:r}){return c.jsxs("div",{className:"mly1q4ynmn mlyh8yej3 mly5yr21d mly78zum5 mlydt5ytf mly1kmqopl mly16zck5j",children:[c.jsxs("div",{...R.props(Oo.header,fk[n],r?Oo.headerWithContent:null),children:[c.jsx("div",{className:"mly1qx5ct2 mly78zum5 mlyl56j7k mly6s0dn4",children:c.jsx(re,{...dk[n]})}),c.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr",children:[c.jsx("div",{...R.props(Oo.title,z.emphasized),children:e}),c.jsx("div",{...R.props(Oo.description,z.supporting),children:t})]})]}),r&&c.jsx("div",{...R.props(Oo.content,z.body),children:c.jsx(Ls,{children:r})})]})}const Oo={header:{borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mlyh8yej3",padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,boxSizing:"mly9f619",display:"mly78zum5",flexDirection:"mly1q0g3np",alignItems:"mly7a106z",justifyContent:"mlylqzeqv",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},headerWithContent:{borderRadius:"mlyq516e8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},title:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},description:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},content:{padding:"mly1tamke2",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,backgroundColor:"mly12peec7",borderRadius:"mly11zuszs",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0}},dk={info:{name:"info",color:"info"},success:{name:"check_circle",color:"positive"},warn:{name:"warning",color:"warning"},critical:{name:"error",color:"negative"}},fk={info:{backgroundColor:"mly1pnbjq1",$$css:!0},success:{backgroundColor:"mly1x3oq6j",$$css:!0},warn:{backgroundColor:"mly1x7w6om",$$css:!0},critical:{backgroundColor:"mlyrkwa2d",$$css:!0}},k1=u.createContext({});function mk({defaultExpandedItemId:e,children:t,customStyle:n}){const[r,o]=u.useState(e),s=l=>{o(i=>{if(i!==l)return l})};return c.jsx(k1.Provider,{value:{expandedItemId:r,onExpandedItemChange:s},children:c.jsx("div",{...R.props(pk.main,n),children:u.Children.map(t,l=>c.jsxs(c.Fragment,{children:[l,c.jsx(Br,{})]}))})})}const pk={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,flexGrow:"mly1iyjqo2",$$css:!0}};function qa({id:e,label:t,sublabel:n,startIcon:r,badge:o,endIcon:s,children:l}){const{expandedItemId:i,onExpandedItemChange:a}=u.useContext(k1);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mly1ypdohk",onClick:()=>a?.(e),children:[r&&c.jsx(c.Fragment,{children:r}),c.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr mly1iyjqo2",children:[c.jsx("span",{...R.props(z.body,pm.label),children:t}),n&&c.jsx("span",{...R.props(z.supporting,pm.sublabel),children:n})]}),o&&o,s&&s]}),e===i&&c.jsx("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlytdwleo mly1jnr06f mly10cdfl8 mlyysyzu8",children:u.Children.map(l,d=>d)})]})}const pm={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}};var Wa="rovingFocusGroup.onEntryFocus",hk={bubbles:!1,cancelable:!0},Qi="RovingFocusGroup",[$c,S1,gk]=mu(Qi),[yk,Ji]=Ot(Qi,[gk]),[vk,bk]=yk(Qi),R1=u.forwardRef((e,t)=>c.jsx($c.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx($c.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(wk,{...e,ref:t})})}));R1.displayName=Qi;var wk=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:a,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),h=oe(t,p),g=Ts(s),[y=null,v]=Xn({prop:l,defaultProp:i,onChange:a}),[w,b]=u.useState(!1),x=Be(d),C=S1(n),_=u.useRef(!1),[S,k]=u.useState(0);return u.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Wa,x),()=>E.removeEventListener(Wa,x)},[x]),c.jsx(vk,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:u.useCallback(E=>v(E),[v]),onItemShiftTab:u.useCallback(()=>b(!0),[]),onFocusableItemAdd:u.useCallback(()=>k(E=>E+1),[]),onFocusableItemRemove:u.useCallback(()=>k(E=>E-1),[]),children:c.jsx(X.div,{tabIndex:w||S===0?-1:0,"data-orientation":r,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{_.current=!0}),onFocus:O(e.onFocus,E=>{const T=!_.current;if(E.target===E.currentTarget&&T&&!w){const M=new CustomEvent(Wa,hk);if(E.currentTarget.dispatchEvent(M),!M.defaultPrevented){const P=C().filter(U=>U.focusable),F=P.find(U=>U.active),V=P.find(U=>U.id===y),te=[F,V,...P].filter(Boolean).map(U=>U.ref.current);T1(te,f)}}_.current=!1}),onBlur:O(e.onBlur,()=>b(!1))})})}),E1="RovingFocusGroupItem",j1=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...l}=e,i=_t(),a=s||i,d=bk(E1,n),f=d.currentTabStopId===a,m=S1(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=d;return u.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),c.jsx($c.ItemSlot,{scope:n,id:a,focusable:r,active:o,children:c.jsx(X.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:O(e.onMouseDown,g=>{r?d.onItemFocus(a):g.preventDefault()}),onFocus:O(e.onFocus,()=>d.onItemFocus(a)),onKeyDown:O(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=_k(g,d.orientation,d.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=m().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const b=w.indexOf(g.currentTarget);w=d.loop?kk(w,b+1):w.slice(b+1)}setTimeout(()=>T1(w))}})})})});j1.displayName=E1;var xk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ck(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _k(e,t,n){const r=Ck(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return xk[r]}function T1(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var L1=R1,M1=j1,zc=["Enter"," "],Sk=["ArrowDown","PageUp","Home"],A1=["ArrowUp","PageDown","End"],Rk=[...Sk,...A1],Ek={ltr:[...zc,"ArrowRight"],rtl:[...zc,"ArrowLeft"]},jk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Gs="Menu",[ps,Tk,Lk]=mu(Gs),[vr,I1]=Ot(Gs,[Lk,Qn,Ji]),ea=Qn(),D1=Ji(),[Mk,br]=vr(Gs),[Ak,Ys]=vr(Gs),P1=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:l=!0}=e,i=ea(t),[a,d]=u.useState(null),f=u.useRef(!1),m=Be(s),p=Ts(o);return u.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),c.jsx(wi,{...i,children:c.jsx(Mk,{scope:t,open:n,onOpenChange:m,content:a,onContentChange:d,children:c.jsx(Ak,{scope:t,onClose:u.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:p,modal:l,children:r})})})};P1.displayName=Gs;var Ik="MenuAnchor",sd=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ea(n);return c.jsx(Cs,{...o,...r,ref:t})});sd.displayName=Ik;var ld="MenuPortal",[Dk,N1]=vr(ld,{forceMount:void 0}),O1=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=br(ld,t);return c.jsx(Dk,{scope:t,forceMount:n,children:c.jsx(Ve,{present:n||s.open,children:c.jsx(ao,{asChild:!0,container:o,children:r})})})};O1.displayName=ld;var kt="MenuContent",[Pk,id]=vr(kt),$1=u.forwardRef((e,t)=>{const n=N1(kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=br(kt,e.__scopeMenu),l=Ys(kt,e.__scopeMenu);return c.jsx(ps.Provider,{scope:e.__scopeMenu,children:c.jsx(Ve,{present:r||s.open,children:c.jsx(ps.Slot,{scope:e.__scopeMenu,children:l.modal?c.jsx(Nk,{...o,ref:t}):c.jsx(Ok,{...o,ref:t})})})})}),Nk=u.forwardRef((e,t)=>{const n=br(kt,e.__scopeMenu),r=u.useRef(null),o=oe(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Li(s)},[]),c.jsx(ad,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ok=u.forwardRef((e,t)=>{const n=br(kt,e.__scopeMenu);return c.jsx(ad,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ad=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:a,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,onDismiss:h,disableOutsideScroll:g,...y}=e,v=br(kt,n),w=Ys(kt,n),b=ea(n),x=D1(n),C=Tk(n),[_,S]=u.useState(null),k=u.useRef(null),E=oe(t,k,v.onContentChange),T=u.useRef(0),M=u.useRef(""),P=u.useRef(0),F=u.useRef(null),V=u.useRef("right"),q=u.useRef(0),te=g?Is:u.Fragment,U=g?{as:Un,allowPinchZoom:!0}:void 0,K=N=>{var ae,Me;const ge=M.current+N,Ee=C().filter(ce=>!ce.disabled),_e=document.activeElement,He=(ae=Ee.find(ce=>ce.ref.current===_e))==null?void 0:ae.textValue,ke=Ee.map(ce=>ce.textValue),G=Zk(ke,ge,He),se=(Me=Ee.find(ce=>ce.textValue===G))==null?void 0:Me.ref.current;(function ce(W){M.current=W,window.clearTimeout(T.current),W!==""&&(T.current=window.setTimeout(()=>ce(""),1e3))})(ge),se&&setTimeout(()=>se.focus())};u.useEffect(()=>()=>window.clearTimeout(T.current),[]),Ti();const H=u.useCallback(N=>{var ae,Me;return V.current===((ae=F.current)==null?void 0:ae.side)&&Kk(N,(Me=F.current)==null?void 0:Me.area)},[]);return c.jsx(Pk,{scope:n,searchRef:M,onItemEnter:u.useCallback(N=>{H(N)&&N.preventDefault()},[H]),onItemLeave:u.useCallback(N=>{var ae;H(N)||((ae=k.current)==null||ae.focus(),S(null))},[H]),onTriggerLeave:u.useCallback(N=>{H(N)&&N.preventDefault()},[H]),pointerGraceTimerRef:P,onPointerGraceIntentChange:u.useCallback(N=>{F.current=N},[]),children:c.jsx(te,{...U,children:c.jsx(As,{asChild:!0,trapped:o,onMountAutoFocus:O(s,N=>{var ae;N.preventDefault(),(ae=k.current)==null||ae.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:c.jsx(so,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,onDismiss:h,children:c.jsx(L1,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:O(a,N=>{w.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(xi,{role:"menu","aria-orientation":"vertical","data-state":e0(v.open),"data-radix-menu-content":"",dir:w.dir,...b,...y,ref:E,style:{outline:"none",...y.style},onKeyDown:O(y.onKeyDown,N=>{const Me=N.target.closest("[data-radix-menu-content]")===N.currentTarget,ge=N.ctrlKey||N.altKey||N.metaKey,Ee=N.key.length===1;Me&&(N.key==="Tab"&&N.preventDefault(),!ge&&Ee&&K(N.key));const _e=k.current;if(N.target!==_e||!Rk.includes(N.key))return;N.preventDefault();const ke=C().filter(G=>!G.disabled).map(G=>G.ref.current);A1.includes(N.key)&&ke.reverse(),Vk(ke)}),onBlur:O(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(T.current),M.current="")}),onPointerMove:O(e.onPointerMove,hs(N=>{const ae=N.target,Me=q.current!==N.clientX;if(N.currentTarget.contains(ae)&&Me){const ge=N.clientX>q.current?"right":"left";V.current=ge,q.current=N.clientX}}))})})})})})})});$1.displayName=kt;var $k="MenuGroup",cd=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(X.div,{role:"group",...r,ref:t})});cd.displayName=$k;var zk="MenuLabel",z1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(X.div,{...r,ref:t})});z1.displayName=zk;var ii="MenuItem",hm="menu.itemSelect",ta=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),l=Ys(ii,e.__scopeMenu),i=id(ii,e.__scopeMenu),a=oe(t,s),d=u.useRef(!1),f=()=>{const m=s.current;if(!n&&m){const p=new CustomEvent(hm,{bubbles:!0,cancelable:!0});m.addEventListener(hm,h=>r?.(h),{once:!0}),Ym(m,p),p.defaultPrevented?d.current=!1:l.onClose()}};return c.jsx(F1,{...o,ref:a,disabled:n,onClick:O(e.onClick,f),onPointerDown:m=>{var p;(p=e.onPointerDown)==null||p.call(e,m),d.current=!0},onPointerUp:O(e.onPointerUp,m=>{var p;d.current||(p=m.currentTarget)==null||p.click()}),onKeyDown:O(e.onKeyDown,m=>{const p=i.searchRef.current!=="";n||p&&m.key===" "||zc.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});ta.displayName=ii;var F1=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,l=id(ii,n),i=D1(n),a=u.useRef(null),d=oe(t,a),[f,m]=u.useState(!1),[p,h]=u.useState("");return u.useEffect(()=>{const g=a.current;g&&h((g.textContent??"").trim())},[s.children]),c.jsx(ps.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:c.jsx(M1,{asChild:!0,...i,focusable:!r,children:c.jsx(X.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:O(e.onPointerMove,hs(g=>{r?l.onItemLeave(g):(l.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,hs(g=>l.onItemLeave(g))),onFocus:O(e.onFocus,()=>m(!0)),onBlur:O(e.onBlur,()=>m(!1))})})})}),Fk="MenuCheckboxItem",B1=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(U1,{scope:e.__scopeMenu,checked:n,children:c.jsx(ta,{role:"menuitemcheckbox","aria-checked":ai(n)?"mixed":n,...o,ref:t,"data-state":dd(n),onSelect:O(o.onSelect,()=>r?.(ai(n)?!0:!n),{checkForDefaultPrevented:!1})})})});B1.displayName=Fk;var q1="MenuRadioGroup",[Bk,qk]=vr(q1,{value:void 0,onValueChange:()=>{}}),W1=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Be(r);return c.jsx(Bk,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(cd,{...o,ref:t})})});W1.displayName=q1;var G1="MenuRadioItem",Y1=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=qk(G1,e.__scopeMenu),s=n===o.value;return c.jsx(U1,{scope:e.__scopeMenu,checked:s,children:c.jsx(ta,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":dd(s),onSelect:O(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});Y1.displayName=G1;var ud="MenuItemIndicator",[U1,Wk]=vr(ud,{checked:!1}),V1=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Wk(ud,n);return c.jsx(Ve,{present:r||ai(s.checked)||s.checked===!0,children:c.jsx(X.span,{...o,ref:t,"data-state":dd(s.checked)})})});V1.displayName=ud;var Gk="MenuSeparator",H1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});H1.displayName=Gk;var Yk="MenuArrow",Z1=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ea(n);return c.jsx(Ci,{...o,...r,ref:t})});Z1.displayName=Yk;var Uk="MenuSub",[AL,X1]=vr(Uk),Go="MenuSubTrigger",K1=u.forwardRef((e,t)=>{const n=br(Go,e.__scopeMenu),r=Ys(Go,e.__scopeMenu),o=X1(Go,e.__scopeMenu),s=id(Go,e.__scopeMenu),l=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=s,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const m=i.current;return()=>{window.clearTimeout(m),a(null)}},[i,a]),c.jsx(sd,{asChild:!0,...d,children:c.jsx(F1,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":e0(n.open),...e,ref:gi(t,o.onTriggerChange),onClick:m=>{var p;(p=e.onClick)==null||p.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,hs(m=>{s.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,hs(m=>{var p,h;f();const g=(p=n.content)==null?void 0:p.getBoundingClientRect();if(g){const y=(h=n.content)==null?void 0:h.dataset.side,v=y==="right",w=v?-5:5,b=g[v?"left":"right"],x=g[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:m.clientX+w,y:m.clientY},{x:b,y:g.top},{x,y:g.top},{x,y:g.bottom},{x:b,y:g.bottom}],side:y}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(m),m.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,m=>{var p;const h=s.searchRef.current!=="";e.disabled||h&&m.key===" "||Ek[r.dir].includes(m.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),m.preventDefault())})})})});K1.displayName=Go;var Q1="MenuSubContent",J1=u.forwardRef((e,t)=>{const n=N1(kt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=br(kt,e.__scopeMenu),l=Ys(kt,e.__scopeMenu),i=X1(Q1,e.__scopeMenu),a=u.useRef(null),d=oe(t,a);return c.jsx(ps.Provider,{scope:e.__scopeMenu,children:c.jsx(Ve,{present:r||s.open,children:c.jsx(ps.Slot,{scope:e.__scopeMenu,children:c.jsx(ad,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var m;l.isUsingKeyboardRef.current&&((m=a.current)==null||m.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),h=jk[l.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(m=i.trigger)==null||m.focus(),f.preventDefault())})})})})})});J1.displayName=Q1;function e0(e){return e?"open":"closed"}function ai(e){return e==="indeterminate"}function dd(e){return ai(e)?"indeterminate":e?"checked":"unchecked"}function Vk(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Hk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Zk(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=Hk(e,Math.max(s,0));o.length===1&&(l=l.filter(d=>d!==n));const a=l.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function Xk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s].x,a=t[s].y,d=t[l].x,f=t[l].y;a>r!=f>r&&n<(d-i)*(r-a)/(f-a)+i&&(o=!o)}return o}function Kk(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Xk(n,t)}function hs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Qk=P1,Jk=sd,eS=O1,tS=$1,nS=cd,rS=z1,oS=ta,sS=B1,lS=W1,iS=Y1,aS=V1,cS=H1,uS=Z1,dS=K1,fS=J1,fd="DropdownMenu",[mS,IL]=Ot(fd,[I1]),tt=I1(),[pS,t0]=mS(fd),n0=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:l,modal:i=!0}=e,a=tt(t),d=u.useRef(null),[f=!1,m]=Xn({prop:o,defaultProp:s,onChange:l});return c.jsx(pS,{scope:t,triggerId:_t(),triggerRef:d,contentId:_t(),open:f,onOpenChange:m,onOpenToggle:u.useCallback(()=>m(p=>!p),[m]),modal:i,children:c.jsx(Qk,{...a,open:f,onOpenChange:m,dir:r,modal:i,children:n})})};n0.displayName=fd;var r0="DropdownMenuTrigger",o0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=t0(r0,n),l=tt(n);return c.jsx(Jk,{asChild:!0,...l,children:c.jsx(X.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:gi(t,s.triggerRef),onPointerDown:O(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:O(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});o0.displayName=r0;var hS="DropdownMenuPortal",s0=e=>{const{__scopeDropdownMenu:t,...n}=e,r=tt(t);return c.jsx(eS,{...r,...n})};s0.displayName=hS;var l0="DropdownMenuContent",i0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=t0(l0,n),s=tt(n),l=u.useRef(!1);return c.jsx(tS,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{var a;l.current||(a=o.triggerRef.current)==null||a.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:O(e.onInteractOutside,i=>{const a=i.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,f=a.button===2||d;(!o.modal||f)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});i0.displayName=l0;var gS="DropdownMenuGroup",yS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(nS,{...o,...r,ref:t})});yS.displayName=gS;var vS="DropdownMenuLabel",bS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(rS,{...o,...r,ref:t})});bS.displayName=vS;var wS="DropdownMenuItem",a0=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(oS,{...o,...r,ref:t})});a0.displayName=wS;var xS="DropdownMenuCheckboxItem",CS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(sS,{...o,...r,ref:t})});CS.displayName=xS;var _S="DropdownMenuRadioGroup",kS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(lS,{...o,...r,ref:t})});kS.displayName=_S;var SS="DropdownMenuRadioItem",RS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(iS,{...o,...r,ref:t})});RS.displayName=SS;var ES="DropdownMenuItemIndicator",jS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(aS,{...o,...r,ref:t})});jS.displayName=ES;var TS="DropdownMenuSeparator",LS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(cS,{...o,...r,ref:t})});LS.displayName=TS;var MS="DropdownMenuArrow",AS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(uS,{...o,...r,ref:t})});AS.displayName=MS;var IS="DropdownMenuSubTrigger",DS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(dS,{...o,...r,ref:t})});DS.displayName=IS;var PS="DropdownMenuSubContent",NS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return c.jsx(fS,{...o,...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)"}})});NS.displayName=PS;var OS=n0,gm=o0,$S=s0,zS=i0,FS=a0;function md({trigger:e,tooltip:t,onOpenChange:n,children:r,tooltipProps:o}){const[s,l]=u.useState(),i=a=>{a&&l(!1),n?.(a)};return c.jsxs(OS,{onOpenChange:i,children:[t?c.jsxs(ks,{open:s,onOpenChange:l,delayDuration:300,children:[c.jsx(Ss,{asChild:!0,children:c.jsx(gm,{asChild:!0,children:e})}),c.jsx(Rs,{children:c.jsx(Es,{...o,...R.props(typeof t=="string"?Cn.default:Cn.card),children:t})})]}):c.jsx(gm,{asChild:!0,children:e}),c.jsx($S,{children:c.jsx(zS,{...R.props(z.body,Il.content),side:"bottom",align:"start",sideOffset:4,onCloseAutoFocus:a=>a.preventDefault(),children:u.Children.map(r,a=>a)})})]})}function gs({icon:e,label:t,sublabel:n,onClick:r,disabled:o}){return c.jsxs(FS,{className:"mly78zum5 mly6s0dn4 mlye8ttls mly167g77z mly1kogg8i mly1ypdohk mly1a2a7pz mly1bw6wve mly5ezrf1 mly15rdse5 mly1z060rf mly5deeek mly1jacekv mly7ouyw2 mly7h4d18",onClick:s=>{r?.(s)},disabled:o,children:[e&&c.jsx(re,{name:e,customStyle:Il.icon}),c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2",children:[c.jsx("span",{...R.props(z.body,Il.label),children:t}),n&&c.jsx("span",{...R.props(z.supporting,Il.sublabel),children:n})]})]})}const Il={content:{display:"mly78zum5",flexDirection:"mlydt5ytf",borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mly17fq3gk",padding:"mlyfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},icon:{color:"mly1mguc6l",$$css:!0},label:{flexGrow:"mly1iyjqo2",color:"mly12lmysb",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly15jt5ur",$$css:!0}},na=u.createContext({});function BS({runQuery:e}){const{rootQuery:t,setQuery:n,source:r}=u.useContext(he),{onCollapse:o}=u.useContext(na),{focusMainView:s}=js(),l=!t||t.isEmpty(),i=t?.isRunnable(),a=()=>{r&&t&&e(r,t.build())};return c.jsxs("div",{className:"mly78zum5 mly1qughib mly6s0dn4 mlye8ttls",children:[c.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4 mlydqdrvq",children:[c.jsx(re,{name:"filterSliders"}),c.jsx("div",{...R.props(z.largeBody,qS.title),children:"Query"})]}),c.jsxs("div",{className:"mly78zum5 mly167g77z",children:[c.jsx(Ce,{onClick:()=>{s(),n?.(void 0)},isDisabled:!t||t?.isEmpty(),label:"Clear",variant:"flat",size:"compact"}),c.jsxs(co,{children:[c.jsx(uo,{asChild:!0,children:c.jsx(Ce,{icon:"play",onClick:a,isDisabled:!i,label:"Run",variant:"primary",size:"compact"})}),c.jsx(fo,{children:c.jsx(mo,{children:c.jsx("div",{...R.props(z.body,Cn.default),children:i?"Execute the query.":l?"The current query is empty.":"The current query cannot be executed."})})})]}),o&&c.jsx(Ce,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:o,size:"compact",variant:"flat"})]})]})}const qS={title:{fontWeight:"mly1xlr1w8",$$css:!0}},Pt={labelWithIcon:{display:"mly78zum5",alignItems:"mly6s0dn4",whiteSpace:"mlyuxw1ft",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},queryCard:{border:"mlyzkdzjc",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},title:{whiteSpace:"mlyuxw1ft",padding:"mly17qkr04",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},tokenContainer:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function WS({value:e,customStyle:t}){if(!e)return c.jsx($e,{label:"∅"});switch(e.kind){case"boolean_literal":return c.jsx($e,{label:e.boolean_value?"true":"false",customStyle:t});case"date_literal":return c.jsx($e,{label:e.date_value,customStyle:t});case"timestamp_literal":return c.jsx($e,{label:e.timestamp_value,customStyle:t});case"null_literal":return c.jsx($e,{label:"∅"});case"number_literal":return c.jsx($e,{label:e.number_value.toLocaleString(),customStyle:t});case"string_literal":return c.jsx($e,{label:e.string_value,customStyle:t});case"filter_expression_literal":return c.jsx($e,{label:e.filter_expression_value,customStyle:t})}}const lr="# ",GS=["table","bar","dashboard","json","line","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],YS=["table","bar_chart","dashboard","json","line_chart","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],US=["number","boolean","currency","image","url","percent","text","time"],VS=[...YS,...US];function pd(e){if(e){const t=e.getProperties(),n=Object.keys(t);for(const r of n)if(VS.includes(r)&&!t[r].deleted)return r}return null}function HS(e){switch(e){case"bar_chart":return"bar";case"line_chart":return"line";default:return e}}const ZS={table:null,bar:[{name:"title",label:"Title",type:"string",default:""},{name:"sub_title",label:"Subtitle",type:"string",default:""},{name:"stack",label:"Stack",type:"boolean",default:!1},{name:"size",label:"Size",type:"select",default:"fill",options:[{label:"Fill",value:"fill"},{label:"Sparkline",value:"spark"},{label:"X-Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"},{label:"X-Large",value:"xl"},{label:"XX-Large",value:"2xl"}]}],dashboard:null,json:null,line:[{name:"title",label:"Title",type:"string",default:""},{name:"sub_title",label:"Subtitle",type:"string",default:""},{name:"zero_baseline",label:"Zero Baseline",type:"boolean",default:!1},{name:"size",label:"Size",type:"select",default:"md",options:[{label:"Fill",value:"fill"},{label:"Sparkline",value:"spark"},{label:"X-Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"},{label:"X-Large",value:"xl"},{label:"XX-Large",value:"2xl"}]}],list:null,list_detail:null,point_map:null,scatter_chart:null,segment_map:null,shape_map:null};function ra(e){return KS[e]}function c0(e){return QS[e]}function Dl(e){let t;switch(e.kind){case"view":t="query";break;case"dimension":case"measure":t=ra(e.type.kind);break;case"join":t=XS(e.relationship);break}return t}function XS(e){return JS[e]}function u0(e){const t=e.getTag();return`viz_${pd(t)??"table"}`}const KS={array_type:"array",string_type:"string",date_type:"date",boolean_type:"boolean",number_type:"number",json_type:"json",record_type:"json",sql_native_type:"sql_native",timestamp_type:"date",filter_expression_type:"filter"},QS={view:"purple",dimension:"cyan",measure:"green",join:void 0},JS={many:"many_to_one",cross:"one_to_many",one:"one_to_one"};function ro({field:e,hoverActions:t,hoverActionsVisible:n,...r}){let o=e.name;return e.kind==="dimension"&&(e.type.kind==="timestamp_type"||e.type.kind==="date_type")&&e.type.timeframe&&(o+=`.${e.type.timeframe}`),c.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly28fmrt mly1x0xcia"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mlym9y5t7"}}[!!n<<0],children:[c.jsx($e,{label:o,color:c0(e.kind),icon:Dl(e),...r}),t&&c.jsx("div",{className:"mly1vsucm1 mly2lah0s",children:t})]})}function eR({drills:e}){return e.length?c.jsxs("div",{children:[c.jsx("div",{...R.props(Pt.title),children:"drills"}),c.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",children:e.map((t,n)=>c.jsxs(Ms,{color:"cyan",customStyle:tR.tokenGroup,children:[c.jsx(ro,{field:t.filter.fieldReference.getFieldInfo()}),c.jsx($e,{label:"="}),t.filter instanceof Z.ASTFilterWithLiteralEquality?c.jsx(WS,{value:t.filter.value.node}):c.jsx($e,{label:t.filter.filterString})]},n))})]}):null}const tR={tokenGroup:{display:"mly78zum5",$$css:!0}};function nR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const oa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _o(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function hd(e){return"nodeType"in e}function lt(e){var t,n;return e?_o(e)?e:hd(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function gd(e){const{Document:t}=lt(e);return e instanceof t}function Us(e){return _o(e)?!1:e instanceof lt(e).HTMLElement}function d0(e){return e instanceof lt(e).SVGElement}function ko(e){return e?_o(e)?e.document:hd(e)?gd(e)?e:Us(e)||d0(e)?e.ownerDocument:document:document:document}const Qt=oa?u.useLayoutEffect:u.useEffect;function yd(e){const t=u.useRef(e);return Qt(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function rR(){const e=u.useRef(null),t=u.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ys(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Qt(()=>{n.current!==e&&(n.current=e)},t),n}function Vs(e,t){const n=u.useRef();return u.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function ci(e){const t=yd(e),n=u.useRef(null),r=u.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Fc(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let Ga={};function Hs(e,t){return u.useMemo(()=>{if(t)return t;const n=Ga[e]==null?0:Ga[e]+1;return Ga[e]=n,e+"-"+n},[e,t])}function f0(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,l)=>{const i=Object.entries(l);for(const[a,d]of i){const f=s[a];f!=null&&(s[a]=f+e*d)}return s},{...t})}}const Hr=f0(1),ui=f0(-1);function oR(e){return"clientX"in e&&"clientY"in e}function vd(e){if(!e)return!1;const{KeyboardEvent:t}=lt(e.target);return t&&e instanceof t}function sR(e){if(!e)return!1;const{TouchEvent:t}=lt(e.target);return t&&e instanceof t}function Bc(e){if(sR(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return oR(e)?{x:e.clientX,y:e.clientY}:null}const vs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[vs.Translate.toString(e),vs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ym="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lR(e){return e.matches(ym)?e:e.querySelector(ym)}const iR={display:"none"};function aR(e){let{id:t,value:n}=e;return Le.createElement("div",{id:t,style:iR},n)}function cR(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Le.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function uR(){const[e,t]=u.useState("");return{announce:u.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const m0=u.createContext(null);function dR(e){const t=u.useContext(m0);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function fR(){const[e]=u.useState(()=>new Set),t=u.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[u.useCallback(r=>{let{type:o,event:s}=r;e.forEach(l=>{var i;return(i=l[o])==null?void 0:i.call(l,s)})},[e]),t]}const mR={draggable:`
|
|
202
|
+
To pick up a draggable item, press the space bar.
|
|
203
|
+
While dragging, use the arrow keys to move the item.
|
|
204
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
205
|
+
`},pR={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function hR(e){let{announcements:t=pR,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=mR}=e;const{announce:s,announcement:l}=uR(),i=Hs("DndLiveRegion"),[a,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),dR(u.useMemo(()=>({onDragStart(m){let{active:p}=m;s(t.onDragStart({active:p}))},onDragMove(m){let{active:p,over:h}=m;t.onDragMove&&s(t.onDragMove({active:p,over:h}))},onDragOver(m){let{active:p,over:h}=m;s(t.onDragOver({active:p,over:h}))},onDragEnd(m){let{active:p,over:h}=m;s(t.onDragEnd({active:p,over:h}))},onDragCancel(m){let{active:p,over:h}=m;s(t.onDragCancel({active:p,over:h}))}}),[s,t])),!a)return null;const f=Le.createElement(Le.Fragment,null,Le.createElement(aR,{id:r,value:o.draggable}),Le.createElement(cR,{id:i,announcement:l}));return n?fn.createPortal(f,n):f}var Fe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Fe||(Fe={}));function di(){}function gR(e,t){return u.useMemo(()=>({sensor:e,options:{}}),[e,t])}function yR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Nt=Object.freeze({x:0,y:0});function vR(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function bR(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function wR(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function xR(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function vm(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const CR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=vm(t,t.left,t.top),s=[];for(const l of r){const{id:i}=l,a=n.get(i);if(a){const d=vR(vm(a),o);s.push({id:i,data:{droppableContainer:l,value:d}})}}return s.sort(bR)};function _R(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=o-r,i=s-n;if(r<o&&n<s){const a=t.width*t.height,d=e.width*e.height,f=l*i,m=f/(a+d-f);return Number(m.toFixed(4))}return 0}const kR=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:l}=s,i=n.get(l);if(i){const a=_R(i,t);a>0&&o.push({id:l,data:{droppableContainer:s,value:a}})}}return o.sort(wR)};function SR(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function p0(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nt}function RR(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((l,i)=>({...l,top:l.top+e*i.y,bottom:l.bottom+e*i.y,left:l.left+e*i.x,right:l.right+e*i.x}),{...n})}}const ER=RR(1);function jR(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function TR(e,t,n){const r=jR(t);if(!r)return e;const{scaleX:o,scaleY:s,x:l,y:i}=r,a=e.left-l-(1-o)*parseFloat(n),d=e.top-i-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,m=s?e.height/s:e.height;return{width:f,height:m,top:d,right:a+f,bottom:d+m,left:a}}const LR={ignoreTransform:!1};function So(e,t){t===void 0&&(t=LR);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:f}=lt(e).getComputedStyle(e);d&&(n=TR(n,d,f))}const{top:r,left:o,width:s,height:l,bottom:i,right:a}=n;return{top:r,left:o,width:s,height:l,bottom:i,right:a}}function bm(e){return So(e,{ignoreTransform:!0})}function MR(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function AR(e,t){return t===void 0&&(t=lt(e).getComputedStyle(e)),t.position==="fixed"}function IR(e,t){t===void 0&&(t=lt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function bd(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(gd(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Us(o)||d0(o)||n.includes(o))return n;const s=lt(e).getComputedStyle(o);return o!==e&&IR(o,s)&&n.push(o),AR(o,s)?n:r(o.parentNode)}return e?r(e):n}function h0(e){const[t]=bd(e,1);return t??null}function Ya(e){return!oa||!e?null:_o(e)?e:hd(e)?gd(e)||e===ko(e).scrollingElement?window:Us(e)?e:null:null}function g0(e){return _o(e)?e.scrollX:e.scrollLeft}function y0(e){return _o(e)?e.scrollY:e.scrollTop}function qc(e){return{x:g0(e),y:y0(e)}}var Ge;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ge||(Ge={}));function v0(e){return!oa||!e?!1:e===document.scrollingElement}function b0(e){const t={x:0,y:0},n=v0(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,i=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:l,isRight:i,maxScroll:r,minScroll:t}}const DR={x:.2,y:.2};function PR(e,t,n,r,o){let{top:s,left:l,right:i,bottom:a}=n;r===void 0&&(r=10),o===void 0&&(o=DR);const{isTop:d,isBottom:f,isLeft:m,isRight:p}=b0(e),h={x:0,y:0},g={x:0,y:0},y={height:t.height*o.y,width:t.width*o.x};return!d&&s<=t.top+y.height?(h.y=Ge.Backward,g.y=r*Math.abs((t.top+y.height-s)/y.height)):!f&&a>=t.bottom-y.height&&(h.y=Ge.Forward,g.y=r*Math.abs((t.bottom-y.height-a)/y.height)),!p&&i>=t.right-y.width?(h.x=Ge.Forward,g.x=r*Math.abs((t.right-y.width-i)/y.width)):!m&&l<=t.left+y.width&&(h.x=Ge.Backward,g.x=r*Math.abs((t.left+y.width-l)/y.width)),{direction:h,speed:g}}function NR(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function w0(e){return e.reduce((t,n)=>Hr(t,qc(n)),Nt)}function OR(e){return e.reduce((t,n)=>t+g0(n),0)}function $R(e){return e.reduce((t,n)=>t+y0(n),0)}function zR(e,t){if(t===void 0&&(t=So),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);h0(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const FR=[["x",["left","right"],OR],["y",["top","bottom"],$R]];class wd{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=bd(n),o=w0(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,i]of FR)for(const a of l)Object.defineProperty(this,a,{get:()=>{const d=i(r),f=o[s]-d;return this.rect[a]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ko{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function BR(e){const{EventTarget:t}=lt(e);return e instanceof t?e:ko(e)}function Ua(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var bt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(bt||(bt={}));function wm(e){e.preventDefault()}function qR(e){e.stopPropagation()}var pe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(pe||(pe={}));const x0={start:[pe.Space,pe.Enter],cancel:[pe.Esc],end:[pe.Space,pe.Enter,pe.Tab]},WR=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case pe.Right:return{...n,x:n.x+25};case pe.Left:return{...n,x:n.x-25};case pe.Down:return{...n,y:n.y+25};case pe.Up:return{...n,y:n.y-25}}};class C0{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ko(ko(n)),this.windowListeners=new Ko(lt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(bt.Resize,this.handleCancel),this.windowListeners.add(bt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(bt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&zR(r),n(Nt)}handleKeyDown(t){if(vd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=x0,coordinateGetter:l=WR,scrollBehavior:i="smooth"}=o,{code:a}=t;if(s.end.includes(a)){this.handleEnd(t);return}if(s.cancel.includes(a)){this.handleCancel(t);return}const{collisionRect:d}=r.current,f=d?{x:d.left,y:d.top}:Nt;this.referenceCoordinates||(this.referenceCoordinates=f);const m=l(t,{active:n,context:r.current,currentCoordinates:f});if(m){const p=ui(m,f),h={x:0,y:0},{scrollableAncestors:g}=r.current;for(const y of g){const v=t.code,{isTop:w,isRight:b,isLeft:x,isBottom:C,maxScroll:_,minScroll:S}=b0(y),k=NR(y),E={x:Math.min(v===pe.Right?k.right-k.width/2:k.right,Math.max(v===pe.Right?k.left:k.left+k.width/2,m.x)),y:Math.min(v===pe.Down?k.bottom-k.height/2:k.bottom,Math.max(v===pe.Down?k.top:k.top+k.height/2,m.y))},T=v===pe.Right&&!b||v===pe.Left&&!x,M=v===pe.Down&&!C||v===pe.Up&&!w;if(T&&E.x!==m.x){const P=y.scrollLeft+p.x,F=v===pe.Right&&P<=_.x||v===pe.Left&&P>=S.x;if(F&&!p.y){y.scrollTo({left:P,behavior:i});return}F?h.x=y.scrollLeft-P:h.x=v===pe.Right?y.scrollLeft-_.x:y.scrollLeft-S.x,h.x&&y.scrollBy({left:-h.x,behavior:i});break}else if(M&&E.y!==m.y){const P=y.scrollTop+p.y,F=v===pe.Down&&P<=_.y||v===pe.Up&&P>=S.y;if(F&&!p.x){y.scrollTo({top:P,behavior:i});return}F?h.y=y.scrollTop-P:h.y=v===pe.Down?y.scrollTop-_.y:y.scrollTop-S.y,h.y&&y.scrollBy({top:-h.y,behavior:i});break}}this.handleMove(t,Hr(ui(m,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}C0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=x0,onActivation:o}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const i=s.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function xm(e){return!!(e&&"distance"in e)}function Cm(e){return!!(e&&"delay"in e)}class xd{constructor(t,n,r){var o;r===void 0&&(r=BR(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=ko(l),this.documentListeners=new Ko(this.document),this.listeners=new Ko(r),this.windowListeners=new Ko(lt(l)),this.initialCoordinates=(o=Bc(s))!=null?o:Nt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(bt.Resize,this.handleCancel),this.windowListeners.add(bt.DragStart,wm),this.windowListeners.add(bt.VisibilityChange,this.handleCancel),this.windowListeners.add(bt.ContextMenu,wm),this.documentListeners.add(bt.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Cm(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(xm(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(bt.Click,qR,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(bt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:l,options:{activationConstraint:i}}=s;if(!o)return;const a=(n=Bc(t))!=null?n:Nt,d=ui(o,a);if(!r&&i){if(xm(i)){if(i.tolerance!=null&&Ua(d,i.tolerance))return this.handleCancel();if(Ua(d,i.distance))return this.handleStart()}if(Cm(i)&&Ua(d,i.tolerance))return this.handleCancel();this.handlePending(i,d);return}t.cancelable&&t.preventDefault(),l(a)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===pe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const GR={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Cd extends xd{constructor(t){const{event:n}=t,r=ko(n.target);super(t,GR,r)}}Cd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const YR={move:{name:"mousemove"},end:{name:"mouseup"}};var Wc;(function(e){e[e.RightClick=2]="RightClick"})(Wc||(Wc={}));class UR extends xd{constructor(t){super(t,YR,ko(t.event.target))}}UR.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Wc.RightClick?!1:(r?.({event:n}),!0)}}];const Va={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class VR extends xd{constructor(t){super(t,Va)}static setup(){return window.addEventListener(Va.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Va.move.name,t)};function t(){}}}VR.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Qo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Qo||(Qo={}));var fi;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(fi||(fi={}));function HR(e){let{acceleration:t,activator:n=Qo.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:l=5,order:i=fi.TreeOrder,pointerCoordinates:a,scrollableAncestors:d,scrollableAncestorRects:f,delta:m,threshold:p}=e;const h=XR({delta:m,disabled:!s}),[g,y]=rR(),v=u.useRef({x:0,y:0}),w=u.useRef({x:0,y:0}),b=u.useMemo(()=>{switch(n){case Qo.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case Qo.DraggableRect:return o}},[n,o,a]),x=u.useRef(null),C=u.useCallback(()=>{const S=x.current;if(!S)return;const k=v.current.x*w.current.x,E=v.current.y*w.current.y;S.scrollBy(k,E)},[]),_=u.useMemo(()=>i===fi.TreeOrder?[...d].reverse():d,[i,d]);u.useEffect(()=>{if(!s||!d.length||!b){y();return}for(const S of _){if(r?.(S)===!1)continue;const k=d.indexOf(S),E=f[k];if(!E)continue;const{direction:T,speed:M}=PR(S,E,b,t,p);for(const P of["x","y"])h[P][T[P]]||(M[P]=0,T[P]=0);if(M.x>0||M.y>0){y(),x.current=S,g(C,l),v.current=M,w.current=T;return}}v.current={x:0,y:0},w.current={x:0,y:0},y()},[t,C,r,y,s,l,JSON.stringify(b),JSON.stringify(h),g,d,_,f,JSON.stringify(p)])}const ZR={x:{[Ge.Backward]:!1,[Ge.Forward]:!1},y:{[Ge.Backward]:!1,[Ge.Forward]:!1}};function XR(e){let{delta:t,disabled:n}=e;const r=Fc(t);return Vs(o=>{if(n||!r||!o)return ZR;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ge.Backward]:o.x[Ge.Backward]||s.x===-1,[Ge.Forward]:o.x[Ge.Forward]||s.x===1},y:{[Ge.Backward]:o.y[Ge.Backward]||s.y===-1,[Ge.Forward]:o.y[Ge.Forward]||s.y===1}}},[n,t,r])}function KR(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Vs(o=>{var s;return t==null?null:(s=r??o)!=null?s:null},[r,t])}function QR(e,t){return u.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var bs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bs||(bs={}));var Gc;(function(e){e.Optimized="optimized"})(Gc||(Gc={}));const _m=new Map;function JR(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,l]=u.useState(null),{frequency:i,measure:a,strategy:d}=o,f=u.useRef(e),m=v(),p=ys(m),h=u.useCallback(function(w){w===void 0&&(w=[]),!p.current&&l(b=>b===null?w:b.concat(w.filter(x=>!b.includes(x))))},[p]),g=u.useRef(null),y=Vs(w=>{if(m&&!n)return _m;if(!w||w===_m||f.current!==e||s!=null){const b=new Map;for(let x of e){if(!x)continue;if(s&&s.length>0&&!s.includes(x.id)&&x.rect.current){b.set(x.id,x.rect.current);continue}const C=x.node.current,_=C?new wd(a(C),C):null;x.rect.current=_,_&&b.set(x.id,_)}return b}return w},[e,s,n,m,a]);return u.useEffect(()=>{f.current=e},[e]),u.useEffect(()=>{m||h()},[n,m]),u.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),u.useEffect(()=>{m||typeof i!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},i))},[i,m,h,...r]),{droppableRects:y,measureDroppableContainers:h,measuringScheduled:s!=null};function v(){switch(d){case bs.Always:return!1;case bs.BeforeDragging:return n;default:return!n}}}function _0(e,t){return Vs(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function eE(e,t){return _0(e,t)}function tE(e){let{callback:t,disabled:n}=e;const r=yd(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function sa(e){let{callback:t,disabled:n}=e;const r=yd(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function nE(e){return new wd(So(e),e)}function km(e,t,n){t===void 0&&(t=nE);const[r,o]=u.useState(null);function s(){o(a=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=a??n)!=null?d:null}const f=t(e);return JSON.stringify(a)===JSON.stringify(f)?a:f})}const l=tE({callback(a){if(e)for(const d of a){const{type:f,target:m}=d;if(f==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),i=sa({callback:s});return Qt(()=>{s(),e?(i?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(i?.disconnect(),l?.disconnect())},[e]),r}function rE(e){const t=_0(e);return p0(e,t)}const Sm=[];function oE(e){const t=u.useRef(e),n=Vs(r=>e?r&&r!==Sm&&e&&t.current&&e.parentNode===t.current.parentNode?r:bd(e):Sm,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function sE(e){const[t,n]=u.useState(null),r=u.useRef(e),o=u.useCallback(s=>{const l=Ya(s.target);l&&n(i=>i?(i.set(l,qc(l)),new Map(i)):null)},[]);return u.useEffect(()=>{const s=r.current;if(e!==s){l(s);const i=e.map(a=>{const d=Ya(a);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,qc(d)]):null}).filter(a=>a!=null);n(i.length?new Map(i):null),r.current=e}return()=>{l(e),l(s)};function l(i){i.forEach(a=>{const d=Ya(a);d?.removeEventListener("scroll",o)})}},[o,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>Hr(s,l),Nt):w0(e):Nt,[e,t])}function Rm(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const r=e!==Nt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ui(e,n.current):Nt}function lE(e){u.useEffect(()=>{if(!oa)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function iE(e,t){return u.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=l=>{s(l,t)},n},{}),[e,t])}function k0(e){return u.useMemo(()=>e?MR(e):null,[e])}const Em=[];function aE(e,t){t===void 0&&(t=So);const[n]=e,r=k0(n?lt(n):null),[o,s]=u.useState(Em);function l(){s(()=>e.length?e.map(a=>v0(a)?r:new wd(t(a),a)):Em)}const i=sa({callback:l});return Qt(()=>{i?.disconnect(),l(),e.forEach(a=>i?.observe(a))},[e]),o}function cE(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Us(t)?t:e}function uE(e){let{measure:t}=e;const[n,r]=u.useState(null),o=u.useCallback(d=>{for(const{target:f}of d)if(Us(f)){r(m=>{const p=t(f);return m?{...m,width:p.width,height:p.height}:p});break}},[t]),s=sa({callback:o}),l=u.useCallback(d=>{const f=cE(d);s?.disconnect(),f&&s?.observe(f),r(f?t(f):null)},[t,s]),[i,a]=ci(l);return u.useMemo(()=>({nodeRef:i,rect:n,setRef:a}),[n,i,a])}const dE=[{sensor:Cd,options:{}},{sensor:C0,options:{}}],fE={current:{}},Pl={draggable:{measure:bm},droppable:{measure:bm,strategy:bs.WhileDragging,frequency:Gc.Optimized},dragOverlay:{measure:So}};class Jo extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const mE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Jo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:di},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pl,measureDroppableContainers:di,windowRect:null,measuringScheduled:!1},pE={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:di,draggableNodes:new Map,over:null,measureDroppableContainers:di},la=u.createContext(pE),S0=u.createContext(mE);function hE(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Jo}}}function gE(e,t){switch(t.type){case Fe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Fe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Fe.DragEnd:case Fe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Fe.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Jo(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Fe.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new Jo(e.droppable.containers);return l.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case Fe.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Jo(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function yE(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=u.useContext(la),s=Fc(r),l=Fc(n?.id);return u.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!vd(s)||document.activeElement===s.target)return;const i=o.get(l);if(!i)return;const{activatorNode:a,node:d}=i;if(!a.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[a.current,d.current]){if(!f)continue;const m=lR(f);if(m){m.focus();break}}})}},[r,t,o,l,s]),null}function vE(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function bE(e){return u.useMemo(()=>({draggable:{...Pl.draggable,...e?.draggable},droppable:{...Pl.droppable,...e?.droppable},dragOverlay:{...Pl.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function wE(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=u.useRef(!1),{x:l,y:i}=typeof o=="boolean"?{x:o,y:o}:o;Qt(()=>{if(!l&&!i||!t){s.current=!1;return}if(s.current||!r)return;const d=t?.node.current;if(!d||d.isConnected===!1)return;const f=n(d),m=p0(f,r);if(l||(m.x=0),i||(m.y=0),s.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const p=h0(d);p&&p.scrollBy({top:m.y,left:m.x})}},[t,l,i,r,n])}const R0=u.createContext({...Nt,scaleX:1,scaleY:1});var zn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zn||(zn={}));const xE=u.memo(function(t){var n,r,o,s;let{id:l,accessibility:i,autoScroll:a=!0,children:d,sensors:f=dE,collisionDetection:m=kR,measuring:p,modifiers:h,...g}=t;const y=u.useReducer(gE,void 0,hE),[v,w]=y,[b,x]=fR(),[C,_]=u.useState(zn.Uninitialized),S=C===zn.Initialized,{draggable:{active:k,nodes:E,translate:T},droppable:{containers:M}}=v,P=k!=null?E.get(k):null,F=u.useRef({initial:null,translated:null}),V=u.useMemo(()=>{var Ze;return k!=null?{id:k,data:(Ze=P?.data)!=null?Ze:fE,rect:F}:null},[k,P]),q=u.useRef(null),[te,U]=u.useState(null),[K,H]=u.useState(null),N=ys(g,Object.values(g)),ae=Hs("DndDescribedBy",l),Me=u.useMemo(()=>M.getEnabled(),[M]),ge=bE(p),{droppableRects:Ee,measureDroppableContainers:_e,measuringScheduled:He}=JR(Me,{dragging:S,dependencies:[T.x,T.y],config:ge.droppable}),ke=KR(E,k),G=u.useMemo(()=>K?Bc(K):null,[K]),se=Ly(),ce=eE(ke,ge.draggable.measure);wE({activeNode:k!=null?E.get(k):null,config:se.layoutShiftCompensation,initialRect:ce,measure:ge.draggable.measure});const W=km(ke,ge.draggable.measure,ce),de=km(ke?ke.parentElement:null),le=u.useRef({activatorEvent:null,active:null,activeNode:ke,collisionRect:null,collisions:null,droppableRects:Ee,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Pe=M.getNodeFor((n=le.current.over)==null?void 0:n.id),Ne=uE({measure:ge.dragOverlay.measure}),ht=(r=Ne.nodeRef.current)!=null?r:ke,gt=S?(o=Ne.rect)!=null?o:W:null,jn=!!(Ne.nodeRef.current&&Ne.rect),Ks=rE(jn?null:W),Tn=k0(ht?lt(ht):null),Ln=oE(S?Pe??ke:null),Qs=aE(Ln),Js=vE(h,{transform:{x:T.x-Ks.x,y:T.y-Ks.y,scaleX:1,scaleY:1},activatorEvent:K,active:V,activeNodeRect:W,containerNodeRect:de,draggingNodeRect:gt,over:le.current.over,overlayNodeRect:Ne.rect,scrollableAncestors:Ln,scrollableAncestorRects:Qs,windowRect:Tn}),Pd=G?Hr(G,T):null,Nd=sE(Ln),_y=Rm(Nd),ky=Rm(Nd,[W]),xr=Hr(Js,_y),Cr=gt?ER(gt,Js):null,Ro=V&&Cr?m({active:V,collisionRect:Cr,droppableRects:Ee,droppableContainers:Me,pointerCoordinates:Pd}):null,Od=xR(Ro,"id"),[Mn,$d]=u.useState(null),Sy=jn?Js:Hr(Js,ky),Ry=SR(Sy,(s=Mn?.rect)!=null?s:null,W),ua=u.useRef(null),zd=u.useCallback((Ze,it)=>{let{sensor:at,options:An}=it;if(q.current==null)return;const yt=E.get(q.current);if(!yt)return;const ct=Ze.nativeEvent,Ft=new at({active:q.current,activeNode:yt,event:ct,options:An,context:le,onAbort(Ue){if(!E.get(Ue))return;const{onDragAbort:Bt}=N.current,rn={id:Ue};Bt?.(rn),b({type:"onDragAbort",event:rn})},onPending(Ue,In,Bt,rn){if(!E.get(Ue))return;const{onDragPending:jo}=N.current,Dn={id:Ue,constraint:In,initialCoordinates:Bt,offset:rn};jo?.(Dn),b({type:"onDragPending",event:Dn})},onStart(Ue){const In=q.current;if(In==null)return;const Bt=E.get(In);if(!Bt)return;const{onDragStart:rn}=N.current,Eo={activatorEvent:ct,active:{id:In,data:Bt.data,rect:F}};fn.unstable_batchedUpdates(()=>{rn?.(Eo),_(zn.Initializing),w({type:Fe.DragStart,initialCoordinates:Ue,active:In}),b({type:"onDragStart",event:Eo}),U(ua.current),H(ct)})},onMove(Ue){w({type:Fe.DragMove,coordinates:Ue})},onEnd:_r(Fe.DragEnd),onCancel:_r(Fe.DragCancel)});ua.current=Ft;function _r(Ue){return async function(){const{active:Bt,collisions:rn,over:Eo,scrollAdjustedTranslate:jo}=le.current;let Dn=null;if(Bt&&jo){const{cancelDrop:To}=N.current;Dn={activatorEvent:ct,active:Bt,collisions:rn,delta:jo,over:Eo},Ue===Fe.DragEnd&&typeof To=="function"&&await Promise.resolve(To(Dn))&&(Ue=Fe.DragCancel)}q.current=null,fn.unstable_batchedUpdates(()=>{w({type:Ue}),_(zn.Uninitialized),$d(null),U(null),H(null),ua.current=null;const To=Ue===Fe.DragEnd?"onDragEnd":"onDragCancel";if(Dn){const da=N.current[To];da?.(Dn),b({type:To,event:Dn})}})}}},[E]),Ey=u.useCallback((Ze,it)=>(at,An)=>{const yt=at.nativeEvent,ct=E.get(An);if(q.current!==null||!ct||yt.dndKit||yt.defaultPrevented)return;const Ft={active:ct};Ze(at,it.options,Ft)===!0&&(yt.dndKit={capturedBy:it.sensor},q.current=An,zd(at,it))},[E,zd]),Fd=QR(f,Ey);lE(f),Qt(()=>{W&&C===zn.Initializing&&_(zn.Initialized)},[W,C]),u.useEffect(()=>{const{onDragMove:Ze}=N.current,{active:it,activatorEvent:at,collisions:An,over:yt}=le.current;if(!it||!at)return;const ct={active:it,activatorEvent:at,collisions:An,delta:{x:xr.x,y:xr.y},over:yt};fn.unstable_batchedUpdates(()=>{Ze?.(ct),b({type:"onDragMove",event:ct})})},[xr.x,xr.y]),u.useEffect(()=>{const{active:Ze,activatorEvent:it,collisions:at,droppableContainers:An,scrollAdjustedTranslate:yt}=le.current;if(!Ze||q.current==null||!it||!yt)return;const{onDragOver:ct}=N.current,Ft=An.get(Od),_r=Ft&&Ft.rect.current?{id:Ft.id,rect:Ft.rect.current,data:Ft.data,disabled:Ft.disabled}:null,Ue={active:Ze,activatorEvent:it,collisions:at,delta:{x:yt.x,y:yt.y},over:_r};fn.unstable_batchedUpdates(()=>{$d(_r),ct?.(Ue),b({type:"onDragOver",event:Ue})})},[Od]),Qt(()=>{le.current={activatorEvent:K,active:V,activeNode:ke,collisionRect:Cr,collisions:Ro,droppableRects:Ee,draggableNodes:E,draggingNode:ht,draggingNodeRect:gt,droppableContainers:M,over:Mn,scrollableAncestors:Ln,scrollAdjustedTranslate:xr},F.current={initial:gt,translated:Cr}},[V,ke,Ro,Cr,E,ht,gt,Ee,M,Mn,Ln,xr]),HR({...se,delta:T,draggingRect:Cr,pointerCoordinates:Pd,scrollableAncestors:Ln,scrollableAncestorRects:Qs});const jy=u.useMemo(()=>({active:V,activeNode:ke,activeNodeRect:W,activatorEvent:K,collisions:Ro,containerNodeRect:de,dragOverlay:Ne,draggableNodes:E,droppableContainers:M,droppableRects:Ee,over:Mn,measureDroppableContainers:_e,scrollableAncestors:Ln,scrollableAncestorRects:Qs,measuringConfiguration:ge,measuringScheduled:He,windowRect:Tn}),[V,ke,W,K,Ro,de,Ne,E,M,Ee,Mn,_e,Ln,Qs,ge,He,Tn]),Ty=u.useMemo(()=>({activatorEvent:K,activators:Fd,active:V,activeNodeRect:W,ariaDescribedById:{draggable:ae},dispatch:w,draggableNodes:E,over:Mn,measureDroppableContainers:_e}),[K,Fd,V,W,w,ae,E,Mn,_e]);return Le.createElement(m0.Provider,{value:x},Le.createElement(la.Provider,{value:Ty},Le.createElement(S0.Provider,{value:jy},Le.createElement(R0.Provider,{value:Ry},d)),Le.createElement(yE,{disabled:i?.restoreFocus===!1})),Le.createElement(hR,{...i,hiddenTextDescribedById:ae}));function Ly(){const Ze=te?.autoScrollEnabled===!1,it=typeof a=="object"?a.enabled===!1:a===!1,at=S&&!Ze&&!it;return typeof a=="object"?{...a,enabled:at}:{enabled:at}}}),CE=u.createContext(null),jm="button",_E="Draggable";function kE(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=Hs(_E),{activators:l,activatorEvent:i,active:a,activeNodeRect:d,ariaDescribedById:f,draggableNodes:m,over:p}=u.useContext(la),{role:h=jm,roleDescription:g="draggable",tabIndex:y=0}=o??{},v=a?.id===t,w=u.useContext(v?R0:CE),[b,x]=ci(),[C,_]=ci(),S=iE(l,t),k=ys(n);Qt(()=>(m.set(t,{id:t,key:s,node:b,activatorNode:C,data:k}),()=>{const T=m.get(t);T&&T.key===s&&m.delete(t)}),[m,t]);const E=u.useMemo(()=>({role:h,tabIndex:y,"aria-disabled":r,"aria-pressed":v&&h===jm?!0:void 0,"aria-roledescription":g,"aria-describedby":f.draggable}),[r,h,y,v,g,f.draggable]);return{active:a,activatorEvent:i,activeNodeRect:d,attributes:E,isDragging:v,listeners:r?void 0:S,node:b,over:p,setNodeRef:x,setActivatorNodeRef:_,transform:w}}function SE(){return u.useContext(S0)}const RE="Droppable",EE={timeout:25};function jE(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const s=Hs(RE),{active:l,dispatch:i,over:a,measureDroppableContainers:d}=u.useContext(la),f=u.useRef({disabled:n}),m=u.useRef(!1),p=u.useRef(null),h=u.useRef(null),{disabled:g,updateMeasurementsFor:y,timeout:v}={...EE,...o},w=ys(y??r),b=u.useCallback(()=>{if(!m.current){m.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),h.current=null},v)},[v]),x=sa({callback:b,disabled:g||!l}),C=u.useCallback((E,T)=>{x&&(T&&(x.unobserve(T),m.current=!1),E&&x.observe(E))},[x]),[_,S]=ci(C),k=ys(t);return u.useEffect(()=>{!x||!_.current||(x.disconnect(),m.current=!1,x.observe(_.current))},[_,x]),u.useEffect(()=>(i({type:Fe.RegisterDroppable,element:{id:r,key:s,disabled:n,node:_,rect:p,data:k}}),()=>i({type:Fe.UnregisterDroppable,key:s,id:r})),[r]),u.useEffect(()=>{n!==f.current.disabled&&(i({type:Fe.SetDroppableDisabled,id:r,key:s,disabled:n}),f.current.disabled=n)},[r,s,n,i]),{active:l,rect:p,isOver:a?.id===r,node:_,over:a,setNodeRef:S}}function _d(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function TE(e,t){return e.reduce((n,r,o)=>{const s=t.get(r);return s&&(n[o]=s),n},Array(e.length))}function yl(e){return e!==null&&e>=0}function LE(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ME(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const E0=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const s=_d(t,r,n),l=t[o],i=s[o];return!i||!l?null:{x:i.left-l.left,y:i.top-l.top,scaleX:i.width/l.width,scaleY:i.height/l.height}},j0="Sortable",T0=Le.createContext({activeIndex:-1,containerId:j0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:E0,disabled:{draggable:!1,droppable:!1}});function AE(e){let{children:t,id:n,items:r,strategy:o=E0,disabled:s=!1}=e;const{active:l,dragOverlay:i,droppableRects:a,over:d,measureDroppableContainers:f}=SE(),m=Hs(j0,n),p=i.rect!==null,h=u.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),g=l!=null,y=l?h.indexOf(l.id):-1,v=d?h.indexOf(d.id):-1,w=u.useRef(h),b=!LE(h,w.current),x=v!==-1&&y===-1||b,C=ME(s);Qt(()=>{b&&g&&f(h)},[b,h,g,f]),u.useEffect(()=>{w.current=h},[h]);const _=u.useMemo(()=>({activeIndex:y,containerId:m,disabled:C,disableTransforms:x,items:h,overIndex:v,useDragOverlay:p,sortedRects:TE(h,a),strategy:o}),[y,m,C.draggable,C.droppable,x,h,v,a,p,o]);return Le.createElement(T0.Provider,{value:_},t)}const IE=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return _d(n,r,o).indexOf(t)},DE=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:s,newIndex:l,previousItems:i,previousContainerId:a,transition:d}=e;return!d||!r||i!==s&&o===l?!1:n?!0:l!==o&&t===a},PE={duration:200,easing:"ease"},L0="transform",NE=vs.Transition.toString({property:L0,duration:0,easing:"linear"}),OE={roleDescription:"sortable"};function $E(e){let{disabled:t,index:n,node:r,rect:o}=e;const[s,l]=u.useState(null),i=u.useRef(n);return Qt(()=>{if(!t&&n!==i.current&&r.current){const a=o.current;if(a){const d=So(r.current,{ignoreTransform:!0}),f={x:a.left-d.left,y:a.top-d.top,scaleX:a.width/d.width,scaleY:a.height/d.height};(f.x||f.y)&&l(f)}}n!==i.current&&(i.current=n)},[t,n,r,o]),u.useEffect(()=>{s&&l(null)},[s]),s}function zE(e){let{animateLayoutChanges:t=DE,attributes:n,disabled:r,data:o,getNewIndex:s=IE,id:l,strategy:i,resizeObserverConfig:a,transition:d=PE}=e;const{items:f,containerId:m,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:y,overIndex:v,useDragOverlay:w,strategy:b}=u.useContext(T0),x=FE(r,h),C=f.indexOf(l),_=u.useMemo(()=>({sortable:{containerId:m,index:C,items:f},...o}),[m,o,C,f]),S=u.useMemo(()=>f.slice(f.indexOf(l)),[f,l]),{rect:k,node:E,isOver:T,setNodeRef:M}=jE({id:l,data:_,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...a}}),{active:P,activatorEvent:F,activeNodeRect:V,attributes:q,setNodeRef:te,listeners:U,isDragging:K,over:H,setActivatorNodeRef:N,transform:ae}=kE({id:l,data:_,attributes:{...OE,...n},disabled:x.draggable}),Me=nR(M,te),ge=!!P,Ee=ge&&!g&&yl(p)&&yl(v),_e=!w&&K,He=_e&&Ee?ae:null,G=Ee?He??(i??b)({rects:y,activeNodeRect:V,activeIndex:p,overIndex:v,index:C}):null,se=yl(p)&&yl(v)?s({id:l,items:f,activeIndex:p,overIndex:v}):C,ce=P?.id,W=u.useRef({activeId:ce,items:f,newIndex:se,containerId:m}),de=f!==W.current.items,le=t({active:P,containerId:m,isDragging:K,isSorting:ge,id:l,index:C,items:f,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:d,wasDragging:W.current.activeId!=null}),Pe=$E({disabled:!le,index:C,node:E,rect:k});return u.useEffect(()=>{ge&&W.current.newIndex!==se&&(W.current.newIndex=se),m!==W.current.containerId&&(W.current.containerId=m),f!==W.current.items&&(W.current.items=f)},[ge,se,m,f]),u.useEffect(()=>{if(ce===W.current.activeId)return;if(ce!=null&&W.current.activeId==null){W.current.activeId=ce;return}const ht=setTimeout(()=>{W.current.activeId=ce},50);return()=>clearTimeout(ht)},[ce]),{active:P,activeIndex:p,attributes:q,data:_,rect:k,index:C,newIndex:se,items:f,isOver:T,isSorting:ge,isDragging:K,listeners:U,node:E,overIndex:v,over:H,setNodeRef:Me,setActivatorNodeRef:N,setDroppableNodeRef:M,setDraggableNodeRef:te,transform:Pe??G,transition:Ne()};function Ne(){if(Pe||de&&W.current.newIndex===C)return NE;if(!(_e&&!vd(F)||!d)&&(ge||le))return vs.Transition.toString({...d,property:L0})}}function FE(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}pe.Down,pe.Right,pe.Up,pe.Left;function Zs({onClick:e}){return c.jsx(Ce,{icon:"clear",variant:"flat",size:"compact",tooltip:"Remove",onClick:e})}const vn={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",gap:"mly1jnr06f",rowGap:null,columnGap:null,cursor:"mly1ypdohk","--mlyvpnzvp":"mly11ogjb6 mly157rht3",$$css:!0},hoverActions:{display:"mly2b4tyj",flexShrink:"mly2lah0s",$$css:!0},hoverOpen:{display:"mly3nfvp2",$$css:!0}},ot={content:{background:"mly1b4wx6v",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,boxShadow:"mlyx2l43u",fontFamily:"mly6icuqf",margin:"mlykib98w",marginInline:null,marginInlineStart:null,marginLeft:null,marginInlineEnd:null,marginRight:null,marginBlock:null,marginTop:null,marginBottom:null,maxHeight:"mly3d5gib",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},item:{alignItems:"mly6s0dn4",color:"mly1q8pm5h mlyqweix6",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mlyt0e3qv",userSelect:"mly87ps6o",display:"mly78zum5",justifyContent:"mly1qughib",borderRadius:"mly18zih8k",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},clickable:{backgroundColor:"mlyk1j4u7",$$css:!0},label:{display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},tooltip:{$$css:!0}},Tm='#" ',M0=e=>{const t=e.filter(n=>n.value.startsWith(Tm)).map(n=>n.value.slice(Tm.length).trim());if(t.length)return t.join(`
|
|
206
|
+
`)},BE="#NO_UI",kd=e=>!!e.find(n=>n.value.startsWith(BE));function Lm(e){return e.kind==="join"?3:e.kind==="view"?2:e.kind==="dimension"?1:0}function qE(e){return e.sort((t,n)=>{const r=Lm(t),o=Lm(n);return r===o?t.name.localeCompare(n.name):o-r})}const Mm=["fieldName","fieldPath","fieldValue","fieldType","fieldRange","weight"];function A0(e){return new Set([...Mm,...e.schema.fields.map(n=>n.name)]).size===Mm.length}function I0(e){return e instanceof Z.ASTArrowQueryDefinition?e.view:e.definition}function wr(e){return e?I0(e).getInputSchema():{fields:[]}}function Kn(e){return!kd(e.annotations??[])}function Sd(e,t,n=[]){if(!e.find(o=>o.name===t))return t;if(n.length){const o=[...n];for(;o.length;)if(t=`${o.pop()} ${t}`,!e.find(l=>l.name===t))return t}let r=2;for(;e.find(o=>o.name===`${t} ${r}`);)r++;return`${t} ${r}`}function WE({field:e}){if(e.kind==="view")return c.jsx(Fn,{label:"view",icon:"view_filled",color:"purple",customStyle:vl.noBackground});if(e.kind==="dimension")return c.jsx(Fn,{label:"dimension",icon:Dl(e),color:"cyan",customStyle:vl.noBackground});if(e.kind==="measure")return c.jsx(Fn,{label:"measure",icon:Dl(e),color:"green",customStyle:vl.noBackground});if(e.kind==="join")return c.jsx(Fn,{label:"join",icon:Dl(e),color:"gray",customStyle:vl.noBackground})}const vl={noBackground:{backgroundColor:"mlyjbqb8w",$$css:!0}};function GE({rootQuery:e,viz:t,options:n,view:r,customStyle:o}){const[s,l]=u.useState(!1);return c.jsxs(xo,{onOpenChange:i=>l(i),open:s,children:[c.jsx(qs,{asChild:!0,children:c.jsx($e,{icon:"gear",customStyle:{...o,...Nl.trigger}})}),c.jsx(Co,{children:c.jsx(Ws,{align:"end",children:c.jsx(YE,{rootQuery:e,view:r,viz:t,options:n,setOpen:l})})})]})}function YE({rootQuery:e,view:t,viz:n,options:r,setOpen:o}){const{setQuery:s}=u.useContext(he),[l,i]=u.useState();return u.useEffect(()=>{const a={},d=t.getTag(lr);for(const f of r)a[f.name]=d.text("viz",f.name)??f.default.toString();i(a)},[r,t,n]),l?c.jsx("div",{...R.props(Nl.content,z.body),children:c.jsxs("div",{className:"mlyqyf9gi mly78zum5 mlydt5ytf mly167g77z",children:[c.jsx("div",{className:"mlyrvj5dj mly17bnpya mly167g77z",children:r.map(a=>a.type==="boolean"?c.jsx(UE,{option:a,current:l,setCurrent:i},a.name):a.type==="string"?c.jsx(VE,{option:a,current:l,setCurrent:i},a.name):c.jsx(HE,{option:a,current:l,setCurrent:i},a.name))}),c.jsxs("div",{className:"mly78zum5 mly167g77z",children:[c.jsx(Ce,{label:"Cancel",onClick:()=>{o(!1)},customStyle:Nl.editorCell}),c.jsx(Ce,{variant:"primary",label:"Apply",onClick:()=>{t.getTag(lr).has("viz",n)||t.setTagProperty(["viz"],n,lr);for(const a of r)l[a.name]!==a.default.toString()?t.setTagProperty(["viz",a.name],l[a.name],lr):t.removeTagProperty(["viz",a.name],lr);s?.(e.build()),o(!1)},customStyle:Nl.editorCell})]})]})}):null}function UE({current:e,option:t,setCurrent:n}){return c.jsxs(c.Fragment,{children:[u.createElement("div",{className:"mly78zum5 mly1lvf691 mly117nqv4",key:t.name},c.jsx("input",{type:"checkbox",checked:e[t.name]==="true",onChange:({target:{checked:r}})=>{n({...e,[t.name]:r.toString()})}})),c.jsx("label",{title:t.description,children:t.label},`${t.name}-label`)]})}function VE({current:e,option:t,setCurrent:n}){return c.jsxs(c.Fragment,{children:[u.createElement("div",{className:"mly78zum5 mly1lvf691 mly117nqv4",key:`${t.name}-label`},c.jsxs("label",{children:[t.label,":"]})),c.jsx("input",{value:e[t.name],onChange:({target:{value:r}})=>{n({...e,[t.name]:r})}},t.name)]})}function HE({current:e,option:t,setCurrent:n}){return c.jsxs(c.Fragment,{children:[u.createElement("div",{className:"mly78zum5 mly1lvf691 mly117nqv4",key:`${t.name}-label`},c.jsxs("label",{children:[t.label,":"]})),c.jsx(En,{value:e[t.name],options:t.options,onChange:r=>{n({...e,[t.name]:r})}},t.name)]})}const Nl={trigger:{height:"mly1ktj5wk",$$css:!0},content:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlylm99nl",maxWidth:"mly1jkqq1h",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0}};function D0({rootQuery:e,view:t}){var n;const{setQuery:r}=u.useContext(he),o=t.getTag(),l=((n=t.getTag(lr).tag("viz"))==null?void 0:n.text())??HS(pd(o)??"table"),i=m=>{t.setTagProperty(["viz"],m,lr),r?.(e.build())},a=GS.map(m=>({icon:c.jsx(re,{name:`viz_${m}`}),label:P0(m),value:m,onClick:()=>i(m)})),d=[c.jsx(Ni,{customStyle:Am.first,icon:`viz_${l}`,value:l,items:a,onChange:m=>i(m)},"first")],f=ZS[l];return f&&d.push(c.jsx(GE,{viz:l,options:f,view:t,rootQuery:e},"menu")),c.jsx(Ms,{customStyle:Am.group,children:d})}const Am={group:{width:"mlyh8yej3",gridTemplateColumns:"mly52fmzj",$$css:!0},first:{justifyContent:"mlylqzeqv",$$css:!0}};function P0(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function ZE({annotations:e}){const{tag:t}=Ny.Tag.fromTagLines(e.map(r=>r.value)),n=pd(t)??"table";return c.jsx($e,{label:P0(n),icon:`viz_${n}`})}function Rd({viewInfo:e,isCompact:t,style:n}){const r=e.schema.fields.filter(o=>o.kind==="dimension");return c.jsx("div",{...R.props(Yc.attributeTableContainer,n),children:c.jsx("table",{className:"mly1mwwwfo mly9f619 mlyh8yej3 mly5yr21d",children:c.jsxs("tbody",{children:[c.jsx(Im,{attribute:"chart type",children:c.jsx("div",{className:"mly1rg5ohu",children:c.jsx(ZE,{annotations:e.annotations||[]})})}),c.jsx(Im,{attribute:"output",children:r.map(o=>c.jsx("span",{children:c.jsx(ro,{field:o,size:t?"compact":"default"})},`${o.kind}::${o.name}`))})]})})})}function Im({attribute:e,children:t}){return c.jsxs("tr",{className:"mlydpxx8g",children:[c.jsx("td",{...R.props(Yc.attributeTableKeyCell,z.supporting),children:c.jsx("div",{...R.props(Yc.attributeTableKeyCellContent,z.supporting),children:e})}),c.jsx("td",{className:"mly78zum5 mly1a02dak mly195vfkc",children:t})]})}const Yc={attributeTableContainer:{padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mly12nb83b",boxSizing:"mly9f619",width:"mlyh8yej3",height:"mly1m3v4wt",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},attributeTableKeyCell:{whiteSpace:"mlyuxw1ft",width:"mly1f1nlb9",verticalAlign:"mly16dsc37",$$css:!0},attributeTableKeyCellContent:{height:"mly1fgtraw",display:"mly78zum5",alignItems:"mly6s0dn4",$$css:!0}};function XE({field:e,path:t}){const{topValues:n}=u.useContext(he),r=[...t,e.name].join("."),o=n?.find(s=>s.fieldName===r);return o?c.jsxs("div",{className:"mly12nb83b mly1iorvi4 mlyjkvuk6 mly163pfp mlyy13l1i mly12oqio5",children:[c.jsx("div",{className:"mly117nqv4",children:"Top Values"}),o.values.slice(0,6).map(s=>c.jsxs("div",{className:"mly78zum5 mly1qughib mly883omv mly6s0dn4",children:[c.jsx("div",{children:c.jsx("div",{className:"mlylyipyv mly6mezaz mlyb3r6kr mlyuxw1ft",children:s.fieldValue===null?c.jsx("span",{children:"∅"}):s.fieldValue})}),c.jsx("div",{className:"mly78zum5 mly883omv mly13a6bvl mly6s0dn4 mlyb3r6kr mly2lah0s mly9dwj6z",children:KE(s.weight)})]},s.fieldValue))]}):null}function KE(e){return e===null?"∅":e<1e3?e.toLocaleString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e6?Math.floor(e/1e3).toLocaleString()+"K":e<1e7?(e/1e6).toFixed(1)+"M":Math.floor(e/1e3).toLocaleString()+"M"}function Dm({children:e,ref:t,customStyle:n,isTooltipContent:r=!1,...o}){const s=e.split(/((?:http|https):\/\/\S*)\b/),l=s.length>1,i=s.map((a,d)=>a.match(/^(http|https):/)?c.jsx("a",{href:a,...{0:{},1:{className:"mly198oq2i"}}[!!r<<0],children:a},d):a);return c.jsx("div",{ref:t,...R.props(l&&Pm.preWrap,l&&Pm.breakWord,n),...o,children:i})}const Pm={preWrap:{whiteSpace:"mly126k92a",$$css:!0},breakWord:{wordWrap:"mly1vvkbs",$$css:!0}};function N0({text:e,containerRef:t,align:n="center",side:r="top"}){const o=u.useRef(null),[s,l]=u.useState(!1),[i,a]=u.useState(!1),d=()=>(o.current&&o.current.scrollHeight>o.current.clientHeight)??!1;return c.jsxs(ks,{open:(s||i)&&d(),children:[c.jsx(Ss,{asChild:!0,children:c.jsx(Dm,{ref:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onPointerMove:f=>f.preventDefault(),customStyle:[z.supporting,QE.text],children:e})}),c.jsx(Rs,{container:t?.current,children:c.jsx(Es,{side:r,align:n,children:c.jsx(Dm,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),isTooltipContent:!0,customStyle:[z.body,Cn.default],children:e})})})]})}const QE={text:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,display:"mly104kibb","-webkit-line-clamp":"mly1gzmk7r","-webkit-box-orient":"mly1ua5tub",$$css:!0}};function O0({children:e,customStyle:t}){return c.jsx("div",{...R.props(JE.container,z.body,t),children:e})}const JE={container:{boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function mi({field:e,path:t}){const{source:n}=u.useContext(he),r=u.useRef(null),o=[n?.name??"",...t].join(" > "),l=M0(e.annotations??[])??"";let i=null;return e.kind==="view"?i=c.jsx(Rd,{viewInfo:e,isCompact:!0,style:bl.viewAttributeTable}):e.kind==="dimension"&&(i=c.jsx(XE,{field:e,path:t})),c.jsxs(O0,{customStyle:bl.container,children:[c.jsxs("div",{ref:r,children:[c.jsx("div",{className:"mly12nagc",children:c.jsx(WE,{field:e})}),c.jsx("div",{...R.props(z.supporting,bl.path),children:o}),c.jsx("div",{...R.props(z.emphasized,bl.title),children:e.name}),l&&c.jsx(N0,{text:l,containerRef:r})]}),i&&c.jsx("div",{children:i})]})}const bl={container:{width:"mlybl57os",maxHeight:"mlyq3t0pi",$$css:!0},path:{color:"mly9dwj6z",$$css:!0},viewAttributeTable:{height:"mlyn866dk",$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},xe={filterDialog:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlyytlacd",maxWidth:"mly1pdpmub",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",maxHeight:"mly3d5gib",$$css:!0},filterDialogHeader:{fontWeight:"mly117nqv4",$$css:!0},filterTypeDropdown:{width:"mlyh8yej3",$$css:!0},buttonGroup:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",$$css:!0},editorRow:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,minWidth:"mlygc0pbm",$$css:!0}};function ej(e){return e.operator==="null"&&e.not?"-null":e.operator}function tj({filter:e,setFilter:t}){const n=ej(e),r=o=>{t(o==="-null"?{operator:"null",not:!0}:{operator:o})};return c.jsx("div",{...R.props(xe.editor),children:c.jsx(En,{value:n,onChange:r,options:[{value:"true",label:"is true"},{value:"false",label:"is false"},{value:"null",label:"is null"},{value:"-null",label:"is not null"},{value:"false_or_null",label:"is false or null"}],customStyle:xe.filterTypeDropdown})})}function $0(e,t){u.useEffect(()=>{const n=Array.isArray(e)?e:[e];let r=!1;const o=(a,d)=>!a.current||d.target instanceof Element&&a.current.contains(d.target),s=a=>n.some(d=>o(d,a)),l=a=>{!r||s(a)||(t(a),r=!1)},i=a=>{s(a)||(r=!0)};return document.addEventListener("mouseup",l),document.addEventListener("mousedown",i),()=>{document.removeEventListener("mouseup",l),document.removeEventListener("mousedown",i)}},[e,t])}const z0=({values:e,setValues:t,autoFocus:n,placeholder:r,type:o="text",value:s,setValue:l,focusElement:i,color:a=po,customStyle:d})=>{const[f,m]=u.useState(""),[p,h]=u.useState(!1),g=u.useRef(null),y=u.useRef(null),[v,w]=u.useState(void 0),b=u.useRef([]),x=s||f,C=l||m,_=u.useCallback(T=>{var M;const P=[...e];P.splice(T,1),t(P),v===0?e.length===1?(w(void 0),(M=g.current)==null||M.focus()):w(0):w(T-1)},[v,t,e]),S=u.useMemo(()=>(b.current=new Array(e.length),e.map((T,M)=>c.jsx(nj,{color:a,onClick:()=>{w(M)},onDelete:()=>_(M),forwardRef:P=>{b.current[M]=P},children:T},T))),[a,_,e]);u.useEffect(()=>{var T;v!==void 0&&((T=b.current[v])==null||T.focus())},[S,v]);const k=T=>{var M,P;T.key==="Backspace"?v!==void 0&&_(v):T.key==="ArrowRight"?v===e.length-1?(w(void 0),(M=g.current)==null||M.focus()):v!==void 0&&w(v+1):T.key==="ArrowLeft"?v!==void 0&&v>0&&w(v-1):(P=g.current)==null||P.focus()},E=()=>{x.length>0&&!e.includes(x)&&(t([...e,x]),C(""))};return $0(i?[y,i]:y,()=>{h(!1),E()}),c.jsx("div",{...R.props(z.body,Uc.main),children:c.jsx(Ls,{children:c.jsxs("div",{...R.props(Uc.content,d),onKeyUp:k,onClick:()=>{var T;return(T=g.current)==null?void 0:T.focus()},ref:y,children:[S,c.jsx("input",{className:"mly1gs6z28 mly1a2a7pz mly6icuqf mlyif65rj mlyayvuls mly83z2og mly1onzeue mly195ery5 mly1iyjqo2",ref:g,type:o,placeholder:e.length===0?r:"",value:x,size:1,onChange:T=>{C(T.target.value)},onKeyDown:T=>{T.key==="Enter"&&x!==""&&(E(),T.stopPropagation(),T.preventDefault())},onKeyUp:T=>{var M,P,F,V;T.key==="Backspace"?x===""&&e.length>0&&(E(),(M=g.current)==null||M.blur(),w(e.length-1)):T.key==="ArrowLeft"&&(((P=g.current)==null?void 0:P.selectionStart)===0||((F=g.current)==null?void 0:F.selectionStart)===null)&&(E(),(V=g.current)==null||V.blur(),w(e.length-1),T.preventDefault(),T.stopPropagation())},onFocus:()=>{h(!0),w(void 0)},autoFocus:n})]})})})},nj=({children:e,color:t=po,forwardRef:n,onClick:r,onDelete:o})=>c.jsxs("div",{onClick:r,tabIndex:0,ref:n,...R.props(Uc.pill,rj[t]),children:[e,c.jsx("div",{title:"Remove",className:"mly3nfvp2",children:c.jsx(Cp,{onClick:()=>o(),className:"mly6jxa94 mly1v9usgg"})})]}),Uc={main:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mlyvckdp7",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlybsehbd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mlyrvj5dj",minHeight:"mly2lwn1j",$$css:!0},content:{outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,display:"mly78zum5",flexWrap:"mly1a02dak",gap:"mly1ed6fcf",rowGap:null,columnGap:null,borderColor:"mly1akygb0 mlyetl2wx",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},pill:{backgroundColor:"mlyy9rfsq",borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1xre2ib",display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly1nejdyq",rowGap:null,columnGap:null,padding:"mly1e41zw8",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,textTransform:"mly6mezaz",cursor:"mly1ypdohk",height:"mly1qx5ct2",whiteSpace:"mlyuxw1ft",$$css:!0}},rj={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}};function oj(e,t){const{topValues:n}=u.useContext(he);if(n&&e){let r=n;if(t){const o=n.find(s=>s.fieldName===t);o?r=[o]:r=[]}return e=e.toLowerCase(),{searchResults:r.reduce((o,s)=>(s.values.filter(l=>{var i;return((i=l.fieldValue)==null?void 0:i.toLowerCase().includes(e))??!1}).forEach(l=>{o.push({fieldValue:l.fieldValue,fieldName:s.fieldName,fieldType:"string",weight:l.weight})}),o),[]),isLoading:!1}}return{searchResults:void 0,isLoading:!1}}function F0({onClick:e,search:t,fieldPath:n,ref:r,customStyle:o,showPath:s=!0}){const{searchResults:l}=oj(t,n),i=u.useMemo(()=>l&&l.filter(a=>a.fieldType==="string"&&a.fieldValue!==null).sort((a,d)=>d.weight-a.weight).slice(0,100),[l]);return c.jsx("div",{ref:r,...R.props(o),children:i?.length?i.map(a=>c.jsxs("div",{role:"menuitem",tabIndex:-1,...R.props(ot.item,B0.valueItem),onClick:()=>e(a),children:[c.jsx(sj,{value:a}),s?c.jsx("div",{className:"mly1jwwhvr",children:a.fieldName}):null]},a.fieldName+":"+a.fieldValue)):t?c.jsx("div",{...R.props(ot.item),"data-disabled":"true",children:"No matching values"}):null})}function sj({value:e}){return c.jsx($e,{label:e.fieldValue??"∅",icon:"filter",color:"purple",customStyle:B0.token})}const B0={valueItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",display:"mly78zum5",justifyContent:"mly1qughib",cursor:"mly1ypdohk",$$css:!0},token:{cursor:"mly1ypdohk",$$css:!0}},es={is_equal_to:{operator:"="},starts_with:{operator:"starts"},ends_with:{operator:"ends"},contains:{operator:"contains"},matches:{operator:"~"},is_blank:{operator:"empty"},is_null:{operator:"null"},is_not_equal_to:{operator:"=",not:!0},does_not_start_with:{operator:"starts",not:!0},does_not_end_with:{operator:"ends",not:!0},does_not_contain:{operator:"contains",not:!0},does_not_match:{operator:"~",not:!0},is_not_blank:{operator:"empty",not:!0},is_not_null:{operator:"null",not:!0}};function lj(e){for(const t in es){const n=t,r=es[n],o="not"in e?e.not:!1,s="not"in r?r.not:!1;if(r.operator===e.operator&&s===o)return n}throw new Error(`Unhandled string filter type ${e.operator}`)}const ij=({filter:e,setFilter:t,field:n,path:r})=>{e??(e={operator:"=",values:[]});const[o,s]=u.useState(""),l=u.useRef(null),i=lj(e),[a,d]=u.useState(e),f=p=>{m(uj(a,p))},m=p=>{d(p),t(p)};return c.jsxs("div",{...R.props(xe.editor),children:[c.jsx(En,{value:i,onChange:f,options:[{value:"is_equal_to",label:"is"},{value:"starts_with",label:"starts with"},{value:"ends_with",label:"ends with"},{value:"contains",label:"contains"},{value:"is_blank",label:"is blank"},{value:"is_null",label:"is null"},{value:"matches",label:"matches"},{value:"is_not_equal_to",label:"is not"},{value:"does_not_start_with",label:"does not start with"},{value:"does_not_end_with",label:"does not end with"},{value:"does_not_contain",label:"does not contain"},{value:"is_not_blank",label:"is not blank"},{value:"is_not_null",label:"is not null"},{value:"does_not_match",label:"does not match"}],customStyle:xe.filterTypeDropdown},"type"),a.operator==="="||a.operator==="starts"||a.operator==="ends"||a.operator==="contains"?c.jsxs(c.Fragment,{children:[c.jsx(Nm,{values:a.values,setValues:p=>m({...a,values:p}),searchValue:o,setSearchValue:s,focusElement:l},"editor"),c.jsx("div",{style:{minHeight:0,display:"grid"},children:c.jsx(F0,{ref:l,search:o,fieldPath:[...r,n.name].join("."),onClick:p=>{p.fieldValue&&(m({...a,values:[...a.values,p.fieldValue]}),s(""))},customStyle:dj.valueList,showPath:!1})})]}):a.operator==="~"?c.jsx(Nm,{values:a.escaped_values,setValues:p=>m({...a,escaped_values:p}),escape:!0,searchValue:o,setSearchValue:s},"editor"):null]})};function Nm({color:e,values:t,setValues:n,searchValue:r,setSearchValue:o,focusElement:s}){return c.jsx(z0,{color:e,values:t,setValues:n,value:r,setValue:o,focusElement:s})}function aj(e){return e.replace(/(["%_^])/g,"^$1")}function cj(e){return e.replace(/\^(["%_^])/g,"$1")}function uj(e,t){const n="values"in e?e.values:"escaped_values"in e?e.escaped_values.map(cj):[];switch(t){case"is_equal_to":case"is_not_equal_to":case"starts_with":case"does_not_start_with":case"contains":case"does_not_contain":case"ends_with":case"does_not_end_with":return{...es[t],values:n};case"is_blank":case"is_not_blank":case"is_null":case"is_not_null":return{...es[t]};case"matches":case"does_not_match":return{...es[t],escaped_values:n.map(aj)}}}const dj={valueList:{maxHeight:"mly3d5gib",width:"mly1hfn5x7",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0}},Om=e=>e==="range",$r={is_equal_to:{operator:"="},is_not_equal_to:{operator:"=",not:!0},is_greater_than:{operator:">"},is_less_than:{operator:"<"},is_greater_than_or_equal_to:{operator:">="},is_less_than_or_equal_to:{operator:"<="},is_between:{operator:"range",startOperator:">=",endOperator:"<="},is_null:{operator:"null"},is_not_null:{operator:"null",not:!0}};function fj(e){for(const t in $r){const n=t,r=$r[n],o="not"in e?e.not:!1,s="not"in r?r.not:!1;if(r.operator===e.operator&&s===o)return n}throw new Error(`Unhandled number filter type ${e.operator}`)}const mj=({filter:e,setFilter:t})=>{e??(e={operator:"=",values:[]});const[n,r]=u.useState(Om(e.operator)?["0","0"]:["0"]),[o,s]=u.useState(""),l=d=>{const f=e,m=gj(e,d);m.operator!=="null"&&(!f.values||f.values.length===0)&&(m.values=["0"]),t(m)},i=fj(e);u.useEffect(()=>{if(s(""),Om(e.operator)){const d=e;r([d.startValue,d.endValue])}else{const d=e;if(d.values){let f=d.values;(!f||f.length===0)&&(f=["0"]),r(f)}else r(["0"])}},[e]);const a=d=>{r(d),d.some(m=>isNaN(parseFloat(m)))?s("Every value must be numeric."):d.length===0?s("Requires at least one numeric value."):(s(""),e.operator==="range"?t({...e,startOperator:">=",startValue:d[0],endOperator:"<=",endValue:d[1]}):t({...e,values:d}))};return c.jsxs(c.Fragment,{children:[c.jsx(En,{value:i,onChange:l,options:[{value:"is_equal_to",label:"is"},{value:"is_not_equal_to",label:"is not"},{value:"is_greater_than",label:"is greater than"},{value:"is_less_than",label:"is less than"},{value:"is_greater_than_or_equal_to",label:"is greater than or equal to"},{value:"is_less_than_or_equal_to",label:"is less than or equal to"},{value:"is_between",label:"between"},{value:"is_null",label:"is null"},{value:"is_not_null",label:"is not null"}]}),o?c.jsx(ji,{errorMessage:o}):null,pj(e,n,a)]})};function pj(e,t,n){switch(e.operator){case"!=":case"=":return c.jsx(hj,{values:t.map(String),setValues:r=>n(r),type:"number"});case">":case"<":case">=":case"<=":return c.jsx(Ha,{value:t[0],setValue:r=>n([r]),type:"number"});case"range":return c.jsxs("div",{className:"mlyrvj5dj mly15396mt mly167g77z mlypqajaz",children:[c.jsx(Ha,{value:t[0],setValue:r=>n([r,t[1]]),type:"number"}),c.jsx("span",{children:"to"}),c.jsx(Ha,{value:t[1],setValue:r=>n([t[0],r]),type:"number"})]})}return null}function Ha({value:e,setValue:t}){return c.jsx("input",{type:"number",value:e,onChange:n=>{t(n.target.value)},className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})}function hj({values:e,setValues:t}){return c.jsx(z0,{values:e,setValues:t,type:"number"})}function gj(e,t){const n="values"in e?e.values:[];switch(t){case"is_equal_to":case"is_not_equal_to":return{...$r[t],values:n};case"is_greater_than":case"is_less_than":case"is_greater_than_or_equal_to":case"is_less_than_or_equal_to":return{...$r[t],values:n.length>0?[n[0]]:n};case"is_null":case"is_not_null":return{...$r[t]};case"is_between":return{...$r[t],startValue:n.length>0?n[0]:"0",endValue:n.length>1?n[1]:"0"}}}function yj(e){return e.operator==="null"&&e.not?"-null":e.operator==="before"&&e.not?"not_before":e.operator}function vj(e,t){return e.operator==="last"||e.operator==="next"||e.operator==="in_last"?e.units:e.operator==="to"?gl(e.fromMoment,t):e.operator==="before"&&e.before.moment==="literal"?gl(e.before,t):e.operator==="after"?gl(e.after,t):e.operator==="in"?gl(e.in,t):t?"second":"day"}const $m=({filter:e,setFilter:t,isDateTime:n})=>{e??(e={operator:"last",n:"7",units:"day"});const[r,o]=u.useState(vj(e,n)),[s,l]=u.useState(e),i=m=>{a(Sj(s,m,r))},a=m=>{l(m),t(m)},d=n?"second":"day",f=yj(s);return c.jsxs("div",{...R.props(xe.editor),children:[c.jsxs("div",{...R.props(xe.editorRow),children:[c.jsx(En,{value:f,onChange:i,options:[{value:"in_last",label:"last"},{value:"last",label:"last complete"},{value:"next",label:"next complete"},{value:"not_before",label:"on or after"},{value:"after",label:"after"},{value:"before",label:"before"},{value:"in",label:"is"},{value:"to",label:"between"},{value:"null",label:"null"},{value:"-null",label:"not null"}],customStyle:xe.editorCell}),bj(s,a,r,o,d)]}),wj(s,a,r,o,d)]})};function bj(e,t,n,r,o){switch(e.operator){case"in_last":case"last":case"next":return c.jsx(xj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r});case"after":case"before":case"to":case"in":return c.jsx(Cj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r})}return null}function wj(e,t,n,r,o){switch(e.operator){case"after":case"before":case"in":return c.jsx(_j,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r});case"to":return c.jsx(kj,{currentFilter:e,maxLevel:o,updateFilter:t,units:n,setUnits:r})}return null}const pi=[{value:"year",label:"years"},{value:"quarter",label:"quarters"},{value:"month",label:"months"},{value:"week",label:"weeks"},{value:"day",label:"days"}],q0=[{value:"hour",label:"hours"},{value:"minute",label:"minutes"},{value:"second",label:"seconds"}];function xj({currentFilter:e,updateFilter:t,setUnits:n,maxLevel:r}){const{n:o,units:s}=e,l=r==="day"?pi:[...pi,...q0],i=d=>{const f=d.target.value;t({...e,n:f})},a=d=>{n(d),t({...e,units:d})};return c.jsxs(c.Fragment,{children:[c.jsx("input",{type:"number",value:o,...R.props(xe.input,xe.editorCell),onChange:i}),c.jsx(En,{options:l,value:s,onChange:a,customStyle:xe.editorCell})]})}function Cj({currentFilter:e,updateFilter:t,units:n,setUnits:r,maxLevel:o}){const s=o==="day"?pi:[...pi,...q0],l=i=>{switch(r(i),e.operator){case"after":t({...e,after:$o(e.after,i)});return;case"before":t({...e,before:$o(e.before,i)});return;case"to":t({...e,fromMoment:$o(e.fromMoment,i),toMoment:$o(e.toMoment,i)});return;case"in":{t({...e,in:$o(e.in,i)});return}}};return c.jsx(En,{options:s,value:n,onChange:l,customStyle:xe.editorCell})}function _j({currentFilter:e,updateFilter:t,units:n,maxLevel:r}){const o=e.operator==="after"?e.after:e.operator==="before"?e.before:e.in,s=zr(o),l=i=>{t({...e,[e.operator]:oo(i,n)})};return c.jsxs(c.Fragment,{children:[c.jsx("div",{...R.props(xe.editorRow),children:c.jsx(li,{value:s,setValue:l,units:n,customStyle:{...xe.input,...xe.editorCell}})}),c.jsx("div",{...R.props(xe.editorRow),children:c.jsx(od,{value:s,setValue:l,units:n,maxLevel:r,customStyle:xe.editorCell})})]})}function kj({currentFilter:e,updateFilter:t,units:n,maxLevel:r}){const{fromMoment:o,toMoment:s}=e,l=zr(o),i=zr(s),[a,d]=u.useState(l),[f,m]=u.useState("from"),p=v=>{t({...e,fromMoment:oo(v,n)})},h=v=>{t({...e,toMoment:oo(v,n)})},g=v=>{f==="from"?p(v):h(v),d(v)},y=v=>{if(m(v),v==="from"){const w=zr(o);d(w)}else{const w=zr(s);d(w)}};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{...R.props(xe.editorRow),children:[c.jsx(li,{value:l,setValue:p,units:n,customStyle:{...xe.input,...xe.editorCell},onFocus:()=>y("from"),isActive:f==="from"}),c.jsx(li,{value:i,setValue:h,units:n,customStyle:{...xe.input,...xe.editorCell},onFocus:()=>y("to"),isActive:f==="to"})]}),c.jsx("div",{...R.props(xe.editorRow),children:c.jsx(od,{value:a,setValue:g,units:n,maxLevel:r,customStyle:xe.editorCell})})]})}function oo(e,t){return{moment:"literal",literal:L.utc(e).format(no[t]),units:t}}function zr(e){return e&&e.moment==="literal"?L.utc(e.literal,no[e.units??"second"]).toDate():new Date}function $o(e,t){return oo(zr(e),t)}function Sj(e,t,n){let r="7",o=oo(new Date,n),s=oo(new Date,n);switch(e.operator){case"in_last":case"last":case"next":r=e.n,n=e.units;break;case"after":o=e.after,s=e.after;break;case"before":o=e.before,s=e.before;break;case"to":o=e.fromMoment,s=e.toMoment;break}switch(t){case"in_last":case"last":case"next":return{operator:t,n:r,units:n};case"after":return{operator:t,after:o};case"before":return{operator:t,before:o};case"not_before":return{operator:"before",before:o,not:!0};case"in":return{operator:t,in:o};case"to":return{operator:t,fromMoment:o,toMoment:s};case"null":return{operator:"null"};case"-null":return{operator:"null",not:!0}}return e}function Rj({fieldInfo:e,path:t,filter:n,onFilterApply:r,onOpenChange:o}){const[s,l]=u.useState(n??Ej(e)),i=()=>{o(!1)},a=()=>{r(s),o(!1)},d=g=>{l({kind:"boolean",parsed:g})},f=g=>{l({kind:"string",parsed:g})},m=g=>{l({kind:"number",parsed:g})},p=g=>{l({kind:"timestamp",parsed:g})},h=g=>{l({kind:"date",parsed:g})};return c.jsxs("div",{...R.props(z.body,xe.filterDialog),onKeyDown:g=>{g.key==="Enter"?a():g.key==="Esc"&&i()},children:[c.jsx("div",{...R.props(xe.filterDialogHeader),children:e.name}),s.kind==="boolean"&&c.jsx(tj,{setFilter:d,filter:s.parsed??{operator:"null"}}),s.kind==="string"&&c.jsx(ij,{setFilter:f,filter:s.parsed??{operator:"null"},field:e,path:t}),s.kind==="number"&&c.jsx(mj,{setFilter:m,filter:s.parsed??{operator:"null"}}),s.kind==="date"&&c.jsx($m,{setFilter:h,filter:s.parsed??{operator:"null"},isDateTime:!1}),s.kind==="timestamp"&&c.jsx($m,{setFilter:p,filter:s.parsed??{operator:"null"},isDateTime:!0}),c.jsxs("div",{...R.props(xe.buttonGroup),children:[c.jsx(Ce,{variant:"default",label:"Cancel",onClick:i,style:{flexGrow:1}}),c.jsx(Ce,{variant:"primary",label:"Apply",onClick:a,style:{flexGrow:1}})]})]})}function Ej(e){return e.type.kind==="string_type"?{kind:"string",parsed:{operator:"=",values:[]}}:e.type.kind==="boolean_type"?{kind:"boolean",parsed:{operator:"true"}}:e.type.kind==="number_type"?{kind:"number",parsed:{operator:">",values:["0"]}}:e.type.kind==="date_type"?{kind:"date",parsed:{operator:"last",n:"7",units:"day"}}:{kind:"timestamp",parsed:{operator:"last",n:"7",units:"day"}}}function ws({fieldInfo:e,path:t,filter:n,setFilter:r,trigger:o,anchor:s,layoutProps:l,onOpenChange:i}){const[a,d]=u.useState(!1),f=m=>{d(m),i?.(m)};return c.jsxs(xo,{open:a,onOpenChange:f,modal:!0,children:[s?c.jsx(_1,{asChild:!0,children:s}):c.jsx(qs,{asChild:!0,children:o}),c.jsx(Co,{children:c.jsx(Ws,{...l,className:"mly78zum5 mlydt5ytf mly5n1uv4 mly12peec7 mlyur7f20",children:c.jsx(Rj,{fieldInfo:e,filter:n,path:t,onFilterApply:r,onOpenChange:f})})})]})}const jj=e=>(e.kind==="dimension"||e.kind==="measure")&&(e.type.kind==="array_type"&&e.type.element_type.kind==="record_type"||e.type.kind==="record_type");function Ed({view:e,fields:t,onAddOperation:n,search:r="",types:o,filter:s,isFilterOperation:l,customStyle:i}){const a=u.useMemo(()=>{const d=[],f=r.toLocaleLowerCase(),m=(p,h,g,y)=>{const v=qE(y).filter(x=>x.kind!=="join").filter(x=>x.name.toLocaleLowerCase().includes(f)&&p.includes(x.kind)).filter(x=>s?s(e,x,h):!0),w=y.filter(x=>x.kind==="join"),b=y.filter(jj);v.length&&d.push({path:h,name:h.length?h.join(" > "):g,fields:v});for(const x of b)x.type.kind==="array_type"&&x.type.element_type.kind==="record_type"?m(p,[...h,x.name],x.name,x.type.element_type.fields.map(C=>({kind:x.kind,...C}))):x.type.kind==="record_type"&&m(p,[...h,x.name],x.name,x.type.fields.map(C=>({kind:x.kind,...C})));for(const x of w)m(p.filter(C=>C!=="view"),[...h,x.name],x.name,x.schema.fields)};return m(o,[],"Source",t),d},[t,s,r,e,o]);return c.jsx("div",{...R.props(i),children:a.length?a.map(d=>c.jsxs("div",{children:[c.jsx("div",{...R.props(ot.item,Za.fieldItem),"data-disabled":"true",children:d.name}),d.fields.map(f=>l&&(f.kind==="dimension"||f.kind==="measure")?c.jsx(ws,{fieldInfo:f,path:d.path,setFilter:m=>n(f,d.path,m),anchor:c.jsx("div",{role:"menuitem",tabIndex:-1,...R.props(ot.item,Za.fieldItem),children:c.jsx(td,{asChild:!0,children:c.jsx(ro,{field:f,tooltip:c.jsx(mi,{field:f,path:d.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})})}),layoutProps:{align:"start",side:"right",sideOffset:2,alignOffset:4}},d.name+":"+f.name):c.jsx("div",{role:"menuitem",tabIndex:-1,...R.props(ot.item,Za.fieldItem),children:c.jsx(ro,{field:f,onClick:()=>n(f,d.path),tooltip:c.jsx(mi,{field:f,path:d.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})},d.name+":"+f.name))]},d.name)):c.jsx("div",{...R.props(ot.item),"data-disabled":"true",children:"No matching fields"})})}const Za={fieldItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",$$css:!0}};function Tj({view:e,fields:t,types:n,filter:r,onAddOperation:o,isFilterOperation:s}){const[l,i]=u.useState("");return c.jsxs("div",{...R.props(ot.content,Lj.content),role:"menu",children:[c.jsx("div",{...R.props(ot.item),children:c.jsx(Pi,{icon:"search",value:l,onChange:i,placeholder:"Search..."})}),c.jsx(Br,{}),c.jsx("div",{className:"mly1odjw0f",children:c.jsx(Ed,{view:e,fields:t,search:l,types:n,filter:r,onAddOperation:o,isFilterOperation:s})})]})}const Lj={content:{maxHeight:"mly3d5gib",$$css:!0}};function ia(e,t){return[...e||[],t].join(".")}function Mj(e){return e.operations.items.find(t=>t instanceof Z.ASTLimitViewOperation)!==void 0}function Aj(e,t){return e.operations.items.find(n=>n instanceof Z.ASTOrderByViewOperation&&n.name===t)!==void 0}function W0(e){const t=new Map;for(const n of e.operations.items)if(n instanceof Z.ASTGroupByViewOperation||n instanceof Z.ASTAggregateViewOperation){const r=n.field.getReference();r&&t.set(n.name,ia(r.path,r.name))}return t}function Ij(e,t,n){const r=W0(e),o=ia(t,n);return!!e.operations.items.find(s=>s instanceof Z.ASTOrderByViewOperation&&r.has(s.name)?o===r.get(s.name):!1)}function Dj(e,t,n,r){return t===r&&(e||[]).join(".")===(n||[]).join(".")}function Pj(e,t,n){return!!e.operations.items.find(o=>{if(o instanceof Z.ASTGroupByViewOperation||o instanceof Z.ASTAggregateViewOperation){const s=o.field.getReference();return s?Dj(t,n,s.path,s.name):!1}return!1})}function Nj(e,t){return e.operations.items.reduce((n,r)=>{if(r instanceof Z.ASTNestViewOperation&&r.name===t)do n+=1;while(e.hasFieldNamed(`${t} ${n}`));return n},1)}function aa(e,t,n){const r=t.kind==="dimension"?t.type.kind:"string",o=e.getOrAddDefaultSegment(),{fields:s}=e.getOutputSchema();let l;s.find(i=>i.name===t.name)&&(l=Sd(s,t.name,n)),r==="date_type"?o.addDateGroupBy(t.name,n,"day"):r==="timestamp_type"?o.addTimestampGroupBy(t.name,n,"second"):o.addGroupBy(t.name,n,l)}function ca(e,t,n){const r=e.getOrAddDefaultSegment(),{fields:o}=e.getOutputSchema();let s;o.find(l=>l.name===t.name)&&(s=Sd(o,t.name,n)),r.addAggregate(t.name,n,s)}function jd(e,t){const n=e.getOrAddDefaultSegment(),{fields:r}=e.getOutputSchema();let o;r.find(s=>s.name===t.name)&&(o=Sd(r,t.name)),n.addNest(t.name,o)}function Oj(e,t,n,r="desc"){const o=ia(t,n);let s=n;const l=e.getOrAddDefaultSegment(),i=W0(l);for(const a of i.entries())if(a[1]===o){s=a[0];break}l.addOrderBy(s,r)}function $j(e,t,n="desc"){e.getOrAddDefaultSegment().addOrderBy(t.name,n)}function G0(e,t,n,r){const o=e.getOrAddDefaultSegment();t.kind==="dimension"?o.addWhere(t.name,n,r):o.addHaving(t.name,n,r)}function bn(e){if(!e)return;const t=I0(e);if(t instanceof Z.ASTSegmentViewDefinition)return t;if(t instanceof Z.ASTRefinementViewDefinition&&t.refinement instanceof Z.ASTSegmentViewDefinition)return t.refinement}function zj({actionTitle:e,view:t,fields:n,title:r,types:o,onClick:s}){const[l,i]=u.useState(!1),a=bn(t),d=(f,m,p)=>!a?.hasField(m.name,p)&&Kn(m);return c.jsxs("div",{...R.props(Pt.title,vn.main),children:[c.jsx("div",{children:r}),c.jsx("div",{...R.props(vn.hoverActions,l?vn.hoverOpen:void 0),children:c.jsxs(xo,{onOpenChange:i,children:[c.jsx(qs,{asChild:!0,children:c.jsx("div",{className:"mly1md70p1 mly1aejobo mlyq1n1xh mly1ypdohk",children:e})}),c.jsx(Co,{children:c.jsx(rd,{side:"right",align:"start",alignOffset:-16,children:c.jsx(Tj,{view:t,fields:n,types:o,filter:d,onAddOperation:s})})})]})})]})}var Td="Dialog",[Y0,DL]=Ot(Td),[Fj,zt]=Y0(Td),U0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,i=u.useRef(null),a=u.useRef(null),[d=!1,f]=Xn({prop:r,defaultProp:o,onChange:s});return c.jsx(Fj,{scope:t,triggerRef:i,contentRef:a,contentId:_t(),titleId:_t(),descriptionId:_t(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:l,children:n})};U0.displayName=Td;var V0="DialogTrigger",Bj=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zt(V0,n),s=oe(t,o.triggerRef);return c.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ad(o.open),...r,ref:s,onClick:O(e.onClick,o.onOpenToggle)})});Bj.displayName=V0;var Ld="DialogPortal",[qj,H0]=Y0(Ld,{forceMount:void 0}),Z0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=zt(Ld,t);return c.jsx(qj,{scope:t,forceMount:n,children:u.Children.map(r,l=>c.jsx(Ve,{present:n||s.open,children:c.jsx(ao,{asChild:!0,container:o,children:l})}))})};Z0.displayName=Ld;var hi="DialogOverlay",X0=u.forwardRef((e,t)=>{const n=H0(hi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=zt(hi,e.__scopeDialog);return s.modal?c.jsx(Ve,{present:r||s.open,children:c.jsx(Wj,{...o,ref:t})}):null});X0.displayName=hi;var Wj=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zt(hi,n);return c.jsx(Is,{as:Un,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(X.div,{"data-state":Ad(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pr="DialogContent",K0=u.forwardRef((e,t)=>{const n=H0(pr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=zt(pr,e.__scopeDialog);return c.jsx(Ve,{present:r||s.open,children:s.modal?c.jsx(Gj,{...o,ref:t}):c.jsx(Yj,{...o,ref:t})})});K0.displayName=pr;var Gj=u.forwardRef((e,t)=>{const n=zt(pr,e.__scopeDialog),r=u.useRef(null),o=oe(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return Li(s)},[]),c.jsx(Q0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault())})}),Yj=u.forwardRef((e,t)=>{const n=zt(pr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(Q0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,i;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((i=n.triggerRef.current)==null?void 0:i.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Q0=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,i=zt(pr,n),a=u.useRef(null),d=oe(t,a);return Ti(),c.jsxs(c.Fragment,{children:[c.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(so,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Ad(i.open),...l,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Vj,{titleId:i.titleId}),c.jsx(Zj,{contentRef:a,descriptionId:i.descriptionId})]})]})}),Md="DialogTitle",J0=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zt(Md,n);return c.jsx(X.h2,{id:o.titleId,...r,ref:t})});J0.displayName=Md;var ey="DialogDescription",ty=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zt(ey,n);return c.jsx(X.p,{id:o.descriptionId,...r,ref:t})});ty.displayName=ey;var ny="DialogClose",Uj=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zt(ny,n);return c.jsx(X.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});Uj.displayName=ny;function Ad(e){return e?"open":"closed"}var ry="DialogTitleWarning",[PL,oy]=qy(ry,{contentName:pr,titleName:Md,docsSlug:"dialog"}),Vj=({titleId:e})=>{const t=oy(ry),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
207
|
+
|
|
208
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
209
|
+
|
|
210
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Hj="DialogDescriptionWarning",Zj=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oy(Hj).contentName}}.`;return u.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Xj=U0,Kj=Z0,Qj=X0,Jj=K0,eT=J0,tT=ty;function sy({rootQuery:e,view:t,target:n,open:r,setOpen:o}){const[s,l]=u.useState(""),{setQuery:i}=u.useContext(he);if(u.useEffect(()=>{n&&l(n.name)},[n,r]),!n)return null;const a=()=>{n.name=s,i?.(e?.build()),o(!1)},{fields:d}=t.getOutputSchema(),f=s!==n.name&&d.some(m=>m.name===s);return c.jsx(Xj,{open:r,onOpenChange:o,children:c.jsx(Kj,{children:c.jsx(Qj,{className:"mly5uxqc1 mlyixxii4 mly13vifvy mlyu96u03 mly3m8u43 mly1ey2m1c mlyrvj5dj mly1ku5rj1 mly11uqc5h",children:c.jsxs(Jj,{...R.props(zo.content,z.body),children:[c.jsxs(tT,{className:"mly1s85apg",children:["Rename ",n.name]}),c.jsxs(eT,{className:"mly1j61zf2 mly1ghz6dp",children:["Rename ",n.name]}),c.jsxs("div",{className:"mlyqyf9gi mly78zum5 mlydt5ytf mly167g77z",children:[c.jsxs("div",{className:"mly78zum5 mly167g77z",children:[c.jsx("input",{value:s,onChange:m=>l(m.target.value),...R.props({...zo.editorCell,...zo.input}),onKeyDown:m=>{m.key==="Enter"?a():m.key==="Esc"&&o(!1)}}),f&&c.jsx(ji,{errorMessage:"Name already in use"})]}),c.jsxs("div",{className:"mly78zum5 mly167g77z",children:[c.jsx(Ce,{label:"Cancel",onClick:()=>o(!1),customStyle:zo.editorCell}),c.jsx(Ce,{variant:"primary",label:"Rename",onClick:a,customStyle:zo.editorCell,disabled:f})]})]})]})})})})}const zo={content:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlylm99nl",maxWidth:"mly1jkqq1h",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function ly({rootQuery:e,segment:t,view:n,operations:r,kind:o}){const{setQuery:s}=u.useContext(he),l=yR(gR(Cd)),i=u.useMemo(()=>r.map(m=>({id:m.name,operation:m})),[r]);if(r.length===0)return null;function a(m){const h=t.operations.items.filter(v=>v instanceof Z.ASTAggregateViewOperation||v instanceof Z.ASTGroupByViewOperation||v instanceof Z.ASTNestViewOperation).map(v=>v.name),{active:g,over:y}=m;if(y&&g.id!==y.id){const v=h.indexOf(g.id),w=h.indexOf(y.id);t.reorderFields(_d(h,v,w)),s?.(e.build())}}const{fields:d}=wr(n),f=o==="group_by"?{title:"group by",actionTitle:"Add group by",types:["dimension"],onClick:(m,p)=>{aa(n,m,p),s?.(e.build())}}:{title:"aggregate",actionTitle:"Add aggregate",types:["measure"],onClick:(m,p)=>{ca(n,m,p),s?.(e.build())}};return c.jsxs("div",{children:[c.jsx(zj,{rootQuery:e,view:n,fields:d,...f}),c.jsx("div",{...R.props(Pt.tokenContainer),children:c.jsx(xE,{sensors:l,collisionDetection:CR,onDragEnd:a,children:c.jsx(AE,{items:i,children:i.map(m=>c.jsx(rT,{rootQuery:e,id:m.id,color:o==="group_by"?"cyan":"green",view:n,operation:m.operation},m.id))})})})]})}const nT=[];function rT({rootQuery:e,id:t,view:n,operation:r,color:o}){var s;const{setQuery:l}=u.useContext(he),i=r.getFieldInfo(),a=((s=r.field.getReference())==null?void 0:s.path)??nT,{attributes:d,listeners:f,setNodeRef:m,transform:p,transition:h}=zE({id:t,data:{name:i.name}}),[g,y]=u.useState(!1),[v,w]=u.useState(),[b,x]=u.useState(!1),C={transform:vs.Transform.toString(p),transition:h},_=u.useMemo(()=>c.jsxs(c.Fragment,{children:[c.jsx(md,{trigger:c.jsx(Ce,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),onOpenChange:x,children:[c.jsx(gs,{label:"Rename",onClick:()=>{w(r),y(!0)}},"rename")]},[...a,i.name].join(".")),c.jsx(Zs,{onClick:()=>{r.delete(),l?.(e?.build())}})]}),[i,r,a,e,l]),S=lT(i,r.field);let k="orderBy";return(i.kind==="dimension"||i.kind==="measure")&&(k=ra(i.type.kind)),c.jsxs("div",{id:t,ref:m,style:C,children:[S?c.jsxs(Ms,{customStyle:iT.tokenGroup,children:[c.jsx($e,{color:o,icon:k,label:i.name,dragProps:{attributes:d,listeners:f}}),c.jsx(Ni,{color:o,value:S.value,onChange:E=>{r.field.expression instanceof Z.ASTTimeTruncationExpression&&(r.field.expression.truncation=E),l?.(e.build())},items:S.options})]}):c.jsx(ro,{field:i,color:o,hoverActionsVisible:b,hoverActions:_,tooltip:c.jsx(mi,{field:i,path:a}),tooltipProps:{side:"right",align:"start",alignOffset:28},dragProps:{attributes:d,listeners:f}}),c.jsx(sy,{rootQuery:e,view:n,target:v,open:g,setOpen:y})]})}const oT=["day","week","month","quarter","year"],sT=["second","minute","hour","day","week","month","quarter","year"];function lT(e,t){return e.kind!=="dimension"||!(t.expression instanceof Z.ASTTimeTruncationExpression)?null:e.type.kind==="timestamp_type"?{value:e.type.timeframe??"second",options:sT.map(n=>({label:n,value:n}))}:e.type.kind==="date_type"?{value:e.type.timeframe??"day",options:oT.map(n=>({label:n,value:n}))}:null}const iT={tokenGroup:{display:"mly78zum5",$$css:!0}};function aT({rootQuery:e,segment:t,view:n,groupBys:r}){return c.jsx(ly,{rootQuery:e,segment:t,view:n,operations:r,kind:"group_by"})}class cT extends u.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const iy=(e,t)=>{if(e.parsed===null)return{op:"",value:t};let n="",r=t;switch(e.kind){case"boolean":{const o=e.parsed,{operator:s,not:l}=o;n=l?"is not":"is",r=s}break;case"string":{const o=e.parsed,{operator:s}=o;switch(s){case"~":n="is like",r=o.escaped_values.join(", ");break;case"=":{const{not:l,values:i}=o;n=l?"is not":"is",r=i.join(", ")}break;case"contains":{const{not:l,values:i}=o;n=l?"does not contain":"contains",r=i.join(", ")}break;case"starts":{const{not:l,values:i}=o;n=l?"does not start with":"starts with",r=i.join(", ")}break;case"ends":{const{not:l,values:i}=o;n=l?"does not end with":"ends with",r=i.join(", ")}break;case"empty":{const{not:l}=o;n=l?"is not empty":"is empty",r=""}break;case"null":{const{not:l}=o;n=l?"is not":"is",r="null"}break}}break;case"number":{const o=e.parsed,{operator:s}=o;switch(s){case"=":case"!=":case"<=":case">=":case"<":case">":n=s,r=o.values.join(", ");break;case"range":n="in between",r=o.startValue+" and "+o.endValue;break;case"null":n=o.not?"is not":"is",r="null";break}}break;case"date":case"timestamp":{const o=e.parsed,{operator:s}=o;switch(s){case"after":{const{not:l}=o;n=`is${l?" not":""} after`,r=Xa(o.after)}break;case"before":{const{not:l}=o;n=l?"is on or after":"is before",r=Xa(o.before)}break;case"in":{const{not:l}=o;n=`is${l?" not":""} in`,r=Xa(o.in)}break;case"in_last":{const{not:l}=o;n=`is${l?" not":""} in last`,r=o.n+" "+o.units}break;case"last":{const{not:l}=o;n=`is${l?" not":""} last complete`,r=o.n+" "+o.units}break;case"next":{const{not:l}=o;n=`is${l?" not":""} next complete`,r=o.n+" "+o.units}break;case"for":{const{not:l}=o;n=`is${l?" not":""} for`,r=o.n+" "+o.units}break;case"null":n=o.not?"is not":"is",r="null";break}}}return{op:n,value:r}};function Xa(e){return e?e.moment==="literal"?e.literal:e.moment==="now"?"now":e.moment:""}function uT({rootQuery:e,filters:t}){const{setQuery:n}=u.useContext(he);return t.length===0?null:c.jsxs("div",{children:[c.jsx("div",{...R.props(Pt.title),children:"filter by"}),c.jsx("div",{...R.props(Pt.tokenContainer),children:t.map((r,o)=>c.jsx(cT,{fallback:c.jsxs("div",{children:["Invalid filter",c.jsx(Zs,{onClick:()=>{r.delete(),n?.(e.build())}})]}),children:c.jsx(dT,{filterOperation:r,rootQuery:e})},o))})]})}function dT({rootQuery:e,filterOperation:t}){const{setQuery:n}=u.useContext(he),r=u.useCallback(m=>{t.filter instanceof Z.ASTFilterWithFilterString&&t.filter.setFilter(m),n?.(e.build())},[t.filter,e,n]);if(!(t.filter instanceof Z.ASTFilterWithFilterString))return null;const{fieldReference:o,filterString:s}=t.filter,l=t.filter.getFilter(),i=o.getFieldInfo();if(i.kind!=="dimension"&&i.kind!=="measure")throw new Error(`Invalid filter field kind: ${i.kind}`);const{op:a,value:d}=iy(l,s),f=`${i.name} ${a} ${d}`;return c.jsxs("div",{...R.props(vn.main),children:[c.jsx(ws,{fieldInfo:i,path:o.path??[],filter:l,setFilter:r,trigger:c.jsx($e,{icon:"filter",color:"cyan",label:f}),layoutProps:{align:"start",side:"bottom",sideOffset:1}}),c.jsx("div",{...R.props(vn.hoverActions),children:c.jsx(Zs,{onClick:()=>{t.delete(),n?.(e.build())}})})]})}function fT({rootQuery:e,limit:t}){const{setQuery:n}=u.useContext(he);return t?c.jsxs("div",{children:[c.jsx("div",{...R.props(Pt.title),children:"limit"}),c.jsxs("div",{...R.props(vn.main),children:[c.jsx(ic,{type:"number",value:t.limit,onChange:r=>{t.limit=r,n?.(e.build())},errorMessage:t.limit<0?"Limit must be positive":void 0}),c.jsx("div",{...R.props(vn.hoverActions),children:c.jsx(Zs,{onClick:()=>{t.delete(),n?.(e.build())}})})]})]}):null}function mT({rootQuery:e,segment:t,view:n,aggregates:r}){return c.jsx(ly,{rootQuery:e,segment:t,view:n,operations:r,kind:"aggregate"})}function pT({rootQuery:e,orderBys:t}){const{setQuery:n}=u.useContext(he);return t.length===0?null:c.jsxs("div",{children:[c.jsx("div",{...R.props(Pt.title),children:"order by"}),c.jsx("div",{...R.props(Pt.tokenContainer),children:t.map(r=>{const{fieldReference:o}=r,s=o.getFieldInfo(),l=o.path??[];let i="orderBy";(s.kind==="dimension"||s.kind==="measure")&&(i=ra(s.type.kind));const a=c0(s.kind);return c.jsxs("div",{...R.props(vn.main),children:[c.jsxs(Ms,{children:[c.jsx($e,{color:a,icon:i,label:s.name}),c.jsx(Ni,{color:a,items:[{label:"ascending",value:"asc"},{label:"descending",value:"desc"}],value:r.direction??"asc",onChange:d=>{r.direction=d,n?.(e.build())}})]}),c.jsx("div",{...R.props(vn.hoverActions),children:c.jsx(Zs,{onClick:()=>{r.delete(),n?.(e.build())}})})]},[...l,s.name].join("."))})})]})}function hT({rootQuery:e,view:t}){return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[c.jsx(D0,{rootQuery:e,view:t}),c.jsx(ts,{rootQuery:e,view:t,viewDef:t.definition})]})}function ir({icon:e,label:t,detail:n,disable:r,onClick:o,open:s}){const l=r?.(),i=()=>{r?.()||o?.()};return c.jsxs(ks,{children:[c.jsx(Ss,{asChild:!0,children:c.jsxs("div",{role:"menuitem",tabIndex:-1,...R.props(ot.item,ot.clickable,s?gT.open:null),onClick:i,"data-disabled":l?"true":void 0,children:[c.jsxs("div",{...R.props(ot.label),children:[e,c.jsx("div",{children:t})]}),s!==void 0&&c.jsx(re,{name:"chevronRight",color:"gray"})]})}),n?c.jsx(Rs,{children:c.jsx(Es,{...R.props(ot.tooltip),side:"right",align:"start",alignOffset:-16,children:n})}):null]})}const gT={open:{background:"mly16o7sp0",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function yT({rootQuery:e,view:t}){const{setQuery:n}=u.useContext(he),r=bn(t),o=r?Mj(r):!1;return c.jsx(ir,{icon:c.jsx(re,{name:"limit"}),label:"Limit",disable:()=>o,onClick:()=>{t.getOrAddDefaultSegment().setLimit(10),n?.(e.build())}})}function vT({rootQuery:e,view:t}){const{setQuery:n}=u.useContext(he);return c.jsx(ir,{icon:c.jsx(re,{name:"nest"}),label:"Add blank nested query",onClick:()=>{const r=t.getOrAddDefaultSegment(),o=Nj(r,"Nest");r.addEmptyNest(o>1?`Nest ${o}`:"Nest"),n?.(e.build())}})}function Xs({view:e,fields:t,onAddOperation:n,types:r,filter:o,isFilterOperation:s,search:l}){return c.jsx(Ed,{types:r,filter:o,view:e,fields:t,onAddOperation:n,isFilterOperation:s,search:l,customStyle:bT.list})}const bT={list:{minWidth:"mly2ixbly",maxWidth:"mly1j9u4d2",$$css:!0}};function wT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(he),o=t.getOutputSchema().fields,s=bn(t),l=u.useMemo(()=>o.filter(i=>i.kind==="dimension").filter(i=>xT.includes(i.type.kind)).filter(i=>s?!Aj(s,i.name):!0),[o,s]);return c.jsx(Xs,{label:"Add order by",icon:"orderBy",view:t,fields:l,types:["dimension"],onAddOperation:i=>{$j(t,i),r?.(e.build())},disabledMessage:"There must be at least one field in the output to order by.",search:n})}const xT=["string_type","number_type","boolean_type","date_type","timestamp_type"];function CT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(he),{fields:o}=wr(t),s=bn(t),l=(i,a,d)=>!s?.hasField(a.name,d)&&Kn(a);return c.jsx(Xs,{label:"Add group by",icon:"groupBy",view:t,fields:o,types:["dimension"],filter:l,onAddOperation:(i,a)=>{aa(t,i,a),r?.(e.build())},search:n})}function _T({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(he),{fields:o}=wr(t),s=bn(t),l=(i,a,d)=>!s?.hasField(a.name,d)&&Kn(a);return c.jsx(Xs,{label:"Add aggregate",icon:"aggregate",view:t,fields:o,types:["measure"],filter:l,onAddOperation:(i,a)=>{ca(t,i,a),r?.(e.build())},search:n})}function kT({view:e,search:t}){const{rootQuery:n,setQuery:r}=u.useContext(he),{fields:o}=wr(e);return c.jsx(Xs,{label:"Add filter",icon:"filter",view:e,fields:o,types:["measure","dimension"],filter:(s,l)=>(l.kind==="dimension"||l.kind==="measure")&&ST.has(l.type.kind)&&Kn(l),onAddOperation:(s,l,i)=>{i&&(s.kind==="dimension"||s.kind==="measure")&&(G0(e,s,l,i),r?.(n?.build()))},isFilterOperation:!0,search:t})}const ST=new Set(["string_type","boolean_type","number_type","date_type","timestamp_type"]);function RT({rootQuery:e,view:t,search:n}){const{setQuery:r}=u.useContext(he),o=wr(t).fields,s=u.useMemo(()=>o.filter(l=>l.kind==="view"&&!A0(l)),[o]);return c.jsx(Xs,{label:"Add view",icon:"view",view:t,fields:s,types:["view"],filter:(l,i)=>Kn(i),onAddOperation:l=>{e.isEmpty()?e.setView(l.name):jd(t,l),r?.(e.build())},search:n})}function ay({rootQuery:e,view:t}){const[n,r]=u.useState(!1),[o,s]=u.useState(""),{setQuery:l}=u.useContext(he),[i,a]=u.useState(""),d=bn(t),f=m=>{s(m===o?"":m)};return c.jsxs(xo,{open:n,onOpenChange:m=>{r(m),m||a("")},children:[c.jsx(qs,{asChild:!0,children:c.jsx(Ce,{icon:"insert",variant:"flat",size:"compact",onClick:()=>r(!n),tooltip:"Add query elements"})}),c.jsx(Co,{children:c.jsxs(Ws,{onPointerDownOutside:()=>r(!1),...R.props(ot.content),side:"bottom",align:"start",role:"menu",children:[c.jsx("div",{...R.props(ot.item),children:c.jsx(Pi,{icon:"search",value:i,onChange:a,placeholder:"Search...",customStyle:ET.search})}),c.jsx(Br,{}),c.jsxs("div",{className:"mly78zum5 mly1odjw0f mlywib8y2 mly1xyq3li",children:[i&&!o?c.jsxs("div",{className:"mly1odjw0f",children:[c.jsx(Ed,{view:t,fields:wr(t).fields,filter:(m,p,h)=>!d?.hasField(p.name,h)&&Kn(p),types:["dimension","measure","view"],onAddOperation:function(m,p){m.kind==="dimension"?aa(t,m,p):m.kind==="measure"?ca(t,m,p):jd(t,m),l?.(e.build())},search:i}),c.jsx(Br,{}),c.jsx(F0,{search:i,onClick:m=>{const p=m.fieldName.split("."),h=p.pop();t.getOrAddDefaultSegment().addWhere(h,p,{kind:"string",parsed:{operator:"=",values:[m.fieldValue??"∅"]}}),l?.(e.build())}})]}):c.jsxs("div",{"data-testid":"add-menu-operations",className:"mly18kybhu",children:[c.jsx(ir,{icon:c.jsx(re,{name:"groupBy"}),label:"Add group by",onClick:()=>f("group_by"),open:o==="group_by"}),c.jsx(ir,{icon:c.jsx(re,{name:"aggregate"}),label:"Add aggregate",onClick:()=>f("aggregate"),open:o==="aggregate"}),c.jsx(ir,{icon:c.jsx(re,{name:"filter"}),label:"Add filter",onClick:()=>f("where"),open:o==="where"}),c.jsx(ir,{icon:c.jsx(re,{name:"view"}),label:"Add view",onClick:()=>f("view"),open:o==="view"}),c.jsx(Br,{}),c.jsx(yT,{rootQuery:e,view:t}),c.jsx(ir,{icon:c.jsx(re,{name:"orderBy"}),label:"Order by",onClick:()=>f("order_by"),open:o==="order_by"}),c.jsx(vT,{rootQuery:e,view:t})]}),c.jsxs("div",{"data-testid":"add-menu-right-column",style:{overflowY:"auto"},children:[o==="group_by"&&c.jsx(CT,{rootQuery:e,view:t,search:i}),o==="aggregate"&&c.jsx(_T,{rootQuery:e,view:t,search:i}),o==="where"&&c.jsx(kT,{rootQuery:e,view:t,search:i}),o==="view"&&c.jsx(RT,{rootQuery:e,view:t,search:i}),o==="order_by"&&c.jsx(wT,{rootQuery:e,view:t,search:i})]})]})]})})]})}const ET={search:{width:"mlyh8yej3",$$css:!0}},Vc=Le.createContext([]);function cy({children:e,nest:t}){const{focusNestView:n,focusMainView:r}=js(),o=u.useContext(Vc);return c.jsx("div",{onPointerDown:s=>{s.stopPropagation(),t?n([...o,t.name]):r()},children:t?c.jsx(Vc.Provider,{value:[...o,t.name],children:c.jsx("div",{children:e})}):c.jsx("div",{children:e})})}function jT({rootQuery:e,view:t,nests:n}){return n.length===0?null:c.jsx("div",{...R.props(Pt.tokenContainer),children:n.map(r=>c.jsx(TT,{rootQuery:e,view:t,nest:r},r.name))})}function TT({rootQuery:e,view:t,nest:n}){const{setQuery:r}=u.useContext(he),[o,s]=u.useState(!1),l=u.useContext(Vc),{focusNestView:i,isNestViewFocused:a}=js(),d=f=>c.jsxs(c.Fragment,{children:[c.jsxs(md,{trigger:c.jsx(Ce,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:[c.jsx(gs,{icon:"clear",label:"Delete Query",onClick:()=>{i([...l]),f.delete(),r?.(e.build())}}),c.jsx(gs,{label:"Rename",onClick:()=>{s(!0)}})]}),c.jsx(ay,{rootQuery:e,view:f.view})]});return c.jsx(cy,{nest:n,children:c.jsxs("div",{className:"mlyj3b58b mly1yf7rl7 mly1xmf6yo mlyh8yej3",children:[c.jsx(hu,{title:n.name,icon:u0(n.view),defaultOpen:!0,controls:d(n),collapsedControls:d(n),isFocused:a([...l,n.name]),children:c.jsx(hT,{rootQuery:e,view:n.view})}),c.jsx(sy,{rootQuery:e,view:t,target:n,open:o,setOpen:s})]},n.name)})}function LT({rootQuery:e,view:t,viewDef:n}){const r=[],o=[],s=[],l=[],i=[],a=[];let d;if(!(n instanceof Z.ASTSegmentViewDefinition))return null;const f=n;return f.operations.items.forEach(m=>{m instanceof Z.ASTGroupByViewOperation?r.push(m):m instanceof Z.ASTAggregateViewOperation?o.push(m):m instanceof Z.ASTWhereViewOperation||m instanceof Z.ASTHavingViewOperation?l.push(m):m instanceof Z.ASTOrderByViewOperation?i.push(m):m instanceof Z.ASTNestViewOperation?a.push(m):m instanceof Z.ASTDrillViewOperation?s.push(m):d=m}),c.jsxs("div",{className:"mly1tpqehw mly10lvyaf",children:[c.jsx(aT,{rootQuery:e,segment:f,view:t,groupBys:r}),c.jsx(mT,{rootQuery:e,segment:f,view:t,aggregates:o}),c.jsx(eR,{rootQuery:e,drills:s}),c.jsx(uT,{rootQuery:e,filters:l}),c.jsx(pT,{rootQuery:e,orderBys:i}),c.jsx(jT,{rootQuery:e,view:t,nests:a}),c.jsx(fT,{rootQuery:e,limit:d})]})}function ts({rootQuery:e,view:t,viewDef:n}){return n instanceof Z.ASTArrowViewDefinition?c.jsx(ts,{rootQuery:e,view:t,viewDef:n.view}):n instanceof Z.ASTRefinementViewDefinition?c.jsxs("div",{children:[c.jsx(ts,{rootQuery:e,view:t,viewDef:n.base}),c.jsx(ts,{rootQuery:e,view:t,viewDef:n.refinement})]}):n instanceof Z.ASTSegmentViewDefinition?c.jsx(LT,{rootQuery:e,view:t,viewDef:n}):c.jsx(MT,{rootQuery:e,viewDef:n})}function MT({viewDef:e}){const[t,n]=u.useState(!1);return c.jsxs("div",{...{0:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mlywib8y2 mly163pfp mlyy13l1i"},1:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mly163pfp mlyy13l1i mly18d9i69"}}[!!t<<0],children:[c.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly1g3yg12 mlyydnxy5 mly6s0dn4 mlylqzeqv mly167g77z mly12oqio5 mlyc342km mly1n2onr6 mlyb3r6kr mlygqa5hp mlyh8yej3",children:[c.jsx(re,{name:"query",color:"purple"}),c.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv",children:e.name}),c.jsx(Ce,{icon:t?"chevronRight":"chevronDown",onClick:()=>n(!t),size:"compact"})]}),!t&&c.jsx(Rd,{viewInfo:e.getViewInfo(),style:AT.preview})]})}const AT={preview:{height:"mlyt7dq6l",maxHeight:"mly1hkcv85",background:"mlyo6guvx",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function IT({rootQuery:e,query:t,setQuery:n}){const{focusMainView:r,isMainViewFocused:o}=js();return c.jsx(cy,{children:c.jsxs(hu,{title:"Main query",isFocused:o,controls:c.jsxs(c.Fragment,{children:[c.jsx(md,{trigger:c.jsx(Ce,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:n?c.jsxs(c.Fragment,{children:[c.jsx(gs,{icon:"clear",label:"Clear query",onClick:()=>{r(),n?.(void 0)},disabled:e.isEmpty()}),c.jsx(gs,{icon:"nest",label:"Nest query",onClick:()=>{e.definition instanceof Z.ASTArrowQueryDefinition&&e.definition.view.convertToNest("Nest"),n?.(e.build())},disabled:e.isEmpty()||!(e.definition instanceof Z.ASTArrowQueryDefinition)})]}):c.jsx(c.Fragment,{})}),t.definition instanceof Z.ASTArrowQueryDefinition?c.jsx(ay,{rootQuery:e,view:t.definition}):null]}),collapsedControls:c.jsx(re,{name:u0(t)}),children:[t.definition instanceof Z.ASTArrowQueryDefinition?c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!t.isEmpty()&&c.jsx(D0,{rootQuery:e,view:t}),c.jsx(ts,{rootQuery:e,view:t.definition,viewDef:t.definition.view})]}):null,t.isEmpty()?c.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mlyng8ra",children:c.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlywzxoxx",children:[c.jsx("div",{children:"Click"}),c.jsx(re,{name:"insert",color:"disabled"}),c.jsx("div",{children:"to get started"})]})}):null]})})}function DT({rootQuery:e}){return e.definition instanceof Z.ASTArrowQueryDefinition?c.jsx("div",{...R.props(Pt.queryCard,PT.content),children:c.jsxs("div",{...R.props(Pt.labelWithIcon),children:[c.jsx(re,{name:"database"}),c.jsx("div",{className:"mlyb3r6kr mlylyipyv mly117nqv4",children:e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource().name})]})}):null}const PT={content:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gridTemplateColumns:"mlybyjr8",gap:"mly1jnr06f",rowGap:null,columnGap:null,$$css:!0}};function NT({value:e,setValue:t,customStyle:n}){const[r,o]=u.useState(""),[s,l]=u.useState(!1),i=u.useRef(null),a=u.useRef(null),d=e.kind==="date_literal",f=d?e.date_value:e.timestamp_value,m=d?"day":"second",p=h=>{h?(o(""),t(d?{kind:"date_literal",date_value:L.utc(h).format(no.day)}:{kind:"timestamp_literal",timestamp_value:L.utc(h).format(no.second)})):o("Invalid date")};return $0([i,a],()=>{l(!1)}),c.jsxs(xo,{open:s,onOpenChange:()=>{},children:[c.jsx(qs,{asChild:!0,children:c.jsx("div",{...R.props(Gn.main,Fo.wrapper,n),children:c.jsx(li,{value:L.utc(f).toDate(),setValue:p,units:m,onFocus:()=>l(!0),customStyle:{...Fo.input,...d?Fo.dateInput:Fo.timestampInput},forwardRef:i})})}),r&&c.jsx(ji,{errorMessage:r}),c.jsx(Co,{children:c.jsx(Ws,{align:"center",asChild:!0,children:c.jsx(od,{value:L.utc(f).toDate(),setValue:p,units:m,maxLevel:m,customStyle:Fo.datePicker,forwardRef:a})})})]})}const Fo={input:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,height:"mlyd7y6wv",backgroundColor:"mlyjbqb8w mlytw1abo",$$css:!0},dateInput:{width:"mly869kya",$$css:!0},timestampInput:{width:"mlynrytzq",$$css:!0},wrapper:{$$css:!0},datePicker:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mly1hfn5x7",$$css:!0}};function OT({filterType:e,value:t,setValue:n}){let r=null;switch(e){case"string_type":{const{parsed:d}=on.StringFilterExpression.parse(t.filter_expression_value);r={kind:"string",parsed:d}}break;case"number_type":{const{parsed:d}=on.NumberFilterExpression.parse(t.filter_expression_value);r={kind:"number",parsed:d}}break;case"boolean_type":{const{parsed:d}=on.BooleanFilterExpression.parse(t.filter_expression_value);r={kind:"boolean",parsed:d}}break;case"date_type":{const{parsed:d}=on.TemporalFilterExpression.parse(t.filter_expression_value);r={kind:"date",parsed:d}}break;case"timestamp_type":{const{parsed:d}=on.TemporalFilterExpression.parse(t.filter_expression_value);r={kind:"timestamp",parsed:d}}break}const{op:o,value:s}=iy(r,t.filter_expression_value),l=`${o} ${s}`,i={kind:"dimension",name:"parameter",type:{kind:e}},a=d=>{switch(d.kind){case"string":n({kind:"filter_expression_literal",filter_expression_value:on.StringFilterExpression.unparse(d.parsed)});break;case"boolean":n({kind:"filter_expression_literal",filter_expression_value:on.BooleanFilterExpression.unparse(d.parsed)});break;case"number":n({kind:"filter_expression_literal",filter_expression_value:on.NumberFilterExpression.unparse(d.parsed)});break;case"date":case"timestamp":n({kind:"filter_expression_literal",filter_expression_value:on.TemporalFilterExpression.unparse(d.parsed)});break}};return c.jsx(ws,{fieldInfo:i,path:[],filter:r,setFilter:a,trigger:c.jsx($e,{label:l}),layoutProps:{align:"start",side:"bottom",sideOffset:1}})}function $T({value:e,filterType:t,setValue:n,customStyle:r}){if(!e)return null;switch(e.kind){case"boolean_literal":return c.jsx(Ni,{value:e.boolean_value?"true":"false",items:[{label:"true",value:"true"},{label:"false",value:"false"}],onChange:o=>n({kind:"boolean_literal",boolean_value:o==="true"}),customStyle:r});case"date_literal":case"timestamp_literal":return c.jsx(NT,{value:e,setValue:n,customStyle:r});case"null_literal":return c.jsx($e,{label:"∅"});case"number_literal":return c.jsx(ic,{value:e.number_value,type:"number",onChange:o=>n({kind:"number_literal",number_value:o}),customStyle:r});case"string_literal":return c.jsx(ic,{value:e.string_value,onChange:o=>n({kind:"string_literal",string_value:o}),customStyle:r});case"filter_expression_literal":return c.jsx(OT,{value:e,filterType:t,setValue:n,customStyle:r})}}function zT({rootQuery:e}){const{setQuery:t}=u.useContext(he);if(e.definition instanceof Z.ASTArrowQueryDefinition){const n=e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource(),r=n.getSourceParameters();return!r||r.length===0?null:c.jsx(hu,{title:"Source parameters",children:c.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f mlynm25rq",children:r.map(o=>{var s;return c.jsxs(Ms,{customStyle:FT.tokenGroup,children:[c.jsx($e,{icon:ra(o.type.kind),label:o.name}),c.jsx($T,{filterType:o.type.kind==="filter_expression_type"?o.type.filter_type.kind:"string_type",value:((s=n.tryGetParameter(o.name))==null?void 0:s.parameter.value)??o.default_value,setValue:l=>{n.setParameter(o.name,l),t?.(e.build())}})]},o.name)})})})}return null}const FT={tokenGroup:{display:"mly78zum5",$$css:!0}};function BT(){const{rootQuery:e,setQuery:t}=u.useContext(he);return e?c.jsxs("div",{...R.props(z.body,qT.main),children:[c.jsx(DT,{rootQuery:e}),c.jsx(zT,{rootQuery:e}),c.jsx(IT,{rootQuery:e,query:e,setQuery:t})]}):(console.error("Missing <MalloyExplorerProvider>"),null)}const qT={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyysyzu8",overflowX:null,overflowY:null,gap:"mly167g77z",rowGap:null,columnGap:null,padding:"mly1fut7tt",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function NL({runQuery:e}){return c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mlyotlr4g mly1roky18",children:[c.jsx(BS,{runQuery:e}),c.jsx(BT,{})]})}function WT({viewInfo:e,onClick:t}){const n=M0(e.annotations??[]);return c.jsx("div",{children:c.jsx(e6,{header:c.jsxs("div",{children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib",children:[c.jsx(Fn,{label:"view",icon:"view_filled",color:"purple",customStyle:zm.viewBadge}),c.jsx(Ce,{variant:"default",size:"compact",label:"Add",onClick:t})]}),c.jsxs("div",{children:[c.jsx("div",{...R.props(z.emphasized),children:e.name}),n&&c.jsx(N0,{text:n})]})]}),customStyle:zm.card,children:c.jsx(Rd,{viewInfo:e})})})}const zm={viewBadge:{backgroundColor:"mlyjbqb8w",$$css:!0},card:{width:"mlyxsgkw5",$$css:!0}};function GT({views:e,onSelectView:t}){return c.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyysyzu8",children:c.jsxs("div",{className:"mly1bpp3o7 mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4",children:[c.jsx("div",{...R.props(YT.header,z.emphasized),children:"Start with a Bookmarked View"}),c.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly1a02dak mly883omv mlym6i5cn",children:e.filter(n=>!kd(n.annotations??[])).slice(0,3).map(n=>c.jsx(WT,{viewInfo:n,onClick:()=>{t(n)}},n.name))})]})})}const YT={header:{paddingBottom:"mly1l90r2v",$$css:!0}};var Id="Tabs",[UT,OL]=Ot(Id,[Ji]),uy=Ji(),[VT,Dd]=UT(Id),dy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:i,activationMode:a="automatic",...d}=e,f=Ts(i),[m,p]=Xn({prop:r,onChange:o,defaultProp:s});return c.jsx(VT,{scope:n,baseId:_t(),value:m,onValueChange:p,orientation:l,dir:f,activationMode:a,children:c.jsx(X.div,{dir:f,"data-orientation":l,...d,ref:t})})});dy.displayName=Id;var fy="TabsList",my=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Dd(fy,n),l=uy(n);return c.jsx(L1,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:c.jsx(X.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});my.displayName=fy;var py="TabsTrigger",hy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=Dd(py,n),i=uy(n),a=vy(l.baseId,r),d=by(l.baseId,r),f=r===l.value;return c.jsx(M1,{asChild:!0,...i,focusable:!o,active:f,children:c.jsx(X.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...s,ref:t,onMouseDown:O(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:O(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:O(e.onFocus,()=>{const m=l.activationMode!=="manual";!f&&!o&&m&&l.onValueChange(r)})})})});hy.displayName=py;var gy="TabsContent",yy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,i=Dd(gy,n),a=vy(i.baseId,r),d=by(i.baseId,r),f=r===i.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(Ve,{present:o||f,children:({present:p})=>c.jsx(X.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":a,hidden:!p,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&s})})});yy.displayName=gy;function vy(e,t){return`${e}-trigger-${t}`}function by(e,t){return`${e}-content-${t}`}var HT=dy,ZT=my,wl=hy,xl=yy;const XT={compiling:"Compiling",running:"Running",finished:"Finished",canceled:"Canceled"},KT="start",QT="bottom";function JT({runInfo:e}){return c.jsxs(ks,{children:[c.jsx(Ss,{asChild:!0,children:c.jsxs("div",{...R.props(Ka.triggerContentContainer,z.body),children:[c.jsx(re,{name:"info",color:"disabled"})," Query run details"]})}),c.jsx(Rs,{children:c.jsx(Es,{side:QT,align:KT,children:c.jsx(O0,{customStyle:Ka.card,children:c.jsxs(c.Fragment,{children:[e.customContent,e?.performanceAspects&&Object.entries(e.performanceAspects).map(([t,n])=>c.jsx("div",{children:Object.entries(n).map(([r,o])=>c.jsxs("div",{children:[c.jsxs("span",{...R.props(z.emphasized),children:[r,":"]})," ",c.jsx("span",{...R.props(z.body),children:o})]},r))},t)),e.queryLink&&c.jsx("a",{href:e.queryLink.href,target:"_blank",rel:"noreferrer",...R.props(Ka.link,z.link),children:e.queryLink.linkText})]})})})})]})}const Ka={card:{maxWidth:"mly1dc814f",$$css:!0},triggerContentContainer:{display:"mly3nfvp2",alignItems:"mly6s0dn4",justifyContent:"mlylqzeqv",$$css:!0},link:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",textDecoration:"mly1hl2dhg",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,$$css:!0}};function eL({source:e,query:t}){let n;switch(t.executionState){case"compiling":case"running":n=c.jsx(oL,{onCancel:t.onCancel,executionState:t.executionState,queryResolutionStartMillis:t.queryResolutionStartMillis});break;case"canceled":n=c.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[c.jsx("div",{...R.props(z.emphasized),children:"Query Canceled"}),c.jsx("div",{...R.props(z.body),children:"Your query was canceled; nothing to display."})]})});break;case"finished":n=c.jsx(tL,{source:e,response:t.response});break}return n}function tL({source:e,response:t}){let n=null;return t?t.error||t.messages?n=c.jsx(nL,{messages:[...t.error?[t.error]:[],...t.messages?t.messages:[]]}):t.result||(n=c.jsx(Oc,{title:"Empty Result",variant:"critical"})):n=c.jsx(Oc,{title:"Empty Response",variant:"critical"}),c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly167g77z mly5yr21d",children:[t?.runInfo&&c.jsx(JT,{runInfo:t.runInfo}),n,t?.result&&c.jsx(rL,{result:t.result,source:e})]})}function nL({messages:e}){return c.jsx("div",{children:e.map(t=>{let n=null;if(t.customRenderer)n=t.customRenderer;else{let r;switch(t.severity){case"DEBUG":case"INFO":r="info";break;case"WARN":r="warn";break;case"ERROR":case"FATAL":r="critical";break;default:r="critical"}n=c.jsx(Oc,{title:t.title,description:t.description,variant:r,children:t.content})}return c.jsx("div",{children:n},t.title)})})}function rL({result:e,source:t}){const{onDrill:n,setQuery:r}=u.useContext(he),o=u.useRef(null),s=u.useMemo(()=>new Py.MalloyRenderer().createViz({onDrill:({stableQuery:a,stableDrillClauses:d})=>{if(n){n({stableQuery:a,stableDrillClauses:d});return}const f=new Z.ASTQuery({query:a,source:t});r?.(f.build())},tableConfig:{enableDrill:!0}}),[n,t,r]);return u.useEffect(()=>{o.current&&s&&(s.setResult(e),s.render(o.current))},[s,e]),s?c.jsx("div",{ref:o,className:"mly5yr21d mly1n2onr6 mly1ja2u2z mlyb3r6kr mlyh8yej3"}):c.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4",children:c.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4 mly167g77z",children:[c.jsx(Cg,{size:"large"}),c.jsx("div",{...R.props(z.emphasized),children:"Rendering..."})]})})}function oL({onCancel:e,executionState:t,queryResolutionStartMillis:n}){const r=sL(n);return c.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:[c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[c.jsx(Cg,{size:"large",customStyle:lL.spinner}),c.jsx("div",{...R.props(z.emphasized),children:`${XT[t]} query...`}),c.jsx("div",{...R.props(z.body),children:`Total time elapsed: ${(r/1e3).toFixed(0)}s`})]}),c.jsx(Ce,{onClick:e,label:"Cancel Query"})]})}function sL(e){const[t,n]=u.useState(Date.now()-e);return u.useEffect(()=>{const r=setInterval(()=>{n(Date.now()-e)},1e3);return()=>clearInterval(r)},[e]),t}const lL={spinner:{marginBottom:"mly1e56ztr",$$css:!0}};function iL({query:e,debug:t}){var n;const[r,o]=u.useState((n=t?.debuggers)==null?void 0:n.at(0));return c.jsxs("div",{children:[!!t?.debuggers.length&&c.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4",children:[c.jsx("div",{...R.props(z.largeBody),children:"Debug with:"}),c.jsx(En,{options:t.debuggers.map(s=>({label:s,value:s})),value:r,onChange:s=>o(s)}),c.jsx(Ce,{variant:"default",label:"Run",isDisabled:!r,onClick:()=>r&&t.onDebugQuery(e,r)})]}),c.jsx(jc,{code:JSON.stringify(e,null,2),language:"json"})]})}const aL=800;function cL({text:e,label:t}){const[n,r]=u.useState(!1);return u.useEffect(()=>{if(!n)return()=>{};const o=setTimeout(()=>{r(!1)},aL);return()=>{clearTimeout(o),r(!1)}},[n]),c.jsx(Ce,{variant:"flat",size:"compact",label:n?"Copied!":t,icon:"copy",isDisabled:n,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}var Ae=function(e){return e.RESULTS="Results",e.MALLOY="Malloy",e.SQL="SQL",e.RAW_QUERY="Raw Query",e}(Ae||{});function $L({source:e,draftQuery:t,setDraftQuery:n,submittedQuery:r,options:o}){var s,l,i;const[a,d]=u.useState(Ae.MALLOY),f=(s=vp(e,t))==null?void 0:s.toMalloy(),m=e.schema.fields.filter(g=>g.kind==="view"),p=r!==void 0;!p&&(a===Ae.RESULTS||a===Ae.SQL)&&d(Ae.MALLOY),u.useEffect(()=>{d(Ae.RESULTS)},[r]);const h=(()=>{var g,y;return a===Ae.MALLOY&&f?f:a===Ae.SQL&&((y=(g=r?.response)==null?void 0:g.result)!=null&&y.sql)?r.response.result.sql:a===Ae.RAW_QUERY?JSON.stringify(t):null})();return t||r?c.jsxs(HT,{...R.props(Gt.tabRoot,z.body),value:a,onValueChange:g=>d(g),children:[c.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly6s0dn4 mly153ncpu",children:[c.jsxs(ZT,{className:"mly78zum5 mly6s0dn4 mly167g77z",children:[c.jsx(wl,{value:Ae.RESULTS,disabled:!p,...R.props(z.body,Gt.tab,!p&&Gt.disabledTab),title:p?void 0:"Run a query to see the results.",children:Ae.RESULTS}),c.jsx(wl,{value:Ae.MALLOY,...R.props(z.body,Gt.tab),children:Ae.MALLOY}),c.jsx(wl,{value:Ae.SQL,disabled:!p,...R.props(z.body,Gt.tab,!p&&Gt.disabledTab),title:p?void 0:"Run a query to see generated SQL.",children:Ae.SQL}),o?.showRawQuery&&c.jsx(wl,{value:Ae.RAW_QUERY,...R.props(z.body,Gt.tab),children:Ae.RAW_QUERY})]}),a!==Ae.RESULTS&&h&&c.jsx(cL,{text:h,label:"Copy Code"})]}),c.jsxs("div",{className:"mly1iyjqo2 mlyb3r6kr",children:[c.jsx(xl,{value:Ae.RESULTS,className:"mlyc7ga6q mlyh8yej3 mly5yr21d mly9f619",children:r&&c.jsxs(c.Fragment,{children:[t&&r&&!uL(t,r.query)&&c.jsxs("div",{...R.props(Gt.warning,z.body),children:[c.jsx(re,{name:"warning",color:"warning",customStyle:Gt.warningIcon}),c.jsxs("div",{children:[c.jsx("span",{children:"Query was updated. Run query to see new result or"}),c.jsx("button",{...R.props(Gt.warningAction,z.link),onClick:()=>{n(r.query)},children:" revert "}),c.jsx("span",{children:"to the last run query."})]})]}),c.jsx(eL,{source:e,query:r})]})}),c.jsx(xl,{value:Ae.MALLOY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:c.jsx(jc,{code:f??"",language:"malloy"})}),c.jsx(xl,{value:Ae.SQL,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:((i=(l=r?.response)==null?void 0:l.result)==null?void 0:i.sql)&&c.jsx(jc,{code:r.response.result.sql,language:"sql"})}),o?.showRawQuery&&c.jsx(xl,{value:Ae.RAW_QUERY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:c.jsx(iL,{query:t,debug:o.debugOptions?{debuggers:o.debugOptions.debuggers,onDebugQuery:o.debugOptions.onDebugQuery}:void 0})})]})]}):c.jsx(GT,{views:m,onSelectView:g=>n(dL(g.name,e.name))})}function uL(e,t){return JSON.stringify(e)===JSON.stringify(t)}function dL(e,t){return{definition:{kind:"arrow",source:{kind:"source_reference",name:t},view:{kind:"view_reference",name:e}}}}const Gt={tabRoot:{height:"mly5yr21d",width:"mlyh8yej3",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},tab:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mlyjbqb8w",cursor:"mly1ypdohk",":is([data-state='active'])_color":"mlyb0tsu4",":is([data-state='active'])_fontWeight":"mly1uifvsu",":is([data-state='active'])_backgroundColor":"mly14vaotu",$$css:!0},disabledTab:{color:"mly1jwwhvr",cursor:"mly1ipiool",$$css:!0},warning:{display:"mly78zum5",alignItems:"mly6s0dn4",marginBottom:"mly1e56ztr",$$css:!0},warningAction:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",$$css:!0},warningIcon:{paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,$$css:!0}};function ns(e,t=[]){return e.flatMap(n=>{switch(n.kind){case"view":return A0(n)?[]:t.length>0?[]:[{path:t,field:n}];case"measure":case"dimension":return n.type.kind==="array_type"&&n.type.element_type.kind==="record_type"?[{path:t,field:n},...ns(n.type.element_type.fields.map(r=>({kind:n.kind,...r})),[...t,n.name])]:n.type.kind==="record_type"?[{path:t,field:n},...ns(n.type.fields.map(r=>({kind:n.kind,...r})),[...t,n.name])]:[{path:t,field:n}];case"join":return ns(n.schema.fields,[...t,n.name]);default:return[]}})}function fL(e){return ns(e.schema.fields)}function wy(e,t){return Object.values(t.reduce((n,r)=>{const o=[e.name,...r.path].join(".");return n[o]||(n[o]={groupPath:r.path,items:[]}),n[o].items.push(r),n},{}))}function xy(e){return Object.values(e.reduce((t,n)=>{const r=n.field.kind;return t[r]||(t[r]={group:r,items:[]}),t[r].items.push(n),t},{}))}const mL={view:"Views",measure:"Measures",dimension:"Dimensions"};function pL(e,t,n){const r=ia(n,t.name),s=u.useMemo(()=>{const{fields:f}=wr(e),m=n.join(".");return ns(f).filter(p=>p.path.join(".")===m)},[n,e]).find(f=>t.name===f.field.name),l=u.useMemo(()=>{const f=bn(e);return s?.field.kind!=="dimension"?"Grouping is only available on a dimenion.":f?.hasField(t.name,n)?"Cannot group by a field already in the view.":Kn(t)?"":"This field is annotated with #NO_UI."},[e,s?.field.kind,t,n]),i=u.useMemo(()=>{if(s?.field.kind!=="measure")return"Aggregation only supports measure fields.";const f=bn(e);return f?.hasField(t.name,n)?"This field is already used in the query.":Kn(t)?"":"This field is annotated with #NO_UI."},[s?.field.kind,e,t,n]),a=u.useMemo(()=>s?["dimension","measure"].includes(s.field.kind)?hL.includes(s.field.type.kind)?"":"Filtering only supports string, boolean, number, date and time fields.":"Filtering is only available for a dimension or measure.":`Unexpected Error: Could not find a field ${r}.`,[r,s]),d=u.useMemo(()=>{if(!s)return`Unexpected Error: Could not find a field ${r}.`;const f=bn(e);return f&&Ij(f,n,t.name)?"Query is already ordered by this field.":!f||!Pj(f,n,t.name)?"Order by is only available for fields in the output.":["dimension","measure"].includes(s.field.kind)?gL.includes(s.field.type.kind)?"":"Order By only supports string, boolean, number, date and time fields.":"Order By is only available for dimension or measure fields."},[s,e,n,t.name,r]);return{isGroupByAllowed:!l,groupByDisabledReason:l,isAggregateAllowed:!i,aggregateDisabledReason:i,isFilterAllowed:!a,filterDisabledReason:a,isOrderByAllowed:!d,orderByDisabledReason:d}}const hL=["string_type","boolean_type","number_type","date_type","timestamp_type"],gL=["string_type","number_type","boolean_type","date_type","timestamp_type"];function Cy({field:e,path:t,viewDef:n}){const{rootQuery:r,setQuery:o}=Le.useContext(he),{focusedNestView:s}=js(),l=s??n,{groupByDisabledReason:i,aggregateDisabledReason:a,filterDisabledReason:d,orderByDisabledReason:f}=pL(l,e,t),[m,p]=u.useState(),[h,g]=u.useState(!1),y=(b,x)=>{(e.kind==="dimension"||e.kind==="measure")&&(b==="groupBy"&&!i?aa(l,e,t):b==="aggregate"&&!a?ca(l,e,t):b==="orderBy"&&!f?Oj(l,t,e.name):b==="filter"&&!d&&x&&G0(l,e,t,x),o?.(r?.build()))},v=()=>{e.kind==="view"&&r?.isEmpty()&&(r?.setView(e.name),o?.(r?.build()))},w=()=>{e.kind==="view"&&(jd(l,e),o?.(r?.build()))};return c.jsx(ro,{field:e,hoverActions:e.kind==="view"?c.jsxs(c.Fragment,{children:[c.jsx(Nn,{icon:"insert",disabled:!r?.isEmpty(),onClick:v,tooltip:r?.isEmpty()?"Add view":"Can only add a view to an empty query.",onTooltipOpenChange:g}),c.jsx(Nn,{icon:"nest",onClick:w,tooltip:"Add as new nested query",onTooltipOpenChange:g})]}):e.kind==="measure"?c.jsxs(c.Fragment,{children:[c.jsx(Nn,{icon:"aggregate",tooltip:a||"Add as aggregate",disabled:!!a,onClick:()=>y("aggregate"),onTooltipOpenChange:g}),c.jsx(ws,{fieldInfo:e,path:t,setFilter:b=>y("filter",b),trigger:c.jsx(Nn,{icon:"filter",tooltip:d||"Add as filter",disabled:!!d,onTooltipOpenChange:g}),onOpenChange:p}),c.jsx(Nn,{icon:"orderBy",tooltip:f||"Add as order by",disabled:!!f,onClick:()=>y("orderBy"),onTooltipOpenChange:g})]}):e.kind==="dimension"?c.jsxs(c.Fragment,{children:[c.jsx(Nn,{icon:"groupBy",tooltip:i||"Add as group by",disabled:!!i,onClick:()=>y("groupBy"),onTooltipOpenChange:g}),c.jsx(ws,{fieldInfo:e,path:t,setFilter:b=>y("filter",b),trigger:c.jsx(Nn,{icon:"filter",tooltip:d||"Add as filter",disabled:!!d,onTooltipOpenChange:g}),onOpenChange:p}),c.jsx(Nn,{icon:"orderBy",tooltip:f||"Add as order by",disabled:!!f,onClick:()=>y("orderBy"),onTooltipOpenChange:g})]}):null,onClick:e.kind==="dimension"&&!i?()=>y("groupBy"):e.kind==="measure"&&!a?()=>y("aggregate"):e.kind==="view"?()=>{r?.isEmpty()?v():w()}:void 0,hoverActionsVisible:m||h,tooltip:c.jsx(mi,{field:e,path:t}),tooltipProps:{side:"right",align:"start",alignOffset:28}})}function Nn({tooltip:e,onTooltipOpenChange:t,...n}){return c.jsxs(co,{delayDuration:300,onOpenChange:t,children:[c.jsx(uo,{asChild:!0,children:c.jsx(Ce,{variant:"flat",size:"compact",...n})}),c.jsx(fo,{children:c.jsx(mo,{sideOffset:8,...R.props(z.body,Cn.default),children:e})})]})}const Fm=["dimension","measure","view"];function yL({source:e,items:t}){const n=u.useMemo(()=>xy(t).sort((s,l)=>Fm.indexOf(s.group)-Fm.indexOf(l.group)).map(s=>({...s,items:wy(e,s.items)})),[e,t]),{rootQuery:r}=u.useContext(he),o=r?.definition;return o instanceof Z.ASTArrowQueryDefinition?c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1cy8zhl mlyou54vl mlye8ttls mly10cdfl8",children:[c.jsx("div",{...R.props(z.body,Bm.heading),children:`${t.length} result${t.length>1?"s":""}`}),n.map(({group:s,items:l})=>c.jsxs("div",{children:[c.jsx("div",{...R.props(z.body,Bm.groupTitle),children:mL[s]}),c.jsx("div",{className:"mly78zum5 mlydt5ytf mlyou54vl",children:l.map(({groupPath:i,items:a})=>u.createElement("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",key:i.join(".")},c.jsx("div",{...R.props(z.supporting),children:i.join(" > ")}),a.map(({field:d,path:f})=>c.jsx(Cy,{field:d,path:f,viewDef:o},[...f,d.name].join(".")))))})]},s))]}):null}const Bm={heading:{fontWeight:"mly1xlr1w8",$$css:!0},groupTitle:{fontWeight:"mly1xlr1w8",fontSize:"mlyfifm61",$$css:!0}},vL=(e,t)=>t.at(-1)??e.name,bL=(e,t)=>t.length>0?`joined to ${[...t.slice(0,-1),e.name].join(" > ")}`:void 0;function Qa({source:e,fieldItems:t,fieldGroupType:n}){const r=u.useMemo(()=>e?xy(t).map(i=>({...i,items:wy(e,i.items)})):[],[e,t]),o=u.useMemo(()=>{var i;return((i=r.find(({group:a})=>a===n))==null?void 0:i.items)??[]},[r,n]),{rootQuery:s}=u.useContext(he),l=s?.definition;return l instanceof Z.ASTArrowQueryDefinition?c.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:c.jsx(tv,{children:o.map((i,a)=>c.jsx(r6,{label:vL(e,i.groupPath),sublabel:bL(e,i.groupPath),isInitiallyExpanded:a===0,children:i.items.map(({field:d,path:f})=>c.jsx(Cy,{field:d,path:f,viewDef:l},[...f,d.name].join(".")))},i.groupPath.join(".")))})}):null}function zL({onRefresh:e}){const{source:t}=u.useContext(he),[n,r]=u.useState(""),{onCollapse:o}=u.useContext(na),s=u.useMemo(()=>t?fL(t).filter(m=>!kd(m.field.annotations??[])):[],[t]),l=s.filter(m=>m.field.kind==="view"),i=s.filter(m=>m.field.kind==="measure"),a=s.filter(m=>m.field.kind==="dimension"),d=u.useMemo(()=>{if(n){const m=n.toLocaleLowerCase();return s.filter(p=>p.field.name.toLocaleLowerCase().includes(m))}return[]},[s,n]),f=!!n;return t?c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mly1gzqxud mlyfuqftd",children:[c.jsxs("div",{...R.props(z.body,qm.header),children:[c.jsxs("div",{className:"mly78zum5 mly1qughib",children:[c.jsxs("div",{className:"mly78zum5 mly6s0dn4 mly167g77z mlydqdrvq mlyb3r6kr",children:[c.jsx(re,{name:"database",color:"gray"}),c.jsx("div",{...R.props(z.largeBody,qm.title),children:t.name})]}),c.jsxs("div",{className:"mly78zum5",children:[c.jsx(Ce,{icon:"refresh",tooltip:"Refresh the source",onClick:e,size:"compact",variant:"flat"}),o&&c.jsx(Ce,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:o,size:"compact",variant:"flat"})]})]}),c.jsx(Pi,{value:n,onChange:m=>r(m),placeholder:"Search",size:"compact",icon:"search",hasClear:!0})]}),c.jsx(Br,{}),c.jsx("div",{className:"mly78zum5 mlydt5ytf mlyysyzu8 mly1iyjqo2",children:f?c.jsx(yL,{source:t,items:d}):c.jsxs(mk,{defaultExpandedItemId:"views",children:[c.jsx(qa,{id:"dimensions",label:"Dimensions",startIcon:c.jsx(re,{name:"dimension",color:"cyan"}),badge:c.jsx(Fn,{label:a.length.toString(),color:"cyan"}),children:c.jsx(Qa,{source:t,fieldItems:s,fieldGroupType:"dimension"})},"dimensions"),c.jsx(qa,{id:"measures",label:"Measures",startIcon:c.jsx(re,{name:"measure",color:"green"}),badge:c.jsx(Fn,{label:i.length.toString(),color:"green"}),children:c.jsx(Qa,{source:t,fieldItems:s,fieldGroupType:"measure"})},"measures"),c.jsx(qa,{id:"views",label:"Views",startIcon:c.jsx(re,{name:"view",color:"purple"}),badge:c.jsx(Fn,{label:l.length.toString(),color:"purple"}),children:c.jsx(Qa,{source:t,fieldItems:s,fieldGroupType:"view"})},"views")]})})]}):null}const qm={header:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",fontWeight:"mly1xlr1w8",color:"mly1ue28sr",$$css:!0}};function wL({icon:e,title:t,tooltip:n}){const{onExpand:r}=u.useContext(na);return c.jsx("div",{className:"mly78zum5 mlydt5ytf mly7a106z mlylqzeqv mly5yr21d mly1gzqxud mlyfuqftd",children:c.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z mlye8ttls",children:[c.jsx(Ce,{icon:e,variant:"flat",size:"compact",tooltip:n,onClick:r}),t&&c.jsx("div",{...R.props(z.body,xL.title),children:t})]})})}const xL={title:{fontWeight:"mly1xlr1w8",cursor:"mlyt0e3qv","writing-mode":"mly35i7",$$css:!0}};function FL({isInitiallyExpanded:e=!0,initialWidth:t,minWidth:n,icon:r,title:o,children:s}){const[l,i]=u.useState(e),[a,d]=u.useState(t),f=!l;return c.jsxs(na.Provider,{value:{onExpand:()=>i(!0),onCollapse:()=>i(!1)},children:[c.jsxs("div",{...{0:{className:"mly1n2onr6 mly5yr21d mly3psx0u"},1:{className:"mly1n2onr6 mly5yr21d mly3psx0u mly1s85apg"}}[!!f<<0],style:{width:`${a}px`},children:[s,c.jsx(uk,{width:a,minWidth:n,onWidthChange:d})]}),f&&c.jsx(wL,{icon:r,title:o})]})}export{RL as MalloyExplorerProvider,BS as QueryActionBar,BT as QueryEditor,NL as QueryPanel,FL as ResizableCollapsiblePanel,uk as ResizeBar,$L as ResultPanel,zL as SourcePanel};
|